Examples¶
This section contains runnable code examples that demonstrate real-world usage of GitVersioned. Each example is self-contained and can be copied directly into your own project.
[!NOTE] All examples assume you have completed Installation.
Example Categories¶
Setuptools Examples
Simple, self-contained examples that demonstrate configuring gitversioned for projects using setuptools.
- Setuptools Configuration via Version File
- Setuptools Configuration via Version Function
- Setuptools Configuration via Tool Table
- Setuptools Configuration via Git Tags
- Setuptools Configuration via Git Branch
- Setuptools Configuration via Git Commits
- Setuptools Configuration via
setup.py - Setuptools Configuration via
setup.cfg
Hatchling Examples
Simple, self-contained examples that demonstrate configuring gitversioned for projects using hatchling.
Contributing an Example
Have a useful snippet or pattern to share? See the Contributing Guide to learn how to add a new example to this section.