amaranth/setup.py
2023-02-02 23:43:33 +00:00

21 lines
541 B
Python

from setuptools import setup
from setuptools_scm.git import parse as parse_git
def doc_version():
git = parse_git(".")
if git.exact:
return git.format_with("v{tag}")
else:
return "latest"
setup(
project_urls={
"Homepage": "https://amaranth-lang.org/",
"Documentation": "https://amaranth-lang.org/docs/amaranth/{}".format(doc_version()),
"Source Code": "https://github.com/amaranth-lang/amaranth",
"Bug Tracker": "https://github.com/amaranth-lang/amaranth/issues",
},
)