-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
76 lines (66 loc) · 2.11 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
69
70
71
72
73
74
75
76
import os
import versioneer
versioneer.VCS = 'git'
versioneer.versionfile_source = 'BigStash/version.py'
versioneer.versionfile_build = 'BigStash/version.py'
versioneer.tag_prefix = ''
versioneer.parentdir_prefix = 'bigstash-'
from setuptools import setup, find_packages
def pep386adapt(version):
if version is not None and '-' in version:
# adapt git-describe version to be in line with PEP 386
parts = version.split('-')
parts[-2] = 'post'+parts[-2]
version = '.'.join(parts[:-1])
return version
install_requires = [
'six>=1.9, <2.0',
'requests>=2.5.1, <2.6',
'retrying',
'wrapt',
'boto3',
'cached_property',
'docopt',
'inflect'
]
dev_requires = [
'flake8',
]
def read(fname):
try:
return open(os.path.join(os.path.dirname(__file__), fname)).read()
except IOError:
return ''
setup(version=pep386adapt(versioneer.get_version()),
name="bigstash",
description=read('DESCRIPTION'),
long_description=read('README.rst'),
url='http://github.com/longaccess/bigstash-python/',
license='Apache',
packages=find_packages(exclude=['features*', '*.t']),
tests_require=['testtools'],
test_suite="BigStash.t",
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Intended Audience :: Information Technology',
'Natural Language :: English',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Topic :: System :: Archiving',
'Topic :: Utilities',
],
cmdclass=versioneer.get_cmdclass(),
install_requires=install_requires,
extras_require={
'dev': dev_requires
},
entry_points={
'console_scripts': ['bgst=BigStash.upload:main']
}
)