Spaces:
Sleeping
Sleeping
File size: 511 Bytes
40c7f57 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | """Sets up the project."""
import pathlib
from setuptools import setup
CWD = pathlib.Path(__file__).absolute().parent
def get_version():
"""Gets the autoreview version."""
path = CWD / "autoreview" / "__init__.py"
content = path.read_text()
for line in content.splitlines():
if line.startswith("__version__"):
return line.strip().split()[-1].strip().strip('"')
raise RuntimeError("bad version data in __init__.py")
setup(name="autoreview", version=get_version())
|