-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
32 lines (27 loc) · 896 Bytes
/
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
import setuptools
import sys
with open("readme.md", "r") as f:
long_description = f.read()
with open("requirements.txt", "r") as f:
requirements = f.read().split("\n")
versionName = sys.argv[1].replace("refs/tags/v", "")
del sys.argv[1]
setuptools.setup(
name="torch_time_stretch",
version=versionName,
author="KentoNishi",
author_email="[email protected]",
description=long_description.split("\n")[1],
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/KentoNishi/torch-time-stretch",
packages=setuptools.find_packages(),
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
python_requires=">=3.4",
install_requires=requirements,
)