Commit Graph

9 Commits

Author SHA256 Message Date
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
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
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
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
44660962d2 Accepting request 399618 from home:tbechtold:branches:devel:languages:python
- fix Source url

OBS-URL: https://build.opensuse.org/request/show/399618
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=2
2016-06-06 11:09:21 +00:00
Thomas Bechtold
8fd18e6a4e Accepting request 399603 from home:winski:python
Official (same dev) successor & replacement to python-characteristic. REQUIREMENT for python-service_identity >= 16, so we need this to update service_identity to next version. Does NOT conflict with python-characteristic.

OBS-URL: https://build.opensuse.org/request/show/399603
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-attrs?expand=0&rev=1
2016-06-02 07:57:12 +00:00