-
Notifications
You must be signed in to change notification settings - Fork 157
/
Copy pathsetup.py
68 lines (61 loc) · 1.9 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# furl - URL manipulation made simple.
#
# Arthur Grunseid
# grunseid.com
#
# License: Build Amazing Things (Unlicense)
import os
import re
import sys
from os.path import dirname, join as pjoin
from setuptools import setup, find_packages
with open(pjoin(dirname(__file__), 'furl', '__init__.py')) as fd:
VERSION = re.compile(
r".*__version__ = '(.*?)'", re.S).match(fd.read()).group(1)
if sys.argv[-1] == 'publish':
"""Publish to PyPi. Requires twine."""
os.system('python setup.py sdist')
os.system('twine upload dist/furl-%s.tar.gz' % VERSION)
sys.exit()
long_description = (
'Information and documentation at https://github.com/gruns/furl.')
tests_require = ['pycodestyle']
if sys.version_info[:2] < (2, 7):
tests_require += ['unittest2']
setup(
name='furl',
version=VERSION,
author='Arthur Grunseid',
author_email='[email protected]',
url='https://github.com/gruns/furl',
license='Unlicense',
description='URL manipulation made simple.',
long_description=long_description,
packages=find_packages(),
include_package_data=True,
platforms=['any'],
classifiers=[
'Topic :: Internet',
'Natural Language :: English',
'License :: Freely Distributable',
'Intended Audience :: Developers',
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: PyPy',
],
install_requires=[
'six>=1.8.0',
'orderedmultidict>=0.7.6',
],
test_suite='tests',
tests_require=tests_require,
)