File tree Expand file tree Collapse file tree 2 files changed +21
-15
lines changed Expand file tree Collapse file tree 2 files changed +21
-15
lines changed Original file line number Diff line number Diff line change 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 ` .
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 ] .
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
Original file line number Diff line number Diff line change 1
1
# About
2
2
3
-
4
3
` 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 ] .
6
12
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
11
14
12
15
## basic usage
13
16
You can’t perform that action at this time.
0 commit comments