Hello community,

here is the log from the commit of package python-backports.unittest_mock for 
openSUSE:Factory checked in at 2019-09-23 12:10:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-backports.unittest_mock (Old)
 and      /work/SRC/openSUSE:Factory/.python-backports.unittest_mock.new.7948 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-backports.unittest_mock"

Mon Sep 23 12:10:24 2019 rev:7 rq:730688 version:1.5

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-backports.unittest_mock/python-backports.unittest_mock.changes
    2019-03-04 09:10:54.280702604 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-backports.unittest_mock.new.7948/python-backports.unittest_mock.changes
  2019-09-23 12:10:26.413875353 +0200
@@ -1,0 +2,6 @@
+Fri Sep 13 11:25:27 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 1.5:
+  * Refresh project metadata.
+
+-------------------------------------------------------------------

Old:
----
  backports.unittest_mock-1.4.tar.gz

New:
----
  backports.unittest_mock-1.5.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-backports.unittest_mock.spec ++++++
--- /var/tmp/diff_new_pack.0xrQxC/_old  2019-09-23 12:10:26.973875261 +0200
+++ /var/tmp/diff_new_pack.0xrQxC/_new  2019-09-23 12:10:26.973875261 +0200
@@ -21,7 +21,7 @@
 %define skip_python3 1
 %endif
 Name:           python-backports.unittest_mock
-Version:        1.4
+Version:        1.5
 Release:        0
 Summary:        Backports of unittest_mock
 License:        MIT

++++++ backports.unittest_mock-1.4.tar.gz -> backports.unittest_mock-1.5.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.unittest_mock-1.4/.flake8 
new/backports.unittest_mock-1.5/.flake8
--- old/backports.unittest_mock-1.4/.flake8     2018-07-09 04:42:11.000000000 
+0200
+++ new/backports.unittest_mock-1.5/.flake8     2019-08-22 22:02:37.000000000 
+0200
@@ -1,6 +1,9 @@
 [flake8]
+max-line-length = 88
 ignore =
-       # Allow tabs for indentation
-       W191
        # W503 violates spec https://github.com/PyCQA/pycodestyle/issues/513
        W503
+       # W504 has issues 
https://github.com/OCA/maintainer-quality-tools/issues/545
+       W504
+       # Black creates whitespace before colon
+       E203
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.unittest_mock-1.4/.pre-commit-config.yaml 
new/backports.unittest_mock-1.5/.pre-commit-config.yaml
--- old/backports.unittest_mock-1.4/.pre-commit-config.yaml     1970-01-01 
01:00:00.000000000 +0100
+++ new/backports.unittest_mock-1.5/.pre-commit-config.yaml     2019-08-22 
22:02:37.000000000 +0200
@@ -0,0 +1,5 @@
+repos:
+- repo: https://github.com/ambv/black
+  rev: 18.9b0
+  hooks:
+  - id: black
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.unittest_mock-1.4/.travis.yml 
new/backports.unittest_mock-1.5/.travis.yml
--- old/backports.unittest_mock-1.4/.travis.yml 2018-07-09 04:42:11.000000000 
+0200
+++ new/backports.unittest_mock-1.5/.travis.yml 2019-08-22 22:02:37.000000000 
+0200
@@ -1,10 +1,10 @@
-dist: trusty
-sudo: false
+dist: xenial
 language: python
 
 python:
 - 2.7
-- &latest_py3 3.6
+- 3.6
+- &latest_py3 3.7
 
 jobs:
   fast_finish: true
@@ -12,18 +12,8 @@
   - stage: deploy
     if: tag IS present
     python: *latest_py3
