-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Details: * Dev: Migrated from setup.py to pyproject.toml with setuptools as build backend. This provides for automatic determination of the package version without having to edit a version file. More internal details (not in change log): * setuptools-scm generates the versions into a new file zhmc_prometheus_exporter/_version_scm.py, which gets imported into zhmc_prometheus_exporter/_version.py to maintain its interface. The new _version_scm.py file is ignored by git and excluded from any check tools (e.g. flake8 or pylint where it would fail). * Removed creation and use of MANIFEST.in in Makefile. * Removed _check_version make target, since the version is now always determined (from git data), regardless of the build state. * Removed inclusion of other requirements/constraints files with '-r' and '-c' because the dynamic support for dependencies in setuptools does not support these options. This has been replaced by ensuring that the "included" files are honored, in the Makefile. * Related to that, renamed minimum-constraints.txt to minimum-constraints-develop.txt because it no longer includes minimum-constraints-install.txt. * Related to that, renamed .safety-policy-all.yml to .safety-policy-develop.yml to match its scope of only covering development dependencies. * Added a base-requirements.txt file for basic dependents needed for pip and automatic package version detection. This replaces the rather hard coded installation of pip,setuptools,wheel in the Makefile. Removed the support for first ensuring the minimum version of pip to be >=9.0.1 before using requirements files. * Adjusted the retrieval of the package version in docs/conf.py to the new version file created by setuptools-scm. This caused any Sphinx commands now to depend on the wheel archive, since that is the step that creates the setuptools-scm version file. * Updated the release description in docs/development.rst to no longer edit the version file, but to set tags. A new initial tag is now used on the master branch that makes setuptools-scm increase the correct version number. For consistency, that approach is also used for stable branches. Signed-off-by: Andreas Maier <[email protected]>
- Loading branch information
1 parent
038da66
commit b44c280
Showing
14 changed files
with
204 additions
and
287 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
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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Pip requirements file for base packages for a Python env. | ||
# Base packages are those needed for pip and automatic package version detection. | ||
|
||
|
||
# Base dependencies (must be consistent with minimum-constraints-install.txt | ||
# and build-system.requires in pyproject.toml) | ||
|
||
pip>=23.3 | ||
setuptools>=66.1.0 | ||
setuptools-scm[toml]>=8.1.0 | ||
wheel>=0.38.1 |
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
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
Oops, something went wrong.