-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
112 lines (86 loc) · 3.07 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# -*- coding: UTF-8 -*-
"""
setup module for ihiji_schemas
"""
import typing as t
from os.path import dirname, join, realpath
from setuptools import setup, find_packages
from sys import version_info
if version_info < (3, 0):
from codecs import open
fdir = dirname(realpath(__file__))
NAME = "pydecor"
URL = "https://github.com/mplanchard/pydecor"
AUTHOR = "Matthew Planchard"
EMAIL = "[email protected]"
SHORT_DESC = "Easy peasy Python decorators"
with open(join(fdir, "README.rst"), encoding="utf-8") as readmefile:
LONG_DESC = readmefile.read()
KEYWORDS = ["decorators", "python3"]
PACKAGE_DEPENDENCIES = []
SETUP_DEPENDENCIES: t.List[str] = []
TEST_DEPENDENCIES = []
ENTRY_POINTS: dict = {}
with open(join(fdir, "requirements.txt")) as reqfile:
for ln in reqfile:
if not ln.startswith("#"):
PACKAGE_DEPENDENCIES.append(ln.strip())
with open(join(fdir, "requirements-dev.txt")) as reqfile:
for ln in reqfile:
if not ln.startswith("#") and not ln.startswith("-r"):
TEST_DEPENDENCIES.append(ln.strip())
EXTRAS_DEPENDENCIES = {"dev": TEST_DEPENDENCIES}
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers for all
# available setup classifiers
CLASSIFIERS = [
# 'Development Status :: 1 - Planning',
# 'Development Status :: 2 - Pre-Alpha',
# 'Development Status :: 3 - Alpha',
# 'Development Status :: 4 - Beta',
"Development Status :: 5 - Production/Stable",
# 'Development Status :: 6 - Mature',
# 'Framework :: AsyncIO',
# 'Framework :: Flask',
# 'Framework :: Sphinx',
# 'Environment :: Web Environment',
"Intended Audience :: Developers",
# 'Intended Audience :: End Users/Desktop',
# 'Intended Audience :: Science/Research',
# 'Intended Audience :: System Administrators',
# 'License :: Other/Proprietary License',
# 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
# 'Operating System :: MacOS :: MacOS X
"Operating System :: POSIX :: Linux",
# "Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: PyPy",
]
__version__ = "0.0.0"
with open(join(fdir, "src/{0}/_version.py".format(NAME))) as version_file:
for line in version_file:
# This will populate the __version__ and __version_info__ variables
if line.startswith("__"):
exec(line)
setup(
name=NAME,
version=__version__,
description=SHORT_DESC,
long_description=LONG_DESC,
url=URL,
author=AUTHOR,
author_email=EMAIL,
classifiers=CLASSIFIERS,
keywords=KEYWORDS,
package_dir={"": "src"},
packages=find_packages(where="src"),
python_requires=">=3.6",
install_requires=PACKAGE_DEPENDENCIES,
setup_requires=SETUP_DEPENDENCIES,
tests_require=TEST_DEPENDENCIES,
extras_require=EXTRAS_DEPENDENCIES,
)