forked from briancurtin/deprecation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
55 lines (45 loc) · 1.79 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
import io
import re
from setuptools import setup
AUTHOR = "Brian Curtin"
EMAIL = "[email protected]"
def _read_file():
with open("deprecation.py", "r") as f:
return f.read()
FILE = _read_file()
def get_version():
match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", FILE, re.M)
if match:
return match.group(1)
raise RuntimeError("Unable to find __version__ string.")
setup(name="deprecation",
version=get_version(),
description="A library to handle automated deprecations",
license="Apache 2",
url="http://deprecation.readthedocs.io/",
author=AUTHOR,
author_email=EMAIL,
maintainer=AUTHOR,
maintainer_email=EMAIL,
install_requires=["packaging"],
keywords=["deprecation"],
long_description=io.open("README.rst", encoding="utf-8").read(),
py_modules=["deprecation"],
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development :: Libraries :: Python Modules"],
project_urls={
"Documentation": "http://deprecation.readthedocs.io/en/latest/",
"Source": "https://github.com/briancurtin/deprecation",
"Bug Tracker": "https://github.com/briancurtin/deprecation/issues"},
)