diff options
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -30,7 +30,7 @@ for those legacy environments. First, ensure that ``setuptools_scm`` is present during the project's built step by specifying it as one of the build requirements. -.. code:: ini +.. code:: toml # pyproject.toml [build-system] @@ -48,7 +48,7 @@ with those uses, consider also including a ``setup_requires`` directive To enable version inference, add this section to your pyproject.toml: -.. code:: ini +.. code:: toml # pyproject.toml [tool.setuptools_scm] @@ -58,11 +58,12 @@ Including this section is comparable to supplying include arbitrary keyword arguments in that section to be supplied to ``get_version()``. For example: -.. code:: ini +.. code:: toml # pyproject.toml + [tool.setuptools_scm] - write_to = pkg/version.py + write_to = "pkg/version.py" ``setup.py`` usage |