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.11 migration #3573

Merged
merged 3 commits into from
Oct 25, 2022
Merged

Conversation

jakirkham
Copy link
Member

Checklist

  • Used a personal fork of the feedstock to propose changes
  • Bumped the build number (if the version is unchanged)
  • Reset the build number to 0 (if the version changed)
  • Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
  • Ensured the license file is being packaged.

@conda-forge-linter
Copy link

Hi! This is the friendly automated conda-forge-linting service.

I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

recipe/migrations/python311.yaml Outdated Show resolved Hide resolved
primary_key: python
ordering:
python:
- 3.6.* *_cpython
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to list 3.6 and 3.7 here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah was wondering the same thing. Saw this in our PyPy migrator

- 3.6.* *_cpython
- 3.7.* *_cpython

Also we had this in the Python 3.10 migrator ( #2008 ) ( even after we dropped Python 3.6, #1955 )

So thinking this is needed for other reasons. Hopefully someone can clarify. Also happy to drop if I've misunderstood

Copy link
Member

Choose a reason for hiding this comment

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

Can you link a PR where this migration has been applied locally? If that works, all is fine.

Copy link
Member Author

Choose a reason for hiding this comment

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

Conda-smithy keeps trying to delete the migrator altogether (as it not merged in conda-forge-pinning). Forgetting the option to tell conda-smithy to override this behavior

Copy link
Member

Choose a reason for hiding this comment

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

It shouldn't hurt to have superfluous entries. Pretty sure we can remove 3.6.
To remove 3.7 we need to #2623 (comment) :

[...] drop 3.7 when 3.11 comes out and we start the migration in October. [...]

As per the comment above, this PR should remove 3.7 from the current pinnings already (because AFAIR we currently don't have code to do add+remove in a single migration).

Copy link
Member

Choose a reason for hiding this comment

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

I've made a PR in conda-forge/pytest-feedstock#152

(The option is --exclusive-config-file ../conda-forge-pinning-feedstock/recipe/conda_build_config.yaml)

Copy link
Member

Choose a reason for hiding this comment

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

As per the comment above, this PR should remove 3.7 from the current pinnings already (because AFAIR we currently don't have code to do add+remove in a single migration).

(NB: If there surfaced new/other (good/important) reasons to drop it after the migration, that's fine by me. I was just reciting the comment/core decision from a few months back.)

Copy link
Member Author

@jakirkham jakirkham Oct 25, 2022

Choose a reason for hiding this comment

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

Ah ok was looking for a way to drop Python 3.7 in the migration, but didn't see it. Went ahead and deleted from the pinning file directly 👍

Thanks Chris! 🙏 Yeah had tried that option, but it was still deleting it for me. Probably missing something. Maybe it matters what the path to the pinning file is? In any event, looks like the PR is doing the right thing, which is encouraging 😄

Copy link
Member

Choose a reason for hiding this comment

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

It needs to be able to find the correct migrations/ folder next to conda_build_config.yaml so perhaps that was your issue?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh I see. Thanks for clarifying! 🙏

Yeah probably. Was trying to point it to conda_build_config.yaml installed in base as opposed to a feedstock, which would not be adjacent to migrations/ 😅

jakirkham and others added 2 commits October 25, 2022 02:23
Co-authored-by: Uwe L. Korn <xhochy@users.noreply.github.com>
Copy link
Member

@chrisburr chrisburr left a comment

Choose a reason for hiding this comment

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

I guess this can be unmarked as draft?

@chrisburr
Copy link
Member

Actually we probably need to fix crossenv before merging this to avoid lots of broken PRs: conda-forge/crossenv-feedstock#34

@chrisburr chrisburr self-requested a review October 25, 2022 13:32
Copy link
Member

@chrisburr chrisburr left a comment

Choose a reason for hiding this comment

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

I've cross-compiled numpy with this now so I think this can be merged

@jakirkham jakirkham marked this pull request as ready for review October 25, 2022 18:15
@jakirkham jakirkham requested a review from a team as a code owner October 25, 2022 18:15
@jakirkham
Copy link
Member Author

cc @conda-forge/core

@chrisburr chrisburr merged commit 57dda43 into conda-forge:main Oct 25, 2022
@jakirkham jakirkham deleted the add_py311 branch October 25, 2022 19:03
@jakirkham
Copy link
Member Author

Thanks Chris! Also thanks everyone for the reviews 🙏

@peastman
Copy link

Are python 3.11 packages supposed to be getting built now? I'm trying to build new packages in conda-forge/openmm-feedstock#95, but it still isn't building for 3.11.

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.

6 participants