How to Bump the Version of the Toucan Connectors Project¶
This page describes the process for updating the version of the Toucan Connectors (or toucan-connectors) project that can be found at: https://github.com/ToucanToco/toucan-connectors
Requirements¶
We are assuming that you have already configured an appropriate Python (virtual) environment for development purposes.
-
Be sure to have merged your new code into the master branch of toucan-connectors first before going through these steps.
-
You will need to have installed
bdist_wheel_nameandtwinewith the Python virtual environment you are using for your toucan-connectors project -
Access to shared Toucan folders on Lastpass; you're interested in the Pypi one.
Steps in toucan-connectors¶
-
Go onto the master branch and be sure to have pulled the results of your merge with master branch.
-
Create a new branch with an appropriate name.
-
Find the
setup.pyfile at the root of the project, look for the version and change it to the version you want. -
Commit your change, push to the remote and create a new pull request.
-
Once the pull request has been accepted, go back to master, pull the version change and run
make buildin the terminal. -
Once the new toucan-connectors package has been built, upload it to pypi with
make uploadand with the Toucan credentials obtained from Lastpass -
Optional: you can check to see if the version change was taken into consideration by Pypi by going to their site.
Steps in laputa¶
Now that you have updated your toucan-connectors project on Pypi, it's time to update laputa's dependencies !
-
After being sure that you have the most up-to-date code from laputa's master branch, make a new branch.
-
You just have to update the version of toucan-connectors with poetry with
poetry add 'toucan-connectors==xxx' -E all, and it should be good to go.