Hello community, here is the log from the commit of package python-attrs for openSUSE:Leap:15.2 checked in at 2020-05-26 18:32:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/python-attrs (Old) and /work/SRC/openSUSE:Leap:15.2/.python-attrs.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-attrs" Tue May 26 18:32:09 2020 rev:27 rq:808215 version:19.3.0 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/python-attrs/python-attrs.changes 2020-01-15 15:46:42.695366800 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.python-attrs.new.2738/python-attrs.changes 2020-05-26 18:32:15.541559891 +0200 @@ -1,0 +2,196 @@ +Thu May 14 06:45:13 UTC 2020 - Tomáš Chvátal <[email protected]> + +- Do not restrict us to new setuptools, we generate stuff + even with the older variants + +------------------------------------------------------------------- +Mon Oct 21 08:44:11 UTC 2019 - Ondřej Súkup <[email protected]> + +- update to 19.3.0 + * Fixed auto_attribs usage when default values cannot be compared directly + with ==, such as numpy arrays. + +------------------------------------------------------------------- +Fri Oct 4 02:34:32 UTC 2019 - Arun Persaud <[email protected]> + +- 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 + + Updated "attr.validators.__all__" to include new validators + added in `#425`_. `#517 + <https://github.com/python-attrs/attrs/issues/517>`_ + + Slotted classes now use a pure Python mechanism to rewrite the + "__class__" cell when rebuilding the class, so "super()" works + even on environments where "ctypes" is not installed. `#522 + <https://github.com/python-attrs/attrs/issues/522>`_ + + When collecting attributes using "@attr.s(auto_attribs=True)", + attributes with a default of "None" are now deleted too. `#523 + <https://github.com/python-attrs/attrs/issues/523>`_, `#556 + <https://github.com/python-attrs/attrs/issues/556>`_ + + Fixed "attr.validators.deep_iterable()" and + "attr.validators.deep_mapping()" type stubs. `#533 + <https://github.com/python-attrs/attrs/issues/533>`_ + + "attr.validators.is_callable()" validator now raises an + exception "attr.exceptions.NotCallableError", a subclass of + "TypeError", informing the received value. `#536 + <https://github.com/python-attrs/attrs/issues/536>`_ + + "@attr.s(auto_exc=True)" now generates classes that are hashable + by ID, as the documentation always claimed it would. `#543 + <https://github.com/python-attrs/attrs/issues/543>`_, `#563 + <https://github.com/python-attrs/attrs/issues/563>`_ + + Added "attr.validators.matches_re()" that checks string + attributes whether they match a regular expression. `#552 + <https://github.com/python-attrs/attrs/issues/552>`_ + + Keyword-only attributes ("kw_only=True") and attributes that are + excluded from the "attrs"'s "__init__" ("init=False") now can + appear before mandatory attributes. `#559 + <https://github.com/python-attrs/attrs/issues/559>`_ + + The fake filename for generated methods is now more stable. It + won't change when you restart the process. `#560 + <https://github.com/python-attrs/attrs/issues/560>`_ + + The value passed to "@attr.ib(repr=…)" can now be either a + boolean (as before) or a callable. That callable must return a + string and is then used for formatting the attribute by the + generated "__repr__()" method. `#568 + <https://github.com/python-attrs/attrs/issues/568>`_ + + Added "attr.__version_info__" that can be used to reliably check + the version of "attrs" and write forward- and + backward-compatible code. Please check out the `section on + deprecated APIs + <http://www.attrs.org/en/stable/api.html#deprecated-apis>`_ on + how to use it. `#580 + <https://github.com/python-attrs/attrs/issues/580>`_ + +------------------------------------------------------------------- +Mon Aug 12 11:20:18 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Switch to multibuild to enable tests + +------------------------------------------------------------------- +Mon Mar 4 20:07:57 UTC 2019 - Ondřej Súkup <[email protected]> + +- 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 + +------------------------------------------------------------------- +Thu Dec 6 10:06:08 UTC 2018 - Tomáš Chvátal <[email protected]> + +- Fix fdupes call + +------------------------------------------------------------------- +Sat Sep 1 18:34:11 UTC 2018 - [email protected] + +- specfile: + - removed devel from noarch package + - be more specific in %files section + +- update to version 18.2.0: + * Deprecations + + Comparing subclasses using "<", ">", "<=", and ">=" is now + deprecated. The docs always claimed that instances are only + compared if the types are identical, so this is a first step to + conform to the docs. Equality operators ("==" and "!=") were + always strict in this regard. issue 394 + * Changes + + "attrs" now ships its own PEP 484 type hints. Together with + mypy's "attrs" plugin, you've got all you need for writing + statically typed code in both Python 2 and 3! At that occasion, + we've also added `narrative docs` about type annotations in + "attrs". issue #238 + + Added *kw_only* arguments to "attr.ib" and "attr.s", and a + corresponding *kw_only* attribute to "attr.Attribute". This + change makes it possible to have a generated "__init__" with + keyword-only arguments on Python 3, relaxing the required + ordering of default and non-default valued attributes. issues #281, #411 + + The test suite now runs with "hypothesis.HealthCheck.too_slow" + disabled to prevent CI breakage on slower computers. issues + #364, #396 + + "attr.validators.in_()" now raises a "ValueError" with a useful + message even if the options are a string and the value is not a + string. issue #383 + + "attr.asdict()" now properly handles deeply nested lists and + dictionaries. issue #395 + + Added "attr.converters.default_if_none()" that allows to replace + "None" values in attributes. For example + "attr.ib(converter=default_if_none(""))" replaces "None" by + empty strings. issues #400, #414 + + Fixed a reference leak where the original class would remain + live after being replaced when "slots=True" is set. isue #407 + + Slotted classes can now be made weakly referenceable by passing + "@attr.s(weakref_slot=True)". issue #420 + + Added *cache_hash* option to "@attr.s" which causes the hash + code to be computed once and stored on the object. issue #425 + + Attributes can be named "property" and "itemgetter" now. issue + #430 + + It is now possible to override a base class' class variable + using only class annotations. issue #431 + +------------------------------------------------------------------- +Sun May 6 05:40:54 UTC 2018 - [email protected] + +- update to version 18.1.0: + * "x=X(); x.cycle = x; repr(x)" will no longer raise a + "RecursionError", and will instead show as "X(x=...)". + * "attr.ib(factory=f)" is now syntactic sugar for the common case of + "attr.ib(default=attr.Factory(f))". + * Added "attr.field_dict()" to return an ordered dictionary of + "attrs" attributes for a class, whose keys are the attribute + names. + * The order of attributes that are passed into "attr.make_class()" + or the "these" argument of "@attr.s()" is now retained if the + dictionary is ordered (i.e. "dict" on Python 3.6 and later, + "collections.OrderedDict" otherwise). + * Before, the order was always determined by the order in which the + attributes have been defined which may not be desirable when + creating classes programatically. + * In slotted classes, "__getstate__" and "__setstate__" now ignore + the "__weakref__" attribute. + * Setting the cell type is now completely best effort. This fixes + "attrs" on Jython. We cannot make any guarantees regarding Jython + though, because our test suite cannot run due to dependency + incompatabilities. + * If "attr.s" is passed a *these* argument, it will not attempt to + remove attributes with the same name from the class body anymore. + * The hash of "attr.NOTHING" is now vegan and faster on 32bit Python + builds. + * The overhead of instantiating frozen dict classes is virtually + eliminated. + * Generated "__init__" methods now have an "__annotations__" + attribute derived from the types of the fields. + * We have restructured the documentation a bit to account for + "attrs"' growth in scope. Instead of putting everything into the + `examples <http://www.attrs.org/en/stable/examples.html>`_ page, + we have started to extract narrative chapters. + +------------------------------------------------------------------- Old: ---- attrs-17.4.0.tar.gz New: ---- _multibuild attrs-19.3.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-attrs.spec ++++++ --- /var/tmp/diff_new_pack.qUcCiP/_old 2020-05-26 18:32:15.945560772 +0200 +++ /var/tmp/diff_new_pack.qUcCiP/_new 2020-05-26 18:32:15.949560782 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-attrs # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,33 +12,38 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_with tests - -Name: python-attrs -Version: 17.4.0 +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif +Name: python-attrs%{psuffix} +Version: 19.3.0 Release: 0 Summary: Attributes without boilerplate License: MIT Group: Development/Languages/Python -Url: https://github.com/hynek/attrs/ -Source: https://pypi.io/packages/source/a/attrs/attrs-%{version}.tar.gz -BuildRequires: %{python_module devel} +URL: https://github.com/hynek/attrs/ +Source: https://files.pythonhosted.org/packages/source/a/attrs/attrs-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -%if %{with tests} +BuildArch: noarch +%if %{with test} +BuildRequires: %{python_module Pympler} BuildRequires: %{python_module hypothesis} BuildRequires: %{python_module pytest} +BuildRequires: %{python_module six} BuildRequires: %{python_module zope.interface} %endif -BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch - %python_subpackages %description @@ -68,18 +73,22 @@ %python_build %install +%if !%{with test} %python_install -%fdupes %{buildroot}%{_prefix} +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif -%if %{with tests} +%if %{with test} %check -%python_exec -m pytest tests +%pytest %endif +%if !%{with test} %files %{python_files} -%defattr(-,root,root,-) -%doc CHANGELOG.rst LICENSE README.rst -%{python_sitelib}/* +%license LICENSE +%doc CHANGELOG.rst README.rst +%{python_sitelib}/attr* %{python_sitelib}/attrs-%{version}-py*.egg-info +%endif %changelog ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild> ++++++ attrs-17.4.0.tar.gz -> attrs-19.3.0.tar.gz ++++++ ++++ 13347 lines of diff (skipped)
