-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
66 lines (51 loc) · 1.66 KB
/
Copy pathsetup.py
File metadata and controls
66 lines (51 loc) · 1.66 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
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
from pathlib import Path
from setuptools import setup
from create_app.settings import (
GIT_REPOSITORY,
PACKAGE_NAME,
PYPI_PACKAGE_NAME,
REQUIREMENTS_FILE,
)
ROOT_PATH = Path(__file__).parent
README_FILENAME = "README.md"
DESCRIPTION = (
"A tool that allows to quickly get your basic project structure ready, "
"while adopting the best technologies, tools, and practices."
)
ENTRY_POINTS = {
"console_scripts": [f"{PACKAGE_NAME}={PACKAGE_NAME}.cli:main"],
}
def get_requirements():
with open(REQUIREMENTS_FILE) as file:
return file.readlines()
def get_long_description():
return (ROOT_PATH / README_FILENAME).read_text(encoding="utf8")
setup(
name=PYPI_PACKAGE_NAME,
entry_points=ENTRY_POINTS,
description=DESCRIPTION,
long_description=get_long_description(),
long_description_content_type="text/markdown",
# keywords="", TODO
classifiers=[
"Environment :: Console",
"Intended Audience :: Developers",
"Programming Language :: Python",
"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",
"Programming Language :: Python :: 3 :: Only",
# "Development Status :: 5 - Production/Stable", TODO
# "Operating System :: OS Independent", TODO
],
url=GIT_REPOSITORY,
author="Gabriel Bazan",
author_email="gbazan@outlook.com",
license="MIT",
packages=[PACKAGE_NAME],
zip_safe=False,
python_requires=">=3.6.2",
install_requires=get_requirements(),
)