Skip to content

Commit fa3fd5a

Browse files
authored
Update publish-release.yml (#11)
1 parent 2d35abb commit fa3fd5a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: .github/workflows/publish-release.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,13 @@ jobs:
132132
- name: Setup Python version (3+)
133133
if: ${{ matrix.py3from }}
134134
run: |
135-
sed -i 's/^python-requires = .*/python-requires = ">=${{ matrix.py3from }},<${{ matrix.py3to }}"/' pyproject.toml
136-
tags=$(for i in $(seq ${${{ matrix.py3from }}//./} $(( ${${{ matrix.py3to }}//./} - 1)) ); do echo -n "py$i."; done | sed 's/\.$//')
135+
FROM=${{ matrix.py3from }}
136+
TO=${{ matrix.py3to }}
137+
sed -i 's/^python-requires = .*/python-requires = "$FROM>=,<$TO"/' pyproject.toml
138+
tags=$(for i in $(seq ${FROM//./} $(( ${TO//./} - 1)) ); do echo -n "py$i."; done | sed 's/\.$//')
137139
echo "[tool.distutils.bdist_wheel]" >> pyproject.toml
138140
echo "python-tag = \"$tags\"" >> pyproject.toml
141+
echo pyproject.toml
139142
140143
- name: Build package
141144
run: python -m build

0 commit comments

Comments
 (0)