Sync from SUSE:SLFO:Main python-attrs revision e6887105aa1b8b86c9ec633dba4a011c
This commit is contained in:
BIN
attrs-23.2.0.tar.gz
(Stored with Git LFS)
BIN
attrs-23.2.0.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
attrs-24.3.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
attrs-24.3.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@@ -1,41 +0,0 @@
|
||||
From b9084fab02c009a593b604562a69f36a5915c8e5 Mon Sep 17 00:00:00 2001
|
||||
From: Denis Laxalde <denis@laxalde.org>
|
||||
Date: Sat, 2 Mar 2024 07:40:36 +0100
|
||||
Subject: [PATCH] Remove pytest.deprecated_call() in TestAssoc::test_unknown
|
||||
(#1249)
|
||||
|
||||
assoc() no longer raises a deprecation warning since commit
|
||||
22ae8473fb88d6e585b05c709e81e1a46398a649 but the 'with
|
||||
pytest.deprecated_call():' in that test was not removed then (in
|
||||
contrast with other test cases).
|
||||
|
||||
Maybe this got unnoticed due to a pytest bug?
|
||||
In any case, using pytest 8+ (and keeping deprecated_call()) shows that
|
||||
no warning is raised and the test fails.
|
||||
|
||||
Removing the upper bound on pytest in dev dependencies as tests now
|
||||
pass with pytest 8.0.
|
||||
|
||||
Fix #1233.
|
||||
|
||||
Co-authored-by: Hynek Schlawack <hs@ox.cx>
|
||||
---
|
||||
pyproject.toml | 3 +--
|
||||
tests/test_funcs.py | 4 +---
|
||||
2 files changed, 2 insertions(+), 5 deletions(-)
|
||||
|
||||
Index: attrs-23.2.0/tests/test_funcs.py
|
||||
===================================================================
|
||||
--- attrs-23.2.0.orig/tests/test_funcs.py
|
||||
+++ attrs-23.2.0/tests/test_funcs.py
|
||||
@@ -600,9 +600,7 @@ class TestAssoc:
|
||||
AttrsAttributeNotFoundError.
|
||||
"""
|
||||
# No generated class will have a four letter attribute.
|
||||
- with pytest.raises(
|
||||
- AttrsAttributeNotFoundError
|
||||
- ) as e, pytest.deprecated_call():
|
||||
+ with pytest.raises(AttrsAttributeNotFoundError) as e:
|
||||
assoc(C(), aaaa=2)
|
||||
|
||||
assert (f"aaaa is not an attrs attribute on {C!r}.",) == e.value.args
|
@@ -1,3 +1,41 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 2 14:12:53 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 24.3.0:
|
||||
* Python 3.7 has been dropped.
|
||||
* Introduce `attrs.NothingType`, for annotating types
|
||||
consistent with `attrs.NOTHING`.
|
||||
* Allow mutating `__suppress_context__` and `__notes__` on
|
||||
frozen exceptions.
|
||||
* `attrs.converters.optional()` works again when taking
|
||||
`attrs.converters.pipe()` or another Converter as its
|
||||
argument.
|
||||
* *attrs* instances now support `copy.replace()`.
|
||||
* `attrs.validators.instance_of()`'s type hints now allow for
|
||||
union types.
|
||||
* For example: `instance_of(str | int)`
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 5 13:03:04 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
|
||||
|
||||
- Upgrade to 24.2.0:
|
||||
- Big releases always carry the risk of regressions, but never
|
||||
did I expect to break Python 3.14’s CI! On the plus side,
|
||||
attrs runs on 3.14 now.
|
||||
- Upgrade to 24.1.0:
|
||||
- The most notable is probably the possibility to receive self
|
||||
and field definitions in your converters by wrapping them
|
||||
into a attrs.Converter.
|
||||
- The other big thing is our own replacement
|
||||
for __init_subclass__ called (you guessed it)
|
||||
__attrs_init_subclass__. Check out the docs, if you're not
|
||||
sure what this is good for.
|
||||
- Finally, we've made more important steps to promote our "new"
|
||||
APIs (can you believe they're 4 years old!?) in the docs. If
|
||||
we missed anything, please let us know.
|
||||
- Remove upstreamed patch:
|
||||
- pytest8.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 17 09:51:39 UTC 2024 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-attrs
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -26,15 +26,14 @@
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-attrs%{psuffix}
|
||||
Version: 23.2.0
|
||||
Version: 24.3.0
|
||||
Release: 0
|
||||
Summary: Attributes without boilerplate
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/hynek/attrs/
|
||||
Source: https://files.pythonhosted.org/packages/source/a/attrs/attrs-%{version}.tar.gz
|
||||
#PATCH-FIX-UPSTREAM https://github.com/python-attrs/attrs/pull/1249 Remove pytest.deprecated_call() in TestAssoc::test_unknown
|
||||
Patch: pytest8.patch
|
||||
BuildRequires: %{python_module base >= 3.8}
|
||||
BuildRequires: %{python_module hatch-fancy-pypi-readme}
|
||||
BuildRequires: %{python_module hatch-vcs}
|
||||
BuildRequires: %{python_module hatchling}
|
||||
@@ -92,7 +91,8 @@ python-attrs is the successor to python-characterstic
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc CHANGELOG.md README.md
|
||||
%{python_sitelib}/attr*
|
||||
%{python_sitelib}/attr
|
||||
%{python_sitelib}/attrs
|
||||
%{python_sitelib}/attrs-%{version}*-info
|
||||
%endif
|
||||
|
||||
|
Reference in New Issue
Block a user