This repository was archived by the owner on Oct 8, 2021. It is now read-only.
forked from PermaData/rill
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
97 lines (75 loc) · 2.55 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#!/usr/bin/env python
import os
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
VERSION = '0.1'
class Tox(TestCommand):
user_options = [('tox-args=', 'a', "Arguments to pass to tox")]
def initialize_options(self):
TestCommand.initialize_options(self)
self.tox_args = None
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
# import here, cause outside the eggs aren't loaded
import tox
import shlex
args = self.tox_args
if args:
args = shlex.split(self.tox_args)
errno = tox.cmdline(args=args)
sys.exit(errno)
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 run_tests(self):
# import here, cause outside the eggs aren't loaded
import pytest
errno = pytest.main(self.pytest_args)
sys.exit(errno)
# Test dependencies
with open(os.path.join(os.path.dirname(__file__), 'tests', 'requirements.txt')) as f:
tests_requires = f.read().split()
with open(os.path.join(os.path.dirname(__file__), 'requirements.txt')) as f:
install_requires = f.read().split()
# Dependencies: Python 3.x backports for 2.x
if sys.version_info.major < 3:
install_requires.append('enum34') # enum.Enum
setup(
name='rill',
version=VERSION,
author='Chad Dombrova',
author_email='[email protected]',
description='Flow Based Programming for Python',
long_description=open('README.md').read(),
url='https://github.com/chadrik/rill',
#packages=['rill', 'rill.components', 'rill.engine'],
packages=find_packages(exclude=['tests']),
license='MIT',
classifiers=[
'Intended Audience :: Developers'
'Development Status :: 2 - Pre-Alpha',
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
# cmdclass={
# 'tox': Tox,
# 'ptest': PyTest
# },
entry_points={
'console_scripts': [
'rillrun = rill.cli:main'
]
},
install_requires=install_requires,
tests_require=tests_requires
)