from setuptools import setup, find_packages
+from setuptools_scm.git import parse as parse_git
def scm_version():
}
+def doc_version():
+ git = parse_git(".")
+ if git.exact:
+ return git.format_with("{tag}")
+ else:
+ return "latest"
+
+
setup(
name="nmigen",
use_scm_version=scm_version(),
]
},
project_urls={
- "Documentation": "https://nmigen.info/nmigen/",
+ "Documentation": "https://nmigen.info/nmigen/{}".format(doc_version()),
"Source Code": "https://github.com/nmigen/nmigen",
"Bug Tracker": "https://github.com/nmigen/nmigen/issues",
},