-    install: skip
-    script: skip
-    deploy:
-      provider: pypi
-      on:
-        tags: true
-        all_branches: true
-      user: jaraco
-      password:
-        secure: 
hvxJUMYKOlVTa4d0bhO7FfYOLu6lIR5fNYl97NLXlp7MhQ+/ZWKRiu0OZ/VHBDe0ZaJAp3Gq9zw9QsikNLzMBuA8miyW1L0ASw+rAm5U3W/FoYOgftUhdF/vjI84pDgMHLdRKlXlyRKpN8OtjBalQetP4yPUyqSUgZY27Q/ZO4Sbap34CHU8hhoCfLAnc+sHl9eDwkMpJd04kQLjui0QwsHH/ChVPL+kEIbWLeJsd5SLvlBUhVuCqS5O/UKaZOdJVa0tVWtPKAJhj1cUMKQt3GtGjlIXXrpIX5Mq4xfxH5jRjwQu0NapCIlT0u59T8H0ollt5wuamWs3e2hlCiQsq7Yy36a/OpF1qzg06cro+0FheDYaeQuN0tC1/y/jtEdNTu7VzVNDINfBV1T7liCeOkEKSUyCajlRVa1cCVtNV8ct2VuJiSa+Kao14OUFCHwqH3IZHdEm1QCpScuYZjaoj9hqIPQPFYspJl5OfTGIhhXuZcwWU0zofLJSTjSxIMkkJHNaszGZzZiPTh0tjBlfPImj28/zY0mywHiq0xBYN937x6u1JVIRu8yTAqfMzfreNXywsjuejpVtjPGYRM1fQrtnhoGZrpCk/38XV5XdKlrYZmsZtSy90GWFHlsHemtnAR6TGmzGeXAZIT2uhjFymg2CYLgGENhO4pfVFxa1ork=
-      distributions: dists
-      skip_cleanup: true
+    before_script: skip
+    script: tox -e release
 
 cache: pip
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.unittest_mock-1.4/CHANGES.rst 
new/backports.unittest_mock-1.5/CHANGES.rst
--- old/backports.unittest_mock-1.4/CHANGES.rst 2018-07-09 04:42:11.000000000 
+0200
+++ new/backports.unittest_mock-1.5/CHANGES.rst 2019-08-22 22:02:37.000000000 
+0200
@@ -1,3 +1,8 @@
+1.5
+===
+
+Refresh project metadata.
+
 1.4
 ===
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.unittest_mock-1.4/PKG-INFO 
new/backports.unittest_mock-1.5/PKG-INFO
--- old/backports.unittest_mock-1.4/PKG-INFO    2018-07-09 04:42:36.000000000 
+0200
+++ new/backports.unittest_mock-1.5/PKG-INFO    2019-08-22 22:02:53.000000000 
+0200
@@ -1,7 +1,7 @@
 Metadata-Version: 2.1
 Name: backports.unittest_mock
-Version: 1.4
-Summary: backports.unittest_mock
+Version: 1.5
+Summary: Make unittest.mock available on older Pythons
 Home-page: https://github.com/jaraco/backports.unittest_mock
 Author: Jason R. Coombs
 Author-email: [email protected]
@@ -14,6 +14,10 @@
         .. image:: 
https://img.shields.io/travis/jaraco/backports.unittest_mock/master.svg
            :target: https://travis-ci.org/jaraco/backports.unittest_mock
         
+        .. image:: https://img.shields.io/badge/code%20style-black-000000.svg
+           :target: https://github.com/ambv/black
+           :alt: Code style: Black
+        
         .. .. image:: 
https://img.shields.io/appveyor/ci/jaraco/backports-unittest_mock/master.svg
         ..    :target: 
https://ci.appveyor.com/project/jaraco/backports-unittest_mock/branch/master
         
@@ -52,7 +56,8 @@
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
 Classifier: Framework :: Pytest
 Requires-Python: >=2.6
-Provides-Extra: testing
 Provides-Extra: docs
+Provides-Extra: testing
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.unittest_mock-1.4/README.rst 
new/backports.unittest_mock-1.5/README.rst
--- old/backports.unittest_mock-1.4/README.rst  2018-07-09 04:42:11.000000000 
+0200
+++ new/backports.unittest_mock-1.5/README.rst  2019-08-22 22:02:37.000000000 
+0200
@@ -6,6 +6,10 @@
 .. image:: 
https://img.shields.io/travis/jaraco/backports.unittest_mock/master.svg
    :target: https://travis-ci.org/jaraco/backports.unittest_mock
 
+.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
+   :target: https://github.com/ambv/black
+   :alt: Code style: Black
+
 .. .. image:: 
https://img.shields.io/appveyor/ci/jaraco/backports-unittest_mock/master.svg
 ..    :target: 
