Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
/.cache/
/.tox/
*.egg-info/
Pipfile
*.pyc
*.pya
build/
*__pycache__*
*.eggs/
*.swa
*.swp
*~
15 changes: 15 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ setuptools-git-version

*Automatically set package version from Git.*

Install
-------

Install ``setuptools-git-version`` from pypi:

.. code-block:: shell
pip install setuptools-git-version


Introduction
------------
Expand All @@ -29,6 +37,13 @@ this package allows to extract it from the underlying Git repository:
Please ensure that your git repository has at least one `annotated tag <https://git-scm.com/book/en/v2/Git-Basics-Tagging>`_,
as ``setuptools-git-version`` will uses tags to determine your current git version.

Also you can use ``setuptools-git-version`` as a CLI command to retrieve the version like this:

.. code-block:: shell
$ # go to your project directory
$ setuptools-git-version
1.0.4.5+b1afbd9

Fields
------
``setuptools-git-version`` provides three fields as options for the ``version_format`` string:
Expand Down