Hello community,

here is the log from the commit of package python-backports.functools_lru_cache 
for openSUSE:Factory checked in at 2019-11-22 10:20:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-backports.functools_lru_cache (Old)
 and      
/work/SRC/openSUSE:Factory/.python-backports.functools_lru_cache.new.26869 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-backports.functools_lru_cache"

Fri Nov 22 10:20:16 2019 rev:6 rq:745981 version:1.6.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-backports.functools_lru_cache/python-backports.functools_lru_cache.changes
        2019-03-01 20:27:00.242046358 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-backports.functools_lru_cache.new.26869/python-backports.functools_lru_cache.changes
     2019-11-22 10:20:19.465347008 +0100
@@ -1,0 +2,7 @@
+Wed Nov  6 12:09:51 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 1.6.1:
+  * refresh metadata
+  * minor fixes
+
+-------------------------------------------------------------------

Old:
----
  backports.functools_lru_cache-1.5.tar.gz

New:
----
  backports.functools_lru_cache-1.6.1.tar.gz

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

Other differences:
------------------
++++++ python-backports.functools_lru_cache.spec ++++++
--- /var/tmp/diff_new_pack.yUQpsA/_old  2019-11-22 10:20:21.581346462 +0100
+++ /var/tmp/diff_new_pack.yUQpsA/_new  2019-11-22 10:20:21.613346453 +0100
@@ -21,11 +21,10 @@
 %define skip_python3 1
 %endif
 Name:           python-backports.functools_lru_cache
-Version:        1.5
+Version:        1.6.1
 Release:        0
 Summary:        Backported functools.lru_cache
 License:        MIT
-Group:          Development/Languages/Python
 URL:            https://github.com/jaraco/backports.functools_lru_cache
 Source:         
https://files.pythonhosted.org/packages/source/b/backports.functools_lru_cache/backports.functools_lru_cache-%{version}.tar.gz
 # NOTE:
@@ -53,7 +52,8 @@
 
 %prep
 %setup -q -n backports.functools_lru_cache-%{version}
-rm -rf backports.functools_lru_cache.egg-info
+rm -r backports.functools_lru_cache.egg-info
+rm pytest.ini
 
 %build
 %python_build
@@ -68,7 +68,7 @@
 mv backports backports_temp
 %{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
 ln -s %{$python_sitelib}/backports/__init__.py 
%{buildroot}%{$python_sitelib}/backports/
-py.test-%{$python_bin_suffix} tests
+py.test-%{$python_bin_suffix} -v tests
 rm -r %{buildroot}%{$python_sitelib}/backports/__init__.py*
 rm -rf %{buildroot}%{$python_sitelib}/backports/__pycache__/
 }

