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

Username and/or password are wrong with default pypi publish example #108

Closed
happy-machine opened this issue Dec 2, 2022 · 1 comment
Closed

Comments

@happy-machine
Copy link

happy-machine commented Dec 2, 2022

Hi

Im just using the autogenerated CI.yaml

I added my pypyp API token to the Action secrets space as MATURIN_PYPI_TOKEN

Have also tried:

  - 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 get the following error:

2022-12-02T13:22:59.6828501Z [command]/home/runner/work/_temp/d3a970aa-691e-42ba-be92-302145e91c5f/maturin upload --skip-existing /home/runner/work/FastQL/FastQL/fastql-0.1.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_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
2022-12-02T13:22:59.6860026Z 🚀 Uploading 10 packages
2022-12-02T13:23:00.4949066Z ⛔ Username and/or password are wrong
2022-12-02T13:23:00.4976272Z 💥 maturin failed
2022-12-02T13:23:00.4976880Z   Caused by: Username and/or password are wrong
2022-12-02T13:23:00.5014062Z Error: The process '/home/runner/work/_temp/d3a970aa-691e-42ba-be92-302145e91c5f/maturin' failed with exit code 1
2022-12-02T13:23:00.5035140Z ##[error]The process '/home/runner/work/_temp/d3a970aa-691e-42ba-be92-302145e91c5f/maturin' failed with exit code 1
2022-12-02T13:23:00.5036757Z     at ExecState._setResult (/home/runner/work/_actions/messense/maturin-action/v1/dist/index.js:1702:25)
2022-12-02T13:23:00.5037520Z     at ExecState.CheckComplete (/home/runner/work/_actions/messense/maturin-action/v1/dist/index.js:1685:18)
2022-12-02T13:23:00.5038359Z     at ChildProcess.<anonymous> (/home/runner/work/_actions/messense/maturin-action/v1/dist/index.js:1579:27)
2022-12-02T13:23:00.5038814Z     at ChildProcess.emit (node:events:390:28)
2022-12-02T13:23:00.5039543Z     at maybeClose (node:internal/child_process:1064:16)
2022-12-02T13:23:00.5039885Z     at Socket.<anonymous> (node:internal/child_process:450:11)
2022-12-02T13:23:00.5040485Z     at Socket.emit (node:events:390:28)
2022-12-02T13:23:00.5040755Z     at Pipe.<anonymous> (node:net:687:12)
2022-12-02T13:23:00.5204636Z Cleaning up orphan processes
@happy-machine happy-machine changed the title Username and/or password are wrong Username and/or password are wrong with default pypy publish example Dec 2, 2022
@messense
Copy link
Member

messense commented Dec 3, 2022

I added my pypyp API token to the Action secrets space as MATURIN_PYPI_TOKEN

Should be PYPI_API_TOKEN if you are using the default generated CI.yml: https://github.com/PyO3/maturin/blob/6e7b02ffb043bced722d5b163f16ae10accdac17/src/templates/CI.yml.j2#L67

@messense messense closed this as completed Dec 3, 2022
@messense messense changed the title Username and/or password are wrong with default pypy publish example Username and/or password are wrong with default pypi publish example Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants