Skip to content

Commit

Permalink
Bump manylinux to recent version. (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hooksie authored Jul 19, 2023
1 parent 0690adb commit a0cc863
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@ jobs:
strategy:
matrix:
python-path: ['cp37-cp37m', 'cp38-cp38', 'cp39-cp39', 'cp310-cp310', 'cp311-cp311']
container: quay.io/pypa/manylinux_2_24_x86_64:latest
container: quay.io/pypa/manylinux_2_28_x86_64:latest
env:
TWINE_PASSWORD: ${{secrets.TWINE_PASSWORD}}
TWINE_USERNAME: ${{secrets.TWINE_USERNAME}}

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- run: apt update && apt install libffi-dev libssl-dev -y
target: x86_64-unknown-linux-gnu
- run: yum makecache && yum -y install libffi-devel openssl-devel
- run: /opt/python/${{ matrix.python-path }}/bin/python -m venv .venv
- run: .venv/bin/pip install -U pip wheel
- run: .venv/bin/pip install -U twine maturin
- run: .venv/bin/pip install -r requirements.txt
- run: OPENSSL_STATIC=1 OPENSSL_LIB_DIR=/usr/lib/x86_64-linux-gnu/ OPENSSL_INCLUDE_DIR=/usr/include/openssl .venv/bin/maturin build --release --strip --manylinux 2_24 -i /opt/python/${{ matrix.python-path }}/bin/python --target x86_64-unknown-linux-gnu
- run: OPENSSL_STATIC=1 .venv/bin/maturin build --release --strip --manylinux 2_28 -i /opt/python/${{ matrix.python-path }}/bin/python --target x86_64-unknown-linux-gnu
- run: .venv/bin/pip install rfernet --no-index -f target/wheels
- run: .venv/bin/pytest
- run: .venv/bin/twine upload --non-interactive --skip-existing target/wheels/*
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,27 @@ jobs:
with:
command: clippy
args: -- -D warnings

test_manylinux_release:
name: Test manylinux release build
runs-on: ubuntu-latest
strategy:
matrix:
python-path: ['cp37-cp37m', 'cp38-cp38', 'cp39-cp39', 'cp310-cp310', 'cp311-cp311']
container: quay.io/pypa/manylinux_2_28_x86_64:latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
target: x86_64-unknown-linux-gnu
- run: yum makecache && yum -y install libffi-devel openssl-devel
- run: /opt/python/${{ matrix.python-path }}/bin/python -m venv .venv
- run: .venv/bin/pip install -U pip wheel
- run: .venv/bin/pip install -U twine maturin
- run: .venv/bin/pip install -r requirements.txt
- run: OPENSSL_STATIC=1 .venv/bin/maturin build --release --strip --manylinux 2_28 -i /opt/python/${{ matrix.python-path }}/bin/python --target x86_64-unknown-linux-gnu
- run: .venv/bin/pip install rfernet --no-index -f target/wheels
- run: .venv/bin/pytest
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ classifier = [

[tool.poetry]
name = "rfernet"
version = "0.3.0"
version = "0.3.1"
description = "Fast Fernet bindings for Python"
authors = ["Aviram Hassan <aviramyhassan@gmail.com>"]
license = "MIT"
Expand Down

0 comments on commit a0cc863

Please sign in to comment.