Compare commits

...

10 Commits

Author SHA1 Message Date
David Robertson
a39c9adce6 Will this work?!?!?!?! 2023-02-07 20:48:34 +00:00
David Robertson
2629f7f852 Revert "Revert "Allow poetry-core 1.5.0 (#14949)""
does this break it?

This reverts commit 50936db2fc.
2023-02-07 20:24:38 +00:00
David Robertson
99bc8cdaa4 Don't test pypy3.8 wheels either 2023-02-07 19:50:17 +00:00
David Robertson
1b6ab81658 Use old fstring syntaxxxxxxxxxxxxxxxxxxxxxxxxx 2023-02-07 19:36:18 +00:00
David Robertson
d87276dc0f Desperation 2023-02-07 19:27:09 +00:00
David Robertson
50936db2fc Revert "Allow poetry-core 1.5.0 (#14949)"
This reverts commit 64a631879c.
2023-02-07 19:05:49 +00:00
David Robertson
03cc9af631 Oh my god I'm an IDIOT 2023-02-07 18:31:55 +00:00
David Robertson
5d16d26c4a DEBUG: builds lodsewheels 2023-02-07 18:21:37 +00:00
David Robertson
f4e4de70e6 DEBUG: Upload wheel artifacts, even on failure 2023-02-07 18:15:06 +00:00
David Robertson
f7aa7b4dbe DEBUG: build mac wheels on PRs 2023-02-07 18:13:55 +00:00
2 changed files with 18 additions and 8 deletions

View File

@@ -50,7 +50,9 @@ def cpython(wheel_file: str, name: str, version: Version, tag: Tag) -> str:
check_is_abi3_compatible(wheel_file)
abi3_tag = Tag(tag.interpreter, "abi3", tag.platform)
# DMR: surely this won't make it work?
platform = tag.platform.replace("macosx_11_0", "macosx_10_16")
abi3_tag = Tag(tag.interpreter, "abi3", platform)
dirname = os.path.dirname(wheel_file)
new_wheel_file = os.path.join(
@@ -100,6 +102,13 @@ def main(wheel_file: str, dest_dir: str, archs: Optional[str]) -> None:
else:
subprocess.run(["auditwheel", "repair", "-w", dest_dir, wheel_file], check=True)
# DMR: INSPECT THE WHEEL NAUGHTY EVIL DEBUG
from pip._internal.models.wheel import Wheel
from pip._internal.utils.compatibility_tags import get_supported
w = Wheel(wheel_file)
tags = get_supported()
print(f"w={w} tags={tags} supported={w.supported(tags)}")
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Tag wheel as abi3 and repair it.")

View File

@@ -107,9 +107,9 @@ jobs:
- ${{ startsWith(github.ref, 'refs/pull/') }}
exclude:
# Don't build macos wheels on PR CI.
- is_pr: true
os: "macos-11"
# # Don't build macos wheels on PR CI.
# - is_pr: true
# os: "macos-11"
# Don't build aarch64 wheels on mac.
- os: "macos-11"
arch: aarch64
@@ -139,21 +139,22 @@ jobs:
if: matrix.arch == 'aarch64'
run: echo 'CIBW_ARCHS_LINUX=aarch64' >> $GITHUB_ENV
- name: Only build a single wheel on PR
if: startsWith(github.ref, 'refs/pull/')
run: echo "CIBW_BUILD="cp37-manylinux_${{ matrix.arch }}"" >> $GITHUB_ENV
# - name: Only build a single wheel on PR
# if: startsWith(github.ref, 'refs/pull/')
# run: echo "CIBW_BUILD="cp37-manylinux_${{ matrix.arch }}"" >> $GITHUB_ENV
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
# Skip testing for platforms which various libraries don't have wheels
# for, and so need extra build deps.
CIBW_TEST_SKIP: pp3{7,9}-* *i686* *musl*
CIBW_TEST_SKIP: pp3*-* *i686* *musl*
# Fix Rust OOM errors on emulated aarch64: https://github.com/rust-lang/cargo/issues/10583
CARGO_NET_GIT_FETCH_WITH_CLI: true
CIBW_ENVIRONMENT_PASS_LINUX: CARGO_NET_GIT_FETCH_WITH_CLI
- uses: actions/upload-artifact@v3
if: always()
with:
name: Wheel
path: ./wheelhouse/*.whl