Skip to content

Latest commit

 

History

History
461 lines (222 loc) · 18.7 KB

CHANGELOG.md

File metadata and controls

461 lines (222 loc) · 18.7 KB

CHANGELOG

v0.20.0 (2024-04-21)

Chore

  • chore: allow more_itertools>=8.10 (1b8366c)

  • chore: fix the release process (c044bdd)

  • chore: remove unnecessary shebang lines (adccaf6)

  • chore: fix typo in test error message (fe495bd)

Feature

  • feat: add a schema function to rename parameters (de5a71e)

  • feat: save decorator arguments as function attributes (367dff2)

Test

  • test: improve test coverage (b3e6791)

  • test: test add_loader() and remove_loader() (681edbc)

v0.19.0 (2023-12-12)

Chore

  • chore: upgrade to latest readthedocs config format (74ba8ac)

  • chore: ignore deprecation warnings caused by datetime/arrow (77b4216)

  • chore: switch to gitlint (f5ea748)

  • chore: update ruff command (1aac862)

  • chore: fix PyPI link to documentation (4448eb7)

  • chore: add linting; update semantic release (bbd5a87)

Feature

  • feat: improve error message (e910232)

Fix

  • fix: handle class-level parametrization correctly

Fixes #21 (24f8f13)

Unknown

v0.18.0 (2023-09-01)

Documentation

  • docs: update examples to use 'import parametrize_from_file as pff' (794806b)

  • docs: fix typos (7681380)

  • docs: fix syntax highlighting (fbc1e14)

  • docs: make README example more intuitive (277ba97)

Feature

  • feat: allow schema functions to add marks (f1f0c2b)

Fix

  • fix: improve error messages (3a92dbf)

Unknown

  • Merge branch 'master' of github.com:kalekundert/parametrize_from_file (c701520)

v0.17.1 (2023-06-22)

