-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
53 lines (45 loc) · 1.4 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
import io
import sys
from setuptools import setup
from setuptools.command.test import test as TestCommand
from pipetools import xpartial, X
import pipetools
class PyTest(TestCommand):
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 pytest
error_code = pytest.main(self.test_args)
sys.exit(error_code)
setup(
name='pipetools',
version=pipetools.__versionstr__,
description=('A library that enables function composition similar to '
'using Unix pipes.'),
long_description='README.rst' > xpartial(io.open, X, encoding="utf-8") | X.read(),
author='Petr Pokorny',
author_email='petr@innit.cz',
license='MIT',
url='https://0101.github.io/pipetools/',
packages=['pipetools'],
include_package_data=True,
install_requires=(
'setuptools>=0.6b1',
),
tests_require=(
'pytest',
),
cmdclass={'test': PyTest},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
'Topic :: Utilities',
]
)