Hello community,
here is the log from the commit of package python-backports.unittest_mock for
openSUSE:Factory checked in at 2017-08-10 13:42:27
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-backports.unittest_mock (Old)
and /work/SRC/openSUSE:Factory/.python-backports.unittest_mock.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-backports.unittest_mock"
Thu Aug 10 13:42:27 2017 rev:3 rq:509798 version:1.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-backports.unittest_mock/python-backports.unittest_mock.changes
2017-06-02 10:30:21.821072610 +0200
+++
/work/SRC/openSUSE:Factory/.python-backports.unittest_mock.new/python-backports.unittest_mock.changes
2017-08-10 13:42:28.978653207 +0200
@@ -1,0 +2,16 @@
+Mon Jul 10 12:21:50 UTC 2017 - [email protected]
+
+- Update to version 1.3
+ * Merge with skeleton.
+ * Use pkgutil for backports namespace package.
+ 1.2.1:
+ * Bump setuptools_scm and other skeleton updates, including:
+ Drop support for setup.py build_sphinx because that usage
+ conflicts with the usage required by readthedocs, which always
+ runs the docs build from ./docs/ instead of ./. Also drop
+ support for build_sphinx because the dependency resolution of
+ that command relies on easy_install, which is also deprecated.
+ The proper way to build docs now is to install the requirements
+ in docs/requirements.txt and then invoke sphinx natively.
+
+-------------------------------------------------------------------
Old:
----
backports.unittest_mock-1.1.1.tar.gz
New:
----
backports.unittest_mock-1.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-backports.unittest_mock.spec ++++++
--- /var/tmp/diff_new_pack.04jMxa/_old 2017-08-10 13:42:29.838532165 +0200
+++ /var/tmp/diff_new_pack.04jMxa/_new 2017-08-10 13:42:29.866528224 +0200
@@ -17,7 +17,7 @@
Name: python-backports.unittest_mock
-Version: 1.1.1
+Version: 1.3
Release: 0
Summary: Backports of unittest_mock
License: MIT
@@ -26,7 +26,7 @@
Source:
https://files.pythonhosted.org/packages/source/b/backports.unittest_mock/backports.unittest_mock-%{version}.tar.gz
BuildRequires: python
# NOTE:
-# %{python_sitelib}/backports is a namespace package, and so under python 2 it
must have a proper namespace __init__.py
+# %%{python_sitelib}/backports is a namespace package, and so under python 2
it must have a proper namespace __init__.py
# python-backports provides this __init__.py to prevent backports packages
from conflicting.
# Please see:
# https://pypi.python.org/pypi/backports/
@@ -51,6 +51,7 @@
%prep
%setup -q -n backports.unittest_mock-%{version}
+rm -rf backports.unittest_mock.egg-info
%build
python2 setup.py build
@@ -60,7 +61,8 @@
--root=%{buildroot} --prefix=%{_prefix}
%check
-python2 setup.py test
+PYTHONPATH=%{buildroot}%{python_sitelib} python2 %{_bindir}/py.test -v
+rm %{buildroot}%{python_sitelib}/backports/__init__.py*
%files
%defattr(-,root,root)
++++++ backports.unittest_mock-1.1.1.tar.gz ->
backports.unittest_mock-1.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/backports.unittest_mock-1.1.1/.hgignore
new/backports.unittest_mock-1.3/.hgignore
--- old/backports.unittest_mock-1.1.1/.hgignore 2015-06-06 14:21:04.000000000
+0200
+++ new/backports.unittest_mock-1.3/.hgignore 1970-01-01 01:00:00.000000000
+0100
@@ -1,2 +0,0 @@
-build
-dist
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/backports.unittest_mock-1.1.1/.hgtags
new/backports.unittest_mock-1.3/.hgtags
--- old/backports.unittest_mock-1.1.1/.hgtags 2015-12-26 15:55:12.000000000
+0100
+++ new/backports.unittest_mock-1.3/.hgtags 1970-01-01 01:00:00.000000000
+0100
@@ -1,3 +0,0 @@
-d4db0b2be5b76b3d7c49e3a124cb567dc55eda68 1.0
-79fd59e85ac43e66fb97826d061b81786c1450a5 1.1
-29e9cccf2be9f1079ed266126ffcf13ef700ba9b 1.1.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/backports.unittest_mock-1.1.1/.readthedocs.yml
new/backports.unittest_mock-1.3/.readthedocs.yml
--- old/backports.unittest_mock-1.1.1/.readthedocs.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/backports.unittest_mock-1.3/.readthedocs.yml 2017-05-13
04:04:59.000000000 +0200
@@ -0,0 +1,5 @@
+python:
+ version: 3
+ extra_requirements:
+ - docs
+ pip_install: true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/backports.unittest_mock-1.1.1/.travis.yml
new/backports.unittest_mock-1.3/.travis.yml
--- old/backports.unittest_mock-1.1.1/.travis.yml 2015-12-26
15:28:11.000000000 +0100
+++ new/backports.unittest_mock-1.3/.travis.yml 2017-05-13 04:04:59.000000000
+0200
@@ -1,8 +1,25 @@
sudo: false
language: python
python:
- - 2.7
- - 3.5
+- 2.6
+- 2.7
+- 3.6
+install:
+- pip install tox "setuptools>=28.2"
script:
- - pip install -U pytest
- - python setup.py test
+- tox
+branches:
+ except:
+ - skeleton
+deploy:
+ provider: pypi
+ server: https://upload.pypi.org/legacy/
+ on:
+ tags: true
+ all_branches: true
+ python: 3.6
+ user: jaraco
+ distributions: dists
+ skip_upload_docs: true
+ password:
+ secure:
hvxJUMYKOlVTa4d0bhO7FfYOLu6lIR5fNYl97NLXlp7MhQ+/ZWKRiu0OZ/VHBDe0ZaJAp3Gq9zw9QsikNLzMBuA8miyW1L0ASw+rAm5U3W/FoYOgftUhdF/vjI84pDgMHLdRKlXlyRKpN8OtjBalQetP4yPUyqSUgZY27Q/ZO4Sbap34CHU8hhoCfLAnc+sHl9eDwkMpJd04kQLjui0QwsHH/ChVPL+kEIbWLeJsd5SLvlBUhVuCqS5O/UKaZOdJVa0tVWtPKAJhj1cUMKQt3GtGjlIXXrpIX5Mq4xfxH5jRjwQu0NapCIlT0u59T8H0ollt5wuamWs3e2hlCiQsq7Yy36a/OpF1qzg06cro+0FheDYaeQuN0tC1/y/jtEdNTu7VzVNDINfBV1T7liCeOkEKSUyCajlRVa1cCVtNV8ct2VuJiSa+Kao14OUFCHwqH3IZHdEm1QCpScuYZjaoj9hqIPQPFYspJl5OfTGIhhXuZcwWU0zofLJSTjSxIMkkJHNaszGZzZiPTh0tjBlfPImj28/zY0mywHiq0xBYN937x6u1JVIRu8yTAqfMzfreNXywsjuejpVtjPGYRM1fQrtnhoGZrpCk/38XV5XdKlrYZmsZtSy90GWFHlsHemtnAR6TGmzGeXAZIT2uhjFymg2CYLgGENhO4pfVFxa1ork=
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/backports.unittest_mock-1.1.1/CHANGES.rst
new/backports.unittest_mock-1.3/CHANGES.rst
--- old/backports.unittest_mock-1.1.1/CHANGES.rst 2015-12-26
15:54:56.000000000 +0100
+++ new/backports.unittest_mock-1.3/CHANGES.rst 2017-05-13 04:04:59.000000000
+0200
@@ -1,3 +1,22 @@
+1.2.1
+=====
+
+Bump setuptools_scm and other skeleton updates, including:
+
+- Drop support for `setup.py build_sphinx` because that usage
+ conflicts with the usage required by readthedocs, which
+ always runs the docs build from `./docs/` instead of `./`.
+ Also drop support for build_sphinx because the dependency
+ resolution of that command relies on easy_install, which is
+ also deprecated. The proper way to build docs now is to
+ install the requirements in docs/requirements.txt and then
+ invoke sphinx natively.
+
+1.2
+===
+
+Add support for Python 2.6 and 3.2.
+
1.1.1
=====
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/backports.unittest_mock-1.1.1/PKG-INFO
new/backports.unittest_mock-1.3/PKG-INFO
--- old/backports.unittest_mock-1.1.1/PKG-INFO 2015-12-26 15:55:19.000000000
+0100
+++ new/backports.unittest_mock-1.3/PKG-INFO 2017-05-13 04:05:21.000000000
+0200
@@ -1,13 +1,20 @@
-Metadata-Version: 1.1
+Metadata-Version: 1.2
Name: backports.unittest_mock
-Version: 1.1.1
+Version: 1.3
Summary: backports.unittest_mock
Home-page: https://github.com/jaraco/backports.unittest_mock
Author: Jason R. Coombs
Author-email: [email protected]
License: UNKNOWN
-Description: backports.unittest_mock
- =======================
+Description: .. image::
https://img.shields.io/pypi/v/backports.unittest_mock.svg
+ :target: https://pypi.org/project/backports.unittest_mock
+
+ .. image::
https://img.shields.io/pypi/pyversions/backports.unittest_mock.svg
+
+ .. image:: https://img.shields.io/pypi/dm/backports.unittest_mock.svg
+
+ .. image::
https://img.shields.io/travis/jaraco/backports.unittest_mock/master.svg
+ :target: http://travis-ci.org/jaraco/backports.unittest_mock
Provides a function "install()" which makes the "mock" module
available as "unittest.mock" on Python 3.2 and earlier.
@@ -15,6 +22,14 @@
Also advertises a pytest plugin which configures unittest.mock
automatically.
+
+ License
+ =======
+
+ License is indicated in the project metadata (typically one or more
+ of the Trove classifiers). For more details, see `this explanation
+ <https://github.com/jaraco/skeleton/issues/1>`_.
+
Usage
=====
@@ -32,8 +47,11 @@
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
+Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
+Requires-Python: >=2.6
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/backports.unittest_mock-1.1.1/README.rst
new/backports.unittest_mock-1.3/README.rst
--- old/backports.unittest_mock-1.1.1/README.rst 2015-12-26
15:28:17.000000000 +0100
+++ new/backports.unittest_mock-1.3/README.rst 2017-05-13 04:04:59.000000000
+0200
@@ -1,5 +1,12 @@
-backports.unittest_mock
-=======================
+.. image:: https://img.shields.io/pypi/v/backports.unittest_mock.svg
+ :target: https://pypi.org/project/backports.unittest_mock
+
+.. image:: https://img.shields.io/pypi/pyversions/backports.unittest_mock.svg
+
+.. image:: https://img.shields.io/pypi/dm/backports.unittest_mock.svg
+
+.. image::
https://img.shields.io/travis/jaraco/backports.unittest_mock/master.svg
+ :target: http://travis-ci.org/jaraco/backports.unittest_mock
Provides a function "install()" which makes the "mock" module
available as "unittest.mock" on Python 3.2 and earlier.
@@ -7,6 +14,14 @@
Also advertises a pytest plugin which configures unittest.mock
automatically.
+
+License
+=======
+
+License is indicated in the project metadata (typically one or more
+of the Trove classifiers). For more details, see `this explanation
+<https://github.com/jaraco/skeleton/issues/1>`_.
+
Usage
=====
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/backports.unittest_mock-1.1.1/appveyor.yml
new/backports.unittest_mock-1.3/appveyor.yml
--- old/backports.unittest_mock-1.1.1/appveyor.yml 1970-01-01
01:00:00.000000000 +0100
+++ new/backports.unittest_mock-1.3/appveyor.yml 2017-05-13
04:04:59.000000000 +0200
@@ -0,0 +1,19 @@
+environment:
+
+ APPVEYOR: true
+
+ matrix:
+ - PYTHON: "C:\\Python36-x64"
+ - PYTHON: "C:\\Python27-x64"
+
+install:
+ # symlink python from a directory with a space
+ - "mklink /d \"C:\\Program Files\\Python\" %PYTHON%"
+ - "SET PYTHON=\"C:\\Program Files\\Python\""
+ - "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
+
+build: off
+
+test_script:
+ - "python -m pip install tox"
+ - "tox"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/backports.unittest_mock-1.1.1/backports/__init__.py
new/backports.unittest_mock-1.3/backports/__init__.py
--- old/backports.unittest_mock-1.1.1/backports/__init__.py 2015-06-06
14:21:04.000000000 +0200
+++ new/backports.unittest_mock-1.3/backports/__init__.py 2017-05-13
04:04:59.000000000 +0200
@@ -1 +1 @@
-__import__("pkg_resources").declare_namespace(__name__)
+__path__ = __import__('pkgutil').extend_path(__path__, __name__)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/backports.unittest_mock-1.1.1/backports/unittest_mock/__init__.py
new/backports.unittest_mock-1.3/backports/unittest_mock/__init__.py
--- old/backports.unittest_mock-1.1.1/backports/unittest_mock/__init__.py
2015-06-06 14:28:17.000000000 +0200
+++ new/backports.unittest_mock-1.3/backports/unittest_mock/__init__.py
2017-05-13 04:04:59.000000000 +0200
@@ -1,5 +1,4 @@
import sys
-import importlib
import unittest
@@ -8,7 +7,7 @@
if sys.version_info > (3,3):
return
- mock = importlib.import_module('mock')
+ mock = __import__('mock')
sys.modules['unittest.mock'] = unittest.mock = mock
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/backports.unittest_mock-1.1.1/backports.unittest_mock.egg-info/PKG-INFO
new/backports.unittest_mock-1.3/backports.unittest_mock.egg-info/PKG-INFO
--- old/backports.unittest_mock-1.1.1/backports.unittest_mock.egg-info/PKG-INFO
2015-12-26 15:55:18.000000000 +0100
+++ new/backports.unittest_mock-1.3/backports.unittest_mock.egg-info/PKG-INFO
2017-05-13 04:05:21.000000000 +0200
@@ -1,13 +1,20 @@
-Metadata-Version: 1.1
+Metadata-Version: 1.2
Name: backports.unittest-mock
-Version: 1.1.1
+Version: 1.3
Summary: backports.unittest_mock
Home-page: https://github.com/jaraco/backports.unittest_mock
Author: Jason R. Coombs
Author-email: [email protected]
License: UNKNOWN
-Description: backports.unittest_mock
- =======================
+Description: .. image::
https://img.shields.io/pypi/v/backports.unittest_mock.svg
+ :target: https://pypi.org/project/backports.unittest_mock
+
+ .. image::
https://img.shields.io/pypi/pyversions/backports.unittest_mock.svg
+
+ .. image:: https://img.shields.io/pypi/dm/backports.unittest_mock.svg
+
+ .. image::
https://img.shields.io/travis/jaraco/backports.unittest_mock/master.svg
+ :target: http://travis-ci.org/jaraco/backports.unittest_mock
Provides a function "install()" which makes the "mock" module
available as "unittest.mock" on Python 3.2 and earlier.
@@ -15,6 +22,14 @@
Also advertises a pytest plugin which configures unittest.mock
automatically.
+
+ License
+ =======
+
+ License is indicated in the project metadata (typically one or more
+ of the Trove classifiers). For more details, see `this explanation
+ <https://github.com/jaraco/skeleton/issues/1>`_.
+
Usage
=====
@@ -32,8 +47,11 @@
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
+Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
+Requires-Python: >=2.6
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/backports.unittest_mock-1.1.1/backports.unittest_mock.egg-info/SOURCES.txt
new/backports.unittest_mock-1.3/backports.unittest_mock.egg-info/SOURCES.txt
---
old/backports.unittest_mock-1.1.1/backports.unittest_mock.egg-info/SOURCES.txt
2015-12-26 15:55:18.000000000 +0100
+++
new/backports.unittest_mock-1.3/backports.unittest_mock.egg-info/SOURCES.txt
2017-05-13 04:05:21.000000000 +0200
@@ -1,17 +1,17 @@
-.hgignore
-.hgtags
+.readthedocs.yml
.travis.yml
CHANGES.rst
README.rst
+appveyor.yml
pytest.ini
setup.cfg
setup.py
+tox.ini
backports/__init__.py
backports.unittest_mock.egg-info/PKG-INFO
backports.unittest_mock.egg-info/SOURCES.txt
backports.unittest_mock.egg-info/dependency_links.txt
backports.unittest_mock.egg-info/entry_points.txt
-backports.unittest_mock.egg-info/namespace_packages.txt
backports.unittest_mock.egg-info/requires.txt
backports.unittest_mock.egg-info/top_level.txt
backports/unittest_mock/__init__.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/backports.unittest_mock-1.1.1/backports.unittest_mock.egg-info/namespace_packages.txt
new/backports.unittest_mock-1.3/backports.unittest_mock.egg-info/namespace_packages.txt
---
old/backports.unittest_mock-1.1.1/backports.unittest_mock.egg-info/namespace_packages.txt
2015-12-26 15:55:18.000000000 +0100
+++
new/backports.unittest_mock-1.3/backports.unittest_mock.egg-info/namespace_packages.txt
1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-backports
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/backports.unittest_mock-1.1.1/backports.unittest_mock.egg-info/requires.txt
new/backports.unittest_mock-1.3/backports.unittest_mock.egg-info/requires.txt
---
old/backports.unittest_mock-1.1.1/backports.unittest_mock.egg-info/requires.txt
2015-12-26 15:55:18.000000000 +0100
+++
new/backports.unittest_mock-1.3/backports.unittest_mock.egg-info/requires.txt
2017-05-13 04:05:21.000000000 +0200
@@ -1,3 +1,12 @@
-[:python_version=="2.7"]
+[:python_version=="2.7" or python_version=="2.6" or python_version=="3.2"]
mock
+
+[docs]
+sphinx
+jaraco.packaging>=3.2
+rst.linker>=1.9
+
+[testing]
+pytest>=2.8
+pytest-sugar
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/backports.unittest_mock-1.1.1/docs/conf.py
new/backports.unittest_mock-1.3/docs/conf.py
--- old/backports.unittest_mock-1.1.1/docs/conf.py 2015-12-26
15:28:28.000000000 +0100
+++ new/backports.unittest_mock-1.3/docs/conf.py 2017-05-13
04:04:59.000000000 +0200
@@ -1,19 +1,32 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
-import setuptools_scm
-
extensions = [
'sphinx.ext.autodoc',
+ 'jaraco.packaging.sphinx',
+ 'rst.linker',
]
-# General information about the project.
-project = 'backports.unittest_mock'
-copyright = '2015 Jason R. Coombs'
-
-# The short X.Y version.
-version = setuptools_scm.get_version(root='..', relative_to=__file__)
-# The full version, including alpha/beta/rc tags.
-release = version
-
master_doc = 'index'
+
+link_files = {
+ '../CHANGES.rst': dict(
+ using=dict(
+ GH='https://github.com',
+ ),
+ replace=[
+ dict(
+ pattern=r'(Issue )?#(?P<issue>\d+)',
+ url='{package_url}/issues/{issue}',
+ ),
+ dict(
+
pattern=r'^(?m)((?P<scm_version>v?\d+(\.\d+){1,2}))\n[-=]+\n',
+ with_scm='{text}\n{rev[timestamp]:%d %b %Y}\n',
+ ),
+ dict(
+ pattern=r'PEP[- ](?P<pep_number>\d+)',
+
url='https://www.python.org/dev/peps/pep-{pep_number:0>4}/',
+ ),
+ ],
+ ),
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/backports.unittest_mock-1.1.1/docs/history.rst
new/backports.unittest_mock-1.3/docs/history.rst
--- old/backports.unittest_mock-1.1.1/docs/history.rst 2015-12-26
15:28:32.000000000 +0100
+++ new/backports.unittest_mock-1.3/docs/history.rst 2017-05-13
04:04:59.000000000 +0200
@@ -5,4 +5,4 @@
History
*******
-.. include:: ../CHANGES.rst
+.. include:: ../CHANGES (links).rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/backports.unittest_mock-1.1.1/pytest.ini
new/backports.unittest_mock-1.3/pytest.ini
--- old/backports.unittest_mock-1.1.1/pytest.ini 2015-12-26
15:28:54.000000000 +0100
+++ new/backports.unittest_mock-1.3/pytest.ini 2017-05-13 04:04:59.000000000
+0200
@@ -1,4 +1,4 @@
[pytest]
-norecursedirs=*.egg .eggs dist build
+norecursedirs=dist build .tox
addopts=--doctest-modules
doctest_optionflags=ALLOW_UNICODE ELLIPSIS
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/backports.unittest_mock-1.1.1/setup.cfg
new/backports.unittest_mock-1.3/setup.cfg
--- old/backports.unittest_mock-1.1.1/setup.cfg 2015-12-26 15:55:19.000000000
+0100
+++ new/backports.unittest_mock-1.3/setup.cfg 2017-05-13 04:05:21.000000000
+0200
@@ -1,12 +1,11 @@
[aliases]
-release = sdist bdist_wheel build_sphinx upload upload_docs
-test = pytest
+release = dists upload
+dists = clean --all sdist bdist_wheel
[wheel]
universal = 1
[egg_info]
-tag_svn_revision = 0
-tag_date = 0
tag_build =
+tag_date = 0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/backports.unittest_mock-1.1.1/setup.py
new/backports.unittest_mock-1.3/setup.py
--- old/backports.unittest_mock-1.1.1/setup.py 2015-12-26 15:32:48.000000000
+0100
+++ new/backports.unittest_mock-1.3/setup.py 2017-05-13 04:04:59.000000000
+0200
@@ -1,52 +1,57 @@
#!/usr/bin/env python
-# Generated by jaraco.develop 2.27.1
-# https://pypi.python.org/pypi/jaraco.develop
+
+# Project skeleton maintained at https://github.com/jaraco/skeleton
import io
-import sys
import setuptools
with io.open('README.rst', encoding='utf-8') as readme:
long_description = readme.read()
-needs_pytest = {'pytest', 'test'}.intersection(sys.argv)
-pytest_runner = ['pytest_runner'] if needs_pytest else []
-needs_sphinx = {'release', 'build_sphinx',
'upload_docs'}.intersection(sys.argv)
-sphinx = ['sphinx'] if needs_sphinx else []
-needs_wheel = {'release', 'bdist_wheel'}.intersection(sys.argv)
-wheel = ['wheel'] if needs_wheel else []
+name = 'backports.unittest_mock'
+description = ''
-setup_params = dict(
- name='backports.unittest_mock',
+params = dict(
+ name=name,
use_scm_version=True,
author="Jason R. Coombs",
author_email="[email protected]",
- description="backports.unittest_mock",
+ description=description or name,
long_description=long_description,
- url="https://github.com/jaraco/backports.unittest_mock",
+ url="https://github.com/jaraco/" + name,
packages=setuptools.find_packages(),
include_package_data=True,
- namespace_packages=['backports'],
+ python_requires='>=2.6',
install_requires=[
],
extras_require={
- ':python_version=="2.7"': [
+ ':python_version=="2.7" or'
+ ' python_version=="2.6" or'
+ ' python_version=="3.2"': [
"mock",
],
+ 'testing': [
+ 'pytest>=2.8',
+ 'pytest-sugar',
+ ],
+ 'docs': [
+ 'sphinx',
+ 'jaraco.packaging>=3.2',
+ 'rst.linker>=1.9',
+ ],
},
setup_requires=[
- 'setuptools_scm>=1.9',
- ] + pytest_runner + sphinx + wheel,
- tests_require=[
- 'pytest>=2.8',
+ 'setuptools_scm>=1.15.0',
],
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
+ "Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
+ "Programming Language :: Python :: 3.2",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
@@ -58,4 +63,4 @@
},
)
if __name__ == '__main__':
- setuptools.setup(**setup_params)
+ setuptools.setup(**params)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/backports.unittest_mock-1.1.1/tests/test_unittest_mock.py
new/backports.unittest_mock-1.3/tests/test_unittest_mock.py
--- old/backports.unittest_mock-1.1.1/tests/test_unittest_mock.py
2015-12-26 15:54:19.000000000 +0100
+++ new/backports.unittest_mock-1.3/tests/test_unittest_mock.py 2017-05-13
04:04:59.000000000 +0200
@@ -1,10 +1,7 @@
-import importlib
-
-
def test_installed():
"""
Because tests are run under pytest, and because the pytest
plugin would have been invoked before running this test,
the import of `unittest.mock` should always succeed.
"""
- importlib.import_module('unittest.mock')
+ __import__('unittest.mock')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/backports.unittest_mock-1.1.1/tox.ini
new/backports.unittest_mock-1.3/tox.ini
--- old/backports.unittest_mock-1.1.1/tox.ini 1970-01-01 01:00:00.000000000
+0100
+++ new/backports.unittest_mock-1.3/tox.ini 2017-05-13 04:04:59.000000000
+0200
@@ -0,0 +1,7 @@
+[tox]
+minversion = 2.4
+
+[testenv]
+commands = py.test {posargs}
+usedevelop = True
+extras = testing