Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Releases: AlexandreDecan/portion

The pyproject.toml release

25 May 13:50

Choose a tag to compare

Added

  • A__version__ attribute relying onimportlib.metadata.
  • Auv.lock lock-file for reproducible builds.

Changed

  • Drop official support for Python 3.8.
  • Switch fromblack toruff for code style.
  • Fully migrate to apyproject.toml-based project.
  • Ensure code style consistency (see selected rules inpyproject.toml).
  • Extra dependencies are part of thedev dependency group (PEP 735).
  • Switch fromsetuptools tohatchling for buildingportion.
  • Switch fromcoverage topytest-cov for test coverage.
Assets2
Loading

2.6.0 - pass_interval in combine

17 Oct 09:47

Choose a tag to compare

Added

  • Thehow function ofcombine can access the current interval ifpass_interval is set (see#97).
Loading
maitreyakv reacted with rocket emoji
1 person reacted

2.5.0 - Combine IntervalDicts

18 Sep 07:23

Choose a tag to compare

Added

  • Thecombine method of anIntervalDict accepts amissing parameter to fill values for non-overlapping keys (see#96).
  • A recipe tocombine more than twoIntervalDict (see#95).

Changed

  • Drop official support for Python 3.7.
Loading
maitreyakv reacted with rocket emoji
1 person reacted

Hotfix 2.4.2

06 Dec 08:32

Choose a tag to compare

Fixes import error increate_api for Python 3.10+ (see#87)

Loading
jiangguantian reacted with thumbs up emoji
1 person reacted

Hotfix 2.4.1

19 Jul 07:29

Choose a tag to compare

Fix import error when usingcreate_api outside a REPL (see#85).

Loading

Specialized and customized intervals

13 Mar 16:11

Choose a tag to compare

Added

  • AnAbstractDiscreteInterval class to ease the creation of specialized discrete intervals (experimental).
  • Acreate_api function to generate an API similar to the one ofportion but configured to use a given subclass ofInterval (experimental, seeSpecialize & customize intervals).

Changed

  • Speed uprepr andto_string forInterval instances (see#76, adm271828).
  • Some internal changes to ease subclassing:
    • from_string andfrom_data accepts aklass parameter to specify which class should be used to createInterval instances (default isInterval).
    • Add aklass parameter foropen,closed,openclosed,closedopen,singleton andempty (default isInterval).
    • Add a_klass class attribute inIntervalDict to specify how to createInterval instances (default isInterval).
    • IntervalDict usesself.__class__ to preserve subclasses when creating new instances.
Loading

2.3.1 - Hotfix for #75

28 Jan 13:22

Choose a tag to compare

Changed

  • Speed up lookups inIntervalDict for non-interval keys.
  • Speed upiterate by no longer creating singleton instances under the hood.
  • Drop official support for Python 3.6.

Fixed

  • Infinite recursion when a subclass of anInterval is compared using> with anInterval instance (see#75).
Loading
RuixiangS reacted with thumbs up emoji
1 person reacted

2.3.0

31 Aug 08:41
104cd6d
This commit was created on GitHub.com and signed with GitHub’sverified signature. The key has expired.
GPG key ID:4AEE18F83AFDEB23
Expired
Verified
Learn about vigilant mode.

Choose a tag to compare

Added

  • Support Python 3.10.
  • IntervalDict.as_dict has an optionalatomic=False parameter that, if set toTrue, returns intervals that are atomic.
  • Experimental support for structural pattern matching (onleft,lower,upper andright).

Fixed

  • (breaking) Setlist(P.empty()) == [], i.e., the empty interval is a disjunction of no interval (see#72).
  • (breaking) For consistency, the empty interval is never<,>,<=, nor>= when compared to another interval.
  • Comparing an interval and a value is deprecated since it is ill-defined when the value is on the left of<= or>=. Convert values to singletons first.
Loading

2.2.0 - Subclassing & speed-ups

14 Sep 07:11

Choose a tag to compare

Added

Changed

  • Some internal changes to ease subclassingInterval(see#58):
    • Useself.__class__ instead ofInterval to create new instances;
    • Deprecate and movemergeable function toInterval._mergeable class method;
    • Interval.from_atomic is now a class method instead of a static method.
  • Speed up lookups inIntervalDict (#65, Jeff Trull).
  • Speed up removals inIntervalDict.
  • Speed up intersection for non-overlapping intervals (#66, Jeff Trull).
  • Speed up.overlaps and.contains for non-overlapping intervals/items.
Loading

Hot fix for `from_string`

17 Apr 14:30

Choose a tag to compare

Fixed

  • from_stringraises aValueError if given string cannot be parsed to an interval (#57).

Changed

  • Drop official support for Python 3.5.
  • Useblack as official code formatting.
Loading
Previous134
Previous

[8]ページ先頭

©2009-2025 Movatter.jp