How To Install python3-versioningit on Fedora 36

In this tutorial we learn how to install python3-versioningit in Fedora 36. python3-versioningit is Versioning It with your Version In Git

Introduction

In this tutorial we learn how to install python3-versioningit on Fedora 36.

What is python3-versioningit

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 - 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 is in your Git repository, especially not without a way to turn it off, because that would just be rude.

We can use yum or dnf to install python3-versioningit on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-versioningit.

Install python3-versioningit on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-versioningit using dnf by running the following command:

sudo dnf -y install python3-versioningit

Install python3-versioningit on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-versioningit using yum by running the following command:

sudo yum -y install python3-versioningit

How To Uninstall python3-versioningit on Fedora 36

To uninstall only the python3-versioningit package we can use the following command:

sudo dnf remove python3-versioningit

python3-versioningit Package Contents on Fedora 36

/usr/bin/versioningit
/usr/lib/python3.10/site-packages/versioningit
/usr/lib/python3.10/site-packages/versioningit-0.2.1.dist-info
/usr/lib/python3.10/site-packages/versioningit-0.2.1.dist-info/INSTALLER
/usr/lib/python3.10/site-packages/versioningit-0.2.1.dist-info/LICENSE
/usr/lib/python3.10/site-packages/versioningit-0.2.1.dist-info/METADATA
/usr/lib/python3.10/site-packages/versioningit-0.2.1.dist-info/WHEEL
/usr/lib/python3.10/site-packages/versioningit-0.2.1.dist-info/entry_points.txt
/usr/lib/python3.10/site-packages/versioningit-0.2.1.dist-info/top_level.txt
/usr/lib/python3.10/site-packages/versioningit/__init__.py
/usr/lib/python3.10/site-packages/versioningit/__main__.py
/usr/lib/python3.10/site-packages/versioningit/__pycache__
/usr/lib/python3.10/site-packages/versioningit/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/__main__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/__main__.cpython-310.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/basics.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/basics.cpython-310.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/config.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/config.cpython-310.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/core.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/core.cpython-310.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/errors.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/errors.cpython-310.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/git.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/git.cpython-310.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/hg.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/hg.cpython-310.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/hook.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/hook.cpython-310.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/logging.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/logging.cpython-310.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/methods.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/methods.cpython-310.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/next_version.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/next_version.cpython-310.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/util.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/versioningit/__pycache__/util.cpython-310.pyc
/usr/lib/python3.10/site-packages/versioningit/basics.py
/usr/lib/python3.10/site-packages/versioningit/config.py
/usr/lib/python3.10/site-packages/versioningit/core.py
/usr/lib/python3.10/site-packages/versioningit/errors.py
/usr/lib/python3.10/site-packages/versioningit/git.py
/usr/lib/python3.10/site-packages/versioningit/hg.py
/usr/lib/python3.10/site-packages/versioningit/hook.py
/usr/lib/python3.10/site-packages/versioningit/logging.py
/usr/lib/python3.10/site-packages/versioningit/methods.py
/usr/lib/python3.10/site-packages/versioningit/next_version.py
/usr/lib/python3.10/site-packages/versioningit/py.typed
/usr/lib/python3.10/site-packages/versioningit/util.py
/usr/share/doc/python3-versioningit
/usr/share/doc/python3-versioningit/CHANGELOG.md
/usr/share/doc/python3-versioningit/README.rst
/usr/share/man/man1/versioningit.1.gz

References

Summary

In this tutorial we learn how to install python3-versioningit on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).