diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-04-13 10:46:37 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-04-13 11:30:12 +0300 |
commit | ecdbc0b100cc50adffb1262ab485837d5dd2f709 (patch) | |
tree | f24f0c74a0ba8e5b85ab2e46f009e9ff4be9a66f /bumper.md | |
parent | a7cbaaa9be2dfc5e4fcdaf342dba98c923a99ab4 (diff) | |
download | bumper-rs-ecdbc0b100cc50adffb1262ab485837d5dd2f709.tar.gz |
feat: support Python projects
Diffstat (limited to 'bumper.md')
-rw-r--r-- | bumper.md | 30 |
1 files changed, 26 insertions, 4 deletions
@@ -41,6 +41,10 @@ tree, to keep things simple. package's version number. Bumper assumes the file is otherwise up to date for the release, and sets the version to `X.Y.Z-1`. +* Python projects have a `setup.py` file at the root of the source + tree, and at least one `version.py` in a sub-directory where the + version number is stored in the `__version__` variable. + * Releases are marked with signed, annotated git tags named after the release version with a `v` prefix. @@ -74,11 +78,10 @@ Some random text file Bumper knows nothing about. ~~~ -## Creates a release tag +## Sets version for Rust project -This scenario verifies that Bumper creates a git tag to mark a -release. For this to work, Bumper needs to recognize the type of -project. We use a Rust project for simplicity. +This scenario verifies that Bumper creates a git tag to mark a release +for a Rust project. ~~~scenario given an installed Bumper @@ -124,6 +127,25 @@ dummy (0.1.0-1) unstable; urgency=low -- Lars Wirzenius <liw@liw.fi> Tue, 30 Mar 2021 08:33:35 +0300 ~~~ +## Sets version for Python project + +This scenario verifies that Bumper creates a git tag to mark a +release for a Python project. + +~~~scenario +given an installed Bumper +given file foo/setup.py from empty +given file foo/lib/version.py from empty +given all files in foo are committed to git +when I run, in foo, bumper 105.12765.42 +then all changes in foo are committed +then in foo, git tag v105.12765.42 is a signed tag +then file foo/lib/version.py matches regex /__version__\s*=\s*"105\.12765\.42"/ +~~~ + +~~~{#empty .file} +~~~ + --- |