|
1 | 1 | # setuptools_scm
|
2 |
| -[](https://github.com/pypa/setuptools_scm/actions) |
| 2 | +[](https://github.com/pypa/setuptools_scm/actions/workflows/python-tests.yml) |
3 | 3 | [](https://setuptools-scm.readthedocs.io/en/latest/?badge=latest)
|
4 | 4 | [ ](https://tidelift.com/subscription/pkg/pypi-setuptools-scm?utm_source=pypi-setuptools-scm&utm_medium=readme)
|
5 | 5 |
|
6 | 6 | ## about
|
7 | 7 |
|
8 |
| -[setuptools-scm] extracts Python package versions from `git` or |
9 |
| -`hg` metadata instead of declaring them as the version argument |
10 |
| -or in an SCM managed file. |
11 |
| - |
12 |
| -Additionally, [setuptools-scm] provides setuptools |
13 |
| -with a list of files that are managed by the SCM <br/> |
14 |
| -(i.e. it automatically adds **all of** the SCM-managed files to the sdist).<br/> |
15 |
| -Unwanted files must be excluded via `MANIFEST.in`. |
| 8 | +[setuptools-scm] extracts Python package versions from `git` or `hg` metadata |
| 9 | +instead of declaring them as the version argument |
| 10 | +or in a Source Code Managed (SCM) managed file. |
16 | 11 |
|
| 12 | +Additionally [setuptools-scm] provides `setuptools` with a list of |
| 13 | +files that are managed by the SCM |
| 14 | +<br/> |
| 15 | +(i.e. it automatically adds all the SCM-managed files to the sdist). |
| 16 | +<br/> |
| 17 | +Unwanted files must be excluded via `MANIFEST.in` |
| 18 | +or [configuring Git archive][git-archive-docs]. |
17 | 19 |
|
18 | 20 | ## `pyproject.toml` usage
|
19 | 21 |
|
@@ -71,6 +73,7 @@ For further configuration see the [documentation].
|
71 | 73 |
|
72 | 74 | [setuptools-scm]: https://github.com/pypa/setuptools_scm
|
73 | 75 | [documentation]: https://setuptools-scm.readthedocs.io/
|
| 76 | +[git-archive-docs]: https://setuptools-scm.readthedocs.io/en/stable/usage/#builtin-mechanisms-for-obtaining-version-numbers |
74 | 77 |
|
75 | 78 |
|
76 | 79 | ## Interaction with Enterprise Distributions
|
|
0 commit comments