File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments