Replace versioneer with setuptools_scm#196
Conversation
Using `get_version` as part of normal source code is discouraged: pypa/setuptools-scm#354
Add comment explaining the line
Append a "v" before the version returned by setuptools_scm so the version can look like "v0.1.0". Make Sphinx and sample_data.py to use that value instead of obtaining the version once again.
|
After discussing this with @leouieda, we decided to set After this decision, Instead, we would need to do so with:
But this requires So we need to update installing instructions for latest development version to use |
Remove the HARMONICA_VERSION_LOCAL_SCHEME env variable, simplify deploy.yml Action and update installation instructions for the latest development version.
Add a `version` variable that stores the semver version of the package, and the old `full_version` that adds the `v` before it, which is useful for docs building and tags.
So it seems that not adding the local version string gets in conflict with Pooch, specifically on detecting if Pooch should use I'll try to restore the default behaviour of |
Restore doc/install.rst. Replace local_scheme configuration before publishing to TestPyPI on deploy.yml Action.
This reverts commit b9c27fc.
Replace
versioneerwithsetuptools_scmfor getting Semver version ofHarmonica.
setuptools_scmdoesn't require to store additional files to work,it can be installed and used through
setup.py. Remove allversioneerrelated files and mentions. Add
setuptools_scmtorequirements.txtandenvironment.yml. Replacesetup.cfgfor.flake8.Set
local_scheme = "no-local-version"ondeploy.ymlGitHub Action beforepublishing to Test PyPI.
Related to fatiando/maintenance#4