pyproject.toml for builds, using setuptools_scm for versioning #37
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #36
setuptools
conversion reference: https://setuptools.pypa.io/en/latest/userguide/pyproject_config.htmlRefactor Notes
requirements.txt
and many other config files into a single, standard,setuptools
-basedpyproject.toml
.setuptools_scm
. Versions look similar to0.1.dev506+g40c6f19.d20240110
when there are changes since last tag (e.g., while developing). Checking out a proper tag should produce the expected version string, so do this before building a distribution or documentation for release.pytest-runner
is deprecated and was removed entirely, apparently without hurting anything.test
alias topytest
was dropped.pyproject.toml
includes datafiles it finds by default, unlike oldersetup.py
.rst
files.)conda
now exclusively suggests installingpvdeg
usingpip
.Release Notes
A project maintainer should try to upload this project to the test PyPI server to verify that resulting page looks ok (esp. parity with existing). I recommend using
build
to build the package tarball and wheel, e.g.,python -m build .
The resulting package should be universal. Usually, this is done after tagging, and, with the tag checked out, thedist
artifacts will automatically pick up the version fromgit
.