Commit Graph

52 Commits

Author SHA256 Message Date
Ana Guerrero
7a55b8459b Accepting request 1175271 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1175271
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=24
2024-05-21 16:34:31 +00:00
Steve Kowalik
7314f0533c Accepting request 1174816 from home:mcalabkova:branches:devel:languages:python:pytest
- Add patch pytest8.patch to adapt the tests to the new pytest

OBS-URL: https://build.opensuse.org/request/show/1174816
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=50
2024-05-20 01:34:47 +00:00
Ana Guerrero
95121a381a Accepting request 1137517 from devel:languages:python
- 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.

    be deeply immutable
- Initial version

OBS-URL: https://build.opensuse.org/request/show/1137517
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=23
2024-01-09 19:48:35 +00:00
223b7c0d84 - 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.
    be deeply immutable
- Initial version

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=48
2024-01-08 09:00:21 +00:00
Dominique Leuenberger
4aa59c3a49 Accepting request 1095918 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1095918
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=22
2023-06-30 17:57:58 +00:00
9c4faee9c5 - remove outdated constructs, we no longer support < 3.8
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=46
2023-06-22 07:05:04 +00:00
Dominique Leuenberger
6cab853594 Accepting request 1085487 from devel:languages:python
- Update to 23.1.0:
  # Backwards-incompatible Changes
  * Python 3.6 has been dropped and packaging switched to static
    package data using Hatch. #993
  # Deprecations
  * The support for zope-interface via the attrs.validators.provides
    validator is now deprecated and will be removed in, or after,
    April 2024.
  * The presence of a C-based package in our developement dependencies
    has caused headaches and we're not under the impression it's used
    a lot.
  * Let us know if you're using it and we might publish it as a
    separate package. #1120
  # Changes
  * attrs.filters.exclude() and attrs.filters.include() now support
    the passing of attribute names as strings. #1068
  * attrs.has() and attrs.fields() now handle generic classes
    correctly. #1079
  * Fix frozen exception classes when raised within e.g.
    contextlib.contextmanager, which mutates their __traceback__
    attributes. #1081
  * @frozen now works with type checkers that implement PEP-681 (ex.
    pyright). #1084
  * Restored ability to unpickle instances pickled before 22.2.0.
    #1085
  * attrs.asdict()'s and attrs.astuple()'s type stubs now accept the
    attrs.AttrsInstance protocol. #1090
  * Fix slots class cellvar updating closure in CPython 3.8+ even when
    __code__ introspection is unavailable. #1092
  * attrs.resolve_types() can now pass include_extras to
    typing.get_type_hints() on Python 3.9+, and does so by default.
    #1099
  * Added instructions for pull request workflow to CONTRIBUTING.md.
    #1105
  * Added type parameter to attrs.field() function for use with
    attrs.make_class().
  * Please note that type checkers ignore type metadata passed into
    make_class(), but it can be useful if you're wrapping attrs. #1107
  * It is now possible for attrs.evolve() (and attr.evolve()) to
    change fields named inst if the instance is passed as a positional
    argument.
  * Passing the instance using the inst keyword argument is now
    deprecated and will be removed in, or after, April 2024. #1117
  * attrs.validators.optional() now also accepts a tuple of validators
    (in addition to lists of validators). #1122

