Skip to content

Add Python 3.12 job and wheels - #111

Merged
mhvk merged 13 commits into
liberfa:masterfrom
pllim:py312
Sep 7, 2023
Merged

mhvk merged 13 commits into
liberfa:masterfrom
pllim:py312

Conversation

@pllim

@pllim pllim commented Aug 18, 2023 •

Copy link
Copy Markdown
Contributor

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

pllim commented Aug 19, 2023 •

Copy link
Copy Markdown
Contributor Author

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

pllim commented Aug 31, 2023

Copy link
Copy Markdown
Contributor Author

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

Comment thread pyproject.toml

Copy link
Copy Markdown
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

pllim commented Sep 7, 2023

Copy link
Copy Markdown
Contributor Author

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

Python 3.12rc2 is out.

@mhvk mhvk left a comment

Copy link
Copy Markdown
Contributor

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...

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
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

mhvk commented Sep 7, 2023

Copy link
Copy Markdown
Contributor

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

pllim commented Sep 7, 2023

Copy link
Copy Markdown
Contributor Author

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