Skip to content

Commit 8c14123

Browse files
authored
Merge pull request #180 from biocircuits/pypi-action-patch-2
Update pypi_release.yml action to update pypi distribution
2 parents a0b18dc + e355a27 commit 8c14123

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

.github/workflows/pypi_release.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,16 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v4
14-
- name: Set up Python
15-
uses: actions/setup-python@v5
16-
with:
17-
python-version: '3.12'
18-
19-
- name: Install dependencies
14+
15+
- name: Build inside manylinux_2_28 container
2016
run: |
21-
python -m pip install --upgrade pip
22-
pip install build
23-
24-
- name: Build the package
25-
run: |
26-
python -m build
27-
17+
docker run --rm -v $(pwd):/io -w /io quay.io/pypa/manylinux_2_28_x86_64 /bin/bash -c "\
18+
/opt/python/cp312-cp312/bin/python -m pip install --upgrade pip build auditwheel && \
19+
/opt/python/cp312-cp312/bin/python -m pip install -r requirements.txt && \
20+
/opt/python/cp312-cp312/bin/python -m build --wheel --outdir /io/dist && \
21+
auditwheel repair /io/dist/*.whl --plat manylinux_2_28_x86_64 --wheel-dir /io/dist && \
22+
rm -f /io/dist/*linux_x86_64.whl"
23+
2824
- name: Publish package to PyPI
2925
uses: pypa/gh-action-pypi-publish@release/v1
3026
with:

pyproject.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
requires = ["setuptools>=64", "Cython", "numpy", "wheel"]
33
build-backend = "setuptools.build_meta"
44

5-
[tool.distutils.bdist_wheel]
6-
universal = true
7-
85
[project]
96
name = "Bioscrape"
107
version = "1.3.0"

0 commit comments

Comments
 (0)