OBS-URL: https://build.opensuse.org/request/show/1085487
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=21
2023-05-19 09:55:08 +00:00
2d1eceef6a - Update to 23.1.0:
# Backwards-incompatible Changes
  * Python 3.6 has been dropped and packaging switched to static
    package data using Hatch. #993
  # Deprecations
  * The support for zope-interface via the attrs.validators.provides
    validator is now deprecated and will be removed in, or after,
    April 2024.
  * The presence of a C-based package in our developement dependencies
    has caused headaches and we're not under the impression it's used
    a lot.
  * Let us know if you're using it and we might publish it as a
    separate package. #1120
  # Changes
  * attrs.filters.exclude() and attrs.filters.include() now support
    the passing of attribute names as strings. #1068
  * attrs.has() and attrs.fields() now handle generic classes
    correctly. #1079
  * Fix frozen exception classes when raised within e.g.
    contextlib.contextmanager, which mutates their __traceback__
    attributes. #1081
  * @frozen now works with type checkers that implement PEP-681 (ex.
    pyright). #1084
  * Restored ability to unpickle instances pickled before 22.2.0.
    #1085
  * attrs.asdict()'s and attrs.astuple()'s type stubs now accept the
    attrs.AttrsInstance protocol. #1090
  * Fix slots class cellvar updating closure in CPython 3.8+ even when
    __code__ introspection is unavailable. #1092
  * attrs.resolve_types() can now pass include_extras to

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=44
2023-05-08 09:40:54 +00:00
Dominique Leuenberger
636b32d578 Accepting request 1081990 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1081990
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=20
2023-04-22 20:01:56 +00:00
9a928ed3a6 Accepting request 1081338 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081338
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=42
2023-04-21 14:53:49 +00:00
Dominique Leuenberger
aa049511b2 Accepting request 1046288 from devel:languages:python
- update to 22.2.0:
  * Python 3.5 is not supported anymore.
  * Python 3.6 is now deprecated and support will be removed in the next
    release.
  * `attrs.field()` now supports an *alias* option for explicit `__init__`
    argument names.
  * `attrs.NOTHING` is now an enum value, making it possible to use with
    e.g. `typing.Literal`.
  * Added missing re-import of `attr.AttrsInstance` to the `attrs`
    namespace.
  * Fix slight performance regression in classes with custom `__setattr__`
    and speedup even more.
  * Class-creation performance improvements by switching performance-
    sensitive templating operations to f-strings.

OBS-URL: https://build.opensuse.org/request/show/1046288
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=19
2023-01-04 16:50:55 +00:00
07655b9764 - update to 22.2.0:
* Python 3.5 is not supported anymore.
  * Python 3.6 is now deprecated and support will be removed in the next
    release.
  * `attrs.field()` now supports an *alias* option for explicit `__init__`
    argument names.
  * `attrs.NOTHING` is now an enum value, making it possible to use with
    e.g. `typing.Literal`.
  * Added missing re-import of `attr.AttrsInstance` to the `attrs`
    namespace.
  * Fix slight performance regression in classes with custom `__setattr__`
    and speedup even more.
  * Class-creation performance improvements by switching performance-
    sensitive templating operations to f-strings.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=40
2023-01-02 19:24:09 +00:00
Dominique Leuenberger
cddc260e02 Accepting request 1004944 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1004944
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=18
2022-09-21 12:41:46 +00:00
3d12fae104 Accepting request 1004937 from home:pgajdos:python
- python-six is not required for build

OBS-URL: https://build.opensuse.org/request/show/1004937
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=38
2022-09-20 11:28:55 +00:00
Dominique Leuenberger
f0557ef664 Accepting request 993244 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/993244
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=17
2022-08-07 16:33:45 +00:00
140ca96187 Accepting request 992744 from home:ohollmann:branches:devel:languages:python
- Update to 22.1.0:
  * Backwards-incompatible Changes
    * Python 2.7 is not supported anymore.
    * Dealing with Python 2.7 tooling has become too difficult for a
      volunteer-run project.
    * We have supported Python 2 more than 2 years after it was officially
      discontinued and feel that we have paid our dues. All version up to 21.4.0
      from December 2021 remain fully functional, of course. #936
    * The deprecated cmp attribute of attrs.Attribute has been removed. This
      does not affect the cmp argument to attr.s that can be used as a shortcut
      to set eq and order at the same time. #939
  * Changes
    * Instantiation of frozen slotted classes is now faster. #898
    * If an eq key is defined, it is also used before hashing the attribute. #909
    * Added attrs.validators.min_len(). #916
    * attrs.validators.deep_iterable()'s member_validator argument now also
      accepts a list of validators and wraps them in an attrs.validators.and_(). #925
    * Added missing type stub re-imports for attrs.converters and attrs.filters. #931
    * Added missing stub for attr(s).cmp_using(). #949
    * attrs.validators._in()'s ValueError is not missing the attribute, expected
      options, and the value it got anymore. #951
    * Python 3.11 is now officially supported. #969

