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
This commit is contained in:
parent
ec05bac306
commit
513458fdfa
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1c7960ccfd6a005cd9f7ba884e6316b5e430a3f1a6c37c5f87d8b43f83b54ec9
|
||||
size 97071
|
3
attrs-18.1.0.tar.gz
Normal file
3
attrs-18.1.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e0d0eb91441a3b53dab4d9b743eafc1ac44476296a2053b6ca3af0b139faf87b
|
||||
size 106346
|
@ -1,3 +1,40 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun May 6 05:40:54 UTC 2018 - arun@gmx.de
|
||||
|
||||
- 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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 3 23:08:32 UTC 2018 - arun@gmx.de
|
||||
|
||||
|
@ -18,27 +18,24 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_with tests
|
||||
|
||||
Name: python-attrs
|
||||
Version: 17.4.0
|
||||
Version: 18.1.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
|
||||
URL: https://github.com/hynek/attrs/
|
||||
Source: https://files.pythonhosted.org/packages/source/a/attrs/attrs-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
%if %{with tests}
|
||||
BuildRequires: %{python_module hypothesis}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module zope.interface}
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@ -77,8 +74,8 @@ python-attrs is the successor to python-characterstic
|
||||
%endif
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc CHANGELOG.rst LICENSE README.rst
|
||||
%license LICENSE
|
||||
%doc CHANGELOG.rst README.rst
|
||||
%{python_sitelib}/*
|
||||
%{python_sitelib}/attrs-%{version}-py*.egg-info
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user