Revisions of python-traits
Steve Kowalik (StevenK)
committed
(revision 22)
- Drop patch fix-tests.patch, it wasn't even applied. - Switch to autosetup macro.
buildservice-autocommit
accepted
request 1138237
from
Dirk Mueller (dirkmueller)
(revision 21)
baserev update by copy to link target
Dirk Mueller (dirkmueller)
committed
(revision 20)
- update to 6.4.3: * This is a bugfix release that fixes test failures with Sphinx 7.2 and later, and adds support for Python 3.12 * Rename requires_numpy_testing decorator to requires_numpy_typing, and have it check for numpy.typing, not numpy.testing. * Fix missing numpy_examples directory in traits-stubs package data. * Validation of items within a container (e.g., foos = List(MyTraitType)) now always matches the validation used for the item trait at top level (e.g., foo = MyTraitType). Previously, the validation methods used could differ, thanks to a bug in the container implementations. For most trait types this will make no difference, but for the Tuple trait type this change has the consequence that lists will no longer be accepted as valid for Tuple traits inside list items. See issue #1619 and PR #1625 for more information. * Related to the above: a top-level Tuple() trait declaration currently accepts Python list objects, while a Tuple declaration with explicit item types (for example Tuple(Int(), Int())) does not. The support for list objects in plain Tuple() is deprecated, and will be removed in a future version of Traits. See PR #1627 for more information. * The following people contributed code changes for this release: * Caio Agiani * Steve Allen * Mark Dickinson * Sai Rahul Poruri * Corran Webster Features ~~~~~~~~ * ETSConfig attributes now support deletion. This makes it easier to make * Complex trait type validation is now more lenient: any type that implements __complex__ will be accepted.
Steve Kowalik (StevenK)
committed
(revision 19)
- Update to 6.3.1: * Make PrefixMap._map available again, for compatibility with Mayavi. (#1578) * Support for Python 3.10 has been added. * The observe mini-language now supports use of "*" for listening to all traits on a HasTraits object. Currently this support is limited to cases where the "*" appears in a terminal position. For example, observe("foo:*") is supported, but observe("*:foo") is not. (#1496, #1525) * The Any trait type now supports a factory argument (with accompanying args and kw arguments). This can be used to specify a per-instance default, for example with Any(factory=dict). (#1557, #1558) * When a method is decorated with an observe decorator, the method signature is now checked, and a warning issued if it doesn't match the expected signature. (#1529) * The Date, Datetime and Time trait types have a new argument allow_none. (#1432) * The Date trait type has a new argument allow_datetime .(#1429) * The ObserverGraph instances that result from compiling ObserverExpression objects and observe mini-language strings are now cached. * The equality definition on ObserverExpression has been simplified. (#1517) * A failure to parse an observe mini-language string now raises ValueError rather than LarkError. (#1507) * Invalid assignments to PrefixList and PrefixMap traits produced an unnecessarily nested exception. This has been fixed. (#1564) * An observe-decorated listener method whose name has the special form "_traitname_changed" will no longer be triggered both as as result of the observe decorator and the special naming: it will only be triggered via the observe decorator. (#1560) * The delegate parameter was mistyped in the typing stubs for the Delegate trait type. This has been fixed. (#1556) * The Function and Method trait types will no longer fail when arguments are
buildservice-autocommit
accepted
request 874718
from
Matej Cepl (mcepl)
(revision 18)
baserev update by copy to link target
Matej Cepl (mcepl)
accepted
request 874703
from
Benjamin Greiner (bnavigator)
(revision 17)
- unskip python36. NumPy is actually optional.
Matej Cepl (mcepl)
accepted
request 874181
from
andy great (andythe_great)
(revision 16)
- Skip python 3.6. - Change source URL to Github. - Update to version 6.2.0. * The Traits examples are now distributed as part of the Traits egg, and are contributed to the etsdemo application. * Performance of the observe framework has been significantly improved. * It's no longer necessary to specify a trait comparison mode of ComparisonMode.identity when using observe to observe items in a List, Dict or Set. * When importing from Traits, you should always import from one of the api modules (for example, traits.api, traits.adaptation.api, etc.) This recommendation has now been made explicit in the documentation. If you find something you need that's not available from one of the api modules, please let the Traits developers know.
buildservice-autocommit
accepted
request 820887
from
Tomáš Chvátal (scarabeus_iv)
(revision 15)
baserev update by copy to link target
Tomáš Chvátal (scarabeus_iv)
accepted
request 820869
from
Markéta Machová (mcalabkova)
(revision 14)
- Update to 6.1.0 * A new :mod:`observation <traits.observation>` framework for observing traited attributes and other observable objects has been introduced. This is intended to provide a full replacement for the existing :func:`on_trait_change` mechanism, and aims to fix a number of fundamental flaws and limitations of that mechanism. See the :ref:`observe-notification` section of the user manual for an introduction to this framework. * New :class:`~traits.trait_list_object.TraitList`, :class:`~traits.trait_dict_object.TraitDict` and :class:`~traits.trait_set_object.TraitSet` classes have been added, subclassing Python's built-in :class:`python:list`, :class:`python:dict` and :class:`python:set` (respectively). Instances of these classes are observable objects in their own right, and it's possible to attach observers to them directly. These classes were primarily introduced to support the new observation framework, and are not expected to be used directly. The API for these objects and their notification system is provisional, and may change in a future Traits release. * A new :class:`.Union` trait type has been added. This is intended as a simpler replacement for the existing :class:`.Either` trait type, which will eventually be deprecated. * New :class:`.PrefixList`, :class:`.PrefixMap` and :class:`.Map` trait types have been added. These replace the existing :class:`.TraitPrefixList`, :class:`.TraitPrefixMap` and :class:`.TraitMap` subclasses of :class:`.TraitHandler`, which are deprecated. * Typing stubs for the Traits library have been added in a ``traits-stubs`` package, which will be released separately to PyPI. This should help support Traits-using projects that want to make use of type annotations and type checkers like `mypy <http://mypy-lang.org/>`_. * Python 2.7 is no longer supported; Traits 6.0 requires Python 3.5 or later. * Trait types related to Python 2 (for example ``Unicode`` and ``Long``) have
buildservice-autocommit
accepted
request 768822
from
Todd R (TheBlackCat)
(revision 13)
baserev update by copy to link target
Todd R (TheBlackCat)
accepted
request 768816
from
Todd R (TheBlackCat)
(revision 12)
- Update to 5.2.0: + Enhancements * Support installation from source archives. + Fixes * Ensure ``TraitListEvent.index`` is always an integer. * Update the deprecated ``collections.MutableMapping`` import. * Fix inadvertent modification of the ``Category`` base class. * Rework version handling in ``setup.py``. * Don't autogenerate documentation for ``ViewElement``. * Ensure that all tests are ``unittest`` compatible. + Changes * Replace occurences of deprecated ``AdaptsTo`` with ``Supports``. * Remove ``Class`` trait. * Deprecate ``Category`` trait. * Fix typos in docstrings. * Use decorator form of ``classmethod``. * Remove redefinition of ``NullHandler``. * Add an import check helper. * Clean up Cython tests. * Clean up test output. + Miscellaneous * Update EDM version on CI to version 2.0.0. * Don't finish fast on CI. * Use ``unittest`` to run tests in CI. * Low-level fixes and style cleanup in ``etstool.py``. * Add ``--editable`` option for ``install``, ``update`` CI commands. * Make git commit hash available to archives. * Fix use of non-edm envs as bootstrap envs on Windows. * Remove edm installed package before installing from source. * Add help text to click options. * Various cleanups, fixes and enhancements in ``etstool.py``.
buildservice-autocommit
accepted
request 717484
from
Tomáš Chvátal (scarabeus_iv)
(revision 11)
baserev update by copy to link target
Tomáš Chvátal (scarabeus_iv)
committed
(revision 10)
- Update to 5.1.2: * Traits documenter no longer generates bad reST for traits whose definition spans multiple source lines. (#494)
buildservice-autocommit
accepted
request 697378
from
Tomáš Chvátal (scarabeus_iv)
(revision 9)
baserev update by copy to link target
Tomáš Chvátal (scarabeus_iv)
accepted
request 697226
from
Petr Gajdos (pgajdos)
(revision 8)
- version update to 5.1.1 * Revert a change (#449) which accidentally broke external uses of ``_py2to3.str_find`` and ``_py2to3.str_rfind``. (#472)
buildservice-autocommit
accepted
request 695180
from
Tomáš Chvátal (scarabeus_iv)
(revision 7)
baserev update by copy to link target
Tomáš Chvátal (scarabeus_iv)
committed
(revision 6)
- Drop no longer needed avoid_sys_modules_hackery.patch
Tomáš Chvátal (scarabeus_iv)
accepted
request 695165
from
Petr Gajdos (pgajdos)
(revision 5)
- version update to 5.1.0 * Make UUID trait initializable. (#459) * Change default ``FileEditor`` behavior for a ``File`` trait based on whether ``exists=True`` is specified for that trait. (#451, #467) * The changes made in #373 to make dynamically-added traits pickleable have been reverted. (#462) * ``traits.api.python_version`` has been removed. Internals have been refactored to use ``six.PY2`` in preference to ``sys.version_info``. (#449) * Don't depend on the 3rd party ``mock`` library on Python 3; use ``unittest.mock`` instead. (#446)
buildservice-autocommit
accepted
request 678045
from
Todd R (TheBlackCat)
(revision 4)
baserev update by copy to link target
Todd R (TheBlackCat)
accepted
request 678044
from
Todd R (TheBlackCat)
(revision 3)
- Add avoid_sys_modules_hackery.patch Fixes building with latest numpy see: gh#enthought/traits#441 - Update to 5.0.0 + highlights of this release are * Removal of 2to3 fixers and the use of six to provide Python 2/3 compatibility * Removal of deprecated `traits.protocols` submodule and related utils. * New `HasRequiredTraits` class * Better IPython tab completion for `HasTraits` subclasses
Displaying revisions 1 - 20 of 22