Skip to content

Commit 9a08e35

Browse files
committed
Remove local part of version because it is not allowed in PyPI
1 parent ffe52dc commit 9a08e35

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

CHANGELOG.rst

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@ Changelog
88
:version: 1.13.1
99
:released: 13.11.2022
1010

11-
.. change::
12-
:tags: ci, feature
13-
:tickets: 72, 49
14-
15-
Use ``pypa/gh-action-pypi-publish`` Github action to publish releases to PyPI
16-
1711
.. change::
1812
:tags: general, feature
1913
:tickets: 72, 49
@@ -26,6 +20,21 @@ Changelog
2620

2721
Allow to install package from ``.tar.gz`` without ``--no-build-isolation`` flag
2822

23+
.. change::
24+
:tags: ci, feature
25+
26+
Publish development releases to `Test PyPI <test.pypi.org>`_
27+
28+
.. change::
29+
:tags: ci, feature
30+
31+
Use ``pypa/gh-action-pypi-publish`` Github action to publish releases to PyPI
32+
33+
.. change::
34+
:tags: ci, bugfix
35+
36+
Remove local part of version because it is not allowed in PyPI
37+
2938
.. changelog::
3039
:version: 1.13.0
3140
:released: 01.11.2022

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ def parse_requirements(file_content):
1818

1919
setup(
2020
name="setuptools-git-versioning",
21-
version=version_from_git(root=HERE),
21+
# +local version is not allowed in PyPI
22+
# https://github.com/pypa/pypi-legacy/issues/731#issuecomment-345461596
23+
version=version_from_git(root=HERE, dev_template="{tag}.post{ccount}"),
2224
author="dolfinus",
2325
author_email="[email protected]",
2426
description="Use git repo data for building a version number according PEP-440",

0 commit comments

Comments
 (0)