forked from jakkes/AI_Projects
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
49 lines (43 loc) · 1.26 KB
/
Copy pathsetup.py
File metadata and controls
49 lines (43 loc) · 1.26 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
import re
import pathlib
import setuptools
HERE = pathlib.Path(__file__).parent
with open(HERE / "README.md", "r") as fh:
long_description = fh.read()
with open(HERE / "VERSION", "r") as f:
version = f.read()
with open(HERE / "ai" / "__init__.py", "r") as f:
init = f.read()
with open(HERE / "ai" / "__init__.py", "w") as f:
f.write(
re.sub(r'\_\_version\_\_\s*=\s*"\d+\.\d+\.\d+"', f'__version__ = "{version}"', init)
)
setuptools.setup(
name="ai-projects",
version=version,
author="Jakob Stigenberg",
description="Collection of AI algorithms and agents.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/jakkes/AI_Projects",
packages=setuptools.find_packages(),
classifiers=(
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
),
install_requires=[
"torch~=1.9",
"scipy~=1.6",
"tensorboard<3",
"gym~=0.18",
"typed-argument-parser~=1.6",
"python-linq~=2.0",
"pyzmq~=22.3",
"setuptools==59.5.0"
],
python_requires=">=3.8",
)
# Publish
# python setup.py sdist bdist_wheel
# twine upload dist/*