Hello community,
here is the log from the commit of package python-Deprecated for
openSUSE:Factory checked in at 2020-07-09 13:20:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Deprecated (Old)
and /work/SRC/openSUSE:Factory/.python-Deprecated.new.3060 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Deprecated"
Thu Jul 9 13:20:14 2020 rev:5 rq:819615 version:1.2.10
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Deprecated/python-Deprecated.changes
2020-05-04 18:42:47.269331963 +0200
+++
/work/SRC/openSUSE:Factory/.python-Deprecated.new.3060/python-Deprecated.changes
2020-07-09 13:21:00.605581088 +0200
@@ -1,0 +2,7 @@
+Wed Jul 8 21:53:35 UTC 2020 - Ondřej Súkup <[email protected]>
+
+- Update to 1.2.10
+ * Fix #25: @deprecated respects global warning filters with actions other
+ than “ignore” and “always” on Python 3.
+
+-------------------------------------------------------------------
Old:
----
Deprecated-1.2.9.tar.gz
New:
----
Deprecated-1.2.10.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-Deprecated.spec ++++++
--- /var/tmp/diff_new_pack.YFBU6U/_old 2020-07-09 13:21:04.597593706 +0200
+++ /var/tmp/diff_new_pack.YFBU6U/_new 2020-07-09 13:21:04.597593706 +0200
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-Deprecated
-Version: 1.2.9
+Version: 1.2.10
Release: 0
Summary: Python @deprecated decorator
License: MIT
++++++ Deprecated-1.2.9.tar.gz -> Deprecated-1.2.10.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Deprecated-1.2.9/.bumpversion.cfg
new/Deprecated-1.2.10/.bumpversion.cfg
--- old/Deprecated-1.2.9/.bumpversion.cfg 2020-04-05 22:45:36.000000000
+0200
+++ new/Deprecated-1.2.10/.bumpversion.cfg 2020-05-13 22:20:55.000000000
+0200
@@ -1,5 +1,5 @@
[bumpversion]
-current_version = 1.2.9
+current_version = 1.2.10
commit = True
tag = False
message = Prepare next version {new_version} (unreleased)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Deprecated-1.2.9/.travis.yml
new/Deprecated-1.2.10/.travis.yml
--- old/Deprecated-1.2.9/.travis.yml 2019-11-11 14:45:11.000000000 +0100
+++ new/Deprecated-1.2.10/.travis.yml 2020-05-13 22:20:55.000000000 +0200
@@ -1,17 +1,18 @@
language: python
python:
- # Python **2.6** and **3.3** are no more supported
- "2.7"
- - "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- - "3.8-dev" # 3.8 development branch
- # - "pypy" # some unit tests fail
+ - "3.9-dev" # 3.9 development branch
+ - "pypy"
+ - "pypy3"
+jobs:
+ allow_failures:
+ - python: "3.9-dev"
install:
- - pip install tox-travis
- - pip install coveralls
+ - pip install coveralls tox-travis
script:
tox
after_success:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Deprecated-1.2.9/CHANGELOG.rst
new/Deprecated-1.2.10/CHANGELOG.rst
--- old/Deprecated-1.2.9/CHANGELOG.rst 2020-04-10 09:54:34.000000000 +0200
+++ new/Deprecated-1.2.10/CHANGELOG.rst 2020-05-13 22:43:10.000000000 +0200
@@ -18,6 +18,24 @@
(only in comment or documentation).
+v1.2.10 (2020-05-13)
+====================
+
+Bug fix release
+
+Fix
+---
+
+- Fix #25: ``@deprecated`` respects global warning filters with actions other
than "ignore" and "always" on Python 3.
+
+Other
+-----
+
+- Change the configuration for TravisCI to build on pypy and pypy3.
+
+- Change the configuration for TravisCI and AppVeyor: drop configuration for
Python **3.4** and add **3.8**.
+
+
v1.2.9 (2020-04-10)
===================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Deprecated-1.2.9/CONTRIBUTING.rst
new/Deprecated-1.2.10/CONTRIBUTING.rst
--- old/Deprecated-1.2.9/CONTRIBUTING.rst 2019-10-02 20:18:27.000000000
+0200
+++ new/Deprecated-1.2.10/CONTRIBUTING.rst 2020-05-13 22:20:55.000000000
+0200
@@ -105,7 +105,7 @@
The full test suite takes a long time to run because it tests multiple
combinations of Python and dependencies. You need to have Python 2.7,
-3.4, 3.5, 3.6, and PyPy 2.7 installed to run all of the environments (notice
+3.4, 3.5, 3.6, PyPy 2.7 and 3.6 installed to run all of the environments
(notice
that Python **2.6** and **3.3** are no more supported). Then run::
tox
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Deprecated-1.2.9/Deprecated.egg-info/PKG-INFO
new/Deprecated-1.2.10/Deprecated.egg-info/PKG-INFO
--- old/Deprecated-1.2.9/Deprecated.egg-info/PKG-INFO 2020-04-10
10:30:26.000000000 +0200
+++ new/Deprecated-1.2.10/Deprecated.egg-info/PKG-INFO 2020-05-13
22:43:41.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: Deprecated
-Version: 1.2.9
+Version: 1.2.10
Summary: Python @deprecated decorator to deprecate old python classes,
functions or methods.
Home-page: https://github.com/tantale/deprecated
Author: Laurent LAPORTE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Deprecated-1.2.9/Deprecated.egg-info/SOURCES.txt
new/Deprecated-1.2.10/Deprecated.egg-info/SOURCES.txt
--- old/Deprecated-1.2.9/Deprecated.egg-info/SOURCES.txt 2020-04-10
10:30:26.000000000 +0200
+++ new/Deprecated-1.2.10/Deprecated.egg-info/SOURCES.txt 2020-05-13
22:43:41.000000000 +0200
@@ -9,7 +9,6 @@
Makefile
README.md
appveyor.yml
-pyproject.toml
python-deprecated.spec
setup.cfg
setup.py
@@ -28,7 +27,6 @@
deprecated/sphinx.py
docs/blurb.rst
docs/cover/paper_10.jpeg
-docs/cover/title-page.odg
docs/source/api.rst
docs/source/changelog.rst
docs/source/conf.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Deprecated-1.2.9/PKG-INFO
new/Deprecated-1.2.10/PKG-INFO
--- old/Deprecated-1.2.9/PKG-INFO 2020-04-10 10:30:26.000000000 +0200
+++ new/Deprecated-1.2.10/PKG-INFO 2020-05-13 22:43:41.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: Deprecated
-Version: 1.2.9
+Version: 1.2.10
Summary: Python @deprecated decorator to deprecate old python classes,
functions or methods.
Home-page: https://github.com/tantale/deprecated
Author: Laurent LAPORTE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Deprecated-1.2.9/appveyor.yml
new/Deprecated-1.2.10/appveyor.yml
--- old/Deprecated-1.2.9/appveyor.yml 2019-10-02 20:18:27.000000000 +0200
+++ new/Deprecated-1.2.10/appveyor.yml 2020-05-13 22:20:55.000000000 +0200
@@ -10,12 +10,6 @@
- PYTHON: "C:\\Python27-x64"
TOX_ENV: "py27"
- - PYTHON: "C:\\Python34"
- TOX_ENV: "py34"
-
- - PYTHON: "C:\\Python34-x64"
- TOX_ENV: "py34"
-
- PYTHON: "C:\\Python35"
TOX_ENV: "py35"
@@ -34,6 +28,12 @@
- PYTHON: "C:\\Python37-x64"
TOX_ENV: "py37"
+ - PYTHON: "C:\\Python38"
+ TOX_ENV: "py38"
+
+ - PYTHON: "C:\\Python38-x64"
+ TOX_ENV: "py38"
+
init:
- set PATH=%PYTHON%;%PYTHON%\Scripts;C:\MinGW\msys\1.0\bin;%PATH%
- "git config --system http.sslcainfo \"C:\\Program
Files\\Git\\mingw64\\ssl\\certs\\ca-bundle.crt\""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Deprecated-1.2.9/deprecated/__init__.py
new/Deprecated-1.2.10/deprecated/__init__.py
--- old/Deprecated-1.2.9/deprecated/__init__.py 2020-04-05 22:45:36.000000000
+0200
+++ new/Deprecated-1.2.10/deprecated/__init__.py 2020-05-13
22:20:55.000000000 +0200
@@ -8,6 +8,6 @@
"""
#: Module Version Number, see `PEP 396
<https://www.python.org/dev/peps/pep-0396/>`_.
-__version__ = "1.2.9"
+__version__ = "1.2.10"
from deprecated.classic import deprecated
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Deprecated-1.2.9/deprecated/classic.py
new/Deprecated-1.2.10/deprecated/classic.py
--- old/Deprecated-1.2.9/deprecated/classic.py 2020-04-10 09:53:49.000000000
+0200
+++ new/Deprecated-1.2.10/deprecated/classic.py 2020-05-13 22:22:53.000000000
+0200
@@ -161,9 +161,11 @@
def wrapped_cls(cls, *args, **kwargs):
msg = self.get_deprecated_msg(wrapped, None)
- with warnings.catch_warnings():
- if self.action:
+ if self.action:
+ with warnings.catch_warnings():
warnings.simplefilter(self.action, self.category)
+ warnings.warn(msg, category=self.category,
stacklevel=_class_stacklevel)
+ else:
warnings.warn(msg, category=self.category,
stacklevel=_class_stacklevel)
if old_new1 is object.__new__:
return old_new1(cls)
@@ -274,9 +276,11 @@
@wrapt.decorator(adapter=adapter)
def wrapper_function(wrapped_, instance_, args_, kwargs_):
msg = adapter.get_deprecated_msg(wrapped_, instance_)
- with warnings.catch_warnings():
- if action:
+ if action:
+ with warnings.catch_warnings():
warnings.simplefilter(action, category)
+ warnings.warn(msg, category=category,
stacklevel=_routine_stacklevel)
+ else:
warnings.warn(msg, category=category,
stacklevel=_routine_stacklevel)
return wrapped_(*args_, **kwargs_)
Binary files old/Deprecated-1.2.9/docs/cover/title-page.odg and
new/Deprecated-1.2.10/docs/cover/title-page.odg differ
Binary files old/Deprecated-1.2.9/docs/source/_static/banner.png and
new/Deprecated-1.2.10/docs/source/_static/banner.png differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Deprecated-1.2.9/docs/source/conf.py
new/Deprecated-1.2.10/docs/source/conf.py
--- old/Deprecated-1.2.9/docs/source/conf.py 2020-04-05 22:45:36.000000000
+0200
+++ new/Deprecated-1.2.10/docs/source/conf.py 2020-05-13 22:20:55.000000000
+0200
@@ -61,7 +61,7 @@
# built documents.
#
# The full version, including alpha/beta/rc tags.
-release = "1.2.9"
+release = "1.2.10"
# The short X.Y version.
version = release.rpartition('.')[0]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Deprecated-1.2.9/docs/source/installation.rst
new/Deprecated-1.2.10/docs/source/installation.rst
--- old/Deprecated-1.2.9/docs/source/installation.rst 2020-02-10
13:24:37.000000000 +0100
+++ new/Deprecated-1.2.10/docs/source/installation.rst 2020-05-13
22:20:55.000000000 +0200
@@ -7,7 +7,7 @@
--------------
We recommend using the latest version of Python 3. Deprecated Library supports
Python 3.4
-and newer, Python 2.7 and newer, and PyPy.
+and newer, Python 2.7 and newer, and PyPy 2.7 and 3.6.
Dependencies
------------
@@ -167,4 +167,4 @@
Now you can continue to :ref:`install-create-env`.
.. _virtualenv: https://virtualenv.pypa.io/
-.. _get-pip.py: https://bootstrap.pypa.io/get-pip.py
\ No newline at end of file
+.. _get-pip.py: https://bootstrap.pypa.io/get-pip.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Deprecated-1.2.9/pyproject.toml
new/Deprecated-1.2.10/pyproject.toml
--- old/Deprecated-1.2.9/pyproject.toml 2020-02-23 18:51:31.000000000 +0100
+++ new/Deprecated-1.2.10/pyproject.toml 1970-01-01 01:00:00.000000000
+0100
@@ -1,5 +0,0 @@
-[tool.black]
-line-length = 120
-skip-string-normalization = true
-target-version = ['py27', 'py34', 'py35', 'py36', 'py37', 'py38']
-include = '\.pyi?$'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Deprecated-1.2.9/python-deprecated.spec
new/Deprecated-1.2.10/python-deprecated.spec
--- old/Deprecated-1.2.9/python-deprecated.spec 2020-04-05 22:57:56.000000000
+0200
+++ new/Deprecated-1.2.10/python-deprecated.spec 2020-05-13
22:20:55.000000000 +0200
@@ -2,7 +2,7 @@
%global pkgname deprecated
Name: python-%{pkgname}
-Version: 1.2.9
+Version: 1.2.10
Release: 2%{?dist}
Summary: Python decorator to deprecate old python classes, functions or
methods
License: MIT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Deprecated-1.2.9/setup.py
new/Deprecated-1.2.10/setup.py
--- old/Deprecated-1.2.9/setup.py 2020-04-10 10:30:23.000000000 +0200
+++ new/Deprecated-1.2.10/setup.py 2020-05-13 22:20:55.000000000 +0200
@@ -143,7 +143,7 @@
setup(
name='Deprecated',
- version='1.2.9',
+ version='1.2.10',
url='https://github.com/tantale/deprecated',
project_urls={
"Documentation": "https://deprecated.readthedocs.io/en/latest/",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Deprecated-1.2.9/tests/test_deprecated.py
new/Deprecated-1.2.10/tests/test_deprecated.py
--- old/Deprecated-1.2.9/tests/test_deprecated.py 2020-02-22
18:04:29.000000000 +0100
+++ new/Deprecated-1.2.10/tests/test_deprecated.py 2020-05-13
22:22:53.000000000 +0200
@@ -248,8 +248,9 @@
def fun():
print("fun")
- warnings.simplefilter("ignore", category=DeprecationWarning)
+ warnings.simplefilter("once", category=DeprecationWarning)
with warnings.catch_warnings(record=True) as warns:
fun()
- assert len(warns) == 0
+ fun()
+ assert len(warns) == 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Deprecated-1.2.9/tests/test_deprecated_class.py
new/Deprecated-1.2.10/tests/test_deprecated_class.py
--- old/Deprecated-1.2.9/tests/test_deprecated_class.py 2019-10-27
16:35:16.000000000 +0100
+++ new/Deprecated-1.2.10/tests/test_deprecated_class.py 2020-05-13
22:22:53.000000000 +0200
@@ -106,6 +106,19 @@
assert issubclass(MySubClass, MyBaseClass)
+def test_class_respect_global_filter():
+ @deprecated.classic.deprecated
+ class MyBaseClass(object):
+ pass
+
+ with warnings.catch_warnings(record=True) as warns:
+ warnings.simplefilter("once")
+ obj = MyBaseClass()
+ obj = MyBaseClass()
+
+ assert len(warns) == 1
+
+
def test_subclass_deprecation_using_deprecated_decorator():
@deprecated.classic.deprecated
class MyBaseClass(object):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Deprecated-1.2.9/tox.ini
new/Deprecated-1.2.10/tox.ini
--- old/Deprecated-1.2.9/tox.ini 2020-04-10 09:53:24.000000000 +0200
+++ new/Deprecated-1.2.10/tox.ini 2020-05-13 22:33:49.000000000 +0200
@@ -7,26 +7,26 @@
# and then run "tox" from this directory.
[tox]
-# py32 not supported by tox and pytest
# PyPy configuration (on Linux/OSX):
# - /usr/local/bin/pypy -> /opt/pypy2.7-v7.3.0-osx64/bin/pypy
# - /usr/local/bin/pypy3 -> /opt/pypy3.6-v7.3.0-osx64/bin/pypy3
envlist =
- py{27,34,35,36,37,38}-wrapt{1.10,1.11,1.12}
+ py{27,35,36,37,38,39}-wrapt{1.10,1.11,1.12}
pypy, pypy3
docs
[testenv]
commands = pytest --cov-report term-missing --cov=deprecated tests/
deps =
- py27,py34,py35: pip >= 9.0.3, < 19.2
- py27,py34: PyTest < 5
+ py27,py35: pip >= 9.0.3, < 19.2
+ py27: PyTest < 5
py35,py36,py37,py38,pypy,pypy3: PyTest
- py27,py34: PyTest-Cov < 2.6
- py35,py36,py37,py38,pypy,pypy3: PyTest-Cov
+ py27: PyTest-Cov < 2.6
+ py35,py36,py37,py38,py39,pypy,pypy3: PyTest-Cov
wrapt1.10: wrapt ~= 1.10.0
wrapt1.11: wrapt ~= 1.11.0
wrapt1.12: wrapt ~= 1.12.0
+ coverage < 5
[testenv:docs]
basepython = python