Compare commits

1 Commits
main ... 1.1

4 changed files with 9 additions and 80 deletions

BIN
attrs-23.1.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
attrs-24.3.0.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@@ -1,72 +1,3 @@
-------------------------------------------------------------------
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.14s 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>
- Add patch pytest8.patch to adapt the tests to the new pytest
-------------------------------------------------------------------
Mon Jan 8 08:59:59 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 23.2.0:
* The type annotation for `attrs.resolve_types()` is now
correct.
* Type stubs now use `typing.dataclass_transform` to decorate
dataclass-like decorators, instead of the non-standard
`__dataclass_transform__` special form, which is only
supported by Pyright.
* Fixed serialization of namedtuple fields using
`attrs.asdict/astuple()` with `retain_collection_types=True`.
* `attrs.AttrsInstance` is now a `typing.Protocol` in both type
hints and code.
* This allows you to subclass it along with another `Protocol`.
* If *attrs* detects that `__attrs_pre_init__` accepts more
than just `self`, it will call it with the same arguments as
`__init__` was called.
* This allows you to, for example, pass arguments to
`super().__init__()`.
* Slotted classes now transform `functools.cached_property`
decorated methods to support equivalent semantics.
* Added *class_body* argument to `attrs.make_class()` to
provide additional attributes for newly created classes.
* It is, for example, now possible to attach methods.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jun 22 07:04:50 UTC 2023 - Dirk Müller <dmueller@suse.com> Thu Jun 22 07:04:50 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-attrs # spec file
# #
# Copyright (c) 2025 SUSE LLC # Copyright (c) 2023 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
@@ -26,14 +26,13 @@
%endif %endif
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-attrs%{psuffix} Name: python-attrs%{psuffix}
Version: 24.3.0 Version: 23.1.0
Release: 0 Release: 0
Summary: Attributes without boilerplate Summary: Attributes without boilerplate
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
URL: https://github.com/hynek/attrs/ URL: https://github.com/hynek/attrs/
Source: https://files.pythonhosted.org/packages/source/a/attrs/attrs-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/a/attrs/attrs-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module hatch-fancy-pypi-readme} BuildRequires: %{python_module hatch-fancy-pypi-readme}
BuildRequires: %{python_module hatch-vcs} BuildRequires: %{python_module hatch-vcs}
BuildRequires: %{python_module hatchling} BuildRequires: %{python_module hatchling}
@@ -91,8 +90,7 @@ python-attrs is the successor to python-characterstic
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc CHANGELOG.md README.md %doc CHANGELOG.md README.md
%{python_sitelib}/attr %{python_sitelib}/attr*
%{python_sitelib}/attrs
%{python_sitelib}/attrs-%{version}*-info %{python_sitelib}/attrs-%{version}*-info
%endif %endif