Skip to content

Add meson #125

Closed
Closed

Description

@matthewfeickert

(Moving from mesonbuild/meson#14419)

@eli-schwartz Please have a member of the meson team complete the missing items from the checklist to get started.

image

If you'd also like to use the scientific/upload-nightly-action GitHub Action please check out the action repo's README. If you need to collect wheels from different CI jobs, consider creating a new GitHub Actions workflow with logic similar to matplotlib's or Awkward's.

If you have any questions please just ask here!

Activity

  1. eli-schwartz commented on Mar 27, 2025

    @eli-schwartz

    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:

    • 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
  2. matthewfeickert commented on Mar 27, 2025

    @matthewfeickert
    MemberAuthor

    I added a token as a GitHub Actions secret, but I won't have laptop access to upload a wheel until Monday.

    @eli-schwartz That's fine. I seeded the account with the v1.7.0 wheel 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".

    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.

    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

    anaconda --token "${ANACONDA_TOKEN}" upload \
    --force \
    --user "${ANACONDA_ORG}" \
    ${LABEL_ARGS} \
    "${INPUT_ARTIFACTS_PATH}"/*.whl

    • 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.

  3. eli-schwartz commented on Apr 16, 2025

    @eli-schwartz

    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.

    [WARNING] Distribution "meson-1.7.99-py3-none-any.whl" already exists. Removing.
    Creating package "meson"
    Creating release "1.7.99"
    

    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)

  4. eli-schwartz commented on Apr 16, 2025

    @eli-schwartz

    mesonbuild/meson#14485 to set up publishing.

  5. eli-schwartz commented on Apr 16, 2025

    @eli-schwartz

    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...

  6. matthewfeickert commented on Apr 19, 2025

    @matthewfeickert
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions