forked from maet3608/nuts-flow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
67 lines (56 loc) · 1.85 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
import os
import sys
import glob
import shutil
import nutsflow
from setuptools import setup, find_packages, Command
from setuptools.command.test import test as TestCommand
class CleanCommand(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
for folder in ['build', 'dist']:
if os.path.exists(folder):
shutil.rmtree(folder)
for egg_file in glob.glob('*egg-info'):
shutil.rmtree(egg_file)
class PyTest(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tests(self):
import pytest
errcode = pytest.main(self.test_args)
sys.exit(errcode)
setup(
name='nutsflow',
version=nutsflow.__version__,
url='https://github.com/maet3608/nuts-flow',
license='Apache Software License (http://www.apache.org/licenses/LICENSE-2.0)',
author='Stefan Maetschke',
author_email='stefan.maetschke@gmail.com',
description='A simple data-flow framework based on iterator chaining',
install_requires=['pytest >= 3.0.3', 'six >= 1.10.0'],
tests_require=['pytest >= 3.0.3'],
packages=find_packages(exclude=['setup']),
include_package_data=True,
platforms='any',
cmdclass={
'test': PyTest,
'clean': CleanCommand,
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 2.7',
'Natural Language :: English',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)