8000 Releases · explosion/confection · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Releases: explosion/confection

v1.0.0.dev0: Update for Pydantic v2 (and Python 3.13), refactor

10 Apr 15:21
Compare
Choose a tag to compare

Previously confection did three tree operations simultaneously (in the registry._fill method):

  • Build a version of the config with defaults in-place
  • Build a modified version suitable for validation
  • Build an output version with promises resolved

The fact that all three were being built at once made the code quite hard to update for Pydantic 2, and just difficult to work with in general. I've therefore refactored the code so that these are separate processes that apply to the whole tree at once.

A bonus of this is that we now build a model for the whole config and validate against that, which means all the validation errors for the config should come in at once, instead of only getting validation errors for one promise at a time.

Updating to Pydantic v2 will let spaCy finally support Python 3.13.

v0.1.5

31 May 16:16
81ac158
Compare
Choose a tag to compare

✨ Fixes and features

  • Fixes #47: Ensure config with * can be filled (#53)
  • Allow typing-extensions<5.0.0 for Python < 3.8 (#63)
  • Update CI (#64)

👥 Contributors

@adrianeboyd, @honnibal, @ines, @KennethEnevoldsen, @MartinBernstorff, @svlandeg

v0.1.4

23 Nov 10:01
43c9281
Compare
Choose a tag to compare
  • Support use of $$ to escape a literal $ character in config strings (#49).

v0.1.3

11 Sep 11:27
cb77540
Compare
Choose a tag to compare
  • Add frozen structures to __init__.__all__ to ensure they can be imported easily from confection (#43).

v0.1.2

06 Sep 10:51
40de02f
Compare
Choose a tag to compare
  • Implement deepcopy() for FrozenDict and FrozenList to allow setting values in function headers (#41)

v0.1.1

04 Aug 10:02
ec421a1
Compare
Choose a tag to compare
  • Make catalogue a dev-only requirement (#35).
  • Allow Pydantic v2 using transitional v1 support (#38).
  • Format and lint with black/flake8/isort (#39).

v0.1.0

29 Jun 08:47
c02750c
Compare
Choose a tag to compare
  • Add checks with warnings for single-quoted values (#22).
  • Add util.SimpleFrozenDict and util.SimpleFrozenList from spaCy (#28).
  • Remove recursive JSON parsing of list values to preserve string values such as ["003"] rather than parsing them as integers (#33).

v0.0.4

10 Jan 12:18
f950fe0
Compare
Choose a tag to compare
  • Extend support for typing_extensions to v4.4.x for Python 3.6 and 3.7.
  • Add pyproject.toml to source package.

v0.0.3

07 Oct 11:59
5b95ad8
Compare
Choose a tag to compare
  • Extend support to pydantic v1.10.x.

v0.0.2

28 Sep 09:51
9e56607
Compare
Choose a tag to compare
  • Add py.typed to package.
  • Switch to mypy 0.981 for fixes related to Python 3.10.7 and NumPy.
  • Update README.
0