-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsetup.py
73 lines (62 loc) · 1.8 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from setuptools import setup
from setuptools.command.test import test as TestCommand
# import py2exe
LONG_DESCRIPTION = open('README.rst').read()
with open('downstream_farmer/version.py', 'r') as f:
exec(f.read())
install_requirements = [
'six',
'requests',
'RandomIO>=0.2.1',
'storj-heartbeat>=0.1.10',
'siggy>=0.1.0',
'colorama'
]
test_requirements = [
'base58',
'mock',
'pytest',
'pytest-pep8',
'pytest-cache',
'coveralls'
]
class PyTest(TestCommand):
user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = []
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# Import PyTest here because outside, the eggs are not loaded.
import pytest
import sys
errno = pytest.main(self.pytest_args)
sys.exit(errno)
setup(
name='downstream-farmer',
version=__version__,
url='https://github.com/Storj/downstream-farmer',
download_url='https://github.com/Storj/downstream-farmer/tarball/' +
__version__,
license=open('LICENSE').read(),
author='Storj Labs',
author_email='[email protected]',
description='Client software for a Storj farmer',
long_description=LONG_DESCRIPTION,
packages=['downstream_farmer'],
cmdclass={'test': PyTest},
install_requires=install_requirements,
tests_require=test_requirements,
include_package_data=True,
entry_points={
'console_scripts': [
'downstream = downstream_farmer.shell:main'
]
},
keywords=['storj', 'farmer', 'farming', 'driveshare']
)