File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 36
36
run : python version.py check "${{ github.ref }}"
37
37
- name : Add untagged version suffix
38
38
if : ${{ ! startsWith(github.ref, 'refs/tags/v') }}
39
- run : python version.py update ${{ github.sha }}
39
+ run : python version.py update
40
40
- name : Build sdist
41
41
run : pipx run build --sdist
42
42
- uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change @@ -33,7 +33,12 @@ def check(ref):
33
33
34
34
35
35
def update (sha = "" ):
36
- """Add a timestamped dev version qualifier to the current version"""
36
+ """Add a timestamped dev version qualifier to the current version
37
+
38
+ Note: pypi does not allow the "local" version component, which
39
+ is where we put the git sha. Do not pass a sha argument when
40
+ updating the version for a pypi release.
41
+ """
37
42
path = Path (__file__ ).parent / PACKAGE_NAME / "__init__.py"
38
43
vexpr = re .compile (r"""(?<=^__version__ = )['"](.+)['"]$""" , flags = re .M )
39
44
with open (path , "r+" ) as file :
You can’t perform that action at this time.
0 commit comments