amaranth/setup.py

26 lines
734 B
Python
Raw Normal View History

from setuptools import setup
2018-12-13 00:47:07 -07:00
def doc_version():
try:
from setuptools_scm.git import parse as parse_git
git = parse_git(".")
if git.exact:
return git.format_with("v{tag}")
else:
return "latest"
except ImportError:
# PEP 517 compliant build tools will never reach this code path.
# Poetry reaches this code path.
return ""
2018-12-11 13:50:56 -07:00
setup(
project_urls={
"Homepage": "https://amaranth-lang.org/",
"Documentation": "https://amaranth-lang.org/docs/amaranth/{}".format(doc_version()),
2021-12-09 22:39:50 -07:00
"Source Code": "https://github.com/amaranth-lang/amaranth",
"Bug Tracker": "https://github.com/amaranth-lang/amaranth/issues",
2019-05-26 05:20:13 -06:00
},
2018-12-11 13:50:56 -07:00
)