-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
35 lines (32 loc) · 1.09 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
import setuptools
from pathlib import Path
# see https://packaging.python.org/guides/single-sourcing-package-version/
version_dict = {}
with open(Path(__file__).parents[0] / "torch_runstats/_version.py") as fp:
exec(fp.read(), version_dict)
version = version_dict["__version__"]
del version_dict
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name="torch_runstats",
version=version,
url="https://github.com/mir-group/pytorch_runstats",
description="Running/online statistics for PyTorch ",
long_description=long_description,
long_description_content_type="text/markdown",
license="MIT",
license_files="LICENSE",
project_urls={
"Bug Tracker": "https://github.com/mir-group/pytorch_runstats/issues",
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
],
python_requires=">=3.6",
install_requires=[],
packages=["torch_runstats"],
)