Page MenuHomeSolus

Update python-intervaltree to 3.1.0
ClosedPublic

Authored by algent on Sun, Sep 6, 7:41 PM.

Details

Summary

Changelog:

  • Added support for Python 3.8.
  • Add __slots__ optimization in Node class, should give performance improvement.
  • Fixed:
    • Restore universal wheels.
    • Bytes/str type incompatibility in setup.py.
    • New version of distutils rejects version suffixes of .postNN, use aNN instead.

Depends on D9592

Signed-off-by: Algent Albrahimi <algent@protonmail.com>

Test Plan
  • Update spyder3 and run a few scripts.
  • Run these examples using cli:
>>> from intervaltree import Interval, IntervalTree
>>> t = IntervalTree()
>>> t
IntervalTree()
>>> t[1:2] = "1-2"
>>> t[4:7] = (4, 7)
>>> t[5:9] = {5: 9}
>>> sorted(t[6])
[Interval(4, 7, (4, 7)), Interval(5, 9, {5: 9})]
>>> sorted(t[6])[0]
Interval(4, 7, (4, 7))
>>> sorted(t[2:4])
[]
>>> sorted(t[1:5])
[Interval(1, 2, '1-2'), Interval(4, 7, (4, 7))]
>>> sorted(t.envelop(1, 5))
[Interval(1, 2, '1-2')]

Diff Detail

Repository
R5061 python-intervaltree
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

algent created this revision.Sun, Sep 6, 7:41 PM
algent requested review of this revision.Sun, Sep 6, 7:41 PM
algent edited the test plan for this revision. (Show Details)Sun, Sep 6, 7:42 PM
JoshStrobl accepted this revision.Wed, Sep 9, 2:04 PM
JoshStrobl added a subscriber: JoshStrobl.

LGTM, thanks!

This revision is now accepted and ready to land.Wed, Sep 9, 2:04 PM
This revision was automatically updated to reflect the committed changes.