Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish to pypi example doesnt work #1322

Closed
2 tasks done
happy-machine opened this issue Dec 2, 2022 · 5 comments · Fixed by #1323
Closed
2 tasks done

Publish to pypi example doesnt work #1322

happy-machine opened this issue Dec 2, 2022 · 5 comments · Fixed by #1323
Labels
bug Something isn't working

Comments

@happy-machine
Copy link

Bug Description

      - name: Publish to PyPI
        uses: messense/maturin-action@v1
        env:
          MATURIN_USERNAME: my_username
          MATURIN_PASSWORD: my_password
        with:
          command: upload
          args: --skip-existing *

I've tried with both these (even without using the environment to be thorough with a dummy account, and the environment with my real account)
I've also tried the API token (MATURIN_PYPI_TOKEN)

returns:
Username and/or password are wrong

This is the auto generated example so as simple as it gets, thanks

Install Rust target
Install maturin
  Installing 'maturin' from tag 'latest'
  /usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/82da13c0-105[9](https://github.com/happy-machine/FastQL/actions/runs/3601915565/jobs/6070843317#step:3:11)-4a20-9320-ae7bf958f98a -f /home/runner/work/_temp/9c177e6f-7144-46ba-8dad-41927de7a545
  Installed 'maturin' to /home/runner/work/_temp/82da13c0-[10](https://github.com/happy-machine/FastQL/actions/runs/3601915565/jobs/6070843317#step:3:12)59-4a20-9320-ae7bf958f98a/maturin
  /home/runner/work/_temp/82da13c0-1059-4a20-9320-ae7bf958f98a/maturin --version
  maturin 0.14.3
  /usr/bin/python3 -m pip install patchelf
  Defaulting to user installation because normal site-packages is not writeable
  Collecting patchelf
    Downloading patchelf-0.17.0.0-py2.py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.musllinux_1_1_x86_64.whl (332 kB)
       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 332.9/332.9 KB 4.6 MB/s eta 0:00:00
  Installing collected packages: patchelf
  Successfully installed patchelf-0.17.0.0
/home/runner/work/_temp/82da13c0-1059-4a20-9320-ae7bf958f98a/maturin upload --skip-existing /home/runner/work/FastQL/FastQL/fastql-0.1.0-cp310-cp310-macosx_10_9_x86_64.macosx_[11](https://github.com/happy-machine/FastQL/actions/runs/3601915565/jobs/6070843317#step:3:13)_0_arm64.macosx_10_9_universal2.whl /home/runner/work/FastQL/FastQL/fastql-0.1.0-cp310-none-win_amd64.whl /home/runner/work/FastQL/FastQL/fastql-0.1.0-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl /home/runner/work/FastQL/FastQL/fastql-0.1.0-cp311-none-win_amd64.whl /home/runner/work/FastQL/FastQL/fastql-0.1.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl /home/runner/work/FastQL/FastQL/fastql-0.1.0-cp37-none-win_amd64.whl /home/runner/work/FastQL/FastQL/fastql-0.1.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl /home/runner/work/FastQL/FastQL/fastql-0.1.0-cp38-none-win_amd64.whl /home/runner/work/FastQL/FastQL/fastql-0.1.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl /home/runner/work/FastQL/FastQL/fastql-0.1.0-cp39-none-win_amd64.whl
🚀 Uploading 10 packages
⛔ Username and/or password are wrong
💥 maturin failed
  Caused by: Username and/or password are wrong
Error: The process '/home/runner/work/_temp/82da[13](https://github.com/happy-machine/FastQL/actions/runs/3601915565/jobs/6070843317#step:3:15)c0-1059-4a20-9320-ae7bf958f98a/maturin' failed with exit code 1
    at ExecState._setResult (/home/runner/work/_actions/messense/maturin-action/v1/dist/index.js:1702:25)
Error: The process '/home/runner/work/_temp/82da13c0-1059-4a20-9320-ae7bf958f98a/maturin' failed with exit code 1
    at ExecState.CheckComplete (/home/runner/work/_actions/messense/maturin-action/v1/dist/index.js:1685:18)
    at ChildProcess.<anonymous> (/home/runner/work/_actions/messense/maturin-action/v1/dist/index.js:[15](https://github.com/happy-machine/FastQL/actions/runs/3601915565/jobs/6070843317#step:3:17)79:27)
    at ChildProcess.emit (node:events:390:28)
    at maybeClose (node:internal/child_process:1064:[16](https://github.com/happy-machine/FastQL/actions/runs/3601915565/jobs/6070843317#step:3:18))
    at Process.ChildProcess._handle.onexit (node:internal/child_process:[30](https://github.com/happy-machine/FastQL/actions/runs/3601915565/jobs/6070843317#step:3:33)1:5)

Your maturin version (maturin --version)

0.14

Your Python version (python -V)

3.10.6

Your pip version (pip -V)

22.2.2

What bindings you're using

pyo3

Does cargo build work?

  • Yes, it works

If on windows, have you checked that you aren't accidentally using unix path (those with the forward slash /)?

  • Yes

Steps to Reproduce

Create py03 project
Set environment variables for pypy account
attempt to run CI pipeline

@happy-machine happy-machine added the bug Something isn't working label Dec 2, 2022
@messense
Copy link
Member

messense commented Dec 3, 2022

Duplicate of PyO3/maturin-action#108

@messense messense marked this as a duplicate of PyO3/maturin-action#108 Dec 3, 2022
@messense messense closed this as not planned Won't fix, can't repro, duplicate, stale Dec 3, 2022
@messense messense linked a pull request Dec 3, 2022 that will close this issue
@messense
Copy link
Member

messense commented Dec 3, 2022

The bad error message should be fixed by #1323, your problem might be that the package name you want is already taken by someone else.

@happy-machine
Copy link
Author

The bad error message should be fixed by #1323, your problem might be that the package name you want is already taken by someone else.

Thanks I'll wait to see what that reveals.. it definetely isn't the name, the name is available

@messense
Copy link
Member

messense commented Dec 3, 2022

You can try it now with the docker container ghcr.io/pyo3/maturin:main, change the release step to something like:

  release:
    name: Release
    runs-on: ubuntu-latest
    if: "startsWith(github.ref, 'refs/tags/')"
    needs: [ macos, windows, linux ]
    container: ghcr.io/pyo3/maturin:main
    steps:
      - uses: actions/download-artifact@v2
        with:
          name: wheels
      - name: Publish to PyPI
        env:
          MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
        run: maturin upload --skip-existing *

@happy-machine
Copy link
Author

Great thanks, yeh this was my next plan! Thanks for the syntax

@messense messense changed the title Publish to pypy example doesnt work Publish to pypi example doesnt work Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants