You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added a token as a GitHub Actions secret, but I won't have laptop access to upload a wheel until Monday.
Questions:
Currently, building Meson from git will have a *.dist-info Version of 1.7.99, and adding setuptools-scm as a build dependency everywhere isn't desirable at the moment. Is this okay? I may be able to do something with sed to replace the version as part of uploading nightlies, I guess.
We prefer to avoid having "too many" third-party actions. Is there a minimal upload flow to use
Currently, building Meson from git will have a *.dist-info Version of 1.7.99, and adding setuptools-scm as a build dependency everywhere isn't desirable at the moment. Is this okay? I may be able to do something with sed to replace the version as part of uploading nightlies, I guess.
Sure, that's fine. If the supported action is used it automatically takes care of this by using the --force option to overwrite wheels that have a frozen version
We prefer to avoid having "too many" third-party actions. Is there a minimal upload flow to use
If you want to use the supported action then just follow the direction on the README. If you don't, which is fine, you're on your own (though you can always look at how we do things) as we can't support being responsible for everyone's custom workflows.
To be clear though, we're not doing anything special with the supported GitHub Action. We're just using anaconda-client to upload wheels that are built by some other process to the scientific-python-nightly-wheels channel on Anaconda.org. This is essentially the only way to do this, so the GitHub Action is just providing a secure environment that is maintained.
Sure, that's fine. If the supported action is used it automatically takes care of this by using the --force option to overwrite wheels that have a frozen version
Thanks for confirming. Note the help text for --force is bad, then: "Force a package upload regardless of errors". I played around with this to double check.
And it doesn't work with pip install -U meson to upgrade to a new version obviously -- but installing fresh will. Adding setuptools_scm support seems relatively simple though (albeit slightly awkward as its "calculate next version" doesn't do the obvious thing and handle both release candidates and regular dev :P)
All looks good, @eli-schwartz — thanks! I'm going to close this now.
Note the help text for --force is bad, then: "Force a package upload regardless of errors".
Yeah, that's anaconda-client's CLI API, which we can open issues on or make PRs, but in general interactions there are very slow, so I think that it is what it is for the most part.
Activity
eli-schwartz commentedon Mar 27, 2025
https://anaconda.org/eschwartz
I added a token as a GitHub Actions secret, but I won't have laptop access to upload a wheel until Monday.
Questions:
Versionof 1.7.99, and adding setuptools-scm as a build dependency everywhere isn't desirable at the moment. Is this okay? I may be able to do something with sed to replace the version as part of uploading nightlies, I guess.matthewfeickert commentedon Mar 27, 2025
@eli-schwartz That's fine. I seeded the account with the
v1.7.0wheel from PyPI just to create the project (https://anaconda.org/scientific-python-nightly-wheels/meson). You can delete that once you've uploaded a nightly wheel. Note that there's an automatic cleanup policy to keep the wheels somewhat close to some concept of a "nightly".Sure, that's fine. If the supported action is used it automatically takes care of this by using the
--forceoption to overwrite wheels that have a frozen versionupload-nightly-action/upload_wheels.sh
Lines 63 to 67 in 7093839
If you want to use the supported action then just follow the direction on the README. If you don't, which is fine, you're on your own (though you can always look at how we do things) as we can't support being responsible for everyone's custom workflows.
To be clear though, we're not doing anything special with the supported GitHub Action. We're just using
anaconda-clientto upload wheels that are built by some other process to thescientific-python-nightly-wheelschannel on Anaconda.org. This is essentially the only way to do this, so the GitHub Action is just providing a secure environment that is maintained.eli-schwartz commentedon Apr 16, 2025
Thanks for confirming. Note the help text for --force is bad, then: "Force a package upload regardless of errors". I played around with this to double check.
And it doesn't work with pip install -U meson to upgrade to a new version obviously -- but installing fresh will. Adding setuptools_scm support seems relatively simple though (albeit slightly awkward as its "calculate next version" doesn't do the obvious thing and handle both release candidates and regular dev :P)
eli-schwartz commentedon Apr 16, 2025
mesonbuild/meson#14485 to set up publishing.
eli-schwartz commentedon Apr 16, 2025
First purely automated nightly is out: https://github.com/mesonbuild/meson/actions/runs/14500925760/job/40680126727
It is the release candidate so also available via PyPI, but still demonstrates everything is in good working order...
matthewfeickert commentedon Apr 19, 2025
All looks good, @eli-schwartz — thanks! I'm going to close this now.
Yeah, that's
anaconda-client's CLI API, which we can open issues on or make PRs, but in general interactions there are very slow, so I think that it is what it is for the most part.