Skip to content

Commit

Permalink
CI: switch to setup.py-less pyproject.toml-only build
Browse files Browse the repository at this point in the history
  • Loading branch information
jotelha committed Nov 20, 2023
1 parent f1975f1 commit 744be0a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,9 @@ jobs:
pip install wheel
pip install -r requirements.txt
- name: Build and install
run: |
python setup.py build
python setup.py install
- name: Package distribution
run: |
python setup.py sdist bdist_wheel
python -m build --sdist --wheel
ls -1 dist/
- name: Get master HEAD SHA
Expand Down Expand Up @@ -114,7 +109,7 @@ jobs:
id: fix_version
run: |
pip install setuptools_scm
version=$(SETUPTOOLS_SCM_DEBUG=1 python setup.py --version)
version=$(SETUPTOOLS_SCM_DEBUG=1 python -m setuptools_scm)
echo "::set-output name=version::$(echo $version)"
- name: Download Linux build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-installer-on-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
- name: Fix setuptools_scm-generated version
id: fix_version
run: |
version=$(SETUPTOOLS_SCM_DEBUG=1 python setup.py --version) # have version written to file to appear in bundled app as well
version=$(SETUPTOOLS_SCM_DEBUG=1 python -m setuptools_scm) # have version written to file to appear in bundled app as well
echo "::set-output name=version::$(echo $version)"
- name: Create local venv
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-on-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
id: fix_version
run: |
source venv/bin/activate
version=$(SETUPTOOLS_SCM_DEBUG=1 python setup.py --version) # have version written to file to appear in bundled app as well
version=$(SETUPTOOLS_SCM_DEBUG=1 python -m setuptools_scm) # have version written to file to appear in bundled app as well
echo "::set-output name=version::$(echo $version)"
- name: Log python package info
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-on-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
- name: Fix setuptools_scm-generated version
id: fix_version
run: |
version=$(SETUPTOOLS_SCM_DEBUG=1 python setup.py --version) # have version written to file to appear in bundled app as well
version=$(SETUPTOOLS_SCM_DEBUG=1 python -m setuptools_scm) # have version written to file to appear in bundled app as well
echo "::set-output name=version::$(echo $version)"
- name: Log python package info
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-on-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
- name: Fix setuptools_scm-generated version
id: fix_version
run: |
version=$(SETUPTOOLS_SCM_DEBUG=1 python setup.py --version) # have version written to file to appear in bundled app as well
version=$(SETUPTOOLS_SCM_DEBUG=1 python -m setuptools_scm) # have version written to file to appear in bundled app as well
echo "::set-output name=version::$(echo $version)"
- name: Create local venv
Expand Down

0 comments on commit 744be0a

Please sign in to comment.