1
0

8 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
7bc591def1 - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Deprecated?expand=0&rev=28
2025-06-05 06:05:43 +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
5 changed files with 244 additions and 56 deletions

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

Binary file not shown.

BIN
deprecated-1.2.18.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

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)

View File

@@ -1,3 +1,235 @@
-------------------------------------------------------------------
Thu Jun 5 06:01:36 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Mon Feb 3 13:19:39 UTC 2025 - Dirk Müller <dmueller@suse.com>
- 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
set the version format to match the current version.
* Change configuration for Tox: 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).
* 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).
* Migrating project to travis-ci.com.
* 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: :mod:`deprecated.sphinx`: strip Sphinx cross-
referencing syntax from warning message.
* Change in Tox and Travis CI configurations: enable unit
testing on Python 3.10.
* Fix packit configuration: use upstream_tag_template:
v{version}.
* Fix #33: Change the class
: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.
* Change the Tox configuration to run tests on Python 2.7,
Python 3.4 and above (and PyPy 2.7 & 3.6).
* Update the classifiers in setup.py.
* Replace bumpversion by bump2version in setup.py and
documentation.
* Update configuration for Black and iSort.
* Fix the development requirement versions in setup.py for
Python 2.7 EOL.
* Fix #25: @deprecated respects global warning filters with
actions other than "ignore" and "always" on Python 3.
* 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.
* 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. In consequences, the warning messages are only emitted
if the global filter allow it. For more information, see The
Warning Filter in the Python documentation.
* Fix #13: Warning displays the correct filename and line
number when decorating a class if wrapt does not have the
compiled c extension.
* The :ref:`api` documentation and the :ref:`tutorial` is
improved to explain how to use custom warning categories and
local filtering (warning filtering at function call).
* Fix #17: Customize the sidebar to add links to the
documentation to the source in GitHub and to the Bug tracker.
Add a logo in the sidebar and change the logo in the main
page to see the library version.
* Add a detailed documentation about :ref:`sphinx_deco`.
* Change the Tox configuration to test the library with Wrapt
1.12.x.
* Fix #13: Warning displays the correct filename and line
number when decorating a function if wrapt does not have the
compiled c extension.
* Support packit for Pull Request tests and sync to Fedora
(thanks to Petr Hráček). Supported since v1.2.6.
* Add Black configuration file.
* Fix #9: Change the project's configuration: reinforce the
constraint to the Wrapt requirement.
* Upgrade project configuration (setup.py) to add the
project_urls property: Documentation, Source and Bug Tracker
URLs.
* Change the Tox configuration to test the library against
different Wrapt versions.
* Fix an issue with the AppVeyor build: upgrade setuptools
version in appveyor.yml, change the Tox configuration: set
py27,py34,py35: pip >= 9.0.3, < 19.2.
* Fix #6: Use :func:`inspect.isroutine` to check if the wrapped
object is a user-defined or built-in function or method.
* Upgrade Tox configuration to add support for Python 3.7.
Also, fix PyTest version for Python 2.7 and 3.4 (limited
support). Remove dependency 'requests[security]': useless to
build documentation.
* Upgrade project configuration (setup.py) to add support for
Python 3.7.
* Fix #4: Correct the class
:class:`~deprecated.classic.ClassicAdapter`: Don't pass
arguments to :meth:`object.__new__` (other than cls).
* Add missing docstring to the classes
:class:`~deprecated.classic.ClassicAdapter` and
:class:`~deprecated.sphinx.SphinxAdapter`.
* Change the configuration for TravisCI and AppVeyor: drop
configuration for Python 2.6 and 3.3. add configuration for
Python 3.7 (if available). Note Deprecated is no more tested
with Python 2.6 and 3.3. Those Python versions are EOL for
some time now and incur incompatibilities with Continuous
Integration tools like TravisCI and AppVeyor. However, this
library should still work perfectly...
* Fix #3: deprecated.sphinx decorators don't update the
docstring.
* Fix #2: a deprecated class is a class (not a function). Any
subclass of a deprecated class is also deprecated.
* Minor fix: add missing documentation in
:mod:`deprecated.sphinx` module.
* Add a MANIFEST.in file to package additional files like
"LICENSE.rst" in the source distribution.
* Add decorators for Sphinx directive integration:
versionadded, versionchanged, deprecated. That way, the
developer can document the changes.
* Add the version parameter to the @deprecated decorator: used
to specify the starting version number of the deprecation.
* Add a way to choose a DeprecationWarning subclass.
* Deprecated no longer supports Python 2.6 and 3.3. Those
Python versions are EOL for some time now and incur
maintenance and compatibility costs on the Deprecated core
team, and following up with the rest of the community we
decided that they will no longer be supported starting on
this version. Users which still require those versions should
pin Deprecated to < 1.2.
* Fix #6: Use :func:`inspect.isroutine` to check if the wrapped
object is a user-defined or built-in function or method.
* Upgrade Tox configuration to add support for Python 3.7.
Also, fix PyTest version for Python 2.7 and 3.4 (limited
support). Remove dependency 'requests[security]': useless to
build documentation.
* Upgrade project configuration (setup.py) to add support for
Python 3.7.
* Fix #4: Correct the function :func:`~deprecated.deprecated`:
Don't pass arguments to :meth:`object.__new__` (other than
cls).
* Change the configuration for TravisCI and AppVeyor: drop
configuration for Python 2.6 and 3.3. add configuration for
Python 3.7. Note Deprecated is no more tested with Python
2.6 and 3.3. Those Python versions are EOL for some time now
and incur incompatibilities with Continuous Integration tools
like TravisCI and AppVeyor. However, this library should
still work perfectly...
* Fix #2: a deprecated class is a class (not a function). Any
subclass of a deprecated class is also deprecated.
* Add a MANIFEST.in file to package additional files like
"LICENSE.rst" in the source distribution.
* Minor correction in CONTRIBUTING.rst for Sphinx builds: add
the -d option to put apart the doctrees from the generated
documentation and avoid warnings with epub generator.
* Fix in documentation configuration: remove hyphens in
epub_identifier (ISBN number has no hyphens).
* Fix in Tox configuration: set the versions interval of each
dependency.
* Change in documentation: improve sentence phrasing in the
Tutorial.
* Restore the epub title to "Python Deprecated Library v1.1
Documentation" (required for Lulu.com).
* Change in :func:`deprecated.deprecated` decorator: you can
give a "reason" message to help the developer choose another
class, function or method.
* Add support for Universal Wheel (Python versions 2.6, 2.7,
3.3, 3.4, 3.5, 3.6 and PyPy).
* Add missing __doc__ and __version__ attributes to
:mod:`deprecated` module.
* Add an extensive documentation of Deprecated Library.
* Improve Travis configuration file (compatibility from Python
2.6 to 3.7-dev, and PyPy).
* Add AppVeyor configuration file.
* Add Tox configuration file.
* Add BumpVersion configuration file.
* Improve project settings: add a long description for the
project. Set the license and the development status in the
classifiers property.
* Add the :file:`CONTRIBUTING.rst` file: "How to contribute to
Deprecated Library".
* deprecated: Created @deprecated decorator
-------------------------------------------------------------------
Mon Nov 25 12:43:42 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- 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
-------------------------------------------------------------------
Tue Sep 24 12:03:30 UTC 2024 - ecsos <ecsos@opensuse.org>
- Fix build error under Leap.
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 22 09:42:29 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com> Mon Jul 22 09:42:29 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-Deprecated # spec file for package python-Deprecated
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,20 +16,19 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-Deprecated Name: python-Deprecated
Version: 1.2.14 Version: 1.2.18
Release: 0 Release: 0
Summary: Python @deprecated decorator Summary: Python @deprecated decorator
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/tantale/deprecated URL: https://github.com/tantale/deprecated
Source: https://files.pythonhosted.org/packages/source/D/Deprecated/Deprecated-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/d/deprecated/deprecated-%{version}.tar.gz
# PATCH-FIX-UPSTREAM - gh#tantale/deprecated/73 - Update class method deprecation warnings for Python 3.13 BuildRequires: %{python_module pip}
Patch: https://github.com/tantale/deprecated/pull/73.patch#/fix-python3.13-ftbfs.patch
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module wrapt >= 1.10} BuildRequires: %{python_module wrapt >= 1.10}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@@ -43,14 +42,13 @@ If you need to mark a function or a method as deprecated,
you can use the ``@deprecated`` decorator. you can use the ``@deprecated`` decorator.
%prep %prep
%setup -q -n Deprecated-%{version} %setup -q -n deprecated-%{version}
%patch -P0 -p1
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -60,6 +58,6 @@ you can use the ``@deprecated`` decorator.
%doc CHANGELOG.rst README.md %doc CHANGELOG.rst README.md
%license LICENSE.rst %license LICENSE.rst
%{python_sitelib}/deprecated %{python_sitelib}/deprecated
%{python_sitelib}/Deprecated-%{version}*-info %{python_sitelib}/[Dd]eprecated-%{version}.dist-info
%changelog %changelog