-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
61 lines (50 loc) · 1.5 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
#!/usr/bin/env python
import sys
import setuptools.command.test
from setuptools import setup, find_packages
import ext_sort
requirements = [
]
test_requirements = [
'pytest==4.4.1'
]
with open('README.rst', 'r') as file:
readme = file.read()
class PyTest(setuptools.command.test.test):
user_options = [('pytest-args=', 'a', 'Arguments to pass to py.test')]
def initialize_options(self):
setuptools.command.test.test.initialize_options(self)
self.pytest_args = []
def run_tests(self):
import pytest
sys.exit(pytest.main(self.pytest_args))
setup(
name=ext_sort.__title__,
version=ext_sort.__version__,
description=ext_sort.__description__,
long_description=readme,
author=ext_sort.__author__,
author_email=ext_sort.__email__,
url=ext_sort.__url__,
license=ext_sort.__license__,
keywords=['python3', 'sort', 'external-sort', 'algorithms'],
python_requires=">=3.6",
packages=find_packages(),
install_requires=requirements,
tests_require=test_requirements,
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Natural Language :: English',
'License :: Public Domain',
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
cmdclass={'test': PyTest},
entry_points={
'console_scripts': [
'ext-sort = ext_sort.__main__',
],
}
)