pip install lase
Prerequisites:
- Git-based project with
master
anddevelop
branches present, and Maven-style version number in theVERSION
file
See lase --help
for the list of all options.
cd /path/to/project/git/repo
lase --remote origin start
The above command will, and create the release/X.Y.Z
release branch where X.Y.Z
is the version
being released, bumping the version in the VERSION
file on the develop
branch at the same time.
After reviewing the diff between the release and master
branches proceed to the finish step below.
cd /path/to/project/git/repo
lase --remote origin finish
Prerequisites:
- Python 3
- pipenv
Initialize a virtualenv with dev dependencies installed:
make develop
Project dependencies shoud always be specified in setup.py
using the
compatible release
notation.
Run the following after updating setup.py
make update-deps
Replace <PACKAGE>
with the actual name, and <VERSION>
with the MAJOR.MINOR
(or MAJOR.MINOR.PATCH for versions below 1.0.0) version of the package.
Read more on compatible releases.
pipenv install --dev <PACKAGE>~=<VERSION>
make test
Prerequisites:
make e2e-test
Variables:
RELEASE_REMOTE
set to the name of the Git remote. Set to empty to disable pushes to remote. Default value:origin
RELEASE_VERSION
override the release version, or leave empty to release the current snapshot (-SNAPSHOT
will be stripped off). Empty by default
make release-start
Variables:
RELEASE_REMOTE
set to the name of the Git remote. Set to empty to disable pushes to remote. Default value:origin
RELEASE_PUBLISH
set to1
to enable publishing of the sdist tarball after the release`
make release-finish
release-finish
will leave the release Git tag checked out on completion.
make publish