Skip to content

Commit

Permalink
Merge pull request ethereum#457 from ethereum/carver/bumpversion
Browse files Browse the repository at this point in the history
Configuration for bumpversion
  • Loading branch information
carver authored Nov 22, 2017
2 parents e62e1b9 + 70ba354 commit 175d721
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[bumpversion]
current_version = 4.0.0-beta.1
commit = True
tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<stage>[^.]*)\.(?P<devnum>\d+))?
serialize =
{major}.{minor}.{patch}-{stage}.{devnum}
{major}.{minor}.{patch}

[bumpversion:part:stage]
optional_value = stable
first_value = stable
values =
alpha
beta
stable

[bumpversion:part:devnum]

[bumpversion:file:setup.py]
search= version='{current_version}',
replace= version='{new_version}',
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,23 @@ For Debian-like systems:
apt install pandoc
```

*TODO* other release instructions
To release a new version:

```sh
bumpversion $$VERSION_PART_TO_BUMP$$
git push && git push --tags
make release
```

#### How to bumpversion

The version format for this repo is `{major}.{minor}.{patch}` for stable, and
`{major}.{minor}.{patch}-{stage}.{devnum}` for unstable (`stage` can be alpha or beta).

To issue the next version in line, use bumpversion and specify which part to bump,
like `bumpversion minor` or `bumpversion devnum`.

If you are in a beta version, `bumpversion stage` will switch to a stable.

To issue an unstable version when the current version is stable, specify the
new version explicitly, like `bumpversion --new-version 4.0.0-alpha.1 devnum`
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
bumpversion
eth-testrpc>=1.3.3
ethereum>=1.6.1,<2.0
flaky>=3.3.0
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

setup(
name='web3',
# *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility.
version='4.0.0-beta.1',
description="""Web3.py""",
long_description_markdown_filename='README.md',
Expand Down

0 comments on commit 175d721

Please sign in to comment.