-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.py
78 lines (68 loc) · 1.87 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
import os
import re
import setuptools
NAME = "pypi-template"
AUTHOR = "Christophe VG"
AUTHOR_EMAIL = "[email protected]"
DESCRIPTION = "Template-based common/best practices for managing a Python package on PyPi"
LICENSE = "MIT"
KEYWORDS = "python pypi package management template"
URL = "https://github.com/christophevg/" + NAME
README = ".github/README.md"
CLASSIFIERS = [
"Environment :: Console",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"Topic :: Software Development",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
INSTALL_REQUIRES = [
"jinja2",
"pyyaml",
"prompt-toolkit",
"colorama",
"fire",
"importlib-resources",
"requests",
"packaging",
]
ENTRY_POINTS = {
"console_scripts" : [
"pypi-template=pypi_template.__main__:cli",
]
}
SCRIPTS = [
]
HERE = os.path.dirname(__file__)
def read(file):
with open(os.path.join(HERE, file), "r") as fh:
return fh.read()
VERSION = re.search(
r'__version__ = [\'"]([^\'"]*)[\'"]',
read(NAME.replace("-", "_") + "/__init__.py")
).group(1)
LONG_DESCRIPTION = read(README)
if __name__ == "__main__":
setuptools.setup(
name=NAME,
version=VERSION,
packages=setuptools.find_packages(),
author=AUTHOR,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
license=LICENSE,
keywords=KEYWORDS,
url=URL,
classifiers=CLASSIFIERS,
install_requires=INSTALL_REQUIRES,
entry_points=ENTRY_POINTS,
scripts=SCRIPTS,
include_package_data=True
)