++++++ backports.functools_lru_cache-1.5.tar.gz -> 
backports.functools_lru_cache-1.6.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.functools_lru_cache-1.5/.coveragerc 
new/backports.functools_lru_cache-1.6.1/.coveragerc
--- old/backports.functools_lru_cache-1.5/.coveragerc   1970-01-01 
01:00:00.000000000 +0100
+++ new/backports.functools_lru_cache-1.6.1/.coveragerc 2019-11-02 
17:19:49.000000000 +0100
@@ -0,0 +1,5 @@
+[run]
+omit = .tox/*
+
+[report]
+show_missing = True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.functools_lru_cache-1.5/.flake8 
new/backports.functools_lru_cache-1.6.1/.flake8
--- old/backports.functools_lru_cache-1.5/.flake8       1970-01-01 
01:00:00.000000000 +0100
+++ new/backports.functools_lru_cache-1.6.1/.flake8     2019-11-02 
17:19:49.000000000 +0100
@@ -0,0 +1,9 @@
+[flake8]
+max-line-length = 88
+ignore =
+       # 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.functools_lru_cache-1.5/.github/FUNDING.yml 
new/backports.functools_lru_cache-1.6.1/.github/FUNDING.yml
--- old/backports.functools_lru_cache-1.5/.github/FUNDING.yml   1970-01-01 
01:00:00.000000000 +0100
+++ new/backports.functools_lru_cache-1.6.1/.github/FUNDING.yml 2019-11-02 
17:19:49.000000000 +0100
@@ -0,0 +1 @@
+tidelift: pypi/PROJECT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/backports.functools_lru_cache-1.5/.pre-commit-config.yaml 
new/backports.functools_lru_cache-1.6.1/.pre-commit-config.yaml
--- old/backports.functools_lru_cache-1.5/.pre-commit-config.yaml       
1970-01-01 01:00:00.000000000 +0100
+++ new/backports.functools_lru_cache-1.6.1/.pre-commit-config.yaml     
2019-11-02 17:19:49.000000000 +0100
@@ -0,0 +1,5 @@
+repos:
+- repo: https://github.com/psf/black
+  rev: 19.3b0
+  hooks:
+  - id: black
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.functools_lru_cache-1.5/.travis.yml 
new/backports.functools_lru_cache-1.6.1/.travis.yml
--- old/backports.functools_lru_cache-1.5/.travis.yml   2018-02-05 
00:39:30.000000000 +0100
+++ new/backports.functools_lru_cache-1.6.1/.travis.yml 2019-11-02 
17:19:49.000000000 +0100
@@ -1,10 +1,10 @@
-dist: trusty
-sudo: false
+dist: xenial
 language: python
 
 python:
 - 2.7
-- &latest_py3 3.6
+- 3.6
+- &latest_py3 3.8
 
 jobs:
   fast_finish: true
@@ -12,23 +12,17 @@
   - 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: 
mJUt/9xGGfOMjAug7PEJojli2VgQyoCKx88amgK595lfdK/cAmTGi/na3Hw3Kt/7bfNjGCWyYzoXZ1VAhCDiiG8mOnWszTSNoeQSS4NCTkR7f1oUEo7izLrsGpEs8aveXY3XlqW5VTnssaL526ju5vIXDPKvhqvLrYkd7mP62HcL3rbSJM72D54OUVVX0gEKf4swgwjQe6xNQyRQpq/QcIKXxqgKF3/qIbnJQWGv7tDuxaWLghh2gx3oBNZVmQKBWfokwjp+PWV7zqIrE2o5sZ5Jkh+kt5+UOVDyMh/3Fd4s2G6ZD6asDRA5QBQxo/QtF2fQsi8heE4VgChRrnKzYXAZN1CSEj9i7BgBq2nbRod5WqlCR44zC44A4qS+D5ZlZVdmamZY9ni2/vZ6xMxl4m8Yk30xBHIoo+huJjLimnOETp9YTArMlebfPetCE6C6Tu3rmVoftiW2npjaBBxDCglSdRmluf+fsuw/Sq77p0q6nBZ2TxlWGxT0QUAF8u41I0I/n+B5rart/H1Yf3HvBAiGf8omU7QrsbA496hgIHY0r2LUsVre7IwjYYyUM6xqd9m7T8yX5yQNijp/rpvHnwcgRvd6WdHJ1BtnoYaAHWmROwC5PFz9mWB3Cw5csPylaC7gOkvD8LkjUk9zOx3C8/TUlr/QmxAAdOooqFey3kY=
-      distributions: dists
-      skip_cleanup: true
-      skip_upload_docs: true
+    before_script: skip
+    script: tox -e release
 
 cache: pip
 
 install:
 - pip install tox tox-venv
 
+before_script:
+  # Disable IPv6. Ref travis-ci/travis-ci#8361
+  - if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
+      sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
+    fi
 script: tox
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.functools_lru_cache-1.5/CHANGES.rst 
new/backports.functools_lru_cache-1.6.1/CHANGES.rst
--- old/backports.functools_lru_cache-1.5/CHANGES.rst   2018-02-05 
00:39:30.000000000 +0100
+++ new/backports.functools_lru_cache-1.6.1/CHANGES.rst 2019-11-02 
17:19:49.000000000 +0100
@@ -1,3 +1,15 @@
+v1.6.1
+======
+
+Publish release notes on readthedocs.
+
+v1.6.0
+======
+
+Refresh package metadata.
+Use black for code style.
+Enroll with Tidelift.
+
 1.5
 ===
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.functools_lru_cache-1.5/PKG-INFO 
new/backports.functools_lru_cache-1.6.1/PKG-INFO
--- old/backports.functools_lru_cache-1.5/PKG-INFO      2018-02-05 
00:39:59.000000000 +0100
+++ new/backports.functools_lru_cache-1.6.1/PKG-INFO    2019-11-02 
17:20:13.047465000 +0100
@@ -1,12 +1,13 @@
-Metadata-Version: 1.2
+Metadata-Version: 2.1
 Name: backports.functools_lru_cache
-Version: 1.5
-Summary: backports.functools_lru_cache
+Version: 1.6.1
+Summary: Backport of functools.lru_cache
 Home-page: https://github.com/jaraco/backports.functools_lru_cache
-Author: Jason R. Coombs
-Author-email: [email protected]
+Author: Raymond Hettinger
+Author-email: [email protected]
+Maintainer: Jason R. Coombs
+Maintainer-email: [email protected]
 License: UNKNOWN
-Description-Content-Type: UNKNOWN
 Description: .. image:: 
https://img.shields.io/pypi/v/backports.functools_lru_cache.svg
            :target: https://pypi.org/project/backports.functools_lru_cache
         
@@ -15,8 +16,18 @@
         .. image:: 
https://img.shields.io/travis/jaraco/backports.functools_lru_cache/master.svg
            :target: https://travis-ci.org/jaraco/backports.functools_lru_cache
         
-        .. .. image:: 
https://readthedocs.org/projects/backportsfunctools_lru_cache/badge/?version=latest
-        ..    :target: 
https://backportsfunctools_lru_cache.readthedocs.io/en/latest/?badge=latest
+        .. image:: https://img.shields.io/badge/code%20style-black-000000.svg
+           :target: https://github.com/psf/black
+           :alt: Code style: Black
+        
+        .. .. image:: 
https://img.shields.io/appveyor/ci/jaraco/skeleton/master.svg
+        ..    :target: 
https://ci.appveyor.com/project/jaraco/skeleton/branch/master
+        
+        .. image:: 
https://readthedocs.org/projects/backportsfunctools_lru_cache/badge/?version=latest
+           :target: 
https://backportsfunctools_lru_cache.readthedocs.io/en/latest/?badge=latest
+        
+        .. image:: 
https://tidelift.com/badges/package/pypi/backports.functools_lru_cache
+           :target: 
https://tidelift.com/subscription/pkg/pypi-backports.functools_lru_cache?utm_source=pypi-backports.functools_lru_cache&utm_medium=readme
         
         Backport of functools.lru_cache from Python 3.3 as published at 
`ActiveState
         <http://code.activestate.com/recipes/578078/>`_.
@@ -31,6 +42,14 @@
             except ImportError:
                 from backports.functools_lru_cache import lru_cache
         
+        
+        Security Contact
+        ================
+        
+        To report a security vulnerability, please use the
+        `Tidelift security contact <https://tidelift.com/security>`_.
+        Tidelift will coordinate the fix and disclosure.
+        
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Intended Audience :: Developers
@@ -39,3 +58,5 @@
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
 Requires-Python: >=2.6
+Provides-Extra: testing
+Provides-Extra: docs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.functools_lru_cache-1.5/README.rst 
new/backports.functools_lru_cache-1.6.1/README.rst
--- old/backports.functools_lru_cache-1.5/README.rst    2018-02-05 
00:39:30.000000000 +0100
+++ new/backports.functools_lru_cache-1.6.1/README.rst  2019-11-02 
17:19:49.000000000 +0100
@@ -6,8 +6,18 @@
 .. image:: 
https://img.shields.io/travis/jaraco/backports.functools_lru_cache/master.svg
    :target: https://travis-ci.org/jaraco/backports.functools_lru_cache
 
-.. .. image:: 
https://readthedocs.org/projects/backportsfunctools_lru_cache/badge/?version=latest
-..    :target: 
https://backportsfunctools_lru_cache.readthedocs.io/en/latest/?badge=latest
+.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
+   :target: https://github.com/psf/black
+   :alt: Code style: Black
+
+.. .. image:: https://img.shields.io/appveyor/ci/jaraco/skeleton/master.svg
+..    :target: https://ci.appveyor.com/project/jaraco/skeleton/branch/master
+
+.. image:: 
https://readthedocs.org/projects/backportsfunctools_lru_cache/badge/?version=latest
+   :target: 
https://backportsfunctools_lru_cache.readthedocs.io/en/latest/?badge=latest
+
+.. image:: 
https://tidelift.com/badges/package/pypi/backports.functools_lru_cache
+   :target: 
https://tidelift.com/subscription/pkg/pypi-backports.functools_lru_cache?utm_source=pypi-backports.functools_lru_cache&utm_medium=readme
 
 Backport of functools.lru_cache from Python 3.3 as published at `ActiveState
 <http://code.activestate.com/recipes/578078/>`_.
@@ -21,3 +31,11 @@
         from functools import lru_cache
     except ImportError:
         from backports.functools_lru_cache import lru_cache
+
+
+Security Contact
+================
+
+To report a security vulnerability, please use the
+`Tidelift security contact <https://tidelift.com/security>`_.
+Tidelift will coordinate the fix and disclosure.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.functools_lru_cache-1.5/appveyor.yml 
new/backports.functools_lru_cache-1.6.1/appveyor.yml
--- old/backports.functools_lru_cache-1.5/appveyor.yml  2018-02-05 
00:39:30.000000000 +0100
+++ new/backports.functools_lru_cache-1.6.1/appveyor.yml        2019-11-02 
17:19:49.000000000 +0100
@@ -14,8 +14,11 @@
 
 build: off
 
+cache:
+  - '%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.functools_lru_cache-1.5/backports/functools_lru_cache.py 
new/backports.functools_lru_cache-1.6.1/backports/functools_lru_cache.py
--- old/backports.functools_lru_cache-1.5/backports/functools_lru_cache.py      
2018-02-05 00:39:30.000000000 +0100
+++ new/backports.functools_lru_cache-1.6.1/backports/functools_lru_cache.py    
2019-11-02 17:19:49.000000000 +0100
@@ -8,10 +8,12 @@
 
 
 @functools.wraps(functools.update_wrapper)
-def update_wrapper(wrapper,
-                   wrapped,
-                   assigned = functools.WRAPPER_ASSIGNMENTS,
-                   updated = functools.WRAPPER_UPDATES):
+def update_wrapper(
+    wrapper,
+    wrapped,
+    assigned=functools.WRAPPER_ASSIGNMENTS,
+    updated=functools.WRAPPER_UPDATES,
+):
     """
     Patch two bugs in functools.update_wrapper.
     """
@@ -34,10 +36,17 @@
         return self.hashvalue
 
 
-def _make_key(args, kwds, typed,
-              kwd_mark=(object(),),
-              fasttypes=set([int, str, frozenset, type(None)]),
-              sorted=sorted, tuple=tuple, type=type, len=len):
+def _make_key(
+    args,
+    kwds,
+    typed,
+    kwd_mark=(object(),),
+    fasttypes=set([int, str, frozenset, type(None)]),
+    sorted=sorted,
+    tuple=tuple,
+    type=type,
+    len=len,
+):
     'Make a cache key from optionally typed positional and keyword arguments'
     key = args
     if kwds:
@@ -82,16 +91,16 @@
     def decorating_function(user_function):
 
         cache = dict()
-        stats = [0, 0]                  # make statistics updateable 
non-locally
-        HITS, MISSES = 0, 1             # names for the stats fields
+        stats = [0, 0]  # make statistics updateable non-locally
+        HITS, MISSES = 0, 1  # names for the stats fields
         make_key = _make_key
-        cache_get = cache.get           # bound method to lookup key or return 
None
-        _len = len                      # localize the global len() function
-        lock = RLock()                  # because linkedlist updates aren't 
threadsafe
-        root = []                       # root of the circular doubly linked 
list
-        root[:] = [root, root, None, None]      # initialize by pointing to 
self
-        nonlocal_root = [root]                  # make updateable non-locally
-        PREV, NEXT, KEY, RESULT = 0, 1, 2, 3    # names for the link fields
+        cache_get = cache.get  # bound method to lookup key or return None
+        _len = len  # localize the global len() function
+        lock = RLock()  # because linkedlist updates aren't threadsafe
+        root = []  # root of the circular doubly linked list
+        root[:] = [root, root, None, None]  # initialize by pointing to self
+        nonlocal_root = [root]  # make updateable non-locally
+        PREV, NEXT, KEY, RESULT = 0, 1, 2, 3  # names for the link fields
 
         if maxsize == 0:
 
@@ -106,7 +115,9 @@
             def wrapper(*args, **kwds):
                 # simple caching without ordering or size limit
                 key = make_key(args, kwds, typed)
-                result = cache_get(key, root)   # root used here as a unique 
not-found sentinel
+                result = cache_get(
+                    key, root
+                )  # root used here as a unique not-found sentinel
                 if result is not root:
                     stats[HITS] += 1
                     return result
@@ -123,7 +134,8 @@
                 with lock:
                     link = cache_get(key)
                     if link is not None:
-                        # record recent use of the key by moving it to the 
front of the list
+                        # record recent use of the key by moving it
+                        # to the front of the list
                         root, = nonlocal_root
                         link_prev, link_next, key, result = link
                         link_prev[NEXT] = link_next
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/backports.functools_lru_cache-1.5/backports.functools_lru_cache.egg-info/PKG-INFO
 
new/backports.functools_lru_cache-1.6.1/backports.functools_lru_cache.egg-info/PKG-INFO
--- 
old/backports.functools_lru_cache-1.5/backports.functools_lru_cache.egg-info/PKG-INFO
       2018-02-05 00:39:59.000000000 +0100
+++ 
new/backports.functools_lru_cache-1.6.1/backports.functools_lru_cache.egg-info/PKG-INFO
     2019-11-02 17:20:12.000000000 +0100
@@ -1,12 +1,13 @@
-Metadata-Version: 1.2
+Metadata-Version: 2.1
 Name: backports.functools-lru-cache
-Version: 1.5
-Summary: backports.functools_lru_cache
+Version: 1.6.1
+Summary: Backport of functools.lru_cache
 Home-page: https://github.com/jaraco/backports.functools_lru_cache
-Author: Jason R. Coombs
-Author-email: [email protected]
+Author: Raymond Hettinger
+Author-email: [email protected]
+Maintainer: Jason R. Coombs
+Maintainer-email: [email protected]
 License: UNKNOWN
-Description-Content-Type: UNKNOWN
 Description: .. image:: 
https://img.shields.io/pypi/v/backports.functools_lru_cache.svg
            :target: https://pypi.org/project/backports.functools_lru_cache
         
@@ -15,8 +16,18 @@
         .. image:: 
https://img.shields.io/travis/jaraco/backports.functools_lru_cache/master.svg
            :target: https://travis-ci.org/jaraco/backports.functools_lru_cache
         
-        .. .. image:: 
https://readthedocs.org/projects/backportsfunctools_lru_cache/badge/?version=latest
-        ..    :target: 
https://backportsfunctools_lru_cache.readthedocs.io/en/latest/?badge=latest
+        .. image:: https://img.shields.io/badge/code%20style-black-000000.svg
+           :target: https://github.com/psf/black
+           :alt: Code style: Black
+        
+        .. .. image:: 
https://img.shields.io/appveyor/ci/jaraco/skeleton/master.svg
+        ..    :target: 
https://ci.appveyor.com/project/jaraco/skeleton/branch/master
+        
+        .. image:: 
https://readthedocs.org/projects/backportsfunctools_lru_cache/badge/?version=latest
+           :target: 
https://backportsfunctools_lru_cache.readthedocs.io/en/latest/?badge=latest
+        
+        .. image:: 
https://tidelift.com/badges/package/pypi/backports.functools_lru_cache
+           :target: 
https://tidelift.com/subscription/pkg/pypi-backports.functools_lru_cache?utm_source=pypi-backports.functools_lru_cache&utm_medium=readme
         
         Backport of functools.lru_cache from Python 3.3 as published at 
`ActiveState
         <http://code.activestate.com/recipes/578078/>`_.
@@ -31,6 +42,14 @@
             except ImportError:
                 from backports.functools_lru_cache import lru_cache
         
+        
+        Security Contact
+        ================
+        
+        To report a security vulnerability, please use the
+        `Tidelift security contact <https://tidelift.com/security>`_.
+        Tidelift will coordinate the fix and disclosure.
+        
 Platform: UNKNOWN
 Classifier: Development Status :: 5 - Production/Stable
 Classifier: Intended Audience :: Developers
@@ -39,3 +58,5 @@
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
 Requires-Python: >=2.6
+Provides-Extra: testing
+Provides-Extra: docs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/backports.functools_lru_cache-1.5/backports.functools_lru_cache.egg-info/SOURCES.txt
 
new/backports.functools_lru_cache-1.6.1/backports.functools_lru_cache.egg-info/SOURCES.txt
--- 
old/backports.functools_lru_cache-1.5/backports.functools_lru_cache.egg-info/SOURCES.txt
    2018-02-05 00:39:59.000000000 +0100
+++ 
new/backports.functools_lru_cache-1.6.1/backports.functools_lru_cache.egg-info/SOURCES.txt
  2019-11-02 17:20:12.000000000 +0100
@@ -1,23 +1,29 @@
+.coveragerc
+.flake8
 .gitignore
+.pre-commit-config.yaml
 .readthedocs.yml
 .travis.yml
 CHANGES.rst
 LICENSE
 README.rst
 appveyor.yml
+pyproject.toml
 pytest.ini
 setup.cfg
 setup.py
+skeleton.md
 tox.ini
+.github/FUNDING.yml
 backports/__init__.py
 backports/functools_lru_cache.py
 backports.functools_lru_cache.egg-info/PKG-INFO
 backports.functools_lru_cache.egg-info/SOURCES.txt
 backports.functools_lru_cache.egg-info/dependency_links.txt
-backports.functools_lru_cache.egg-info/namespace_packages.txt
 backports.functools_lru_cache.egg-info/requires.txt
 backports.functools_lru_cache.egg-info/top_level.txt
 docs/conf.py
 docs/history.rst
 docs/index.rst
+docs/_templates/tidelift-sidebar.html
 tests/test_lru_cache.py
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/backports.functools_lru_cache-1.5/backports.functools_lru_cache.egg-info/namespace_packages.txt
 
new/backports.functools_lru_cache-1.6.1/backports.functools_lru_cache.egg-info/namespace_packages.txt
--- 
old/backports.functools_lru_cache-1.5/backports.functools_lru_cache.egg-info/namespace_packages.txt
 2018-02-05 00:39:59.000000000 +0100
+++ 
new/backports.functools_lru_cache-1.6.1/backports.functools_lru_cache.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.functools_lru_cache-1.5/backports.functools_lru_cache.egg-info/requires.txt
 
new/backports.functools_lru_cache-1.6.1/backports.functools_lru_cache.egg-info/requires.txt
--- 
old/backports.functools_lru_cache-1.5/backports.functools_lru_cache.egg-info/requires.txt
   2018-02-05 00:39:59.000000000 +0100
+++ 
new/backports.functools_lru_cache-1.6.1/backports.functools_lru_cache.egg-info/requires.txt
 2019-11-02 17:20:12.000000000 +0100
@@ -5,5 +5,8 @@
 rst.linker>=1.9
 
 [testing]
-pytest>=2.8
-collective.checkdocs
+pytest!=3.7.3,>=3.5
+pytest-checkdocs>=1.2.3
+pytest-flake8
+pytest-black-multipy
+pytest-cov
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/backports.functools_lru_cache-1.5/docs/_templates/tidelift-sidebar.html 
new/backports.functools_lru_cache-1.6.1/docs/_templates/tidelift-sidebar.html
--- old/backports.functools_lru_cache-1.5/docs/_templates/tidelift-sidebar.html 
1970-01-01 01:00:00.000000000 +0100
+++ 
new/backports.functools_lru_cache-1.6.1/docs/_templates/tidelift-sidebar.html   
    2019-11-02 17:19:49.000000000 +0100
@@ -0,0 +1,6 @@
+<h3 class="donation">Professional support</h3>
+
+<p>
+Professionally-supported {{ project }} is available with the
+<a href="https://tidelift.com/subscription/pkg/pypi-{{ project 
}}?utm_source=pypi-{{ project }}&utm_medium=readme">Tidelift Subscription</a>.
+</p>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.functools_lru_cache-1.5/docs/conf.py 
new/backports.functools_lru_cache-1.6.1/docs/conf.py
--- old/backports.functools_lru_cache-1.5/docs/conf.py  2018-02-05 
00:39:30.000000000 +0100
+++ new/backports.functools_lru_cache-1.6.1/docs/conf.py        2019-11-02 
17:19:49.000000000 +0100
@@ -1,32 +1,31 @@
 #!/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 )?#(?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}/',
+            ),
+        ],
+    )
 }
+
+# Custom sidebar templates, maps document names to template names.
+html_theme = 'alabaster'
+templates_path = ['_templates']
+html_sidebars = {'index': ['tidelift-sidebar.html']}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.functools_lru_cache-1.5/pyproject.toml 
new/backports.functools_lru_cache-1.6.1/pyproject.toml
--- old/backports.functools_lru_cache-1.5/pyproject.toml        1970-01-01 
01:00:00.000000000 +0100
+++ new/backports.functools_lru_cache-1.6.1/pyproject.toml      2019-11-02 
17:19:49.000000000 +0100
@@ -0,0 +1,6 @@
+[build-system]
+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.functools_lru_cache-1.5/pytest.ini 
new/backports.functools_lru_cache-1.6.1/pytest.ini
--- old/backports.functools_lru_cache-1.5/pytest.ini    2018-02-05 
00:39:30.000000000 +0100
+++ new/backports.functools_lru_cache-1.6.1/pytest.ini  2019-11-02 
17:19:49.000000000 +0100
@@ -1,4 +1,5 @@
 [pytest]
 norecursedirs=dist build .tox .eggs
-addopts=--doctest-modules
+addopts=--doctest-modules --flake8 --black --cov
 doctest_optionflags=ALLOW_UNICODE ELLIPSIS
+filterwarnings=
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.functools_lru_cache-1.5/setup.cfg 
new/backports.functools_lru_cache-1.6.1/setup.cfg
--- old/backports.functools_lru_cache-1.5/setup.cfg     2018-02-05 
00:39:59.000000000 +0100
+++ new/backports.functools_lru_cache-1.6.1/setup.cfg   2019-11-02 
17:20:13.047465000 +0100
@@ -1,12 +1,44 @@
-[aliases]
-release = dists upload
-dists = clean --all sdist bdist_wheel
-
 [bdist_wheel]
 universal = 1
 
 [metadata]
 license_file = LICENSE
+name = backports.functools_lru_cache
+author = Raymond Hettinger
+author_email = [email protected]
+maintainer = Jason R. Coombs
+maintainer_email = [email protected]
+description = Backport of functools.lru_cache
+long_description = file:README.rst
+url = https://github.com/jaraco/backports.functools_lru_cache
+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
+
+[options]
+packages = find:
+include_package_data = true
+python_requires = >=2.6
+install_requires = 
+setup_requires = setuptools_scm >= 1.15.0
+
+[options.extras_require]
+testing = 
+       pytest >= 3.5, !=3.7.3
+       pytest-checkdocs >= 1.2.3
+       pytest-flake8
+       pytest-black-multipy
+       pytest-cov
+docs = 
+       sphinx
+       jaraco.packaging >= 3.2
+       rst.linker >= 1.9
+
+[options.entry_points]
 
 [egg_info]
 tag_build = 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.functools_lru_cache-1.5/setup.py 
new/backports.functools_lru_cache-1.6.1/setup.py
--- old/backports.functools_lru_cache-1.5/setup.py      2018-02-05 
00:39:30.000000000 +0100
+++ new/backports.functools_lru_cache-1.6.1/setup.py    2019-11-02 
17:19:49.000000000 +0100
@@ -1,66 +1,6 @@
 #!/usr/bin/env python
 
-# Project skeleton maintained at https://github.com/jaraco/skeleton
-
-import io
-
 import setuptools
 
-with io.open('README.rst', encoding='utf-8') as readme:
-       long_description = readme.read()
-
-name = 'backports.functools_lru_cache'
-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="Raymond Hettinger",
-       author_email="[email protected]",
-       maintainer="Jason R. Coombs",
-       maintainer_email="[email protected]",
-       description=description or name,
-       long_description=long_description,
-       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={
-               'testing': [
-                       'pytest>=2.8',
-                       # 'pytest-sugar',
-                       'collective.checkdocs',
-               ],
-               'docs': [
-                       'sphinx',
-                       'jaraco.packaging>=3.2',
-                       'rst.linker>=1.9',
-               ],
-       },
-       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",
-       ],
-       entry_points={
-       },
-)
-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.functools_lru_cache-1.5/skeleton.md 
new/backports.functools_lru_cache-1.6.1/skeleton.md
--- old/backports.functools_lru_cache-1.5/skeleton.md   1970-01-01 
01:00:00.000000000 +0100
+++ new/backports.functools_lru_cache-1.6.1/skeleton.md 2019-11-02 
17:19:49.000000000 +0100
@@ -0,0 +1,137 @@
+# 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.
+
+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).
+
+### Continuous Deployments
+
+In addition to running tests, an additional deploy stage is configured to 
automatically release tagged commits to PyPI using [API 
tokens](https://pypi.org/help/#apitoken). The release process expects an 
authorized token to be configured with Travis as the TWINE_PASSWORD environment 
variable. After the Travis project is created, configure the token through the 
web UI or with a command like the following (bash syntax):
+
+```
+TWINE_PASSWORD={token} travis env copy TWINE_PASSWORD
+```
+
+## 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.
+
+Releases may also be cut manually by invoking the tox environment `release` 
with the PyPI token set as the TWINE_PASSWORD:
+
+```
+TWINE_PASSWORD={token} tox -e release
+```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/backports.functools_lru_cache-1.5/tests/test_lru_cache.py 
new/backports.functools_lru_cache-1.6.1/tests/test_lru_cache.py
--- old/backports.functools_lru_cache-1.5/tests/test_lru_cache.py       
2018-02-05 00:39:30.000000000 +0100
+++ new/backports.functools_lru_cache-1.6.1/tests/test_lru_cache.py     
2019-11-02 17:19:49.000000000 +0100
@@ -4,8 +4,8 @@
 
 
 def test_invocation():
-       @lru_cache()
-       def func():
-               return random.random()
+    @lru_cache()
+    def func():
+        return random.random()
 
-       assert func() == func()
+    assert func() == func()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/backports.functools_lru_cache-1.5/tox.ini 
new/backports.functools_lru_cache-1.6.1/tox.ini
--- old/backports.functools_lru_cache-1.5/tox.ini       2018-02-05 
00:39:30.000000000 +0100
+++ new/backports.functools_lru_cache-1.6.1/tox.ini     2019-11-02 
17:19:49.000000000 +0100
@@ -1,20 +1,45 @@
 [tox]
 envlist = python
-minversion = 2.4
+minversion = 3.2
+# https://github.com/jaraco/skeleton/issues/6
+tox_pip_extensions_ext_venv_update = true
+# Ensure that a late version of pip is used even on tox-venv.
+requires =
+       tox-pip-version>=0.0.6
+       tox-venv
+
 
 [testenv]
 deps =
        setuptools>=31.0.1
+pip_version = pip
 commands =
-       py.test {posargs}
-       python setup.py checkdocs
+       pytest {posargs}
 usedevelop = True
 extras = testing
 
 [testenv:build-docs]
 extras =
-    docs
-    testing
+       docs
+       testing
 changedir = docs
 commands =
-    python -m sphinx . {toxinidir}/build/html
+       python -m sphinx . {toxinidir}/build/html
+
+[testenv:release]
+skip_install = True
+deps =
+       pep517>=0.5
+       twine>=1.13
+       path.py
+       jaraco.tidelift
+passenv =
+       TWINE_PASSWORD
+       TIDELIFT_TOKEN
+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/*
+       python -m jaraco.tidelift.publish-release-notes


Reply via email to