This repository has been archived by the owner on May 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathsetup.py
58 lines (53 loc) · 1.72 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
from setuptools import setup, find_packages
import pathlib
import pkg_resources
import subprocess
import os
def readme():
with open('README.md') as f:
README = f.read()
return README
#Getting the version number from Git
version_number = (
subprocess.run(["git", "describe", "--tags"], stdout=subprocess.PIPE)
.stdout.decode("utf-8")
.strip()
)
assert "." in version_number
assert os.path.isfile("version.py")
with open("VERSION", "w", encoding="utf-8") as fh:
fh.write(f"{version_number}\n")
with pathlib.Path('requirements.txt').open() as requirements_txt:
install_requires = [
str(requirement)
for requirement
in pkg_resources.parse_requirements(requirements_txt)
]
setup(
name="DXC-Industrialized-AI-Starter",
version= version_number,
description="Python library which is extensively used for all AI projects",
long_description=readme(),
long_description_content_type="text/markdown",
url="https://github.com/dxc-technology/DXC-Industrialized-AI-Starter",
#download_url = "https://github.com/dxc-technology/DXC-Industrialized-AI-Starter/releases/tag/v1.0.tar.gz",
author="DXC",
license="Apache License 2.0",
platforms='any',
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.7",
],
#packages=["dxc", "dxc.ai"],
packages=find_packages(),
# include_package_data=True,
install_requires= install_requires,
entry_points={
"console_scripts": [
"dxc=dxc.ai:main",
]
},
# package_data={'datasets/data': ['datasets/data/*'],},
package_data={"DXC-Industrialized-AI-Starter": ["VERSION"]},
include_package_data=True,
)