11
0

29 Commits

Author SHA256 Message Date
fbd7e8f56f Accepting request 1282967 from devel:languages:python
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1282967
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Deprecated?expand=0&rev=15
2025-06-10 06:57:10 +00:00
0992568d9b Accepting request 1242827 from devel:languages:python
- update to 1.2.18:
  * Fix #78: Fix configuration for Packit 1.0.0
  * Fix #79: Fix the configuration for the intersphinx mapping in
    the Sphinx documentation. See How to link to other
    documentation projects with Intersphinx.
  * Drop support for Python older than 3.7 in GitHub Actions.
  * Resolve Python 2.7 support issue introduced in v1.2.14 in
    sphinx.py.
  * Fix #69: Add extra_stacklevel argument for interoperating
    with other wrapper functions (refer to #68 for a concrete use
    case).
  * Fix #73: Update class method deprecation warnings for Python
    3.13.
  * Fix #75: Update GitHub workflows and fix development
    dependencies for Python 3.12.
  * Fix #66: discontinue TravisCI and AppVeyor due to end of free
    support.
  * Fix #60: 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.
  * Update GitHub workflow to run in recent Python versions.
  * Fix #45: Change the signature of the
    :func:`~deprecated.sphinx.deprecated` decorator to reflect
    the valid use cases.
  * Fix #48: Fix versionadded and versionchanged decorators: do
    not return a decorator factory, but a Wrapt adapter.
  * Fix configuration for AppVeyor: simplify the test scripts and

