Skip to content

InvalidDistribution: Cannot find file (or expand pattern) #1036

@tuananh

Description

@tuananh

Is there an existing issue for this?

  • I have searched the existing issues (open and closed), and could not find an existing issue

What keywords did you use to search existing issues?

No response

Please describe why your using this option

i use this through pypa/gh-action-pypi-publish@release/v1

      - name: Publish package distributions to PyPI
        uses: pypa/gh-action-pypi-publish@release/v1
        with:
          packages-dir: /tmp/output
          password: ${{ secrets.PYPI_API_TOKEN }}
          print-hash: true

however, i got the above error InvalidDistribution: Cannot find file (or expand pattern)

I thought i got the path wrong but i add a debug step before publish and i got

Run ls /tmp/output
event_ruler-0.2.0-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
event_ruler-0.2.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
event_ruler-0.2.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Looks like the files are in-placed.

Anything else you'd like to mention?

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions