Spans

Latest version: v1.1.0

Safety actively analyzes 628903 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.3.0

-------------
Released on 26th August, 2016

- Added documentation for :meth:`~spans.settypes.RangeSet.__iter__`
- Fixed intersection of multiple range sets not working correctly
(`bug 3 <https://github.com/runfalk/spans/issues/3>`_)
- Fixed iteration of :class:`~spans.settypes.RangeSet` returning an empty range
when ``RangeSet`` is empty
(`bug 4 <https://github.com/runfalk/spans/issues/4>`_)

.. warning::
This change is backwards incompatible to code that expect range sets to
always return at least one set when iterating.

0.2.1

-------------
Released on 27th June, 2016

- Fixed :class:`~spans.settypes.RangeSet` not returning ``NotImplemented`` when
comparing to classes that are not sub classes of ``RangeSet``, pull request
`2 <https://github.com/runfalk/spans/pull/2>`_
(`Michael Krahe <https://github.com/der-michik>`_)
- Updated license in ``setup.py`` to follow
`recommendations <https://packaging.python.org/en/latest/distributing/license>`_
by PyPA

0.2.0

-------------
Released on 22nd December, 2015

- Added :meth:`~spans.settypes.RangeSet.__len__` to range sets
(`Michael Krahe <https://github.com/der-michik>`_)
- Added :meth:`~spans.settypes.RangeSet.contains` to range sets
(`Michael Krahe <https://github.com/der-michik>`_)
- Added `Sphinx <http://sphinx-doc.org/>`_ style doc strings to all methods
- Added proper Sphinx documentation
- Added unit tests for uncovered parts, mostly error checking
- Added `wheel <https://www.python.org/dev/peps/pep-0427/>`_ to PyPI along with
source distribution
- Fixed a potential bug where comparing ranges of different types would result
in an infinite loop
- Changed meta class implementation for range sets to allow more mixins for
custom range sets

0.1.4

-------------
Released on 15th May, 2015

- Added :attr:`~spans.types.DiscreteRange.last` property to
:class:`~spans.types.DiscreteRange`
- Added :meth:`~spans.types.daterange.from_date` helper to
:class:`~spans.types.daterange`
- Added more unit tests
- Improved pickle implementation
- Made type checking more strict for date ranges to prevent ``datetime`` from
being allowed in :class:`~spans.types.daterange`

0.1.3

-------------
Released on 27th February, 2015

- Added :meth:`~spans.types.OffsetableRangeMixin.offset` to some range types
- Added :meth:`~spans.settypes.OffsetableRangeSetMixin.offset` to some range set
types
- Added sanity checks to range boundaries
- Fixed incorrect ``__slots__`` usage, resulting in ``__slots__`` not being used
on most ranges
- Fixed pickling of ranges and range sets
- Simplified creation of new range sets, by the use of the meta class
:class:`~spans.settypes.MetaRangeSet`

0.1.2

-------------
Released on 13th June, 2014

- Fix for inproper version detection on Ubuntu's bundled Python interpreter

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.