Skip to content

Commit 0815b82

Browse files
committed
Use bumpversion to manage version bumping
1 parent 2069c9a commit 0815b82

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

docs/conf.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
# If extensions (or modules to document with autodoc) are in another directory,
99
# add these directories to sys.path here. If the directory is relative to the
1010
# documentation root, use os.path.abspath to make it absolute, like shown here.
11-
sys.path.insert(0, os.path.abspath('..'))
12-
from setup import kw
1311

1412
# Trick autodoc into running without having built the extension modules.
1513
if on_rtd:
@@ -61,7 +59,7 @@
6159
# built documents.
6260
#
6361
# The full version, including alpha/beta/rc tags.
64-
release = kw['version']
62+
release = '0.5.0'
6563

6664
# The short X.Y version.
6765
version = release

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
pytest>=2.6.4
22
Sphinx>=1.3.5
3+
bumpversion>=0.5.3

setup.cfg

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[bumpversion]
2+
current_version = 0.5.0
3+
message = Bump version: {current_version} -> {new_version}
4+
commit = True
5+
tag = True
6+
7+
[flake8]
8+
ignore = W191,E302,E265,E241,F403,E401
9+
max-line-length = 110
10+
11+
[bumpversion:file:setup.py]
12+
13+
[bumpversion:file:docs/conf.py]

0 commit comments

Comments
 (0)