4 Commits

Author SHA256 Message Date
efae94f5e8 - update to 25.3.0:
* Restore support for generator-based `field_transformer`s.
  * Checking mandatory vs non-mandatory attribute order is now
    performed after the field transformer, since the field
    transformer may change attributes and/or their order.
  * `attrs.make_class()` now allows for Unicode class names.
  * Speed up class creation by 30%-50% by compiling methods only
    once and using a variety of other techniques.
  * The error message if an attribute has both an annotation and
    a type argument will now disclose _what_ attribute seems to
    be the problem.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=57
2025-07-12 11:37:36 +00:00
f95269ecde - 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)`

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=55
2025-01-02 14:13:19 +00:00
eff624faa4 Fix %%files
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=53
2024-11-05 13:16:42 +00:00
e429b0427a - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=52
2024-11-05 13:09:50 +00:00
4 changed files with 19 additions and 4 deletions

Binary file not shown.

3
attrs-25.3.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:75d7cefc7fb576747b2c81b4442d4d4a1ce0900973527c011d1030fd3bf4af1b
size 812032

View File

@@ -1,3 +1,18 @@
-------------------------------------------------------------------
Sat Jul 12 11:37:13 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 25.3.0:
* Restore support for generator-based `field_transformer`s.
* Checking mandatory vs non-mandatory attribute order is now
performed after the field transformer, since the field
transformer may change attributes and/or their order.
* `attrs.make_class()` now allows for Unicode class names.
* Speed up class creation by 30%-50% by compiling methods only
once and using a variety of other techniques.
* The error message if an attribute has both an annotation and
a type argument will now disclose _what_ attribute seems to
be the problem.
-------------------------------------------------------------------
Thu Jan 2 14:12:53 UTC 2025 - Dirk Müller <dmueller@suse.com>

View File

@@ -26,7 +26,7 @@
%endif
%{?sle15_python_module_pythons}
Name: python-attrs%{psuffix}
Version: 24.3.0
Version: 25.3.0
Release: 0
Summary: Attributes without boilerplate
License: MIT