22
33## at build time
44
5- The preferred way to configure ` setuptools_scm ` is to author
5+ The preferred way to configure ` setuptools-scm ` is to author
66settings in the ` tool.setuptools_scm ` section of ` pyproject.toml ` .
77
88It's necessary to use a setuptools version released after 2022.
99
1010``` toml title="pyproject.toml"
1111[build-system ]
12- requires = [" setuptools>=64" , " setuptools_scm >=8" ]
12+ requires = [" setuptools>=64" , " setuptools-scm >=8" ]
1313build-backend = " setuptools.build_meta"
1414
1515[project ]
1616# version = "0.0.1" # Remove any existing version parameter.
1717dynamic = [" version" ]
1818
1919[tool .setuptools_scm ]
20- # can be empty if no extra settings are needed, presence enables setuptools_scm
20+ # can be empty if no extra settings are needed, presence enables setuptools-scm
2121```
2222
23- That will be sufficient to require ` setuptools_scm ` for projects
23+ That will be sufficient to require ` setuptools-scm ` for projects
2424that support PEP 518 ([ pip] ( https://pypi.org/project/pip ) and
2525[ pep517] ( https://pypi.org/project/pep517/ ) ).
2626Tools that still invoke ` setup.py ` must ensure build requirements are installed
@@ -46,7 +46,7 @@ $ python -m setuptools_scm --help
4646
4747If you need to confirm which version string is being generated
4848or debug the configuration, you can install
49- [ setuptools-scm] ( https://github.com/pypa/setuptools_scm )
49+ [ setuptools-scm] ( https://github.com/pypa/setuptools-scm )
5050directly in your working environment and run:
5151
5252``` commandline
@@ -77,15 +77,15 @@ $ python -m setuptools_scm ls # output trimmed for brevity
7777
7878## at runtime (strongly discouraged)
7979
80- the most simple ** looking** way to use ` setuptools_scm ` at runtime is:
80+ the most simple ** looking** way to use ` setuptools-scm ` at runtime is:
8181
8282``` python
8383from setuptools_scm import get_version
8484version = get_version()
8585```
8686
8787
88- In order to use ` setuptools_scm ` from code that is one directory deeper
88+ In order to use ` setuptools-scm ` from code that is one directory deeper
8989than the project's root, you can use:
9090
9191``` python
@@ -172,7 +172,7 @@ is preferred over `SETUPTOOLS_SCM_PRETEND_VERSION`.
172172
173173## Default versioning scheme
174174
175- In the standard configuration ` setuptools_scm ` takes a look at three things:
175+ In the standard configuration ` setuptools-scm ` takes a look at three things:
176176
1771771 . latest tag (with a version number)
1781782 . the distance to this tag (e.g. number of revisions since latest tag)
@@ -261,14 +261,14 @@ $ git add .git_archival.txt .gitattributes && git commit -m "add export config"
261261Note that if you are creating a ` _version.py ` file, note that it should not
262262be kept in version control. It's strongly recommended to be put into gitignore.
263263
264- [ git-archive-issue ] : https://github.com/pypa/setuptools_scm /issues/806
264+ [ git-archive-issue ] : https://github.com/pypa/setuptools-scm /issues/806
265265
266266### File finders hook makes most of ` MANIFEST.in ` unnecessary
267267
268- ` setuptools_scm ` implements a [ file_finders] entry point
268+ ` setuptools-scm ` implements a [ file_finders] entry point
269269which returns all files tracked by your SCM.
270270This eliminates the need for a manually constructed ` MANIFEST.in ` in most cases where this
271- would be required when not using ` setuptools_scm ` , namely:
271+ would be required when not using ` setuptools-scm ` , namely:
272272
273273* To ensure all relevant files are packaged when running the ` sdist ` command.
274274 * When using [ include_package_data] to include package data as part of the ` build ` or ` bdist_wheel ` .
0 commit comments