2023-02-02 13:35:58 -07:00
|
|
|
from setuptools import setup
|
2018-12-13 00:47:07 -07:00
|
|
|
|
|
|
|
|
2020-07-01 14:49:41 -06:00
|
|
|
def doc_version():
|
2023-03-22 04:37:06 -06:00
|
|
|
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 ""
|
2020-07-01 14:49:41 -06:00
|
|
|
|
|
|
|
|
2018-12-11 13:50:56 -07:00
|
|
|
setup(
|
2018-12-13 11:00:05 -07:00
|
|
|
project_urls={
|
2023-02-02 13:35:58 -07:00
|
|
|
"Homepage": "https://amaranth-lang.org/",
|
2021-12-16 10:44:02 -07:00
|
|
|
"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
|
|
|
)
|