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

Travis deploy fails #17

Open
mplanchard opened this issue Jan 13, 2020 · 1 comment
Open

Travis deploy fails #17

mplanchard opened this issue Jan 13, 2020 · 1 comment

Comments

@mplanchard
Copy link
Owner

Possibly due to this: https://stackoverflow.com/questions/32320746/pypi-deployment-error-invalid-option-password

Manually deploying 2.0.0 for the moment

@Paebbels
Copy link
Contributor

Somehow, your pipeline stops before deploying. It's still installing deployment dependencies.

See this successful run of one of my packages:
image
https://travis-ci.com/Paebbels/pyTerminalUI/builds/142492686#L212

Here is your line: https://travis-ci.org/mplanchard/pydecor/jobs/636181063#L212

What are differences?

  • You use multiple jobs, I have just one because my package is so simple.
  • you run on Travis.org, I run on Travis.com

Travis converts (currently, if you trigger it) accounts from org to com.

Questions:

  • Have you configured a secret called PYPI_TOKEN with a value like this pypi-AgEIcH......................PF7ZClU?
  • What access rights are set for the token? Has it full account right or package push rights?
    • I recommend to limit it to one package only.

You can deploy from you local machine with a token for testing purposes:

  1. create a .pypirc file in your home directory
    [pypi]
    username: __token__
    password: pypi-AgEIcHl...................pkRwHB9ng
    
  2. use twine to publish
    twine upload dist/*

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