Skip to content

Commit 6e81a26

Browse files
Merge branch 'main' into patch-1
2 parents 74fa5be + 0213170 commit 6e81a26

File tree

4 files changed

+24
-18
lines changed

4 files changed

+24
-18
lines changed

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
# setuptools_scm
2-
[![github ci](https://github.com/pypa/setuptools_scm/workflows/python%20tests+artifacts+release/badge.svg)](https://github.com/pypa/setuptools_scm/actions)
2+
[![github ci](https://github.com/pypa/setuptools_scm/actions/workflows/python-tests.yml/badge.svg)](https://github.com/pypa/setuptools_scm/actions/workflows/python-tests.yml)
33
[![Documentation Status](https://readthedocs.org/projects/setuptools-scm/badge/?version=latest)](https://setuptools-scm.readthedocs.io/en/latest/?badge=latest)
44
[![tidelift](https://tidelift.com/badges/package/pypi/setuptools-scm) ](https://tidelift.com/subscription/pkg/pypi-setuptools-scm?utm_source=pypi-setuptools-scm&utm_medium=readme)
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`.
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.
1611

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

docs/usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ so you will see an additional `g` prepended to the `{revision hash}`.
205205
be seen in auto-publishing workflows or when a configuration mistake is made.
206206

207207
However, some package indexes such as devpi or other alternatives allow local
208-
versions. Local version identifiers must comply with [PEP 440].
208+
versions. Local version identifiers must comply with [PEP 440](https://peps.python.org/pep-0440/#local-version-identifiers>).
209209

210210
## Semantic Versioning (SemVer)
211211

src/setuptools_scm/hg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ def get_meta(self, config: Configuration) -> ScmVersion | None:
101101
else:
102102
return meta(tag, config=config, node_date=node_date)
103103

104-
except ValueError as e:
105-
log.exception("error %s", e)
104+
except ValueError:
105+
log.exception("error")
106106
pass # unpacking failed, old hg
107107

108108
return None

0 commit comments

Comments
 (0)