File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 2222 - name : Install pypa/build
2323 run : python3 -m pip install --user build
2424
25+ - name : Add commit to version
26+ run : sed -i -e 's/__version__\s*=\s*"(.+)"/__version__ = "\1+$(git rev-parse --short HEAD)"/' pathspec/_version.py
27+
28+ - name : Prebuild
29+ run : python3 prebuild.py
30+
2531 - name : Build a binary wheel and a source tarball
2632 run : python3 -m build
2733
Original file line number Diff line number Diff line change 99import sys
1010from pathlib import (
1111 Path )
12-
13- import tomli
12+ try :
13+ import tomllib # Added in 3.11.
14+ except ModuleNotFoundError :
15+ import tomli as tomllib
1416
1517CHANGES_0_IN_RST = Path ("CHANGES_0.in.rst" )
1618CHANGES_1_IN_RST = Path ("CHANGES_1.in.rst" )
@@ -95,7 +97,7 @@ def generate_setup_cfg() -> None:
9597 """
9698 print (f"Read: { PYPROJECT_TOML } " )
9799 with PYPROJECT_TOML .open ('rb' ) as fh :
98- config = tomli .load (fh )
100+ config = tomllib .load (fh )
99101
100102 print (f"Write: { SETUP_CFG } " )
101103 output = configparser .ConfigParser ()
You can’t perform that action at this time.
0 commit comments