-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
30 lines (25 loc) · 857 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
import setuptools, subprocess
# Baseline version identifier
version='0.0.6'
# Try to add commit hash to version
try:
commit_sha = subprocess.check_output(
["git", "rev-parse", "--short", "HEAD"]).decode("ascii").strip()
version += f"+{commit_sha}"
# catch all exception to be safe
except Exception:
pass # probably not a git repo
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name='torch_arima',
version=version,
long_description=long_description,
long_description_content_type="text/markdown",
description='ARIMA time series implementation in PyTorch and Pyro',
install_requires=['pyro-ppl>=1.9.1'],
python_requires='>=3.8',
packages=setuptools.find_packages(),
url='https://github.com/BenZickel/torch_arima',
author='Ben Zickel',
license='BSD')