GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CI: BLD: build wheels and fix test suite for Python 3.12 by rgommers · Pull Request #23991 · numpy/numpy

Conversation

@rgommers

@rgommers rgommers commented Jun 19, 2023

Copy link
Copy Markdown
Member

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rgommers
CI: build Python 3.12 beta wheels with cibuildwheel
bac2173
@rgommers rgommers added the 36 - Build Build related PR label Jun 19, 2023
@rgommers rgommers mentioned this pull request Jun 19, 2023
Tracking issue: defaulting to Meson - follow-up tasks #23981
Closed
18 of 20 tasks
This was referenced Jun 19, 2023
ENH: Python 3.12 support pandas-dev/pandas#53665
Closed
CI: test with Python 3.12-beta scipy/scipy#18689
Merged
rgommers added 5 commits June 19, 2023 19:51
@rgommers
BLD: don't use distutils on python >= 3.12
595e78a
@rgommers
TST: remove usages of numpy.distutils from tests for py312
c929d62
@rgommers
TST: skip refcount related tests on py312
b0872b8
Python 3.12 has immortal refcounts; the initial and final
values will be the same when accessing `sys.getrefcount` inside a
test.

Closes numpygh-23986
@rgommers
TST: skip memory allocator and array_interface tests on py312
e42fc93
They require numpy.distutils, which isn't available on >=3.12
The `numpy.testing.extbuild` utility will need changing to make this
work again. Could either use plain `setuptools` or `meson`.
@rgommers
TST: skip test using np.load on py2-saved .npy file on py312
4552b6c
@rgommers
rgommers force-pushed the py312-wheels branch from d38fc02 to cbaf0de Compare June 19, 2023 17:59
@rgommers

rgommers commented Jun 19, 2023

Copy link
Copy Markdown
Member Author

Hmm, I tested on GitHub Actions on my own fork and that is happy with

python: ["cp312"]
env:
    CIBW_PRERELEASE_PYTHONS: True

The Cirrus CI yaml is a little different; I expected this to work but it doesn't:

env:
        CIBW_PRERELEASE_PYTHONS: True
        CIBW_BUILD: cp312-*

it ends with:

cibuildwheel: No build identifiers selected: BuildSelector(build_config='cp312-*', skip_config='cp36-* cp37-* cp-38* pp37-* *-manylinux_i686 *_ppc64le *_s390x *-musllinux_aarch64 *-win32', requires_python=<SpecifierSet('>=3.9')>, prerelease_pythons=True)

not sure if it's not yet supported yet or the cp312-* selector needs a tweak. If anyone happens to know, that would be helpful here.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rgommers

rgommers commented Jun 19, 2023

Copy link
Copy Markdown
Member Author

test_requirements.txt is annoying, we now need it with an unpinned setuptools for Python 3.12, and ==59.2.0 on other Python versions. Guess no choice but to duplicate it for now.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mattip

mattip commented Jun 19, 2023

Copy link
Copy Markdown
Member

Is the cibuildwheel version current on that job? I see 2.12.1 where 2.13.1 is the latest.

rgommers reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mattip

mattip commented Jun 19, 2023

Copy link
Copy Markdown
Member

Guess no choice but to duplicate it

you mean to put a selector on the line in test_requirements.txt for the python version, or do you want to duplicate the file?

rgommers reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

rgommers added 2 commits June 19, 2023 21:26
@rgommers
TST: unpin setuptools in test_requirements.txt for py312
ddbb3e1
We need a recent `setuptools` to make `import distutils` work
(that will then get the `setuptools`-patched version of it),
and that is used in at least `numpy/core/tests/test_cython.py`.
@rgommers
CI: also build Python 3.12 beta/pre wheels on Cirrus CI
366c7a1
[wheel build]
@rgommers
rgommers force-pushed the py312-wheels branch from cbaf0de to 366c7a1 Compare June 19, 2023 19:27
@rgommers

rgommers commented Jun 19, 2023

Copy link
Copy Markdown
Member Author

Thanks @mattip, good catches. My brain is kinda fried it seems after the mini-sprint in the last 36 hours:)

This is ready now. For merging it, please include [wheel build] in the merge commit message, that'll kick off new wheel builds for upload to the nightlies bucket.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rgommers

rgommers commented Jun 19, 2023

Copy link
Copy Markdown
Member Author

The one CI failure is a connection issue; the actual job had completed and is green in Azure.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rgommers

rgommers commented Jun 20, 2023

Copy link
Copy Markdown
Member Author

@seberg or @charris would one of you mind reviewing this? Matti is traveling for a little while so I don't expect he'll get to this soon, and I suspect some folks in downstream projects are keenly awaiting the 3.12 nightlies.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rgommers rgommers added this to the 2.0.0 release milestone Jun 20, 2023
@mattip

mattip commented Jun 20, 2023

Copy link
Copy Markdown
Member

Thanks @rgommers. Lets keep things moving.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@mattip
mattip merged commit dbc454a into numpy:main Jun 20, 2023
@rgommers
rgommers deleted the py312-wheels branch June 20, 2023 10:58
@mattip

mattip commented Jun 20, 2023

Copy link
Copy Markdown
Member

I merged with the github button and will manually kick off a wheel build

rgommers reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rgommers

rgommers commented Jun 20, 2023

Copy link
Copy Markdown
Member Author

Ah, guess I was wrong - thanks Matti!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@seberg

seberg commented Jun 20, 2023

Copy link
Copy Markdown
Member

🎉 I think manual button doesn't trigger the cirrus builds, but it probably doesn't matter much in practice, the next build is tomorrow anyway.

rgommers reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

36 - Build Build related PR

Projects

None yet

Milestone

2.0.0 release

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@rgommers @mattip @seberg
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.