17 Commits

Author SHA256 Message Date
09747eb176 - update to 0.23.1:
* Fix a regression in 0.23.0 that could defeat type inference
    of a bidict's key type and value type when running in Python
    3.8 or 3.9. :issue:`310`
  * Primarily, this release simplifies bidict by removing minor
    features that are no longer necessary or that have little to
    no apparent usage, and it also includes some performance
    optimizations.
  * Specifically, initializing or updating a bidict is now up to
    70% faster in microbenchmarks.
  * The changes in this release will also make it easier to
    maintain and improve bidict in the future, including further
    potential performance optimizations.
  * It also contains several other improvements.
  * Drop support for Python 3.7, which reached end of life on
    2023-06-27, and take advantage of features available in
    Python 3.8+.
  * Drop support for Python 3.7, which reached end of life on
    2023-06-27, and take advantage of features available in
    Python 3.8+.
  * Remove FrozenOrderedBidict now that Python 3.7 is no longer
    supported. :class:`~bidict.frozenbidict` now provides
    everything that FrozenOrderedBidict provided (including
    :class:`reversibility <collections.abc.Reversible>`) on all
    supported Python versions, but with less space overhead.
  * Remove FrozenOrderedBidict now that Python 3.7 is no longer
    supported. :class:`~bidict.frozenbidict` now provides
    everything that FrozenOrderedBidict provided (including
    :class:`reversibility <collections.abc.Reversible>`) on all
    supported Python versions, but with less space overhead.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bidict?expand=0&rev=33
2024-03-22 19:54:00 +00:00
45d6733096 - Add patch support-python-312.patch:
* Cope with different TypeError raised.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bidict?expand=0&rev=31
2024-02-06 05:39:30 +00:00
8e7865d1a4 Accepting request 1138861 from home:alarrosa:branches:devel:languages:python
- Remove BuildRequires that aren't really used:
  sortedcollections and sortedcontainers

I checked that the number of tests run are the same
with and without those buildrequires

OBS-URL: https://build.opensuse.org/request/show/1138861
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bidict?expand=0&rev=29
2024-01-15 14:06:13 +00:00
e8763df268 Accepting request 1130323 from home:alarrosa:branches:devel:languages:python
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1130323
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bidict?expand=0&rev=27
2023-12-02 08:41:54 +00:00
ea3b3a96c0 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bidict?expand=0&rev=25 2023-04-25 21:51:30 +00:00
d63bdddfea - update to 0.22.1:
* Only include the source code in the source distribution. This
    reduces the size of the source distribution from ~200kB to ~30kB.
  * Fix the return type hint of bidict.inverted() to return an
    Iterator, rather than an Iterable

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bidict?expand=0&rev=24
2023-02-15 14:21:25 +00:00
3aacdee532 - update to 0.22.0:
- Drop support for Python 3.6, which reached end of life on 2021-12-23
   and is no longer supported by pip as of pip version 22.
   Take advantage of this to reduce bidict's maintenance costs.
 - Use mypy-appeasing explicit re-exports in ``__init__.py``
   (e.g. ``import x as x``)
   so that mypy no longer gives you an implicit re-export error
   if you run it with ``--no-implicit-reexport`` (or ``--strict``)
   against code that imports from :mod:`bidict`.
 - Update the implementations and type annotations of
   :meth:`bidict.BidictBase.keys` and
   :meth:`bidict.BidictBase.values` to make use of the new
   :class:`~bidict.BidictKeysView` type,
   which works a bit better with type checkers.
 - Inverse bidict instances are now computed lazily the first time
   the :attr:`~bidict.BidictBase.inverse` attribute is accessed
   rather than being computed eagerly during initialization.
   (A bidict's backing, inverse, one-way mapping
   is still kept in sync eagerly as any mutations are made,
   to preserve key- and value-uniqueness.)
 - Optimize initializing a bidict with another bidict.
   In a microbenchmark on Python 3.10,
   this now performs over **2x faster**.
 - Optimize updating an empty bidict with another bidict.
   In a microbenchmark on Python 3.10,
   this now performs **60-75% faster**.
 - Optimize :meth:`~bidict.BidictBase.copy`.
   In a microbenchmark on Python 3.10,
   this now performs **10-20x faster**.
 - Optimize rolling back

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bidict?expand=0&rev=22
2022-09-24 10:41:02 +00:00
2ad58779bc Accepting request 916936 from home:mnhauke
- Update to version 0.21.3
  * All bidicts now provide the equals_order_sensitive() method,
    not just bidict.OrderedBidicts.
  * Since support for Python < 3.6 was dropped in v0.21.0,
    non-Ordered bidicts preserve a deterministic ordering on all
    supported Python versions, so all bidicts can now provide
    equals_order_sensitive().
  * Take better advantage of the fact that dicts are reversible
    in Python 3.8+. This allows even non-Ordered bidicts to
    efficiently provide a __reversed__() implementation, which
    they now do. As a result, if you are using Python 3.8+,
    frozenbidict now gives you everything that
    FrozenOrderedBidict gives you with less space overhead.
  * Drop setuptools_scm as a setup_requires dependency.
  * Remove the bidict.__version_info__ attribute.

