Automatically set package version from VCS.
Project description
setuptools-vcs-version
Automatically sets package version from VCS. This is based on dunamai and inspired 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.
Note that the "v" prefix on the tag is required, unless you specify
a different tag style with pattern
in the version_config
.
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 Distributions
Hashes for setuptools-vcs-version-0.9.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb9b239fae7bae5f2f471b1bf109fa2a2d87a1dbbe15b70ef99aaaae0b5f8fbf |
|
MD5 | d370158ff8f3ca0a6c1e556734fb9aef |
|
BLAKE2b-256 | 41dffad33aadbb78e9b0e4a5017940b1ec3440418e245a22ecdb5c515540b0c0 |
Hashes for setuptools_vcs_version-0.9.2-py3.8.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2020bb5bb5f793452925a257b4df00b6293cdea1f86dc0d3bfe9ab64f3342f49 |
|
MD5 | f28736daadfda68157dbd3c6a8497102 |
|
BLAKE2b-256 | a3b1a488f8b2ea6b81516988f3607177c3678fd84ea6fb7c596c8a1b19ce831e |
Hashes for setuptools_vcs_version-0.9.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7c048fc635d1d7790a8297ca5ee51cae4d680833bb0149ec97a06952ca6c852 |
|
MD5 | 2fb92edccc6922360ebceec9469baaea |
|
BLAKE2b-256 | 84519cb7b4637f6d767ad8d905eda35f78c2240bf5281d649e2114cd7c796864 |