Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-Deprecated for openSUSE:Factory checked in at 2023-05-30 22:01:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Deprecated (Old) and /work/SRC/openSUSE:Factory/.python-Deprecated.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Deprecated" Tue May 30 22:01:38 2023 rev:10 rq:1089606 version:1.2.14 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Deprecated/python-Deprecated.changes 2023-04-22 22:03:33.910330173 +0200 +++ /work/SRC/openSUSE:Factory/.python-Deprecated.new.1533/python-Deprecated.changes 2023-05-30 22:01:39.606733659 +0200 @@ -1,0 +2,12 @@ +Mon May 29 16:00:37 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 1.2.14: + * Bug fix release + * Fix return a correctly dedented docstring when long + docstring are using the D212 or D213 format. + * Add support for Python 3.11. + * Drop support for Python older than 3.7 in build systems like + pytest and tox, while ensuring the library remains + production-compatible. + +------------------------------------------------------------------- Old: ---- Deprecated-1.2.13.tar.gz New: ---- Deprecated-1.2.14.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Deprecated.spec ++++++ --- /var/tmp/diff_new_pack.lVPEOE/_old 2023-05-30 22:01:40.174737007 +0200 +++ /var/tmp/diff_new_pack.lVPEOE/_new 2023-05-30 22:01:40.178737030 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons} Name: python-Deprecated -Version: 1.2.13 +Version: 1.2.14 Release: 0 Summary: Python @deprecated decorator License: MIT ++++++ Deprecated-1.2.13.tar.gz -> Deprecated-1.2.14.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Deprecated-1.2.13/.bumpversion.cfg new/Deprecated-1.2.14/.bumpversion.cfg --- old/Deprecated-1.2.13/.bumpversion.cfg 2021-06-03 18:38:27.000000000 +0200 +++ new/Deprecated-1.2.14/.bumpversion.cfg 2023-05-27 09:36:46.000000000 +0200 @@ -1,5 +1,5 @@ [bumpversion] -current_version = 1.2.13 +current_version = 1.2.14 commit = True tag = False message = Prepare next version {new_version} (unreleased) @@ -8,6 +8,10 @@ search = version='{current_version}' replace = version='{new_version}' +[bumpversion:file:appveyor.yml] +search = version: {current_version} +replace = version: {new_version} + [bumpversion:file:deprecated/__init__.py] search = __version__ = "{current_version}" replace = __version__ = "{new_version}" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Deprecated-1.2.13/.github/workflows/codeql-analysis.yml new/Deprecated-1.2.14/.github/workflows/codeql-analysis.yml --- old/Deprecated-1.2.13/.github/workflows/codeql-analysis.yml 2021-06-03 18:38:27.000000000 +0200 +++ new/Deprecated-1.2.14/.github/workflows/codeql-analysis.yml 2023-05-27 17:55:40.000000000 +0200 @@ -39,7 +39,7 @@ steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Deprecated-1.2.13/.github/workflows/python-package.yml new/Deprecated-1.2.14/.github/workflows/python-package.yml --- old/Deprecated-1.2.13/.github/workflows/python-package.yml 2021-06-03 18:38:27.000000000 +0200 +++ new/Deprecated-1.2.14/.github/workflows/python-package.yml 2023-05-27 17:55:40.000000000 +0200 @@ -10,41 +10,18 @@ branches: [ master ] jobs: - pytest-py27-p35: - runs-on: ${{ matrix.platform }} - + pytest: strategy: matrix: platform: [ ubuntu-latest, macos-latest, windows-latest ] - python-version: [ 2.7, 3.5 ] - - steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade 'pip < 21' - python -m pip install 'PyTest < 5' - python -m pip install -e . - - name: Test with pytest - run: | - pytest tests/ + python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ] - pytest-py36-py39: runs-on: ${{ matrix.platform }} - strategy: - matrix: - platform: [ ubuntu-latest, macos-latest, windows-latest ] - python-version: [ 3.6, 3.7, 3.8, 3.9 ] - steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -55,3 +32,4 @@ - name: Test with pytest run: | pytest tests/ + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Deprecated-1.2.13/.packit.yml new/Deprecated-1.2.14/.packit.yml --- old/Deprecated-1.2.13/.packit.yml 2021-06-03 18:38:27.000000000 +0200 +++ new/Deprecated-1.2.14/.packit.yml 2023-05-27 17:55:40.000000000 +0200 @@ -15,3 +15,8 @@ metadata: targets: - fedora-all + +srpm_build_deps: + - python3-pip + - python3-setuptools_scm + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Deprecated-1.2.13/.travis.yml new/Deprecated-1.2.14/.travis.yml --- old/Deprecated-1.2.13/.travis.yml 2021-06-03 18:38:27.000000000 +0200 +++ new/Deprecated-1.2.14/.travis.yml 2023-05-27 17:55:40.000000000 +0200 @@ -1,31 +1,24 @@ +dist: focal arch: - amd64 - ppc64le language: python python: - - "2.7" - - "3.5" - - "3.6" - "3.7" - "3.8" - "3.9" - - "3.10-dev" # 3.10 development branch - - "pypy" - - "pypy3" + - "3.10" + - "3.11" + - "3.12-dev" # development branch + - "pypy3.9-7.3.9" jobs: exclude: - arch: ppc64le - python: "2.7" - - arch: ppc64le - python: "pypy" - - arch: ppc64le - python: "pypy3" - - arch: amd64 - python: "pypy" - + python: "pypy3.9-7.3.9" + allow_failures: - - python: "3.10-dev" - + - python: "3.12-dev" + install: - pip install coveralls tox-travis script: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Deprecated-1.2.13/CHANGELOG.rst new/Deprecated-1.2.14/CHANGELOG.rst --- old/Deprecated-1.2.13/CHANGELOG.rst 2021-09-05 13:09:53.000000000 +0200 +++ new/Deprecated-1.2.14/CHANGELOG.rst 2023-05-27 17:55:40.000000000 +0200 @@ -18,6 +18,27 @@ (only in comment or documentation). +v1.2.14 (unreleased) +==================== + +Bug fix release + +Fix +--- + +- Fix #60: return a correctly dedented docstring when long docstring are using the D212 or D213 format. + +Other +----- + +- Add support for Python 3.11. + +- Drop support for Python older than 3.7 in build systems like pytest and tox, + while ensuring the library remains production-compatible. + +- Update GitHub workflow to run in recent Python versions. + + v1.2.13 (2021-09-05) ==================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Deprecated-1.2.13/Deprecated.egg-info/PKG-INFO new/Deprecated-1.2.14/Deprecated.egg-info/PKG-INFO --- old/Deprecated-1.2.13/Deprecated.egg-info/PKG-INFO 2021-09-05 13:12:55.000000000 +0200 +++ new/Deprecated-1.2.14/Deprecated.egg-info/PKG-INFO 2023-05-27 18:01:20.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: Deprecated -Version: 1.2.13 +Version: 1.2.14 Summary: Python @deprecated decorator to deprecate old python classes, functions or methods. Home-page: https://github.com/tantale/deprecated Author: Laurent LAPORTE @@ -26,6 +26,9 @@ Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 Classifier: Topic :: Software Development :: Libraries :: Python Modules Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* Description-Content-Type: text/x-rst @@ -170,5 +173,3 @@ * `Development version <https://github.com/tantale/deprecated/zipball/master#egg=Deprecated-dev>`_ - - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Deprecated-1.2.13/Deprecated.egg-info/requires.txt new/Deprecated-1.2.14/Deprecated.egg-info/requires.txt --- old/Deprecated-1.2.13/Deprecated.egg-info/requires.txt 2021-09-05 13:12:55.000000000 +0200 +++ new/Deprecated-1.2.14/Deprecated.egg-info/requires.txt 2023-05-27 18:01:20.000000000 +0200 @@ -2,20 +2,7 @@ [dev] tox -bump2version<1 -sphinx<2 - -[dev:python_version < "3"] -importlib-metadata<3 -importlib-resources<4 -configparser<5 -sphinxcontrib-websupport<2 -zipp<2 - -[dev:python_version < "3.6"] -PyTest<5 -PyTest-Cov<2.6 - -[dev:python_version >= "3.6"] PyTest PyTest-Cov +bump2version<1 +sphinx<2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Deprecated-1.2.13/PKG-INFO new/Deprecated-1.2.14/PKG-INFO --- old/Deprecated-1.2.13/PKG-INFO 2021-09-05 13:12:56.000000000 +0200 +++ new/Deprecated-1.2.14/PKG-INFO 2023-05-27 18:01:21.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: Deprecated -Version: 1.2.13 +Version: 1.2.14 Summary: Python @deprecated decorator to deprecate old python classes, functions or methods. Home-page: https://github.com/tantale/deprecated Author: Laurent LAPORTE @@ -26,6 +26,9 @@ Classifier: Programming Language :: Python :: 3.7 Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 Classifier: Topic :: Software Development :: Libraries :: Python Modules Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* Description-Content-Type: text/x-rst @@ -170,5 +173,3 @@ * `Development version <https://github.com/tantale/deprecated/zipball/master#egg=Deprecated-dev>`_ - - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Deprecated-1.2.13/appveyor.yml new/Deprecated-1.2.14/appveyor.yml --- old/Deprecated-1.2.13/appveyor.yml 2021-09-05 13:09:43.000000000 +0200 +++ new/Deprecated-1.2.14/appveyor.yml 2023-05-27 17:55:40.000000000 +0200 @@ -1,29 +1,12 @@ -# What Python version is installed where: -# http://www.appveyor.com/docs/installed-software#python - -version: 1.2.13.{build} +# Deprecated's package version, sync with setup.py +version: 1.2.14.{build} +# Explicitly set base image to use +image: Visual Studio 2022 environment: matrix: - # Python **2.6** and **3.3** are no more supported - - PYTHON: "C:\\Python27" - TOX_ENV: "py27" - - - PYTHON: "C:\\Python27-x64" - TOX_ENV: "py27" - - - PYTHON: "C:\\Python35" - TOX_ENV: "py35" - - - PYTHON: "C:\\Python35-x64" - TOX_ENV: "py35" - - - PYTHON: "C:\\Python36" - TOX_ENV: "py36" - - - PYTHON: "C:\\Python36-x64" - TOX_ENV: "py36" - + # What Python version is installed where: + # https://www.appveyor.com/docs/windows-images-software/#python - PYTHON: "C:\\Python37" TOX_ENV: "py37" @@ -36,6 +19,24 @@ - PYTHON: "C:\\Python38-x64" TOX_ENV: "py38" + - PYTHON: "C:\\Python39" + TOX_ENV: "py39" + + - PYTHON: "C:\\Python39-x64" + TOX_ENV: "py39" + + - PYTHON: "C:\\Python310" + TOX_ENV: "py310" + + - PYTHON: "C:\\Python310-x64" + TOX_ENV: "py310" + + - PYTHON: "C:\\Python311" + TOX_ENV: "py311" + + - PYTHON: "C:\\Python311-x64" + TOX_ENV: "py311" + 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.13/deprecated/__init__.py new/Deprecated-1.2.14/deprecated/__init__.py --- old/Deprecated-1.2.13/deprecated/__init__.py 2021-09-05 13:09:53.000000000 +0200 +++ new/Deprecated-1.2.14/deprecated/__init__.py 2023-05-27 09:36:46.000000000 +0200 @@ -7,9 +7,9 @@ """ -__version__ = "1.2.13" +__version__ = "1.2.14" __author__ = u"Laurent LAPORTE <tantale.soluti...@gmail.com>" -__date__ = "2021-09-05" +__date__ = "unreleased" __credits__ = "(c) Laurent LAPORTE" from deprecated.classic import deprecated diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Deprecated-1.2.13/deprecated/sphinx.py new/Deprecated-1.2.14/deprecated/sphinx.py --- old/Deprecated-1.2.13/deprecated/sphinx.py 2021-09-05 10:06:52.000000000 +0200 +++ new/Deprecated-1.2.14/deprecated/sphinx.py 2023-05-27 09:36:46.000000000 +0200 @@ -118,7 +118,11 @@ div_lines.append("") # -- get the docstring, normalize the trailing newlines - docstring = textwrap.dedent(wrapped.__doc__ or "") + # keep a consistent behaviour if the docstring starts with newline or directly on the first one + docstring = wrapped.__doc__ or "" + lines = docstring.splitlines(keepends=True) or [""] + docstring = textwrap.dedent("".join(lines[1:])) if len(lines) > 1 else "" + docstring = lines[0] + docstring if docstring: # An empty line must separate the original docstring and the directive. docstring = re.sub(r"\n+$", "", docstring, flags=re.DOTALL) + "\n\n" Binary files old/Deprecated-1.2.13/docs/source/_static/banner.png and new/Deprecated-1.2.14/docs/source/_static/banner.png differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Deprecated-1.2.13/docs/source/conf.py new/Deprecated-1.2.14/docs/source/conf.py --- old/Deprecated-1.2.13/docs/source/conf.py 2021-06-03 18:38:27.000000000 +0200 +++ new/Deprecated-1.2.14/docs/source/conf.py 2023-05-27 09:36:46.000000000 +0200 @@ -61,7 +61,7 @@ # built documents. # # The full version, including alpha/beta/rc tags. -release = "1.2.13" +release = "1.2.14" # The short X.Y version. version = release.rpartition('.')[0] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Deprecated-1.2.13/pyproject.toml new/Deprecated-1.2.14/pyproject.toml --- old/Deprecated-1.2.13/pyproject.toml 2021-08-25 22:33:11.000000000 +0200 +++ new/Deprecated-1.2.14/pyproject.toml 2023-05-27 17:55:40.000000000 +0200 @@ -1,7 +1,7 @@ [tool.black] line-length = 120 skip-string-normalization = true -target-version = ['py27', 'py34', 'py35', 'py36', 'py37', 'py38'] +target-version = ['py37', 'py38', 'py39', 'py310', 'py311'] include = '\.pyi?$' [tool.isort] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Deprecated-1.2.13/python-deprecated.spec new/Deprecated-1.2.14/python-deprecated.spec --- old/Deprecated-1.2.13/python-deprecated.spec 2021-06-03 18:38:27.000000000 +0200 +++ new/Deprecated-1.2.14/python-deprecated.spec 2023-05-27 09:36:46.000000000 +0200 @@ -2,7 +2,7 @@ %global pkgname deprecated Name: python-%{pkgname} -Version: 1.2.13 +Version: 1.2.14 Release: 1%{?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.13/setup.py new/Deprecated-1.2.14/setup.py --- old/Deprecated-1.2.13/setup.py 2021-06-03 18:38:27.000000000 +0200 +++ new/Deprecated-1.2.14/setup.py 2023-05-27 17:55:40.000000000 +0200 @@ -143,7 +143,7 @@ setup( name='Deprecated', - version='1.2.13', + version='1.2.14', url='https://github.com/tantale/deprecated', project_urls={ "Documentation": "https://deprecated.readthedocs.io/en/latest/", @@ -178,24 +178,18 @@ 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', - # 'Programming Language :: Python :: 3.10', # scheduled on 2021-10-04 + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Topic :: Software Development :: Libraries :: Python Modules', ], extras_require={ 'dev': [ 'tox', - 'PyTest ; python_version >= "3.6"', - 'PyTest < 5 ; python_version < "3.6"', - 'PyTest-Cov ; python_version >= "3.6"', - 'PyTest-Cov < 2.6 ; python_version < "3.6"', + 'PyTest', + 'PyTest-Cov', 'bump2version < 1', 'sphinx < 2', - # Python 2.7 EOL: - 'importlib-metadata < 3 ; python_version < "3"', - 'importlib-resources < 4 ; python_version < "3"', - 'configparser < 5 ; python_version < "3"', - 'sphinxcontrib-websupport < 2 ; python_version < "3"', - 'zipp < 2 ; python_version < "3"', ] }, python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Deprecated-1.2.13/tests/test_sphinx.py new/Deprecated-1.2.14/tests/test_sphinx.py --- old/Deprecated-1.2.13/tests/test_sphinx.py 2021-06-03 18:38:27.000000000 +0200 +++ new/Deprecated-1.2.14/tests/test_sphinx.py 2023-05-27 09:36:46.000000000 +0200 @@ -23,8 +23,14 @@ :param y: number *y* :return: sum = *x* + *y* """, + """This function adds *x* and *y*. + + :param x: number *x* + :param y: number *y* + :return: sum = *x* + *y* + """, ], - ids=["no_docstring", "short_docstring", "long_docstring"], + ids=["no_docstring", "short_docstring", "D213_long_docstring", "D212_long_docstring"], ) def docstring(request): return request.param diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Deprecated-1.2.13/tox.ini new/Deprecated-1.2.14/tox.ini --- old/Deprecated-1.2.13/tox.ini 2021-09-05 10:38:18.000000000 +0200 +++ new/Deprecated-1.2.14/tox.ini 2023-05-27 17:55:40.000000000 +0200 @@ -8,32 +8,31 @@ [tox] # 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,39,310}-wrapt{1.10,1.11,1.12,1.13} - pypy, pypy3 + py{37,38,39,310}-wrapt{1.10,1.11,1.12,1.13,1.14} + py{311,312}-wrapt{1.14} + pypy3 docs [testenv] commands = pytest --cov-report term-missing --cov=deprecated tests/ deps = - py27,py34,py35: pip >= 9.0.3, < 21 - py27,py34: PyTest < 5 - py35,py36,py37,py38,py39,pypy,pypy3: PyTest - py27,py34: PyTest-Cov < 2.6 - py34: typing # required by pytest->attrs - py35,py36,py37,py38,py39,py310,pypy,pypy3: PyTest-Cov + py{37,38,39,310,311,312,py3}: PyTest + py{37,38,39,310,311,312,py3}: PyTest-Cov wrapt1.10: wrapt ~= 1.10.0 wrapt1.11: wrapt ~= 1.11.0 wrapt1.12: wrapt ~= 1.12.0 - wrapt1.13: wrapt == 1.13.0rc3 - coverage < 5 + wrapt1.13: wrapt ~= 1.13.0 + wrapt1.14: wrapt ~= 1.14.0 + coverage [testenv:docs] basepython = python +# jinja2 3.0.3 was the last version to have contextfunction that sphinx 1.x needs deps = sphinx < 2 + jinja2 == 3.0.3 commands = sphinx-build -b html -d {envtmpdir}/doctrees docs/source/ {envtmpdir}/html sphinx-build -b epub -d {envtmpdir}/doctrees docs/source/ {envtmpdir}/epub