remove pbr and replace with simpler to understand and discover code.
diff --git a/.gitignore b/.gitignore
index daa8ca6..70d2e1a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,8 +12,4 @@
*.pyc
.testrepository
.*.swp
-AUTHORS
-ChangeLog
-.eggs
-README.saved
README.html
diff --git a/docs/conf.py b/docs/conf.py
index 6368a01..d2be5a5 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -71,10 +71,7 @@
# The default replacements for |version| and |release|, also used in various
# other places throughout the built documents. Supplied by pbr.
#
-# The short X.Y version.
-version = mock.mock._v.brief_string()
-# The full version, including alpha/beta/rc tags.
-release = mock.__version__
+version = release = mock.mock.__version__
# There are two options for replacing |today|: either, you set today to some
# non-false value, then it is used: (Set from pbr)
diff --git a/mock/mock.py b/mock/mock.py
index 5d2b02d..4bdc70b 100644
--- a/mock/mock.py
+++ b/mock/mock.py
@@ -67,11 +67,9 @@
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()
+__version__ = '2.0.0'
+version_info = tuple(__version__.split('.'))
import mock
diff --git a/requirements.txt b/requirements.txt
index 31bbe5d..bca9f9b 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,6 +1,2 @@
funcsigs>=1;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>=1.9
diff --git a/setup.cfg b/setup.cfg
index 5597e2f..02bd9fd 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -29,6 +29,9 @@
keyword =
testing, test, mock, mocking, unittest, patching, stubs, fakes, doubles
+[options]
+python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*'
+
[extras]
docs =
sphinx
diff --git a/setup.py b/setup.py
index 6154ba7..d47345f 100755
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,10 @@
-#!/usr/bin/env python
+import re
+from os.path import join
+
import setuptools
setuptools.setup(
- setup_requires=['pbr>=1.3', 'setuptools>=17.1'],
- python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
- pbr=True)
+ version=re.search("__version__ = '([^']+)'",
+ open(join('mock', 'mock.py')).read()).group(1),
+ long_description=open('README.rst').read(),
+)