MNT: publish nightly cp313 wheels#16596
Conversation
|
Thank you for your contribution to Astropy! 🌌 This checklist is meant to remind the package maintainers who will review this pull request of some common things to look for.
|
|
👋 Thank you for your draft pull request! Do you know that you can use |
|
There is code change to support Python 3.13, so I wonder if change log is needed after all. Also, as mentioned in #16595 , I wonder if it is still too early. Even if not, maybe put in cron job instead of regular CI? |
|
Daily or weekly, or both ? |
|
Also, code change is only in a test, which as far as I understand isn't considered user facing ? Anyway that was my reasoning for not including a changelog. |
.github/workflows/publish.yml
Outdated
| env: | | ||
| CIBW_BEFORE_BUILD: '${{ ((github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'Build all wheels')) && 'pip install --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple setuptools setuptools_scm cython numpy>=0.0.dev0 extension-helpers') || '' }}' | ||
| CIBW_BUILD_FRONTEND: '${{ ((github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'Build all wheels')) && 'pip; args: --no-build-isolation') || 'build' }}' | ||
| CIBW_ENVIRONMENT: '${{ ((github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'Build all wheels')) && 'PIP_PRE=1 PIP_EXTRA_INDEX_URL=https://pypi.anaconda.org/scientific-python-nightly-wheels/simple') || '' }}' |
There was a problem hiding this comment.
I don't grok the changes here. Why is this needed for Python 3.13?
There was a problem hiding this comment.
Building and testing on 3.13 currently requires using numpy nightlies, which is the motivation here. I enable PIP_PRE and Python pre-releases permanently when all wheels are required.
I also aligned the code so it's much easier to compare these long conditions.
There was a problem hiding this comment.
I'll revert this when numpy and PyYaml have compatible wheels on PyPI
|
For now, I think weekly is enough? As for code change, I don't know. Depends on the meaning of the change in tested behavior, and also what else would end up changing before Python 3.13 stable is released. Too early to tell, maybe. |
|
I've moved the most fundamental bit (testing weekly) over to #16600. This PR is now focused on nightly wheels and will wait for OpenAstronomy/github-actions-workflows#212 |
19454ba to
4ae12f4
Compare
| # fallback to a no-op decorator | ||
| dec = lambda f: f | ||
|
|
||
| @dec |
There was a problem hiding this comment.
Can we just xfail with condition like https://docs.pytest.org/en/stable/how-to/skipping.html#condition-parameter instead of invoking lambda? Thanks.
There was a problem hiding this comment.
We already have global xfail_strict setting.
There was a problem hiding this comment.
I didn't remember this was allowed and couldn't load the documentation initially, thanks for reminding me. Done !
4ae12f4 to
21595b9
Compare
.github/workflows/publish.yml
Outdated
| CIBW_TEST_SKIP: '*cp313*' | ||
| # TODO: remove CIBW_TEST_SKIP for cp313 after | ||
| # https://github.com/astropy/astropy/pull/16659 is merged |
There was a problem hiding this comment.
Do we still need this now that we have xfailed the modeling test?
There was a problem hiding this comment.
whoops, no we don't. I'll remove this in #16659
|
We don't do nightly wheel from release branch. I don't see why we need to backport for now, especially if we're going to revert this and that later. We can worry about backport branch when we're ready to actually add Python 3.13 to regular CI. |
|
Looking at CPython schedule: Would take a while for upstream packages to do release with stable support for it. Not to mention conda. And our own v7.0 feature freeze is tentatively 2024-10-25, so we might even be able to get away with not supporting Python 3.13 in the v6.1.x series. |
This comment was marked as resolved.
This comment was marked as resolved.
|
@bsipocz , if you don't see the Python 3.13 wheels tomorrow, please open new issue. Thanks! astropy/.github/workflows/publish.yml Lines 5 to 6 in ad86d7e |
|
They're up now https://pypi.anaconda.org/astropy/simple/astropy/ |
…6596 WHL: revert temporary config for CPython 3.13 from #16596
Description
Partly address #16595.