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

BLD: Build wheels for Python 3.12 #55010

Merged
merged 18 commits into from
Sep 7, 2023
Merged

Conversation

lithomas1
Copy link
Member

@lithomas1 lithomas1 added Build Library building on various platforms Python 3.12 labels Sep 5, 2023
@@ -10,7 +10,8 @@ requires = [
# we don't want to force users to compile with 1.25 though
# (Ideally, in the future, though, oldest-supported-numpy can be dropped when our min numpy is 1.25.x)
"oldest-supported-numpy>=2022.8.16; python_version<'3.12'",
"numpy>=1.22.4; python_version>='3.12'",
# TODO: This needs to be updated when the official numpy 1.26 comes out
"numpy>=1.26.0b1; python_version>='3.12'",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we just use numpy>1.25?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if pip will pull a pre-release without explicitly specifying this.

This should be nbd though, I'm not planning on publishing the built wheels to PyPI anyways until numpy 1.26 is out.

@lithomas1 lithomas1 marked this pull request as ready for review September 6, 2023 01:36
@lithomas1 lithomas1 added this to the 2.1.1 milestone Sep 6, 2023
@lithomas1
Copy link
Member Author

Let's merge and backport this for 2.1.1.

This means we'll have nightlies up for Python 3.12 and also the option to upload Python 3.12 wheels for 2.1.1 if we want.

(I am still planning on waiting for numpy to release 1.26 before wheels are uploaded to PyPI. This is more so downstream can test with pandas).

docker pull python:${{ matrix.python[1] }}-windowsservercore
docker run --env PANDAS_CI='1' -v ${PWD}:C:\pandas python:${{ matrix.python[1] }}-windowsservercore powershell -Command $TST_CMD
# add rc to the end of the image name if the Python version is unreleased
docker pull python:${{ matrix.python[1] == '3.12' && '3.12-rc' || format('{0}-windowsservercore', matrix.python[1]) }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally the 3.12-rc should still be associated with windowsservercore right? Otherwise looks like this is just testing with the python:3.12-rc image

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it's a shared tag iirc, so should resolve to Windows Server Core when running on Windows

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In pytest logs I see win32 as the platform, so this looks to be working

@mroeschke mroeschke merged commit a7cb226 into pandas-dev:main Sep 7, 2023
@mroeschke
Copy link
Member

Thanks @lithomas1

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Sep 7, 2023
mroeschke pushed a commit that referenced this pull request Sep 7, 2023
#55055)

Backport PR #55010: BLD: Build wheels for Python 3.12

Co-authored-by: Thomas Li <[email protected]>
mroeschke pushed a commit to mroeschke/pandas that referenced this pull request Sep 11, 2023
* BLD: Build wheels for Python 3.12

* Update pyproject.toml

* Update pyproject.toml

* also circle

* fix windows?

* typo?

* try single quotes

* tyr to fix again

* just use the base shared tag, no need to append windowsservercore

* typo

* update the other too

* Update wheels.yml

* try something

* try something

* debug

* escape string?

* go for green
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Library building on various platforms Python 3.12
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upload Python 3.12 wheel to scientific-python-nightly-wheels?
2 participants