Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try removing old wheels. #83

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:

jobs:
build-w64:
build-macos:
runs-on: macos-12
strategy:
matrix:
Expand All @@ -28,14 +28,13 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
# architecture: x64
- name: Build wheel
env:
LZO_DIR: ./lzo-2.10
run: |
python -m pip install -U pip
python -m pip install -U wheel
python setup.py bdist_wheel
python -m pip install -U pip wheel build
python -m build
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
Expand Down
18 changes: 6 additions & 12 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,8 @@ jobs:
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Download lzo and extract it
run: |
if not exist C:\src\ (md C:\src)
if not exist C:\src\lzo-2.10.tar.gz (curl -fsS http://www.oberhumer.com/opensource/lzo/download/lzo-2.10.tar.gz -o C:\src\lzo-2.10.tar.gz)
python tarxfz.py
- name: Run cmake
working-directory: C:\src\lzo-2.10
working-directory: .\lzo-2.10
run: |
md build
cd build
Expand All @@ -34,20 +29,19 @@ jobs:
with:
msbuild-architecture: x64
- name: Build lzo static lib
working-directory: C:\src\lzo-2.10\build
run: msbuild lzo_static_lib.vcxproj -p:Configuration=Release;Platform=x64;OutDir=C:\src\lzo-2.10
working-directory: .\lzo-2.10\build
run: msbuild lzo_static_lib.vcxproj -p:Configuration=Release;Platform=x64;OutDir=..\
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Build wheel
env:
LZO_DIR: C:\src\lzo-2.10
LZO_DIR: .\lzo-2.10
run: |
python -m pip install -U pip
python -m pip install -U wheel
python setup.py bdist_wheel
python -m pip install -U pip wheel build
python -m build
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
Expand Down
89 changes: 3 additions & 86 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2019, macos-11]
os: [ubuntu-20.04, windows-2019, macos-12]
arch: ["x86_64", "arm64"]
include:
- os: windows-2019
Expand Down Expand Up @@ -50,89 +50,6 @@ jobs:
path: wheelhouse/*.whl
if-no-files-found: error

wheels-old:
name: Build old wheels on ${{ matrix.os }} for ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2019, macos-11]
arch: ["x86_64"]
include:
- os: windows-2019
arch: win_amd64
- os: windows-2019
arch: win32
- os: ubuntu-20.04
arch: i686
- os: ubuntu-20.04
arch: aarch64
- os: ubuntu-20.04
arch: ppc64le
- os: ubuntu-20.04
arch: s390x
exclude:
- os: windows-2019
arch: "x86_64"
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up QEMU
if: runner.os == 'Linux'
uses: docker/setup-qemu-action@v2
with:
platforms: all
- name: Build and test wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS: all
CIBW_BUILD_VERBOSITY: 3
CIBW_BUILD: "*${{ matrix.arch }}"
CIBW_SKIP: cp36-* cp37-* cp38-* cp39-* pp37-* pp*-macosx* cp35-macosx_x86_64
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: pytest {package}/tests
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: ${{ runner.os }}-${{ matrix.arch }}
path: wheelhouse/*.whl
if-no-files-found: error

wheels-win27:
name: Build Python 2.7 wheels on Windows ${{ matrix.arch }}
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
arch: ["amd64", "win32"]
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Prepare compiler environment for Windows
if: runner.os == 'Windows'
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
- name: Set Windows environment variables
if: runner.os == 'Windows'
shell: bash
run: |
echo "DISTUTILS_USE_SDK=1" >> $GITHUB_ENV
echo "MSSdk=1" >> $GITHUB_ENV
- name: Build and test wheels
uses: pypa/[email protected]
env:
CIBW_BUILD_VERBOSITY: 3
CIBW_BUILD: "*27*${{ matrix.arch }}"
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: pytest {package}/tests
- name: Upload wheels
uses: actions/upload-artifact@v3
with:
name: ${{ runner.os }}-${{ matrix.arch }}
path: wheelhouse/*.whl
if-no-files-found: error

sdist:
name: Build sdist
runs-on: ubuntu-latest
Expand Down Expand Up @@ -163,8 +80,8 @@ jobs:
publish:
name: Publish builds on PyPI
runs-on: ubuntu-latest
needs: [sdist, wheels, wheels-old, wheels-win27]
if: ${{ always() && (needs.sdist.result == 'success' || needs.wheels.result == 'success' || needs.wheels-old.result == 'success' || needs.wheels-win27.result == 'success') }}
needs: [sdist, wheels]
if: ${{ always() && (needs.sdist.result == 'success' || needs.wheels.result == 'success') }}
environment:
name: release
url: https://test.pypi.org/p/python-lzo
Expand Down
Loading