OBS-URL: https://build.opensuse.org/request/show/992744
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=36
2022-08-05 07:21:26 +00:00
Dominique Leuenberger
cb55f111ee Accepting request 945429 from devel:languages:python
- update to 21.4.0:
  * Fixed the test suite on PyPy3.8 where ``cloudpickle`` does not work.
  * Fixed ``coverage report`` for projects that use ``attrs`` and don't
    set a ``--source``.
  * When using ``@define``, converters are now run by default when
    setting an attribute on an instance -- additionally to validators.
  * ``import attrs`` has finally landed!
  * ``attr.asdict(retain_collection_types=False)`` (default)
    dumps collection-esque keys as tuples.
  * ``__match_args__`` are now generated to support Python 3.10's
  * If the class-level *on_setattr* is set to ``attrs.setters.validate``
    (default in ``@define`` and ``@mutable``) but no field defines
    a validator, pretend that it's not set.
  * The generated ``__repr__`` is significantly faster on Pythons with
    f-strings.
  * Attributes transformed via ``field_transformer`` are wrapped with
    ``AttrsClass`` again.
  * Generated source code is now cached more efficiently for identical classes.
  * Added ``attrs.converters.to_bool()``.
  * ``attrs.resolve_types()`` now resolves types of subclasses after
    the parents are resolved.
  * Added new validators: ``lt(val)`` (< val), ``le(va)`` (≤ val),
    ``ge(val)`` (≥ val), ``gt(val)`` (> val), and ``maxlen(n)``.
  * ``attrs`` classes are now fully compatible with cloudpickle
  * Added new context manager ``attrs.validators.disabled()`` and
    functions ``attrs.validators.(set|get)_disabled()``.
    They deprecate ``attrs.(set|get)_run_validators()``.
    All functions are interoperable and modify the same internal state.
    They are not – and never were – thread-safe, though.

OBS-URL: https://build.opensuse.org/request/show/945429
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=16
2022-01-11 20:17:11 +00:00
77f18d80ce - update to 21.4.0:
* Fixed the test suite on PyPy3.8 where ``cloudpickle`` does not work.
  * Fixed ``coverage report`` for projects that use ``attrs`` and don't
    set a ``--source``.
  * When using ``@define``, converters are now run by default when
    setting an attribute on an instance -- additionally to validators.
  * ``import attrs`` has finally landed!
  * ``attr.asdict(retain_collection_types=False)`` (default)
    dumps collection-esque keys as tuples.
  * ``__match_args__`` are now generated to support Python 3.10's
  * If the class-level *on_setattr* is set to ``attrs.setters.validate``
    (default in ``@define`` and ``@mutable``) but no field defines
    a validator, pretend that it's not set.
  * The generated ``__repr__`` is significantly faster on Pythons with
    f-strings.
  * Attributes transformed via ``field_transformer`` are wrapped with
    ``AttrsClass`` again.
  * Generated source code is now cached more efficiently for identical classes.
  * Added ``attrs.converters.to_bool()``.
  * ``attrs.resolve_types()`` now resolves types of subclasses after
    the parents are resolved.
  * Added new validators: ``lt(val)`` (< val), ``le(va)`` (≤ val),
    ``ge(val)`` (≥ val), ``gt(val)`` (> val), and ``maxlen(n)``.
  * ``attrs`` classes are now fully compatible with cloudpickle
  * Added new context manager ``attrs.validators.disabled()`` and
    functions ``attrs.validators.(set|get)_disabled()``.
    They deprecate ``attrs.(set|get)_run_validators()``.
    All functions are interoperable and modify the same internal state.
    They are not – and never were – thread-safe, though.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=35