OBS-URL: https://build.opensuse.org/request/show/916936
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bidict?expand=0&rev=21
2021-09-06 13:21:12 +00:00
a63a8df297 Accepting request 895557 from home:DocB:branches:devel:languages:python
- Update to version 0.21.2
  * Include `py.typed <https://www.python.org/dev/peps/pep-0561/#packaging-type-information>`__
    file to mark :mod:`bidict` as type hinted.

OBS-URL: https://build.opensuse.org/request/show/895557
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bidict?expand=0&rev=19
2021-05-26 14:48:42 +00:00
55279e34fb - Update to 0.21.0:
* bidict now provides type hints
  * Add bidict.MutableBidirectionalMapping ABC
  * Drop Python 3.5 support
  * Remove bidict.compat module
  * Remove APIs deprecated in previous releases 
- Drop dont-limit-versions.patch, included upstream

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bidict?expand=0&rev=17
2020-09-01 04:49:16 +00:00
03f13c54e6 - Add dont-limit-versions.patch … don't limit the upper
version of setuptools_scm to be used.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bidict?expand=0&rev=15
2020-08-18 18:57:29 +00:00
Tomáš Chvátal
2b0089a8a7 Accepting request 765343 from home:mcalabkova:branches:devel:languages:python
- update to 0.19.0
  * Drop support for Python 2 as promised in v0.18.2.
  * Deprecate bidict.OVERWRITE and bidict.IGNORE. A UserWarning will now be emitted if these are used.
  * Rename DuplicationPolicy to OnDupAction (and implement it via an Enum).
  * No longer use __all__ in bidict’s __init__.py.
  * Improve validation of names passed to namedbidict().

OBS-URL: https://build.opensuse.org/request/show/765343
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bidict?expand=0&rev=13
2020-01-17 18:08:39 +00:00
Tomáš Chvátal
b443fe6fce - Update to 0.18.2:
* Warn that Python 2 support will be dropped in a future release when Python 2 is detected.
  * Fix a regression introduced by the memory optimizations added in 0.15.0 which caused deepcopied and unpickled bidicts to have their inverses set incorrectly. #94

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bidict?expand=0&rev=11
2019-09-13 11:24:40 +00:00
Tomáš Chvátal
80497f1f5c Accepting request 679991 from home:jayvdb:noflake8
- Remove unused build dependencies
- Add export LANG=en_US.UTF-8
- Add docs/*.rst to %doc
- Update to v0.18.0

OBS-URL: https://build.opensuse.org/request/show/679991
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bidict?expand=0&rev=9
2019-02-28 08:59:38 +00:00
9304aac2a9 Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bidict?expand=0&rev=7
2018-12-04 13:16:22 +00:00
Tomáš Chvátal
831aca8e01 Accepting request 626071 from home:jengelh:branches:devel:languages:python
- Specify summary with a bit more detail.

OBS-URL: https://build.opensuse.org/request/show/626071
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bidict?expand=0&rev=5
2018-07-30 07:34:05 +00:00
Todd R
65c63791b6 Accepting request 613686 from devel:languages:python:misc
Bidirectional map implementation

OBS-URL: https://build.opensuse.org/request/show/613686
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bidict?expand=0&rev=1
2018-06-02 19:03:28 +00:00