-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathsetup.py
49 lines (44 loc) · 1.76 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
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import sys
def read_file(path):
with open(path) as f:
return f.read()
readme = read_file('README.rst')
_, rest = readme.split('.. pypi-start')
text, _ = rest.split('.. pypi-end')
long_description = text.replace('`', '').replace('**', '').replace('::', '')
class Unsupported(TestCommand):
def run(self):
print("Running 'test' with setup.py is not supported. "
"Use 'pytest' or 'tox' to run the tests.")
PACKAGES = find_packages(where='.', exclude=['timeboard.tests'])
setup(name='timeboard',
version=read_file('timeboard/VERSION.txt').strip(),
description='Calendar calculations over business days and work shifts',
long_description=long_description,
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Office/Business :: Scheduling',
],
keywords='business day calendar schedule calculation shift',
url='http://timeboard.readthedocs.io',
author='Maxim Mamaev',
author_email='[email protected]',
license='BSD 3-Clause',
packages=PACKAGES,
include_package_data=True,
install_requires=read_file('requirements.txt').strip().split('\n'),
test_suite='timeboard.tests',
cmdclass={
"test": Unsupported
},
zip_safe=False)