Skip to content

Commit df64d4c

Browse files
update toml example in Readme (#74)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent fc24ee5 commit df64d4c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ Install
7575
~~~~~~~~~~~~~~~~~~
7676

7777
Just add ``setuptools-git-versioning`` to ``build-sytem`` section of your ``pyproject.toml``,
78-
and a section ``tool.setuptools-git-versioning`` with config options:
78+
add a section ``tool.setuptools-git-versioning`` with config options, and mark the project
79+
``version`` as dynamic.
7980

8081
.. code:: toml
8182
@@ -86,6 +87,9 @@ and a section ``tool.setuptools-git-versioning`` with config options:
8687
[tool.setuptools-git-versioning]
8788
enabled = true
8889
90+
[project]
91+
dynamic = ["version"]
92+
8993
And check the package version generated (see `command help <https://setuptools-git-versioning.readthedocs.io/en/stable/command.html>`__):
9094

9195
.. code:: bash

0 commit comments

Comments
 (0)