Chore

  • chore: replace contextlib2 with contextlib (#18)

contextlib.nullcontext was added in Python 3.7 which is the oldest supported version (9c68f20)

Documentation

Test

  • test: account for changed module name of nt.load() (1fb2b7b)

Unknown

  • Merge branch 'master' of github.com:kalekundert/parametrize_from_file (309056d)

v0.17.0 (2022-08-23)

Feature

  • feat: allow multiple cast functions for each field (c026e8b)

v0.16.0 (2022-06-14)

Feature

  • feat: don't eval/exec the error() context managers (9d8b2af)

v0.15.0 (2022-06-10)

Feature

  • feat: provide schema functions tailored for testing
  • Add the cast and defaults schema functions.

  • Refactor error and error_or into standalone functions that don't depend on the Namespace class. The corresponding Namespace methods remain, but are now just thin wrappers.

  • Interpret iterable schema arguments as pipelines.

  • Get rid of the voluptuous dependency.

Fixes #16 (275c79d)

v0.14.0 (2022-04-18)

Documentation

  • docs: use sentence-case for page titles (0f30c42)

  • docs: use python 3.7 to build the docs (6bd272c)

Feature

  • feat: allow loaders to be overridden locally (466fa31)

  • feat: allow preprocess() to get additional contextual information (a482725)

Unknown

  • Merge branch 'master' of github.com:kalekundert/parametrize_from_file (5cda235)

v0.13.1 (2022-04-08)

Chore

  • chore: drop support for python 3.6 (dca2288)

  • chore: upgrade pyproject.toml as per PEP 621 (9783b75)

Documentation

  • docs: add a tutorial on temporary files (09aa784)

  • docs: fix pytest cross-references (33580bb)

  • docs: tweak wording (f791460)

Fix

  • fix: improve error messages (c1eaa78)

Test

  • test: add pytest_tmp_files dependency (bc71d5e)

v0.13.0 (2022-01-17)

Feature

  • feat: allow assertions on the direct causes of exceptions (d4d2be9)

v0.12.0 (2022-01-17)

Chore

  • chore: treat all warnings as errors in CI (97f215c)

Feature

  • feat: allow deferred eval/exec to be invoked by name

I think this makes the code easier to read. (08d0bf2)

v0.11.1 (2022-01-13)

Fix

  • fix: migrate to more_itertools.zip_broadcast()

This avoids a warning in python>=3.10

Fixes #13 (cdf37c3)

v0.11.0 (2022-01-12)

Documentation

  • docs: fix typos (38cea18)

  • docs: fix python snippet examples (5497205)

Feature

  • feat: add empty_ok() for voluptuous schema (6fd446d)

v0.10.0 (2022-01-04)

Feature

  • feat: get multiple variables from executed snippets (c43c57a)

v0.9.1 (2021-12-23)

Fix

  • fix: improve debug message (08fa038)

v0.9.0 (2021-12-23)

Feature

  • feat: try to import the voluptuous submodule (4d5cca4)

v0.8.0 (2021-12-23)

Feature

  • feat: allow exec() and eval() to be deferred

This commit also gets rid of exec_and_lookup(), which was basically just doing one specific kind of deferral. Fixes #8. (b8cf9d5)

  • feat: make namespaces immutable, add more error checks
  • Make namespaces immutable, fix #10.
  • Provide more flexible exception assertions, fix #9.
  • Add sensible __bool__() implementation for error context managers, fix #12. (8e52066)

Test

  • test: make sure namespaces with unpickleable values can be copied (1c61ee8)

v0.7.1 (2021-10-07)

Fix

  • fix: include voluptuous dependency (62fc60b)

v0.7.0 (2021-10-06)

Documentation

Feature

  • feat: support eval/exec'ing mocks (121995a)

v0.6.0 (2021-10-06)

Feature

  • feat: support parametrized fixtures

Fixes #6 (e9a95c4)

  • feat: support indirect parametrization

Fixes #7 (34308c4)

Test

  • test: add cases that break mi.zip_broadcast()

See more-itertools/more-itertools#561 (980dd3b)

v0.5.1 (2021-08-29)

Chore

  • chore: merge cookiecutter (9eef273)

  • chore: apply cookiecutter (279a595)

Fix

  • fix: correctly format error messages with braces (7caaa31)

v0.5.0 (2021-08-22)

Documentation

  • docs: add examples of my projects that use this package (f1e59f3)

  • docs: install dependencies (90721fd)

  • docs: install dependencies (6ca7ae8)

Feature

  • feat: allow multiple paths/keys to be specified (fe6696a)

  • feat: add the load_parameters() function

I don't have a specific use for this API, but it seems like a good thing to have. It also forced me to refactor the code a bit to better separate responsibilities. (5c8af43)

  • feat: add the preprocess argument (219aa9f)

Fix

  • fix: check that the schema returns a dict (85ecdf1)

Unknown

  • Merge branch 'master' of github.com:kalekundert/parametrize_from_file (7ef4818)

v0.4.0 (2021-08-20)

Documentation

  • docs: slightly clarify error messages (7393ee0)

Feature

  • feat: add the Namespace eval/exec/error helper (e0c8523)

Unknown

  • Merge branch 'master' of github.com:kalekundert/parametrize_from_file (d9e4a06)

v0.3.0 (2020-12-07)

Chore

  • chore: remove stale imports (707ac13)

Feature

  • feat: accept any callable as the schema

Fixes #1 (2f3d1e1)

v0.2.0 (2020-12-04)

Feature

  • feat: rename the 'key' argument (25d7879)

v0.1.1 (2020-12-04)

Chore

  • chore: add support for python 3.6 (dc8f385)

  • chore: install the local version of this package (e539e81)

  • chore: remove this package from the requirements file (cf80457)

  • chore: try using a requirements file to satisfy ReadTheDocs (fa569c8)

  • chore: specify which version of arrow to use when building docs (4ca3325)

  • chore: add dateutil as doc dependency (a016b2e)

  • chore: remove autoclasstoc doc dependency (dc0aefc)

Documentation

Fix

  • fix: don't apply the schema to 'id' and 'marks' (e18e931)

Refactor

  • refactor: the Params class is outside the scope of this module (2b5a638)

Unknown

  • Merge branch 'master' of github.com:kalekundert/parametrize_from_file (8768ac2)

v0.1.0 (2020-12-03)

Documentation

  • docs: initial documentation (597abeb)

Feature

  • feat: give more helpful schema errors (aac84a0)

v0.0.1 (2020-12-02)

Chore

  • chore: use 'toml' instead of 'rtoml'

'rtoml' is faster and more robust, but harder to get working in CI environments because it requires rust to be installed. Since this package is meant to be used for testing, I don't want to add that hurdle. (fa96633)

  • chore: install flit when running tests (204d7db)

  • chore: fix whitespace error (cdc7fdf)

Fix

  • fix: use a functools.wrap() signature compatible with python<=3.8 (2e2b60d)

  • fix: avoid using walrus operator (3775077)

Unknown

  • initial implementation and testing (61fd2aa)

  • initial commit (cae9460)