forked from pytransitions/transitions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
37 lines (32 loc) · 1.05 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
import sys
from setuptools import setup
with open('transitions/version.py') as f:
exec(f.read())
if len(set(('test', 'easy_install')).intersection(sys.argv)) > 0:
import setuptools
tests_require = ['dill', 'pygraphviz']
extra_setuptools_args = {}
if 'setuptools' in sys.modules:
tests_require.append('nose')
extra_setuptools_args = dict(
test_suite='nose.collector',
extras_require=dict(
test='nose>=0.10.1')
)
setup(
name="transitions",
version=__version__,
description="A lightweight, object-oriented Python state machine implementation.",
author='Tal Yarkoni',
author_email='[email protected]',
url='http://github.com/tyarkoni/transitions',
packages=["transitions"],
package_data={'transitions': ['data/*'],
'transitions.tests': ['data/*']
},
install_requires=['six'],
tests_require=tests_require,
license='MIT',
download_url='https://github.com/tyarkoni/transitions/archive/%s.tar.gz' % __version__,
**extra_setuptools_args
)