https://ci.appveyor.com/project/jaraco/backports-unittest_mock/branch/master
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.unittest_mock-1.4/appveyor.yml 
new/backports.unittest_mock-1.5/appveyor.yml
--- old/backports.unittest_mock-1.4/appveyor.yml        2018-07-09 
04:42:11.000000000 +0200
+++ new/backports.unittest_mock-1.5/appveyor.yml        2019-08-22 
22:02:37.000000000 +0200
@@ -18,7 +18,7 @@
   - '%LOCALAPPDATA%\pip\Cache'
 
 test_script:
-  - "python -m pip install tox tox-venv"
+  - "python -m pip install -U tox tox-venv virtualenv"
   - "tox"
 
 version: '{build}'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/backports.unittest_mock-1.4/backports.unittest_mock.egg-info/PKG-INFO 
new/backports.unittest_mock-1.5/backports.unittest_mock.egg-info/PKG-INFO
--- old/backports.unittest_mock-1.4/backports.unittest_mock.egg-info/PKG-INFO   
2018-07-09 04:42:36.000000000 +0200
+++ new/backports.unittest_mock-1.5/backports.unittest_mock.egg-info/PKG-INFO   
2019-08-22 22:02:53.000000000 +0200
@@ -1,7 +1,7 @@
 Metadata-Version: 2.1
 Name: backports.unittest-mock
-Version: 1.4
-Summary: backports.unittest_mock
+Version: 1.5
+Summary: Make unittest.mock available on older Pythons
 Home-page: https://github.com/jaraco/backports.unittest_mock
 Author: Jason R. Coombs
 Author-email: [email protected]
@@ -14,6 +14,10 @@
         .. image:: 
https://img.shields.io/travis/jaraco/backports.unittest_mock/master.svg
            :target: https://travis-ci.org/jaraco/backports.unittest_mock
         
+        .. image:: https://img.shields.io/badge/code%20style-black-000000.svg
+           :target: https://github.com/ambv/black
+           :alt: Code style: Black
+        
         .. .. image:: 
https://img.shields.io/appveyor/ci/jaraco/backports-unittest_mock/master.svg
         ..    :target: 
https://ci.appveyor.com/project/jaraco/backports-unittest_mock/branch/master
         
@@ -52,7 +56,8 @@
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
 Classifier: Framework :: Pytest
 Requires-Python: >=2.6
-Provides-Extra: testing
 Provides-Extra: docs
+Provides-Extra: testing
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/backports.unittest_mock-1.4/backports.unittest_mock.egg-info/SOURCES.txt 
new/backports.unittest_mock-1.5/backports.unittest_mock.egg-info/SOURCES.txt
--- 
old/backports.unittest_mock-1.4/backports.unittest_mock.egg-info/SOURCES.txt    
    2018-07-09 04:42:36.000000000 +0200
+++ 
new/backports.unittest_mock-1.5/backports.unittest_mock.egg-info/SOURCES.txt    
    2019-08-22 22:02:53.000000000 +0200
@@ -1,4 +1,5 @@
 .flake8
+.pre-commit-config.yaml
 .readthedocs.yml
 .travis.yml
 CHANGES.rst
@@ -9,13 +10,13 @@
 pytest.ini
 setup.cfg
 setup.py
+skeleton.md
 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.4/backports.unittest_mock.egg-info/namespace_packages.txt
 
new/backports.unittest_mock-1.5/backports.unittest_mock.egg-info/namespace_packages.txt
--- 
old/backports.unittest_mock-1.4/backports.unittest_mock.egg-info/namespace_packages.txt
     2018-07-09 04:42:36.000000000 +0200
+++ 
new/backports.unittest_mock-1.5/backports.unittest_mock.egg-info/namespace_packages.txt
     1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/backports.unittest_mock-1.4/backports.unittest_mock.egg-info/requires.txt 
new/backports.unittest_mock-1.5/backports.unittest_mock.egg-info/requires.txt
--- 
old/backports.unittest_mock-1.4/backports.unittest_mock.egg-info/requires.txt   
    2018-07-09 04:42:36.000000000 +0200
+++ 
new/backports.unittest_mock-1.5/backports.unittest_mock.egg-info/requires.txt   
    2019-08-22 22:02:53.000000000 +0200
@@ -1,5 +1,5 @@
 
