-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Build for CPython 3.11 #120
Conversation
I wonder why tests didn't run. I've pushed your changes in a branch on our side. |
As you can see, Python 3.11 has not been released yet. |
In Github Actions, you can use "3.11.0-rc.2" for the "python-version" key, to test the latest RC of Python3.11 (that should be identical to the final release). |
This is what I did to avoid the overhead of tracking pre-releases. It can be simplified to drop pypy support. If you were interested, I could certainly PR such a change here. - name: Set up ${{ matrix.python.name }}
if: ${{ job.container == '' }}
uses: actions/setup-python@v2
with:
# This allows the matrix to specify just the major.minor version while still
# expanding it to get the latest patch version including alpha releases.
# This avoids the need to update for each new alpha, beta, release candidate,
# and then finally an actual release version. actions/setup-python doesn't
# support this for PyPy presently so we get no help there.
#
# CPython -> 3.9.0-alpha - 3.9.X
# PyPy -> pypy-3.7
python-version: ${{ fromJSON(format('["{0}", "{1}"]', format('{0}.0-alpha - {0}.X', matrix.python.action), matrix.python.action))[startsWith(matrix.python.action, 'pypy')] }}
architecture: x64 |
Also, you only have push configured to trigger the workflow, not pull request activity. py-setproctitle/.github/workflows/test.yml Lines 3 to 4 in 7f9d1ff
Here's an example setup that builds for pushes to on:
push:
branches:
- main
tags:
- v*
pull_request:
branches:
- "*"
schedule:
# Daily at 05:47
- cron: '47 5 * * *' |
fixed in master |
Note that as is now the triggers will result in both push and PR builds when you push code to a PR of your own. Some people are ok with that, I don't like having the double builds. Though note that they are a bit different. The push triggered build is just exactly the commit being built. The PR triggered build is the result of merging the pushed commit into the PR's target branch. It is a bit annoying that there isn't a little more control around these behaviors. |
If you aren't attached to the push trigger for non- |
Python 3.11 was added to GitHub Actions on Oct 26: https://github.com/actions/python-versions/releases/tag/3.11.0-3328127706 |
Huh, looks like 3.11 on macOS maybe changed something about handling a
I didn't find anything interesting from a quick search through the 3.11 changelog. |
Maybe try to resolve |
Wheel not available for Python 3.11 dvarrazzo/py-setproctitle#120
Wheel not available for Python 3.11 dvarrazzo/py-setproctitle#120
@dvarrazzo, well, it's green... I held back tox to <4 to avoid I extended the Obviously it would be good to fix these. Are you ok with those being a separate tasks? |
Working the tox issue at #125. |
.github/workflows/packages.yml
Outdated
env: | ||
CIBW_BUILD: ${{matrix.pyver}}-* | ||
CIBW_PRERELEASE_PYTHONS: True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need a prerelease Python anymore, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been leaving it in personally, but it can certainly be removed. I figure I'll want it when adding 3.12 support and in the interrim it will most likely have no effect.
Feel free to commit this if you want it removed.
CIBW_PRERELEASE_PYTHONS: True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is stated in pretty clear terms that distributing pre-release packages is a bad idea.
There are other occurrences in this changeset: can you please provide a changeset instead of a suggestion? Thank you :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed in 8e70374.
Squashed and rebased on top of #125. Packages for Python 3.11 already uploaded on PyPI. Thank you very much! |
No description provided.