python-versioningit

Edit Package python-versioningit
https://pypi.org/project/versioningit/

https://github.com/jwodder/versioningit

versioningit — Versioning It with your Version In Git

versioningit is yet another setuptools plugin for automatically determining your package's version based on your version control repository's tags. Unlike others, it allows easy customization of the version format and even lets you easily override the separate functions used for version extraction & calculation.

Features:

- Installed & configured through PEP 518's pyproject.toml
- Supports Git, modern Git archives, and Mercurial
- Formatting of the final version uses format template strings, with fields for basic VCS information and separate template strings for distanced vs. dirty vs. distanced-and-dirty repository states
- Can optionally write the final version to a file for loading at runtime
- Provides custom setuptools commands for inserting the final version into a source file at build time
- The individual methods for VCS querying, tag-to-version calculation, version bumping, version formatting, and writing the version to a file can all be customized using either functions defined alongside one's project code or via publicly-distributed entry points
- Can alternatively be used as a library for use in setup.py or the like, in case you don't want to or can't configure it via pyproject.toml
- The only thing it does is calculate your version and optionally write it to a file; there's no overriding of your sdist contents based on what's in your Git repository, especially not without a way to turn it off, because that would just be rude.

Refresh
Refresh
Source Files
Filename Size Changed
python-versioningit.changes 0000002460 2.4 KB
python-versioningit.spec 0000002056 2.01 KB
shim-setup.py 0000000092 92 Bytes
versioningit-3.1.1.tar.gz 0000212882 208 KB
Latest Revision
Scott Bradnick's avatar Scott Bradnick (sbradnick) committed (revision 5)
- Update from upstream to version 3.1.1
  * "Fix a test"
    - Correctly mark a certain test as requiring Mercurial
- Update from upstream to version 3.1.0
  * "Improve some error messages"
    - When git describe fails to retrieve a tag, the resulting log/error
      message now includes all options passed to the command (based on
      contribution by @jenshnielsen)
    - When hg log fails to retrieve a tag, the resulting log/error message now
      includes the tag pattern passed to latesttag(), if any
- Update from upstream to version 3.0.0
  * "Support `onbuild` with Hatch"
    - Migrated from setuptools to hatch
    - Support using the onbuild step with Hatch
    - Breaking: The build_dir argument passed to Versioningit.do_onbuild()
      and onbuild method callables has been changed to an
      OnbuildFileProvider ABC
- Update from upstream to version 2.3.0
  * "Hatch support"
    - Always read .hg_archival.txt files using UTF-8 encoding
    - Added support for using versioningit with Hatch https://hatch.pypa.io/
Comments 2

Tejas Guruswamy's avatar

I copied your package and will submit it to devel:languages:python and Factory, as it's a dependency of the latest version of streamlink. Hope that's ok


Scott Bradnick's avatar

Yep, all good on my end 👌

openSUSE Build Service is sponsored by