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.
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!
After thinking I’d found the golden solution for backups for all my workstations using CrashPlan’s free “computer-to-computer” backups, they announced that they were discontinuing their home version. This meant that I needed to either upgrade to their “new” small business plan ($10 per computer/month) which, as an aside, didn’t include the computer-to-computer backup option (the reason I selected them in the first place) or do as they suggested and migrate to the uber-expensive Carbonite for $50 per computer/year.
You may have noticed things look a bit different around here lately. That is because I’ve recently completed a migration to using HUGO for my CMS. I chose HUGO becuase of its ability to control an entire site using static files and Markdown meaning that I can store the content of my site in Git and keep its history there. Alongside HUGO I’m using hugodeploy to help me build/publish the changes to content here.
I would like to announce that I have finally finished an initial release of a new/recently Open Soruce project named iblox! This Python module is a highly extensible wrapper for the Infoblox WAPI. This project has been in the works for over a year now inside my employer, Level 3 Communications, but I was just recently granted approval to make it open source.
Hope you enjoy the module and if you have any questions/issues please visit my BitBucket page for the project: https://bitbucket.