Skip to content

Commit

Permalink
Build (#92)
Browse files Browse the repository at this point in the history
* Bump actions/setup-python to v5

* Bump pypa/gh-action-pypi-publish to 1.8.14

* Use build instead of sdist

* remove cleaning commands

* Do not install build
  • Loading branch information
jburel authored Dec 16, 2024
1 parent 2e13340 commit 360b535
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/upload_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install Tools
run: |
python -mpip install wheel
python setup.py sdist bdist_wheel
python -mpip install build
python -m build
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@v1.3.0
uses: pypa/gh-action-pypi-publish@v1.8.14
with:
password: ${{ secrets.PYPI_API_TOKEN }}
8 changes: 4 additions & 4 deletions .github/workflows/upload_to_test_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install Tools
run: |
python -mpip install wheel
python setup.py sdist bdist_wheel
python -mpip install build
python -m build
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@v1.3.0
uses: pypa/gh-action-pypi-publish@v1.8.14
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository-url: https://test.pypi.org/legacy/
2 changes: 0 additions & 2 deletions .omeroci/py-setup
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,3 @@ pip install pytest restview mox3
cd $TARGET
cd $(setup_dir)
pip install .
python setup.py clean
rm -rf dist *egg-info src/*egg-info

0 comments on commit 360b535

Please sign in to comment.