Skip to content

Commit 0213170

Browse files
Merge pull request #1061 from jamesbraza/git-archive-docs
2 parents 4ec3208 + c0e5743 commit 0213170

File tree

2 files changed

+21
-15
lines changed

2 files changed

+21
-15
lines changed

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@
55

66
## about
77

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`.
16-
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.
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].
1719

1820
## `pyproject.toml` usage
1921

@@ -71,6 +73,7 @@ For further configuration see the [documentation].
7173

7274
[setuptools-scm]: https://github.com/pypa/setuptools_scm
7375
[documentation]: https://setuptools-scm.readthedocs.io/
76+
[git-archive-docs]: https://setuptools-scm.readthedocs.io/en/stable/usage/#builtin-mechanisms-for-obtaining-version-numbers
7477

7578

7679
## Interaction with Enterprise Distributions

docs/index.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
# About
22

3-
43
`setuptools_scm` extracts Python package versions from `git` or `hg` metadata
5-
instead of declaring them as the version argument or in a SCM managed file.
4+
instead of declaring them as the version argument
5+
or in a Source Code Managed (SCM) managed file.
6+
7+
Additionally `setuptools_scm` provides `setuptools` with a list of
8+
files that are managed by the SCM
9+
(i.e. it automatically adds all the SCM-managed files to the sdist).
10+
Unwanted files must be excluded via `MANIFEST.in`
11+
or [configuring Git archive][git-archive-docs].
612

7-
Additionally `setuptools_scm` provides setuptools with a list of
8-
files that are managed by the SCM (i.e. it automatically adds all
9-
the SCM-managed files to the sdist). Unwanted files must be excluded
10-
via `MANIFEST.in`.
13+
[git-archive-docs]: usage.md#builtin-mechanisms-for-obtaining-version-numbers
1114

1215
## basic usage
1316

0 commit comments

Comments
 (0)