2022-01-10 22:44:28 +00:00
Dominique Leuenberger
e0674ec618 Accepting request 897252 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/897252
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=15
2021-06-11 20:29:52 +00:00
aabff92aa5 - update to 21.2.0:
* We had to revert the recursive feature for ``attr.evolve()`` because it
    broke some use-cases -- sorry!
  * Python 3.4 is now blocked using packaging metadata because ``attrs`` can't
    be imported on it anymore.
  * The long-awaited, much-talked-about, little-delivered ``import attrs`` is
    finally upon us!
  * The *cmp* argument to ``attr.s()`` and `attr.ib()` has been **undeprecated**
    It will continue to be supported as syntactic sugar to set *eq* and *order* in one go.
  * Further smaller changes, see included Changelog.md

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=33
2021-05-27 16:42:45 +00:00
Dominique Leuenberger
3985c2b1bd Accepting request 850938 from devel:languages:python
- update to 20.3.0:
  - ``attr.define()``, ``attr.frozen()``, ``attr.mutable()``, and ``attr.field()`` remain **provisional**.

OBS-URL: https://build.opensuse.org/request/show/850938
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=14
2020-11-29 11:19:29 +00:00
0253d15125 - update to 20.3.0:
- ``attr.define()``, ``attr.frozen()``, ``attr.mutable()``, and ``attr.field()`` remain **provisional**.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=31
2020-11-26 09:20:07 +00:00
Dominique Leuenberger
590805b1e5 Accepting request 837189 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/837189
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=13
2020-09-29 16:58:47 +00:00
e0373e14f7 - update to 20.2.0:
- Python 3.4 is not supported anymore.
  - ``attr.define()``, ``attr.frozen()``, ``attr.mutable()``, and ``attr.field()`` remain **provisional**.
  This release fixes a bunch of bugs and ergonomics but they remain mostly unchanged.
 Further changes see included CHANGELOG.rst

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=29
2020-09-17 14:41:28 +00:00
Yuchen Lin
5adfbf9efe Accepting request 807115 from devel:languages:python
- Do not restrict us to new setuptools, we generate stuff
  even with the older variants

OBS-URL: https://build.opensuse.org/request/show/807115
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=12
2020-05-28 07:07:40 +00:00
Tomáš Chvátal
b01d5e1e21 - Do not restrict us to new setuptools, we generate stuff
even with the older variants

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=27
2020-05-14 06:45:36 +00:00
Dominique Leuenberger
9c78b76da1 Accepting request 741439 from devel:languages:python
- update to 19.3.0
 * Fixed auto_attribs usage when default values cannot be compared directly
     with ==, such as numpy arrays.

- update to version 19.2.0:
  * Backward-incompatible Changes
    + Removed deprecated "Attribute" attribute "convert" per scheduled
      removal on 2019/1.  This planned deprecation is tracked in issue
      `#307 <https://github.com/python-attrs/attrs/issues/307>`_.
      `#504 <https://github.com/python-attrs/attrs/issues/504>`_
    + "__lt__", "__le__", "__gt__", and "__ge__" do not consider
      subclasses comparable anymore.  This has been deprecated since
      18.2.0 and was raising a "DeprecationWarning" for over a year.
      `#570 <https://github.com/python-attrs/attrs/issues/570>`_
  * Deprecations
    + The "cmp" argument to "attr.s()" and "attr.ib()" is now
      deprecated.  Please use "eq" to add equality methods ("__eq__"
      and "__ne__") and "order" to add ordering methods ("__lt__",
      "__le__", "__gt__", and "__ge__") instead – just like with
      `dataclasses
      <https://docs.python.org/3/library/dataclasses.html>`_.  Both
      are effectively "True" by default but it's enough to set
      "eq=False" to disable both at once.  Passing "eq=False,
      order=True" explicitly will raise a "ValueError" though.  Since
      this is arguably a deeper backward-compatibility break, it will
      have an extended deprecation period until 2021-06-01.  After
      that day, the "cmp" argument will be removed.  "attr.Attribute"
      also isn't orderable anymore.  `#574
      <https://github.com/python-attrs/attrs/issues/574>`_
  * Changes

OBS-URL: https://build.opensuse.org/request/show/741439
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=11
2019-11-04 16:08:06 +00:00
eb7296ebbf - update to 19.3.0
* Fixed auto_attribs usage when default values cannot be compared directly
     with ==, such as numpy arrays.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=25