-[:python_version=="2.7" or python_version=="2.6" or python_version=="3.2"]
+[:python_version == "2.6" or python_version == "2.7" or python_version == 
"3.2"]
 mock
 
 [docs]
@@ -8,7 +8,7 @@
 rst.linker>=1.9
 
 [testing]
-pytest>=3.5
-pytest-sugar>=0.9.1
-collective.checkdocs
+pytest!=3.7.3,>=3.5
+pytest-checkdocs
 pytest-flake8
+pytest-black-multipy
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.unittest_mock-1.4/docs/conf.py 
new/backports.unittest_mock-1.5/docs/conf.py
--- old/backports.unittest_mock-1.4/docs/conf.py        2018-07-09 
04:42:11.000000000 +0200
+++ new/backports.unittest_mock-1.5/docs/conf.py        2019-08-22 
22:02:37.000000000 +0200
@@ -1,32 +1,26 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 
-extensions = [
-       'sphinx.ext.autodoc',
-       'jaraco.packaging.sphinx',
-       'rst.linker',
-]
+extensions = ['sphinx.ext.autodoc', 'jaraco.packaging.sphinx', 'rst.linker']
 
-master_doc = 'index'
+master_doc = "index"
 
 link_files = {
-       '../CHANGES.rst': dict(
-               using=dict(
-                       GH='https://github.com',
-               ),
-               replace=[
-                       dict(
-                               pattern=r'(Issue #|\B#)(?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}/',
-                       ),
-               ],
-       ),
+    '../CHANGES.rst': dict(
+        using=dict(GH='https://github.com'),
+        replace=[
+            dict(
+                pattern=r'(Issue #|\B#)(?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.4/pyproject.toml 
new/backports.unittest_mock-1.5/pyproject.toml
--- old/backports.unittest_mock-1.4/pyproject.toml      2018-07-09 
04:42:11.000000000 +0200
+++ new/backports.unittest_mock-1.5/pyproject.toml      2019-08-22 
22:02:37.000000000 +0200
@@ -1,2 +1,6 @@
 [build-system]
-requires = ["setuptools>=30.3", "wheel", "setuptools_scm>=1.15"]
+requires = ["setuptools>=34.4", "wheel", "setuptools_scm>=1.15"]
+build-backend = "setuptools.build_meta"
+
+[tool.black]
+skip-string-normalization = true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.unittest_mock-1.4/pytest.ini 
new/backports.unittest_mock-1.5/pytest.ini
--- old/backports.unittest_mock-1.4/pytest.ini  2018-07-09 04:42:11.000000000 
+0200
+++ new/backports.unittest_mock-1.5/pytest.ini  2019-08-22 22:02:37.000000000 
+0200
@@ -1,4 +1,11 @@
 [pytest]
 norecursedirs=dist build .tox .eggs
-addopts=--doctest-modules --flake8
+addopts=--doctest-modules --flake8 --black
 doctest_optionflags=ALLOW_UNICODE ELLIPSIS
+filterwarnings=
+       ignore:Possible nested set::pycodestyle:113
+       ignore:Using or importing the ABCs::flake8:410
+       # workaround for https://sourceforge.net/p/docutils/bugs/348/
+       ignore:'U' mode is deprecated::docutils.io
+       # workaround for https://gitlab.com/pycqa/flake8/issues/275
+       ignore:You passed a bytestring as `filenames`.::flake8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.unittest_mock-1.4/setup.cfg 
new/backports.unittest_mock-1.5/setup.cfg
--- old/backports.unittest_mock-1.4/setup.cfg   2018-07-09 04:42:36.000000000 
+0200
+++ new/backports.unittest_mock-1.5/setup.cfg   2019-08-22 22:02:53.000000000 
+0200
@@ -1,13 +1,52 @@
-[aliases]
-release = dists upload
-dists = clean --all sdist bdist_wheel
-
 [bdist_wheel]
 universal = 1
 
 [metadata]
 license_file = LICENSE
+name = backports.unittest_mock
+author = Jason R. Coombs
+author_email = [email protected]
+description = Make unittest.mock available on older Pythons
 long_description = file:README.rst
+url = https://github.com/jaraco/backports.unittest_mock
+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
+       Programming Language :: Python :: 3.6
+       Programming Language :: Python :: 3.7
+       Programming Language :: Python :: 3.8
+       Framework :: Pytest
+
+[options]
+packages = find:
+include_package_data = true
+python_requires = >=2.6
+install_requires = 
+       mock; python_version=="2.6" or python_version=="2.7" or 
python_version=="3.2"
+setup_requires = setuptools_scm >= 1.15.0
+
+[options.extras_require]
+testing = 
+       pytest >= 3.5, !=3.7.3
+       pytest-checkdocs
+       pytest-flake8
+       pytest-black-multipy
+docs = 
+       sphinx
+       jaraco.packaging >= 3.2
+       rst.linker >= 1.9
+
+[options.entry_points]
+pytest11 = 
+       unittest_mock = backports.unittest_mock
 
 [egg_info]
 tag_build = 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.unittest_mock-1.4/setup.py 
new/backports.unittest_mock-1.5/setup.py
--- old/backports.unittest_mock-1.4/setup.py    2018-07-09 04:42:11.000000000 
+0200
+++ new/backports.unittest_mock-1.5/setup.py    2019-08-22 22:02:37.000000000 
+0200
@@ -1,80 +1,6 @@
 #!/usr/bin/env python
 
-# Project skeleton maintained at https://github.com/jaraco/skeleton
-
 import setuptools
 
-name = 'backports.unittest_mock'
-description = ''
-nspkg_technique = 'native'
-"""
-Does this package use "native" namespace packages or
-pkg_resources "managed" namespace packages?
-"""
-
-params = dict(
-       name=name,
-       use_scm_version=True,
-       author="Jason R. Coombs",
-       author_email="[email protected]",
-       description=description or name,
-       url="https://github.com/jaraco/"; + name,
-       packages=setuptools.find_packages(),
-       include_package_data=True,
-       namespace_packages=(
-               name.split('.')[:-1] if nspkg_technique == 'managed'
-               else []
-       ),
-       python_requires='>=2.6',
-       install_requires=[
-       ],
-       extras_require={
-               ':python_version=="2.7" or'
-               ' python_version=="2.6" or'
-               ' python_version=="3.2"': [
-                       "mock",
-               ],
-               'testing': [
-                       # upstream
-                       'pytest>=3.5',
-                       'pytest-sugar>=0.9.1',
-                       'collective.checkdocs',
-                       'pytest-flake8',
-
-                       # local
-               ],
-               'docs': [
-                       # upstream
-                       'sphinx',
-                       'jaraco.packaging>=3.2',
-                       'rst.linker>=1.9',
-
-                       # local
-               ],
-       },
-       setup_requires=[
-               '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",
-               "Programming Language :: Python :: 3.6",
-               "Programming Language :: Python :: 3.7",
-               "Framework :: Pytest",
-       ],
-       entry_points={
-               'pytest11': [
-                       "unittest_mock = backports.unittest_mock",
-               ],
-       },
-)
-if __name__ == '__main__':
-       setuptools.setup(**params)
+if __name__ == "__main__":
+    setuptools.setup(use_scm_version=True)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.unittest_mock-1.4/skeleton.md 
new/backports.unittest_mock-1.5/skeleton.md
--- old/backports.unittest_mock-1.4/skeleton.md 1970-01-01 01:00:00.000000000 
+0100
+++ new/backports.unittest_mock-1.5/skeleton.md 2019-08-22 22:02:37.000000000 
+0200
@@ -0,0 +1,129 @@
+# Overview
+
+This project is merged with [skeleton](https://github.com/jaraco/skeleton). 
What is skeleton? It's the scaffolding of a Python project jaraco [introduced 
in his blog](https://blog.jaraco.com/a-project-skeleton-for-python-projects/). 
It seeks to provide a means to re-use techniques and inherit advances when 
managing projects for distribution.
+
+## An SCM Managed Approach
+
+While maintaining dozens of projects in PyPI, jaraco derives best practices 
for project distribution and publishes them in the [skeleton 
repo](https://github.com/jaraco/skeleton), a git repo capturing the evolution 
and culmination of these best practices.
+
+It's intended to be used by a new or existing project to adopt these practices 
and honed and proven techniques. Adopters are encouraged to use the project 
directly and maintain a small deviation from the technique, make their own fork 
for more substantial changes unique to their environment or preferences, or 
simply adopt the skeleton once and abandon it thereafter.
+
+The primary advantage to using an SCM for maintaining these techniques is that 
those tools help facilitate the merge between the template and its adopting 
projects.
+
+Another advantage to using an SCM-managed approach is that tools like GitHub 
recognize that a change in the skeleton is the _same change_ across all 
projects that merge with that skeleton. Without the ancestry, with a 
traditional copy/paste approach, a [commit like 
this](https://github.com/jaraco/skeleton/commit/12eed1326e1bc26ce256e7b3f8cd8d3a5beab2d5)
 would produce notifications in the upstream project issue for each and every 
application, but because it's centralized, GitHub provides just the one 
notification when the change is added to the skeleton.
+
+# Usage
+
+## new projects
+
+To use skeleton for a new project, simply pull the skeleton into a new project:
+
+```
+$ git init my-new-project
+$ cd my-new-project
+$ git pull gh://jaraco/skeleton
+```
+
+Now customize the project to suit your individual project needs.
+
+## existing projects
+
+If you have an existing project, you can still incorporate the skeleton by 
merging it into the codebase.
+
+```
+$ git merge skeleton --allow-unrelated-histories
+```
+
+The `--allow-unrelated-histories` is necessary because the history from the 
skeleton was previously unrelated to the existing codebase. Resolve any merge 
conflicts and commit to the master, and now the project is based on the shared 
skeleton.
+
+## Updating
+
+Whenever a change is needed or desired for the general technique for 
packaging, it can be made in the skeleton project and then merged into each of 
the derived projects as needed, recommended before each release. As a result, 
features and best practices for packaging are centrally maintained and readily 
trickle into a whole suite of packages. This technique lowers the amount of 
tedious work necessary to create or maintain a project, and coupled with other 
techniques like continuous integration and deployment, lowers the cost of 
creating and maintaining refined Python projects to just a few, familiar git 
operations.
+
+Thereafter, the target project can make whatever customizations it deems 
relevant to the scaffolding. The project may even at some point decide that the 
divergence is too great to merit renewed merging with the original skeleton. 
This approach applies maximal guidance while creating minimal constraints.
+
+# Features
+
+The features/techniques employed by the skeleton include:
+
+- PEP 517/518 based build relying on setuptools as the build tool
+- setuptools declarative configuration using setup.cfg
+- tox for running tests
+- A README.rst as reStructuredText with some popular badges, but with 
readthedocs and appveyor badges commented out
+- A CHANGES.rst file intended for publishing release notes about the project
+- Use of [black](https://black.readthedocs.io/en/stable/) for code formatting 
(disabled on unsupported Python 3.5 and earlier)
+
+## Packaging Conventions
+
+A pyproject.toml is included to enable PEP 517 and PEP 518 compatibility and 
declares the requirements necessary to build the project on setuptools (a 
minimum version compatible with setup.cfg declarative config).
+
+The setup.cfg file implements the following features:
+
+- Assumes universal wheel for release
+- Advertises the project's LICENSE file (MIT by default)
+- Reads the README.rst file into the long description
+- Some common Trove classifiers
+- Includes all packages discovered in the repo
+- Data files in the package are also included (not just Python files)
+- Declares the required Python versions
+- Declares install requirements (empty by default)
+- Declares setup requirements for legacy environments
+- Supplies two 'extras':
+  - testing: requirements for running tests
+  - docs: requirements for building docs
+  - these extras split the declaration into "upstream" (requirements as 
declared by the skeleton) and "local" (those specific to the local project); 
these markers help avoid merge conflicts
+- Placeholder for defining entry points
+
+Additionally, the setup.py file declares `use_scm_version` which relies on 
[setuptools_scm](https://pypi.org/project/setuptools_scm) to do two things:
+
+- derive the project version from SCM tags
+- ensure that all files committed to the repo are automatically included in 
releases
+
+## Running Tests
+
+The skeleton assumes the developer has [tox](https://pypi.org/project/tox) 
installed. The developer is expected to run `tox` to run tests on the current 
Python version using [pytest](https://pypi.org/project/pytest).
+
+Other environments (invoked with `tox -e {name}`) supplied include:
+
+  - a `build-docs` environment to build the documentation
+  - a `release` environment to publish the package to PyPI
+
+A pytest.ini is included to define common options around running tests. In 
particular:
+
+- rely on default test discovery in the current directory
+- avoid recursing into common directories not containing tests
+- run doctests on modules and invoke flake8 tests
+- in doctests, allow unicode literals and regular literals to match, allowing 
for doctests to run on Python 2 and 3. Also enable ELLIPSES, a default that 
would be undone by supplying the prior option.
+- filters out known warnings caused by libraries/functionality included by the 
skeleton
+
+Relies a .flake8 file to correct some default behaviors:
+
+- disable mutually incompatible rules W503 and W504
+- support for black format
+
+## Continuous Integration
+
+The project is pre-configured to run tests in 
[Travis-CI](https://travis-ci.org) (.travis.yml). Any new project must be 
enabled either through their web site or with the `travis enable` command. In 
addition to running tests, an additional deploy stage is configured to 
automatically release tagged commits. The username and password for PyPI must 
be configured for each project using the `travis` command and only after the 
travis project is created. As releases are cut with 
[twine](https://pypi.org/project/twine), the two values are supplied through 
the `TWINE_USERNAME` and `TWINE_PASSWORD`. To configure the latter as a secret, 
run the following command:
+
+```
+echo "TWINE_PASSWORD={password}" | travis encrypt
+```
+
+Or disable it in the CI definition and configure it through the web UI.
+
+Features include:
+- test against Python 2 and 3
+- run on Ubuntu Xenial
+- correct for broken IPv6
+
+Also provided is a minimal template for running under Appveyor (Windows).
+
+## Building Documentation
+
+Documentation is automatically built by [Read the 
Docs](https://readthedocs.org) when the project is registered with it, by way 
of the .readthedocs.yml file. To test the docs build manually, a tox env may be 
invoked as `tox -e build-docs`. Both techniques rely on the dependencies 
declared in `setup.cfg/options.extras_require.docs`.
+
+In addition to building the sphinx docs scaffolded in `docs/`, the docs build 
a `history.html` file that first injects release dates and hyperlinks into the 
CHANGES.rst before incorporating it as history in the docs.
+
+## Cutting releases
+
+By default, tagged commits are released through the continuous integration 
deploy stage.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/backports.unittest_mock-1.4/tests/test_unittest_mock.py 
new/backports.unittest_mock-1.5/tests/test_unittest_mock.py
--- old/backports.unittest_mock-1.4/tests/test_unittest_mock.py 2018-07-09 
04:42:11.000000000 +0200
+++ new/backports.unittest_mock-1.5/tests/test_unittest_mock.py 2019-08-22 
22:02:37.000000000 +0200
@@ -1,7 +1,7 @@
 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.
-       """
-       __import__('unittest.mock')
+    """
+    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.
+    """
+    __import__('unittest.mock')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.unittest_mock-1.4/tox.ini 
new/backports.unittest_mock-1.5/tox.ini
--- old/backports.unittest_mock-1.4/tox.ini     2018-07-09 04:42:11.000000000 
+0200
+++ new/backports.unittest_mock-1.5/tox.ini     2019-08-22 22:02:37.000000000 
+0200
@@ -1,15 +1,14 @@
 [tox]
 envlist = python
-minversion = 2.4
+minversion = 3.2
+# https://github.com/jaraco/skeleton/issues/6
+tox_pip_extensions_ext_venv_update = true
 
 [testenv]
 deps =
        setuptools>=31.0.1
-       # workaround for yaml/pyyaml#126
-       # pyyaml>=4.2b2;python_version=="3.7"
 commands =
        pytest {posargs}
-       python setup.py checkdocs
 usedevelop = True
 extras = testing
 
@@ -20,3 +19,18 @@
 changedir = docs
 commands =
     python -m sphinx . {toxinidir}/build/html
+
+[testenv:release]
+skip_install = True
+deps =
+       pep517>=0.5
+       twine>=1.13
+       path.py
+passenv =
+       TWINE_PASSWORD
+setenv =
+       TWINE_USERNAME = {env:TWINE_USERNAME:__token__}
+commands =
+       python -c "import path; path.Path('dist').rmtree_p()"
+       python -m pep517.build .
+       python -m twine upload dist/*


Reply via email to