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 @@ the runtime discussion below for more details.
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
@@ -79,7 +79,6 @@ To explore other options, try
7979
8080``` commandline
8181$ python -m setuptools_scm --help
82- ```
8382
8483## At runtime
8584
@@ -192,7 +191,7 @@ is preferred over `SETUPTOOLS_SCM_PRETEND_VERSION`.
192191
193192## Default versioning scheme
194193
195- In the standard configuration ` setuptools_scm ` takes a look at three things:
194+ In the standard configuration ` setuptools-scm ` takes a look at three things:
196195
1971961 . latest tag (with a version number)
1981972 . the distance to this tag (e.g. number of revisions since latest tag)
@@ -281,14 +280,14 @@ $ git add .git_archival.txt .gitattributes && git commit -m "add export config"
281280Note that if you are creating a ` _version.py ` file, note that it should not
282281be kept in version control. It's strongly recommended to be put into gitignore.
283282
284- [ git-archive-issue ] : https://github.com/pypa/setuptools_scm /issues/806
283+ [ git-archive-issue ] : https://github.com/pypa/setuptools-scm /issues/806
285284
286285### File finders hook makes most of ` MANIFEST.in ` unnecessary
287286
288- ` setuptools_scm ` implements a [ file_finders] entry point
287+ ` setuptools-scm ` implements a [ file_finders] entry point
289288which returns all files tracked by your SCM.
290289This eliminates the need for a manually constructed ` MANIFEST.in ` in most cases where this
291- would be required when not using ` setuptools_scm ` , namely:
290+ would be required when not using ` setuptools-scm ` , namely:
292291
293292* To ensure all relevant files are packaged when running the ` sdist ` command.
294293 * When using [ include_package_data] to include package data as part of the ` build ` or ` bdist_wheel ` .
0 commit comments