-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove setuptools_scm in favor of explicit version management (#156)
setuptools_scm has a few drawbacks to version management by hand, such as inflexibility for releasing off-tag, and missing info on shallow checkouts. As such, revert back to a static version number, with tagged commits as version bumps.
- Loading branch information
1 parent
3eefa56
commit 3b27774
Showing
3 changed files
with
9 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
[build-system] | ||
requires = ["setuptools>=45", "setuptools-scm[toml]>=7.1"] | ||
requires = ["setuptools>=45"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "nnbench" | ||
description = "A small framework for benchmarking machine learning models." | ||
keywords = ["Benchmarking", "Machine Learning"] | ||
requires-python = ">=3.10" | ||
readme = "README.md" | ||
license = { text = "Apache-2.0" } | ||
authors = [{ name = "appliedAI Initiative", email = "[email protected]" }] | ||
maintainers = [ | ||
|
@@ -33,7 +32,7 @@ classifiers = [ | |
|
||
dependencies = ["tabulate", "typing-extensions; python_version< '3.11'"] | ||
|
||
dynamic = ["version"] | ||
dynamic = ["readme", "version"] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/aai-institute/nnbench" | ||
|
@@ -71,15 +70,16 @@ nnbench = "nnbench.cli:main" | |
[tool.setuptools] | ||
package-dir = { "" = "src" } | ||
|
||
[tool.setuptools.dynamic] | ||
readme = { file = "README.md", content-type = "text/markdown" } | ||
version = { attr = "nnbench.__version__" } | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
|
||
[tool.setuptools.package-data] | ||
nnbench = ["py.typed"] | ||
|
||
# Automatically determine version number from Git tags | ||
[tool.setuptools_scm] | ||
|
||
[tool.mypy] | ||
allow_redefinition = true | ||
check_untyped_defs = true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.