-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
51 lines (44 loc) · 1.51 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
import setuptools
import pkg_resources
import pathlib
from distutils.util import convert_path
versions = {}
ver_path = convert_path('jd/version.py')
with open(ver_path) as ver_file:
exec(ver_file.read(), versions)
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
def parse_requirements(filename):
with pathlib.Path(filename).open() as requirements_txt:
return [str(requirement)
for requirement in pkg_resources.parse_requirements(requirements_txt)]
setuptools.setup(
name="ai-jobdeploy",
version=versions['__version__'],
author="LF1",
author_email="contact@lf1.io",
description="AI job deployment templates with YAML and Jinja2.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/lf1-io/jobdeploy",
packages=setuptools.find_packages(),
setup_requires=[],
license="Apache 2.0",
classifiers=[
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
],
python_requires='>=3.6',
install_requires=parse_requirements('requirements.txt'),
package_data={'': ['requirements.txt']},
include_package_data=True,
entry_points={
'console_scripts': [
'jd = jd.__main__:cli'
]
}
)