2019-10-21 08:44:42 +00:00
Tomáš Chvátal
909465f612 Accepting request 734855 from home:apersaud:branches:devel:languages:python
update to latest version

OBS-URL: https://build.opensuse.org/request/show/734855
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=24
2019-10-04 07:44:54 +00:00
Dominique Leuenberger
c90ed5f02c Accepting request 722713 from devel:languages:python
- Switch to multibuild to enable tests

OBS-URL: https://build.opensuse.org/request/show/722713
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=10
2019-08-14 09:37:22 +00:00
Tomáš Chvátal
f0e1229983 - Switch to multibuild to enable tests
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=22
2019-08-12 13:47:18 +00:00
Dominique Leuenberger
a540737d99 Accepting request 681547 from devel:languages:python
- update to 19.1.0
 * Fixed a bug where deserialized objects with cache_hash=True could have
    incorrect hash code values
 * Add is_callable, deep_iterable, and deep_mapping validators.
 * Fixed stub files to prevent errors raised by mypy's
    disallow_any_generics = True option.
 * Attributes with init=False now can follow after kw_only=True attributes.
 * attrs now has first class support for defining exception classes.
 * Clarified documentation for hashing to warn that hashable objects should
    be deeply immutable

OBS-URL: https://build.opensuse.org/request/show/681547
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=9
2019-03-08 12:28:37 +00:00
7fb526ce71 - update to 19.1.0
* Fixed a bug where deserialized objects with cache_hash=True could have
    incorrect hash code values
 * Add is_callable, deep_iterable, and deep_mapping validators.
 * Fixed stub files to prevent errors raised by mypy's
    disallow_any_generics = True option.
 * Attributes with init=False now can follow after kw_only=True attributes.
 * attrs now has first class support for defining exception classes.
 * Clarified documentation for hashing to warn that hashable objects should
    be deeply immutable

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=20
2019-03-04 20:22:32 +00:00
Dominique Leuenberger
a51b334a37 Accepting request 655564 from devel:languages:python
- Fix fdupes call

OBS-URL: https://build.opensuse.org/request/show/655564
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=8
2018-12-14 19:45:26 +00:00
Tomáš Chvátal
4148ec869f - Fix fdupes call
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=18
2018-12-06 10:06:33 +00:00
Dominique Leuenberger
011afeab78 Accepting request 632660 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/632660
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=7
2018-09-05 11:47:07 +00:00
Tomáš Chvátal
6d25eaa61a Accepting request 632658 from home:apersaud:branches:devel:languages:python
update to latest version

OBS-URL: https://build.opensuse.org/request/show/632658
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=16
2018-09-01 19:42:51 +00:00
Dominique Leuenberger
c6e6d37ab8 Accepting request 605119 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/605119
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=6
2018-05-11 09:25:55 +00:00
Tomáš Chvátal
513458fdfa Accepting request 604542 from home:apersaud:branches:devel:languages:python
update to latest version

OBS-URL: https://build.opensuse.org/request/show/604542
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=14
2018-05-07 13:45:33 +00:00
Dominique Leuenberger
85ba436391 Accepting request 561518 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/561518
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=5
2018-01-16 08:34:45 +00:00
Thomas Bechtold
ec05bac306 Accepting request 561486 from home:apersaud:branches:devel:languages:python
update to latest version

