I'm trying to integrate building of a wheel file into a Bamboo plan. Ultimately, I'd like to tie part of the version tag of the .whl file to the Bamboo build number in someway, i.e. the pre-release for version 0 would be 0.dev1, 0.dev2, 0.dev3 for successive builds.
The old egg format used to allow the --tag_build
option, which would allow you to specify a tag that is appended to the version
parameter defined in the setup
function in the setup.py
file. The bdist_wheel
command apparently doesn't have an equivalent option.
This dashed my hopes of running setup.py
from a script, using the Bamboo build number variable. I'm looking for any other suggestions other than either converting the build script to Powershell, or generating setup.py
on the fly each build.