OBS-URL: https://build.opensuse.org/request/show/1242827
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Deprecated?expand=0&rev=14
2025-02-04 17:09:59 +00:00
8143745a4a - update to 1.2.18:
* Fix #78: Fix configuration for Packit 1.0.0
  * Fix #79: Fix the configuration for the intersphinx mapping in
    the Sphinx documentation. See How to link to other
    documentation projects with Intersphinx.
  * Drop support for Python older than 3.7 in GitHub Actions.
  * Resolve Python 2.7 support issue introduced in v1.2.14 in
    sphinx.py.
  * Fix #69: Add extra_stacklevel argument for interoperating
    with other wrapper functions (refer to #68 for a concrete use
    case).
  * Fix #73: Update class method deprecation warnings for Python
    3.13.
  * Fix #75: Update GitHub workflows and fix development
    dependencies for Python 3.12.
  * Fix #66: discontinue TravisCI and AppVeyor due to end of free
    support.
  * Fix #60: 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.
  * Update GitHub workflow to run in recent Python versions.
  * Fix #45: Change the signature of the
    :func:`~deprecated.sphinx.deprecated` decorator to reflect
    the valid use cases.
  * Fix #48: Fix versionadded and versionchanged decorators: do
    not return a decorator factory, but a Wrapt adapter.
  * Fix configuration for AppVeyor: simplify the test scripts and

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Deprecated?expand=0&rev=26
2025-02-03 13:20:01 +00:00
245201087e Accepting request 1226488 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1226488
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Deprecated?expand=0&rev=13
2024-11-27 21:04:52 +00:00
ecdbf7dd2f - Update to 1.2.15
* Resolve Python 2.7 support issue introduced in v1.2.14 in ``sphinx.py``.
  * Fix #69: Add ``extra_stacklevel`` argument for interoperating with
    other wrapper functions (refer to #68 for a concrete use case).
  * Fix #73: Update class method deprecation warnings for Python 3.13.
  * Fix #75: Update GitHub workflows and fix development dependencies for Python 3.12.
  * Fix #66: discontinue TravisCI and AppVeyor due to end of free support.
- Adjust upstream source name in spec file
- Drop fix-python3.13-ftbfs.patch, merged upstream

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Deprecated?expand=0&rev=24
2024-11-26 11:23:03 +00:00
c628f43637 Accepting request 1202969 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1202969
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Deprecated?expand=0&rev=12
2024-09-25 19:52:55 +00:00
cab3a39530 - Fix build error under Leap.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Deprecated?expand=0&rev=22
2024-09-24 13:00:54 +00:00
dcd619f592 Accepting request 1188992 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1188992
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Deprecated?expand=0&rev=11
2024-07-24 13:32:56 +00:00
de6543b1b4 Accepting request 1188977 from home:glaubitz:branches:devel:languages:python
- Cherry-pick upstream patch to fix build with Python 3.13
  * fix-python3.13-ftbfs.patch

OBS-URL: https://build.opensuse.org/request/show/1188977
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Deprecated?expand=0&rev=20
2024-07-22 10:16:19 +00:00
e41a6eb2b5 Accepting request 1089606 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1089606
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Deprecated?expand=0&rev=10
2023-05-30 20:01:38 +00:00
499f7b022f - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Deprecated?expand=0&rev=18
2023-05-29 16:02:05 +00:00
e7a432b325 Accepting request 1082044 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1082044
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Deprecated?expand=0&rev=9
2023-04-22 20:02:49 +00:00
6d2cb56107 Accepting request 1081294 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081294
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Deprecated?expand=0&rev=16
2023-04-21 15:07:27 +00:00
921bf2f891 Accepting request 1032520 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1032520
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Deprecated?expand=0&rev=8
2022-11-01 12:41:14 +00:00
3e1202f44a Accepting request 1032492 from home:bnavigator:branches:devel:languages:python
- Provid canonicalized lowercase name
- Don't catchall files section

OBS-URL: https://build.opensuse.org/request/show/1032492
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Deprecated?expand=0&rev=14
2022-10-31 13:46:29 +00:00
558a3c49af Accepting request 936117 from devel:languages:python
- update to 1.2.13:
  * Change the signature of the :func:`~deprecated.sphinx.deprecated` decorator to reflect
    the valid use cases.
  * Fix ``versionadded`` and ``versionchanged`` decorators: do not return a decorator factory,
    but a Wrapt adapter.
  * change the requirements for ``pip`` to "pip >= 9.0.3, < 21" (Python 2.7, 3.4 and 3.5).
  * install ``typing`` when building on Python 3.4 (required by Pytest->Attrs).
  * run unit tests on Wrapt 1.13 (release candidate).

OBS-URL: https://build.opensuse.org/request/show/936117
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Deprecated?expand=0&rev=7
2021-12-09 18:45:17 +00:00
497f08597a - update to 1.2.13:
* Change the signature of the :func:`~deprecated.sphinx.deprecated` decorator to reflect
    the valid use cases.
  * Fix ``versionadded`` and ``versionchanged`` decorators: do not return a decorator factory,
    but a Wrapt adapter.
  * change the requirements for ``pip`` to "pip >= 9.0.3, < 21" (Python 2.7, 3.4 and 3.5).
  * install ``typing`` when building on Python 3.4 (required by Pytest->Attrs).
  * run unit tests on Wrapt 1.13 (release candidate).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Deprecated?expand=0&rev=13
2021-12-06 20:07:03 +00:00
ef3969a17f Accepting request 886600 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/886600
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Deprecated?expand=0&rev=6
2021-04-19 19:06:14 +00:00
3fbf6f542a Accepting request 886455 from home:bnavigator:branches:devel:languages:python
- Update to 1.2.12
  * Avoid "Explicit markup ends without a blank line" when the
    decorated function has no docstring.
  * Fix #40: 'version' argument is required in Sphinx directives.
  * Fix #41: deprecated.sphinx: strip Sphinx cross-referencing
    syntax from warning message.
- Release 1.2.11
  * Fix packit configuration: use upstream_tag_template: v{version}.
  * Fix #33: Change the class ~deprecated.sphinx.SphinxAdapter: add
    the line_length keyword argument to the constructor to specify
    the max line length of the directive text. Sphinx decorators
    also accept the line_length argument.
  * Fix #34: versionadded and versionchanged decorators don't emit
    DeprecationWarning anymore on decorated classes.

OBS-URL: https://build.opensuse.org/request/show/886455
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Deprecated?expand=0&rev=11
2021-04-19 08:20:05 +00:00
49bdab2c9f Accepting request 819615 from devel:languages:python
- Update to 1.2.10
 * Fix #25: @deprecated respects global warning filters with actions other
    than “ignore” and “always” on Python 3.

OBS-URL: https://build.opensuse.org/request/show/819615
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Deprecated?expand=0&rev=5
2020-07-09 11:20:14 +00:00
e175892e64 - Update to 1.2.10
* Fix #25: @deprecated respects global warning filters with actions other
    than “ignore” and “always” on Python 3.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Deprecated?expand=0&rev=9
2020-07-08 21:55:16 +00:00
7e92aca2fd Accepting request 799995 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/799995
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Deprecated?expand=0&rev=4
2020-05-04 16:41:24 +00:00
Tomáš Chvátal
b825a6cb37 Accepting request 799993 from home:jgrassler:branches:devel:languages:python
- update to 1.2.9
  * Fix #20: Set the :func:warnings.warn stacklevel to 2 if
    the Python implementation is PyPy
  * Fix packit configuration: use dist-git-branch: fedora-all
  * Change the Tox configuration to run tests on PyPy v2.7 and 3.6.
  * Fix #15: The @deprecated decorator doesn't set a warning
    filter if the action keyword argument is not provided or None.
  * Fix #13: Warning displays the correct filename and line
    number when decorating a class if wrapt does not have the compiled c
    extension.

OBS-URL: https://build.opensuse.org/request/show/799993
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Deprecated?expand=0&rev=7
2020-05-04 08:31:10 +00:00
9dd229ffbe Accepting request 764062 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/764062
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Deprecated?expand=0&rev=3
2020-01-13 21:22:42 +00:00
Tomáš Chvátal
0f2174552b Accepting request 764040 from home:mcalabkova:branches:devel:languages:python
- update to 1.2.7
  * Fix: Warning displays the correct filename and line number when 
    decorating a function if wrapt does not have the compiled c extension.
  * Add Black configuration file.

OBS-URL: https://build.opensuse.org/request/show/764040
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Deprecated?expand=0&rev=5
2020-01-13 15:31:29 +00:00
5b6dce9322 Accepting request 717495 from devel:languages:python
- Update to 1.2.6:
  * Fix #9: Change the project's configuration: reinforce the constraint to the Wrapt requirement.

OBS-URL: https://build.opensuse.org/request/show/717495
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Deprecated?expand=0&rev=2
2019-07-22 15:18:28 +00:00
Tomáš Chvátal
37a34078a7 Update to 1.2.6:
* Fix #9: Change the project's configuration: reinforce the constraint to the Wrapt requirement.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Deprecated?expand=0&rev=3
2019-07-22 09:13:15 +00:00
30fca70476 Accepting request 682052 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/682052
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Deprecated?expand=0&rev=1
2019-03-12 08:53:00 +00:00
Tomáš Chvátal
5a67d8ef86 - Initial commit, needed by PyGithub
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Deprecated?expand=0&rev=1
2019-03-06 09:03:52 +00:00
3 changed files with 0 additions and 48 deletions

BIN
Deprecated-1.2.14.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:683e561a90de76239796e6b6feac66b99030d2dd3fcf61ef996330f14bbb9b0d
size 2977612

View File

@@ -1,42 +0,0 @@
From 3b1aec9b8ff43f81cf7df9be92d0d383d759792e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Fri, 28 Jun 2024 07:52:59 +0200
Subject: [PATCH] Update class method deprecation warnings for Python 3.13
Update the version range for modified deprecation warnings that was
introduced in efb3e60623e1dda88c2725a93223d290924e8666, since Python
3.13 reverted the change originally introduced in 3.9 and is back to
the old messages. This fixes tests with Python 3.13.
See also https://github.com/GrahamDumpleton/wrapt/pull/260.
---
tests/test_deprecated.py | 2 +-
tests/test_sphinx.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/test_deprecated.py b/tests/test_deprecated.py
index 0e467ae..c39229b 100644
--- a/tests/test_deprecated.py
+++ b/tests/test_deprecated.py
@@ -191,7 +191,7 @@ def test_classic_deprecated_class_method__warns(classic_deprecated_class_method)
assert len(warns) == 1
warn = warns[0]
assert issubclass(warn.category, DeprecationWarning)
- if sys.version_info >= (3, 9):
+ if (3, 9) <= sys.version_info < (3, 13):
assert "deprecated class method" in str(warn.message)
else:
assert "deprecated function (or staticmethod)" in str(warn.message)
diff --git a/tests/test_sphinx.py b/tests/test_sphinx.py
index a1d7753..8cf8e95 100644
--- a/tests/test_sphinx.py
+++ b/tests/test_sphinx.py
@@ -301,7 +301,7 @@ def test_sphinx_deprecated_class_method__warns(sphinx_deprecated_class_method):
assert len(warns) == 1
warn = warns[0]
assert issubclass(warn.category, DeprecationWarning)
- if sys.version_info >= (3, 9):
+ if (3, 9) <= sys.version_info < (3, 13):
assert "deprecated class method" in str(warn.message)
else:
assert "deprecated function (or staticmethod)" in str(warn.message)