Skip to content

Commit

Permalink
0.0.166
Browse files Browse the repository at this point in the history
  • Loading branch information
joocer committed Jul 22, 2024
1 parent b945d26 commit ecdf953
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 178 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/regression_suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
max-parallel: 4
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12']
runs-on: ubuntu-latest
steps:

Expand All @@ -38,7 +38,7 @@ jobs:
run: python -m coverage run -m pytest

- name: Check Coverage
run: python -m coverage report --include=orso/** --fail-under=60 -m
run: python -m coverage report --include=orso/** --fail-under=70 -m

- name: "Upload coverage to Codecov"
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
Expand Down
214 changes: 39 additions & 175 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,155 +10,44 @@ on:

jobs:

build-linux-cp38:
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64

steps:
- uses: actions/[email protected]

- name: Install Python package dependencies
run: /opt/python/cp38-cp38/bin/python -m pip install --upgrade cython wheel numpy

- name: Build binary wheel
run: /opt/python/cp38-cp38/bin/python setup.py bdist_wheel

- name: Apply auditwheel for manylinux wheel
run: auditwheel repair -w dist dist/*

- name: Remove linux wheel
run: rm dist/*-linux_x86_64.whl

- name: Archive dist artifacts
uses: actions/upload-artifact@v1
with:
name: dist-linux-3.8
path: dist

build-linux-cp39:
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64

steps:
- uses: actions/[email protected]

- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Install Python package dependencies
run: /opt/python/cp39-cp39/bin/python -m pip install --upgrade cython wheel numpy setuptools_rust

- name: Build binary wheel
run: /opt/python/cp39-cp39/bin/python setup.py bdist_wheel

- name: Apply auditwheel for manylinux wheel
run: auditwheel repair -w dist dist/*

- name: Remove linux wheel
run: rm dist/*-linux_x86_64.whl

- name: Archive dist artifacts
uses: actions/upload-artifact@v1
with:
name: dist-linux-3.9
path: dist

build-linux-cp310:
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64

steps:
- uses: actions/[email protected]

- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Install Python package dependencies
run: /opt/python/cp310-cp310/bin/python -m pip install --upgrade cython wheel numpy setuptools_rust

- name: Build binary wheel
run: /opt/python/cp310-cp310/bin/python setup.py bdist_wheel

- name: Apply auditwheel for manylinux wheel
run: auditwheel repair -w dist dist/*

- name: Remove linux wheel
run: rm dist/*-linux_x86_64.whl

- name: Archive dist artifacts
uses: actions/upload-artifact@v1
with:
name: dist-linux-3.10
path: dist

build-linux-cp311:
build-manylinux:
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64

steps:
- uses: actions/[email protected]

- name: Install rust toolchain
uses: actions-rs/toolchain@v1
- name: Check out repository
uses: actions/[email protected]
with:
toolchain: stable
override: true

- name: Install Python package dependencies
run: /opt/python/cp311-cp311/bin/python -m pip install --upgrade cython wheel numpy setuptools_rust

- name: Build binary wheel
run: /opt/python/cp311-cp311/bin/python setup.py bdist_wheel

- name: Apply auditwheel for manylinux wheel
run: auditwheel repair -w dist dist/*

- name: Remove linux wheel
run: rm dist/*-linux_x86_64.whl

- name: Archive dist artifacts
uses: actions/upload-artifact@v1
path: io

- name: Set permissions for build.sh
run: chmod +x io/build.sh

- name: Build Wheels
run: >
docker run --rm
-e PLAT=manylinux2014_x86_64
-e PACKAGE_NAME=orso
-e PYTHON_VERSION=${{ matrix.python-version }}
-v `pwd`:/io
--workdir /io
quay.io/pypa/manylinux2014_x86_64
io/build-wheels.sh
- name: Archive Wheels
uses: actions/upload-artifact@v3
with:
name: dist-linux-3.11
path: dist

build-linux-cp312:
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux2014_x86_64

steps:
- uses: actions/[email protected]

- name: Install Python package dependencies
run: /opt/python/cp312-cp312/bin/python -m pip install --upgrade cython wheel numpy

- name: Build binary wheel
run: /opt/python/cp312-cp312/bin/python setup.py bdist_wheel

- name: Apply auditwheel for manylinux wheel
run: auditwheel repair -w dist dist/*

- name: Remove linux wheel
run: rm dist/*-linux_x86_64.whl

- name: Archive dist artifacts
uses: actions/upload-artifact@v1
with:
name: dist-linux-3.12
path: dist
name: dist-linux-${{ matrix.python-version }}
path: io/dist/*manylinux2014_x86_64.whl

build-macos:
runs-on: macos-latest
strategy:
max-parallel: 4
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/[email protected]
Expand Down Expand Up @@ -200,7 +89,7 @@ jobs:
strategy:
max-parallel: 3
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/[email protected]
Expand Down Expand Up @@ -231,11 +120,7 @@ jobs:

upload:
needs:
- build-linux-cp38
- build-linux-cp39
- build-linux-cp310
- build-linux-cp311
- build-linux-cp312
- build-manylinux
- build-macos
- build-windows
runs-on: ubuntu-latest
Expand All @@ -257,48 +142,34 @@ jobs:
- name: Create source dist
run: python setup.py sdist

- name: Stage linux 3.8
uses: actions/download-artifact@v1
with:
name: dist-linux-3.8

- run: mv -v dist-linux-3.8/* dist/

- name: Stage linux 3.9
uses: actions/download-artifact@v1
- name: Stage linux 3.9
uses: actions/download-artifact@v3
with:
name: dist-linux-3.9

path: dist-linux-3.9
- run: mv -v dist-linux-3.9/* dist/

- name: Stage linux 3.10
uses: actions/download-artifact@v1
uses: actions/download-artifact@v3
with:
name: dist-linux-3.10

path: dist-linux-3.10
- run: mv -v dist-linux-3.10/* dist/

- name: Stage linux 3.11
uses: actions/download-artifact@v1
uses: actions/download-artifact@v3
with:
name: dist-linux-3.11

path: dist-linux-3.11
- run: mv -v dist-linux-3.11/* dist/

- name: Stage linux 3.12
uses: actions/download-artifact@v1
uses: actions/download-artifact@v3
with:
name: dist-linux-3.12

path: dist-linux-3.12
- run: mv -v dist-linux-3.12/* dist/

- name: Stage macos 3.8
uses: actions/download-artifact@v1
with:
name: dist-macos-3.8

- run: mv -v dist-macos-3.8/* dist/

- name: Stage macos 3.9
uses: actions/download-artifact@v1
with:
Expand Down Expand Up @@ -327,13 +198,6 @@ jobs:

- run: mv -v dist-macos-3.12/* dist/

- name: Stage windows 3.8
uses: actions/download-artifact@v1
with:
name: dist-windows-3.8

- run: mv -v dist-windows-3.8/* dist/

- name: Stage windows 3.9
uses: actions/download-artifact@v1
with:
Expand Down
19 changes: 19 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash
set -ex

cd $GITHUB_WORKSPACE/io
cd io

# Only build for the specified Python version
PYBIN="/opt/python/cp${PYTHON_VERSION//.}-cp${PYTHON_VERSION//.}/bin"

# Install necessary packages
"${PYBIN}/python" -m pip install -U setuptools wheel numpy==1.* cython

# Build the wheel
"${PYBIN}/python" setup.py bdist_wheel

# Repair the wheel using auditwheel
for whl in dist/*.whl; do
auditwheel repair "$whl" -w dist/
done
2 changes: 1 addition & 1 deletion orso/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
# See the License for the specific language governing permissions and
# limitations under the License.

__version__: str = "0.0.165"
__version__: str = "0.0.166"
__author__: str = "@joocer"

0 comments on commit ecdf953

Please sign in to comment.