-
-
Notifications
You must be signed in to change notification settings - Fork 454
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
packaging: restore Python 3.7 support
version_file support is only available in setuptools_scm 8.0, and older versions throw errors when pyproject.toml contains configuration that the older versions do not understand. This means that we cannot use version_file just yet if we want to retain support for Python 3.7. Restore the importlib.metadata version lookups alongside the setuptools_scm version file support so that we can swap over later once we are okay dropping support for 3.7. Signed-off-by: David Aguilar <davvid@gmail.com>
- Loading branch information
Showing
3 changed files
with
16 additions
and
1 deletion.
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
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 |
---|---|---|
|
@@ -36,4 +36,3 @@ addopts = "--ruff" | |
|
||
[tool.setuptools_scm] | ||
fallback_version = "4.7.0" | ||
version_file = "cola/_scm_version.py" |
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