CICD to PyPi with Bitbucket Pipelines - UPDATED

There have been many updates to Atlassian Bitbucket since I wrote the article CICD to PyPI with Bitbucket Pipelines. Because of these updates, I’ve decided to re-publish my Pipelines configuration along with how I’m now using Pipelines to test and automatically publish my Python Modules and Packages to PyPi. Here is my Bitbucket Pipeline configuration for an example project: image: python:latest pipelines: default: - step: &py37 name: Python 3.7 Tests image: python:3.

CICD to PyPI with Bitbucket Pipelines

I use Bitbucket for source control and I absolutely love Bitbucket Pipelines. I have been using Pipelines for a while to do automated testing of many of my Python projects utilizing tox. However, the one piece that was missing was the Continuous Deployment to PyPI. I started by following the documentation on Atlassian’s own site but found it to not be complete. Couple that with some of the recent updates to Bitbucket Pipelines I’ve decided to update with my own FAQ on how I do it!