-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (34 loc) · 1.21 KB
/
setup.py
File metadata and controls
39 lines (34 loc) · 1.21 KB
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
from pathlib import Path
import re
from setuptools import setup
with open(str(Path(__file__).parent / 'wrapitup' / '_version.py')) as file:
version = file.read().strip()
match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version, re.MULTILINE)
if match:
version = match.group(1)
else:
raise ValueError('Cannot find version number')
setup(
name='wrapitup',
version=version,
description="Tools for requesting long-running processes shut down gracefully",
packages=['wrapitup'],
package_data={'wrapitup': ['py.typed']},
author='William Schwartz',
url='https://github.com/wkschwartz/wrapitup',
# Requires time.monotonic (introduced in 3.3). Assumes all signals are
# available from signal.Signals enum, introduced in 3.5.
python_requires='>=3.5',
zip_safe=False,
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
]
)