-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
78 lines (72 loc) · 2.08 KB
/
setup.py
File metadata and controls
78 lines (72 loc) · 2.08 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
67
68
69
70
71
72
73
74
75
76
77
78
"""setup.py"""
from os.path import dirname, join, abspath
from os import getenv
from setuptools import setup, find_packages
__DESCRIPTION = """AI Content creator tools"""
__PROJECT_NAME = "aiproducer"
with open(
join(abspath(dirname(__file__)), "README.md"),
"r",
encoding="utf-8",
errors="ignore",
) as fp:
__LONG_DESCRIPTION = fp.read().lstrip().rstrip()
with open(
join(
abspath(dirname(__file__)),
__PROJECT_NAME,
"requirements",
"requirements.txt",
),
"r",
encoding="utf-8",
errors="ignore",
) as fp:
__REQUIREMENTS = list(filter(bool, map(str.strip, fp.readlines())))
# Get the Scripts folder from path environment variable
path_env = getenv('PATH')
path_dirs = list(filter(bool, map(str.strip, path_env.split(";"))))
for d in path_dirs:
if d.find("Scripts") != -1:
break
setup(
name=__PROJECT_NAME,
version="0.1.0",
author="st1vms",
author_email="stefano.maria.salvatore@gmail.com",
description=__DESCRIPTION,
long_description=__LONG_DESCRIPTION,
long_description_content_type="text/markdown",
url="https://github.com/st1vms/aiproducer",
packages=find_packages(),
package_data={
__PROJECT_NAME: [
join(
abspath(dirname(__file__)),
__PROJECT_NAME,
"templates",
"ppro_template.xml",
),
join(
abspath(dirname(__file__)),
__PROJECT_NAME,
"requirements",
"requirements.txt",
),
join(
abspath(dirname(__file__)),
__PROJECT_NAME,
"requirements",
"requirements_venv.txt",
)
]
},
entry_points={'console_scripts':['aiproducer-cli=aiproducer.bin.aiproducer_cli:main']},
classifiers=[
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.9",
install_requires=__REQUIREMENTS,
)