Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #241 from Nurdok/master
Browse files Browse the repository at this point in the history
Setup better bumpversion and pytest configurations
  • Loading branch information
Nurdok committed Mar 19, 2017
2 parents 286d933 + 94065f6 commit 22e6b88
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 28 deletions.
17 changes: 17 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[bumpversion]
current_version = 2.0.0rc
commit = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>.*))?
serialize =
{major}.{minor}.{patch}{release}
{major}.{minor}.{patch}
tag_name = {new_version}

[bumpversion:part:release]
optional_value = production
values =
rc
production

[bumpversion:file:setup.py]
[bumpversion:file:src/pydocstyle/utils.py]
17 changes: 0 additions & 17 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,19 +1,2 @@
[bumpversion]
current_version = 2.0.0rc
commit = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>.*))?
serialize =
{major}.{minor}.{patch}{release}
{major}.{minor}.{patch}

[wheel]
universal = 1

[bumpversion:part:release]
optional_value = production
values =
rc
production

[bumpversion:file:src/pydocstyle/utils.py]

10 changes: 2 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@
import os
from setuptools import setup


this_dir = os.path.dirname(__file__)

with open(os.path.join(this_dir, 'src', 'pydocstyle', 'utils.py')) as f:
for line in f:
if line.startswith('__version__'):
version = eval(line.split('=')[-1])

# Do not update the version manually - it is managed by `bumpversion`.
version = '2.0.0rc'

setup(
name='pydocstyle',
Expand Down
1 change: 1 addition & 0 deletions src/pydocstyle/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from itertools import izip_longest as zip_longest


# Do not update the version manually - it is managed by `bumpversion`.
__version__ = '2.0.0rc'
log = logging.getLogger(__name__)

Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ envlist = py27, py33, py34, py35, pypy, docs
setenv =
LANG=C
LC_ALL=C
commands = py.test --pep8 --cache-clear
commands = py.test --pep8 --cache-clear src/tests
deps =
-rrequirements/runtime.txt
-rrequirements/tests.txt
-rrequirements/runtime.txt
-rrequirements/tests.txt

[testenv:docs]
changedir=docs
Expand Down

0 comments on commit 22e6b88

Please sign in to comment.