OBS-URL: https://build.opensuse.org/request/show/561486
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=12
2018-01-04 05:59:20 +00:00
Dominique Leuenberger
5895cc3d09 Accepting request 559130 from devel:languages:python
- add test requirements, run tests conditionally
  (not BuildRequiring pytest fixes bsc#1073845)

OBS-URL: https://build.opensuse.org/request/show/559130
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=4
2017-12-23 11:11:40 +00:00
Jan Matejek
edd7db6fd9 - add test requirements, run tests conditionally
(not BuildRequiring pytest fixes bsc#1073845)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=10
2017-12-21 16:11:35 +00:00
Dominique Leuenberger
71da1019d5 Accepting request 540454 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/540454
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=3
2017-11-12 16:59:28 +00:00
344f664198 Accepting request 540298 from home:apersaud:branches:devel:languages:python
update to latest version

OBS-URL: https://build.opensuse.org/request/show/540298
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=8
2017-11-10 11:33:36 +00:00
Dominique Leuenberger
cb2f083518 Accepting request 507971 from devel:languages:python
1

OBS-URL: https://build.opensuse.org/request/show/507971
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=2
2017-07-11 06:25:02 +00:00
8828b357c3 Accepting request 507963 from home:tbechtold:branches:devel:languages:python
- update to 17.2.0:
  - Validators are hashable again.
  - ``attrs`` will set the ``__hash__()`` method to ``None`` by default now.
    The way hashes were handled before was in conflict with `Python's
    specification
    This *may* break some software although this breakage is most likely just
    surfacing of latent bugs.
    You can always make ``attrs`` create the ``__hash__()`` method using
    ``@attr.s(hash=True)``. See `#136`_ for the rationale of this change.
  - Correspondingly, ``attr.ib``'s ``hash`` argument is ``None`` by default too
    and mirrors the ``cmp`` argument as it should.
  - ``attr.assoc()`` is now deprecated in favor of ``attr.evolve()`` and will
    stop working in 2018.
  - Fix default hashing behavior.
    Now *hash* mirrors the value of *cmp* and classes are unhashable by default.
  - Added ``attr.evolve()`` that, given an instance of an ``attrs`` class and
    field changes as keyword arguments, will instantiate a copy of the given
    instance with the changes applied.
  - ``FrozenInstanceError`` is now raised when trying to delete an attribute
    from a frozen class.
  - Frozen-ness of classes is now inherited.
  - ``__attrs_post_init__()`` is now run if validation is disabled.
  - Added ``attr.validators.in_(options)`` that, given the allowed `options`,
    checks whether the attribute value is in it.
    This can be used to check constants, enums, mappings, etc.
  - Added ``attr.validators.and_()`` that composes multiple validators into one.
  - For convenience, the ``validator`` argument of ``@attr.s`` now can take a
    ``list`` of validators that are wrapped using ``and_()``.
  - Accordingly, ``attr.validators.optional()`` now can take a ``list`` of
    validators too.

OBS-URL: https://build.opensuse.org/request/show/507963
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=6
2017-07-04 05:29:27 +00:00
Thomas Bechtold
d308681a38 Accepting request 507531 from home:okurz:branches:devel:languages:python
Convert to singlespec

OBS-URL: https://build.opensuse.org/request/show/507531
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=5
2017-07-03 11:17:31 +00:00
Dominique Leuenberger
a5ead23504 Accepting request 407021 from devel:languages:python
Here's the missing module for python-service_identity

OBS-URL: https://build.opensuse.org/request/show/407021
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-attrs?expand=0&rev=1
2016-07-14 07:44:41 +00:00
Thomas Bechtold
ba8f3fdaba Accepting request 406822 from home:frispete:python
- update to 16.0.0
  Backward-incompatible changes:
  * Python 3.3 and 2.6 aren’t supported anymore. They may work by chance but
    any effort to keep them working has ceased.
    The last Python 2.6 release was on October 29, 2013 and isn’t supported by
    the CPython core team anymore. Major Python packages like Django and Twisted
    dropped Python 2.6 a while ago already.
    Python 3.3 never had a significant user base and wasn’t part of any
    distribution’s LTS release.
  Changes:
  * __slots__ have arrived! Classes now can automatically be slots-style (and
    save your precious memory) just by passing slots=True. #35
  * Allow the case of initializing attributes that are set to init=False. This
    allows for clean initializer parameter lists while being able to initialize
    attributes to default values. #32
  * attr.asdict can now produce arbitrary mappings instead of Python dicts when
    provided with a dict_factory argument. #40 Multiple performance improvements.

OBS-URL: https://build.opensuse.org/request/show/406822
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=3
2016-07-06 15:56:05 +00:00