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

issue with pypi deployment #28

Open
Richard-Mathie opened this issue Nov 28, 2018 · 1 comment
Open

issue with pypi deployment #28

Richard-Mathie opened this issue Nov 28, 2018 · 1 comment

Comments

@Richard-Mathie
Copy link
Contributor

Writing Flask-MailGun3-0.1.6/setup.cfg
creating dist
Creating tar archive
removing 'Flask-MailGun3-0.1.6' (and everything under it)
/home/travis/virtualenv/pypy2.7-5.10/site-packages/cryptography/hazmat/bindings/openssl/binding.py:163: CryptographyDeprecationWarning: OpenSSL version 1.0.1 is no longer supported by the OpenSSL project, please upgrade. A future version of cryptography will drop support for it.
  utils.CryptographyDeprecationWarning
Uploading distributions to https://upload.pypi.org/legacy/
Uploading Flask-MailGun3-0.1.6.tar.gz
100%|##########| 17.9k/17.9k [00:00<00:00, 69.3kB/s]HTTPError: 403 Client Error: Invalid or non-existent authentication information. for url: https://upload.pypi.org/legacy/
NOTE: Try --verbose to see response content.
Flask_MailGun3.egg-info/PKG-INFO already exists, no checkout
Flask_MailGun3.egg-info/SOURCES.txt already exists, no checkout
Flask_MailGun3.egg-info/dependency_links.txt already exists, no checkout
Flask_MailGun3.egg-info/not-zip-safe already exists, no checkout
Flask_MailGun3.egg-info/requires.txt already exists, no checkout
Flask_MailGun3.egg-info/top_level.txt already exists, no checkout
Could not restore untracked files from stash entry
PyPI upload failed.
failed to deploy

FaradayRF/faradayio#35
travis-ci/travis-ci#10056

@marshallmcdonnell
Copy link

marshallmcdonnell commented Dec 11, 2018

In googling to fix this for my own repository, I came across your issue.

I believe this is due to the build artifacts getting "cleaned" in the "Preparing deploy" step in Travis just before they are deployed to PyPi in the "Deploy Application" step directly after.

The remedy, I found is to add skip_cleanup: true in your .travis.yml

Below is from your build found here: https://travis-ci.org/amey-sam/Flask-MailGun/jobs/460912350

image

Also, since your Travis build has multiple version builds, each one will try to deploy your application. The first one to finish will succeed but all others after will fail on the PyPi side with "version already exists" type error. Thus, will also need the skip_existing: true statement as well

dhimmel added a commit to manubot/manubot that referenced this issue Feb 12, 2019
PyPI deployment failed with the following error in the Travis log
https://travis-ci.com/manubot/manubot/jobs/176983327#L1104):
```
Could not restore untracked files from stash entry
PyPI upload failed.
failed to deploy
```

skip_cleanup documentation from
https://docs.travis-ci.com/user/deployment/pypi/#releasing-build-artifacts

> After your tests ran and before the release, Travis CI will
clean up any additional files and changes you made. Maybe that is
not what you want, as you might generate some artifacts that are
supposed to be released, too.

See also:
- amey-sam/MIGRATED-Flask-MailGun#28 (comment)
dhimmel added a commit to manubot/manubot that referenced this issue Feb 12, 2019
PyPI deployment failed with the following error in the Travis log
https://travis-ci.com/manubot/manubot/jobs/176983327#L1104:
```
Could not restore untracked files from stash entry
PyPI upload failed.
failed to deploy
```

skip_cleanup documentation from
https://docs.travis-ci.com/user/deployment/pypi/#releasing-build-artifacts

> After your tests ran and before the release, Travis CI will
clean up any additional files and changes you made. Maybe that is
not what you want, as you might generate some artifacts that are
supposed to be released, too.

See also:
- amey-sam/MIGRATED-Flask-MailGun#28 (comment)
n8henrie added a commit to n8henrie/fauxmo that referenced this issue Jul 4, 2019
Errors in part due to multiple Python versions (which tries to upload to
PyPI for each version).

See:
- amey-sam/MIGRATED-Flask-MailGun#28
- amey-sam/MIGRATED-Flask-MailGun#29
danielhers added a commit to danielhers/streusle that referenced this issue May 3, 2020
danielhers added a commit to danielhers/streusle that referenced this issue May 8, 2020
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

Successfully merging a pull request may close this issue.

2 participants