2021-10-26 12:20:11 by Nia Alarie | Files touched by this commit (3016) |
Log message:
archivers: Replace RMD160 checksums with BLAKE2s checksums
All checksums have been double-checked against existing RMD160 and
SHA512 hashes
Could not be committed due to merge conflict:
devel/py-traitlets/distinfo
The following distfiles were unfetchable (note: some may be only fetched
conditionally):
./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip
|
2021-10-07 15:44:44 by Nia Alarie | Files touched by this commit (3017) |
Log message:
devel: Remove SHA1 hashes for distfiles
|
2020-10-06 12:51:22 by Thomas Klausner | Files touched by this commit (13) |
Log message:
*: use py-hypothesis via versioned_dependencies.mk
|
2020-05-16 11:03:23 by Adam Ciarcinski | Files touched by this commit (11) |
Log message:
fix pytest versioned dep.
|
2020-05-16 10:51:29 by Adam Ciarcinski | Files touched by this commit (1) |
Log message:
py-attrs: pytest from versioned depends
|
2019-10-15 09:53:35 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message:
py-attrs: updated to 19.3.0
19.3.0:
Changes
- Fixed ``auto_attribs`` usage when default values cannot be compared directly \
with ``==``, such as ``numpy`` arrays.
|
2019-10-07 22:25:01 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message:
py-attrs: updated to 19.2.0
19.2.0:
Backward-incompatible Changes
- Removed deprecated ``Attribute`` attribute ``convert`` per scheduled removal \
on 2019/1.
- ``__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.
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.
Changes
- Updated ``attr.validators.__all__`` to include new validators.
- 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.
- When collecting attributes using ``@attr.s(auto_attribs=True)``, attributes \
with a default of ``None`` are now deleted too.
- Fixed ``attr.validators.deep_iterable()`` and \
``attr.validators.deep_mapping()`` type stubs.
- ``attr.validators.is_callable()`` validator now raises an exception \
``attr.exceptions.NotCallableError``, a subclass of ``TypeError``, informing the \
received value.
- ``@attr.s(auto_exc=True)`` now generates classes that are hashable by ID, as \
the documentation always claimed it would.
- Added ``attr.validators.matches_re()`` that checks string attributes whether \
they match a regular expression.
- Keyword-only attributes (``kw_only=True``) and attributes that are excluded \
from the ``attrs``'s ``__init__`` (``init=False``) now can appear before \
mandatory attributes.
- The fake filename for generated methods is now more stable.
It won't change when you restart the process.
- 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.
- Added ``attr.__version_info__`` that can be used to reliably check the version \
of ``attrs`` and write forward- and backward-compatible code.
|
2019-03-03 13:17:05 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-attrs: updated to 19.1.0
19.1.0:
Backward-incompatible Changes
- Fixed a bug where deserialized objects with cache_hash=True could have \
incorrect hash code values.
This change breaks classes with cache_hash=True when a custom __setstate__ is \
present.
An exception will be thrown when applying the attrs annotation to such a class.
Changes
- Add is_callable, deep_iterable, and deep_mapping validators.
* is_callable: validates that a value is callable
* deep_iterable: Allows recursion down into an iterable,
applying another validator to every member in the iterable
as well as applying an optional validator to the iterable itself.
* deep_mapping: Allows recursion down into the items in a mapping object,
applying a key validator and a value validator to the key and value in every \
item.
Also applies an optional validator to the mapping object itself.
You can find them in the attr.validators package.
- 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.
If you define a class using @attr.s(auto_exc=True) and subclass an exception, \
the class will behave like a well-behaved exception class including an \
appropriate __str__ method, and all attributes additionally available in an args \
attribute.
- Clarified documentation for hashing to warn that hashable objects should be \
deeply immutable (in their usage, even if this is not enforced).
|
2018-09-03 09:40:18 by Adam Ciarcinski | Files touched by this commit (3) | |
Log message:
py-attrs: updated to 18.2.0
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.
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.
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.
The test suite now runs with hypothesis.HealthCheck.too_slow disabled to prevent \
CI breakage on slower computers.
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.
attr.asdict() now properly handles deeply nested lists and dictionaries.
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.
Fixed a reference leak where the original class would remain live after being \
replaced when slots=True is set.
Slotted classes can now be made weakly referenceable by passing \
@attr.s(weakref_slot=True).
Added cache_hash option to @attr.s which causes the hash code to be computed \
once and stored on the object.
Attributes can be named property and itemgetter now.
It is now possible to override a base class’ class variable using only class \
annotations.
|
2018-05-10 10:24:40 by Adam Ciarcinski | Files touched by this commit (2) | |
Log message:
py-attrs: updated to 18.1.0
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.
|