This repository has been archived by the owner on Oct 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathsetup.py
70 lines (60 loc) · 2.08 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pip.download
from pip.req import parse_requirements
from setuptools import setup, find_packages
exec(open('storj/metadata.py').read()) # load __version__
def requirements(requirements_file):
"""Return package mentioned in the given file.
Args:
requirements_file (str): path to the requirements file to be parsed.
Returns:
(list): 3rd-party package dependencies contained in the file.
"""
return [
str(package.req) for package in parse_requirements(
requirements_file, session=pip.download.PipSession())]
setup(
name='storj',
version=__version__, # NOQA
description='A Python SDK for the Storj API',
long_description=open('README.rst').read(),
url='http://storj.io',
author=__author__,
author_email=__author_email__,
license='MIT',
dependency_links=[],
# package_data={'storj': ['data/*.json']},
# include_package_data=True,
packages=find_packages(
exclude=('*.tests', '*.tests.*', 'tests.*', 'tests')
),
install_requires=requirements('requirements.txt'),
test_suite='tests',
tests_require=requirements('requirements-test.txt'),
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Internet :: WWW/HTTP',
],
keywords=', '.join([
'storj', 'bridge', 'metadisk', 'api', 'client', 'sdk', 'python'
]),
extras_require={
'cli': requirements('requirements-extra-cli.txt'),
},
entry_points={
'console_scripts': [
'storj-bucket = storj.cli:bucket',
'storj-file = storj.cli:file',
'storj-key = storj.cli:keys',
]
}
)