Coder Social home page Coder Social logo

Comments (7)

alugowski avatar alugowski commented on June 11, 2024

One option would be to support a recursive scan of dist/, even if to only support one level. Currently the action complains about any subdirectory of dist. A recurse would allow directly chaining the download (like with v3), skipping that flatten step in my example. Then the only change needed to folks' workflows would be to add unique artifact names in the upload step.

from gh-action-pypi-publish.

woodruffw avatar woodruffw commented on June 11, 2024

FWIW, this restriction is inherited from twine: twine expects to be given one or more files, which this action does by tacking * onto the packages-dir input. The action itself isn't actually aware of nested directories.

from gh-action-pypi-publish.

alugowski avatar alugowski commented on June 11, 2024

If using twine directly then tacking on */* works: https://github.com/scikit-build/cmake-python-distributions/pull/438/files

from gh-action-pypi-publish.

webknjaz avatar webknjaz commented on June 11, 2024

This is already solved in the download action. Not sure if I want extra pattern matching here.

from gh-action-pypi-publish.

alugowski avatar alugowski commented on June 11, 2024

This is already solved in the download action. Not sure if I want extra pattern matching here.

Correct. Just to clarify, download-artifact just released v4.1 which includes a merge-multiple switch that does the flattening. Now this is sufficient:

      - uses: actions/download-artifact@v4
        with:
          path: dist
          merge-multiple: true

This is now just a documentation issue, to update the examples so folks know about this non-default switch.

from gh-action-pypi-publish.

webknjaz avatar webknjaz commented on June 11, 2024

This is now just a documentation issue, to update the examples so folks know about this non-default switch.

So this action doesn't showcase the use of matrices and other complex stuff. Neither does my PyPUG guide.
I suppose, it might be more useful to document it in cibuildwheel: pypa/cibuildwheel#1699.

from gh-action-pypi-publish.

alugowski avatar alugowski commented on June 11, 2024

This is now just a documentation issue, to update the examples so folks know about this non-default switch.

So this action doesn't showcase the use of matrices and other complex stuff. Neither does my PyPUG guide. I suppose, it might be more useful to document it in cibuildwheel: pypa/cibuildwheel#1699.

Makes sense. I already have a PR for cibuildwheel docs: pypa/cibuildwheel#1705

from gh-action-pypi-publish.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.