Skip to content

Commit

Permalink
Cleanup version number handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
rbtcollins committed Jul 10, 2015
1 parent 18c9bbd commit e795a4a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
1 change: 0 additions & 1 deletion __version__.py

This file was deleted.

3 changes: 3 additions & 0 deletions docs/index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@ Python 2.7 or higher.
Releasing
=========

NB: please use semver. Bump the major component on API breaks, minor on all
non-bugfix changes, patch on bugfix only changes.

1. tag -s, push --tags origin master
2. setup.py sdist bdist_wheel upload -s

Expand Down
10 changes: 7 additions & 3 deletions mock/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
from __future__ import absolute_import

__all__ = (
'__version__',
'version_info',
'Mock',
'MagicMock',
'patch',
Expand All @@ -52,9 +54,6 @@
)


__version__ = '1.1.0dev1'


from functools import partial
import inspect
import pprint
Expand All @@ -67,6 +66,11 @@

import six
from six import wraps
from pbr.version import VersionInfo

_v = VersionInfo('mock').semantic_version()
__version__ = _v.release_string()
version_info = _v.version_tuple()

import mock

Expand Down
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
funcsigs;python_version<"3.3"
# For runtime needs this is correct. For setup_requires needs, 1.2.0 is needed
# but setuptools can't cope with conflicts in setup_requires, so thats
# unversioned.
pbr>=0.11
six

0 comments on commit e795a4a

Please sign in to comment.