Skip to content

Commit

Permalink
Avoid running setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dflook committed Sep 19, 2023
1 parent 922e46b commit f225f59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
- name: Build package
run: |
pip3 install --upgrade setuptools wheel
python3 setup.py sdist bdist_wheel --universal
pip3 install --upgrade build
python3 -m build
- uses: actions/upload-artifact@v3
with:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ jobs:

- name: Set version statically
run: |
VERSION="$(python3 setup.py --version)"
pip install setuptools_scm
VERSION="$(python3 -m setuptools_scm --version)"
sed -i "s/setup_requires=.*/version='$VERSION',/; s/use_scm_version=.*//" setup.py
- name: Create Packages
run: |
pip3 install --upgrade setuptools wheel twine
python3 setup.py sdist bdist_wheel --universal
pip3 install --upgrade build
python3 -m build
- uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit f225f59

Please sign in to comment.