Automatically set package version from VCS.
Project description
setuptools-vcs-version
Automatically sets package version from VCS. This is based on dunamai and inspirit by better-setuptools-git-version.
Introduction
Instead of hard-coding the package version in setup.py
like:
setup(
name='foobar',
version='1.0',
...
)
this package allows to extract it from tags in the underlying most popular VCS repository:
setup(
name='foobar',
version_config={
"starting_version": "0.1.0",
"version_style": {
"style": "pep440",
"metadata": True,
"dirty": True,
},
},
setup_requires=['setuptools-vcs-version'],
...
)
The tool uses the dunamai to render package version and thus supports most
popular VCS and following version styles: pep440
, semver
, pvp
.
PEP440 is default and may be omitted. See more about dunamai features.
If there are no any VCS, the version specified by starting_version
will be used.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for setuptools-vcs-version-0.9.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93de750185f5120962836f5f2766bbf0e8ec0540881c6df458f5401e5c90d94a |
|
MD5 | c123694735bb1c63ef73850c055a226a |
|
BLAKE2b-256 | 34b438c8b6e553bd06b60e5b04800bdd4fcf713569bcd068307798fd0e5cf329 |
Close
Hashes for setuptools_vcs_version-0.9.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12c27f0a34e1819cb0b3d6177d7a0f63c844bfe0b725f92a5f8932c5c7ceab94 |
|
MD5 | aaab36b927aab8d86092cf7f56b86ecf |
|
BLAKE2b-256 | f6a67374c9948ea6ac4ebd4da769c1c308052c52174625cc38de160c9117c759 |