question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Autodeploy to PyPI

See original GitHub issue

As suggested in https://github.com/sixohsix/twitter/issues/356, I’ll set up automated deploys:

  • Deploy to TestPyPI on merge to master, to make sure the release mechanism is working smoothly and avoid surprises on release day
  • Deploy to production PyPI for GitHub releases/tags

I’ve set up a test twitter project on TestPyPI.

@RouxRC If you create an account on https://test.pypi.org, I’ll give you access too.

Then, to use https://github.com/pypa/gh-action-pypi-publish, we then need to create API tokens for TestPyPI and PyPI and store them as secrets under https://github.com/sixohsix/twitter/settings.

TODO:

  1. Add an API token called (say) twitter-ci at https://test.pypi.org/manage/account/token/
  2. Paste the token as TEST_PYPI_PASSWORD at https://github.com/sixohsix/twitter/settings/secrets/actions/new
  3. Repeat for production PyPI https://pypi.org/manage/account/token/, save as PYPI_PASSWORD

More info on PyPI API tokens: https://pypi.org/help/#apitoken

I don’t have access to https://github.com/sixohsix/twitter/settings. @RouxRC Please could you either give me access to that, or please could you follow the instructions above to add the tokens?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
RouxRCcommented, Mar 2, 2021

Lots of thanks @sixohsix & @hugovk!

1reaction
hugovkcommented, Mar 2, 2021

Thank you! I’ve made you both owners of the org as well, and added the PyPI API tokens to https://github.com/python-twitter-tools/twitter/settings/secrets/actions

I’ll get the rest of the autodeploy set up later.

Read more comments on GitHub >

github_iconTop Results From Across the Web

git-auto-deploy - PyPI
Deploy your GitHub, GitLab or Bitbucket projects automatically on Git push events or webhooks. Navigation. Project description; Release history; Download files ...
Read more >
Autodeploy to PyPI · Issue #355 · ultrajson/ultrajson · GitHub
This is to test the release machinery itself and make sure it's working smoothly when it's time for a full release. · It...
Read more >
travis auto deploy to pypi · f524387728 - deb-python-pulp ...
- pip install . # command to run tests.
Read more >
autodeploy 0.2.5.2 on PyPI - Libraries.io
Library for easy deploy - 0.2.5.2 - a Python package on PyPI - Libraries.io. ... License: BSD-3-Clause; Install: pip install autodeploy==0.2.5.2 ...
Read more >
PyPI deployment - Travis CI Docs
Travis CI can automatically release your Python package to PyPI after a successful build. For a minimal configuration, generate PyPI API token and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found