summaryrefslogtreecommitdiff
path: root/bumper.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-04-22 05:43:18 +0000
committerLars Wirzenius <liw@liw.fi>2021-04-22 05:43:18 +0000
commit4427fe12410f911a9c8f18ea7b3c9643c88f6d5f (patch)
treee05affad9e645047bddee6a93ca69e11445f50fa /bumper.md
parent1600a727446867029451df6f8a181b5a07709efb (diff)
parent24574aef2299925c10eeb9d20a942f36d1d806d4 (diff)
downloadbumper-rs-4427fe12410f911a9c8f18ea7b3c9643c88f6d5f.tar.gz
Merge branch 'tagname-take2' into 'main'
make git tag name be configurable via a template Closes #1 See merge request larswirzenius/bumper!19
Diffstat (limited to 'bumper.md')
-rw-r--r--bumper.md15
1 files changed, 12 insertions, 3 deletions
diff --git a/bumper.md b/bumper.md
index 1fc4336..d00c08c 100644
--- a/bumper.md
+++ b/bumper.md
@@ -146,15 +146,24 @@ release for a Python project.
~~~scenario
given an installed Bumper
-given file foo/setup.py from empty
+given file foo/setup.py from setup.py
+given file foo/setup.py is executable
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
+when I run, in foo, bumper --tag=foo-%v 105.12765.42
then all changes in foo are committed
-then in foo, git tag v105.12765.42 is a signed tag
+then in foo, git tag foo-105.12765.42 is a signed tag
then file foo/lib/version.py matches regex /__version__\s*=\s*"105\.12765\.42"/
~~~
+~~~{#setup.py .file .python}
+#!/usr/bin/env python3
+from distutils.core import setup
+setup(
+ name="vmdb2",
+)
+~~~
+
---
title: bumper &ndash; set version number for a project