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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Python 3.12 #2188

Merged
merged 2 commits into from Nov 21, 2023
Merged

Add support for Python 3.12 #2188

merged 2 commits into from Nov 21, 2023

Conversation

hugovk
Copy link
Contributor

@hugovk hugovk commented Sep 16, 2023

The second Python 3.12 release candidate is out! 馃殌

Call to action

We strongly encourage maintainers of third-party Python projects to prepare their projects for 3.12 compatibilities during this phase, and where necessary publish Python 3.12 wheels on PyPI to be ready for the final release of 3.12.0.

Python 3.12.0 final is due out in two weeks: 2023-10-02.

See also https://dev.to/hugovk/help-test-python-312-beta-1508/

@deckar01
Copy link
Member

Here are the changes I proposed: fe6b3a5

A little off topic, but is there a reason we are limiting the push trigger to tagged dev branches? The release job is already restricted to tags. It would be a nice assurance for contributors to know that their branches are stable before opening a PR (and maybe less noise for maintainers). bc08f5b

.github/workflows/build-release.yml Show resolved Hide resolved
.github/workflows/build-release.yml Outdated Show resolved Hide resolved
setup.py Show resolved Hide resolved
@lafrech
Copy link
Member

lafrech commented Sep 16, 2023

A little off topic, but is there a reason we are limiting the push trigger to tagged dev branches? The release job is already restricted to tags. It would be a nice assurance for contributors to know that their branches are stable before opening a PR (and maybe less noise for maintainers). bc08f5b

I don't mind. I often allow CI on any branch push in my repos to fix things before a PR. I suppose the idea was to avoid 2 CI runs for a push in a PR but I'm realizing that once we enable it on push, we don't need it on PR, do we?

I always thought it didn't matter because most contributors push on their repo so only the few people here with push permissions would be affected. I'm realizing that this config may also affect contributors in their own repos. Right? In this case it's nice if CI runs in their repo before the PR is created. And if not, then we need to keep the PR trigger for external contributions.

@hugovk
Copy link
Contributor Author

hugovk commented Sep 16, 2023

TODO for a repo admin:

  • Remove 3.11 from required checks and add 3.12:
image

@hugovk
Copy link
Contributor Author

hugovk commented Sep 16, 2023

A little off topic, but is there a reason we are limiting the push trigger to tagged dev branches? The release job is already restricted to tags. It would be a nice assurance for contributors to know that their branches are stable before opening a PR (and maybe less noise for maintainers). bc08f5b

Yes, this is a very good idea!

I pushed to dev to make sure I could test my changes before opening a PR. If I'd have wanted to create another PR, I wouldn't be able to test it on CI. I strongly believe contributors should use feature branches and should be able to test them first :)

@deckar01
Copy link
Member

once we enable it on push, we don't need it on PR, do we?

idk. Does that rebase on the target branch or trigger the checks UI?

@lafrech
Copy link
Member

lafrech commented Sep 16, 2023

All checks appear in CI checks UI: marshmallow-code/flask-smorest#551.

@hugovk
Copy link
Contributor Author

hugovk commented Nov 18, 2023

Anything more I need to do here? Thanks!

@lafrech lafrech merged commit 623fff6 into marshmallow-code:dev Nov 21, 2023
8 checks passed
@lafrech
Copy link
Member

lafrech commented Nov 21, 2023

I guess not. I merged. I updated the required checks.

The allow-prereleases line is not needed anymore but it doesn't hurt and it's there for next time.

@deckar01

A little off topic, but is there a reason we are limiting the push trigger to tagged dev branches? The release job is already restricted to tags. It would be a nice assurance for contributors to know that their branches are stable before opening a PR (and maybe less noise for maintainers). bc08f5b

No problem with this. And it is probably better to keep both push and PR (for the rebase on the target branch).

Thanks @hugovk.

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.

None yet

3 participants