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

Add Python 3.12 job and wheels #111

Merged
merged 13 commits into from
Sep 7, 2023
Merged

Add Python 3.12 job and wheels #111

merged 13 commits into from
Sep 7, 2023

Conversation

pllim
Copy link
Contributor

@pllim pllim commented Aug 18, 2023

pyerfa won't build nicely in astropy/astropy#14784 even after #107 and I don't know why.

Fix #108 maybe

Blocked by:

Questions:

  • Is it okay to use numpy 1.26b (pre-release) for all the wheels, not just cp312? Or do I have to separate out cp312 jobs?
  • Is it okay to drop win32 wheels?

@pllim

This comment was marked as resolved.

@pllim
Copy link
Contributor Author

pllim commented Aug 19, 2023

Ah... maybe because numpy 1.25 does not have a cp312 wheel, so it is trying to build numpy from source before building pyerfa...

@pllim pllim marked this pull request as ready for review August 31, 2023 15:03
@pllim
Copy link
Contributor Author

pllim commented Aug 31, 2023

Not sure if you want all of this. If not, feel free to pick and choose. At least it is all green now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mhvk , turns out at the very least, I need the changes in this file for astropy/astropy#14784

@pllim
Copy link
Contributor Author

pllim commented Sep 7, 2023

Can one of the maintainers help me push this forward one way or another? Thanks!

Python 3.12rc2 is out.

Copy link
Contributor

@mhvk mhvk left a comment

Choose a reason for hiding this comment

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

This looks good to me and everything is green, but I feel super uncomfortable approving something I don't understand, so let me ping @astrofrog and @avalentino, hoping that they are better versed in wheel creation...

pyproject.toml Outdated
"setuptools",
"setuptools_scm>=6.2",
"jinja2>=2.10.3",
"numpy>=1.25,<2; python_version<='3.11'",
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we use <3.12 to be the exact opposite of >=3.12?

Copy link
Contributor

Choose a reason for hiding this comment

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

Wondering how 3.11.3 evaluates for example, is it <=3.11?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will that pick up 3.12rc? I can never tell how these operators work.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, I made the change you requested and CI is still green, so I guess it is okay after all. Please re-review. Thanks!

@mhvk
Copy link
Contributor

mhvk commented Sep 7, 2023

OK, let's get it in. Thanks, @pllim!

@mhvk mhvk merged commit 5f11b2e into liberfa:master Sep 7, 2023
@pllim pllim deleted the py312 branch September 7, 2023 19:07
@pllim
Copy link
Contributor Author

pllim commented Sep 7, 2023

Thanks, all!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Python 3.12
3 participants