From 92063c97259001a2ab55b0d48ace7221443fb120 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Thu, 29 Jun 2023 13:35:12 +0200 Subject: [PATCH 1/2] Make catalogue a dev-only requirement --- confection/__init__.py | 1 - requirements.txt | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/confection/__init__.py b/confection/__init__.py index 9b49ff5..7c18bc8 100644 --- a/confection/__init__.py +++ b/confection/__init__.py @@ -11,7 +11,6 @@ from pydantic.main import ModelMetaclass from pydantic.fields import ModelField import srsly -import catalogue import inspect import io import copy diff --git a/requirements.txt b/requirements.txt index 3715d80..bfd406e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,6 +2,7 @@ pydantic>=1.7.4,!=1.8,!=1.8.1,<1.11.0 typing_extensions>=3.7.4.1,<4.5.0; python_version < "3.8" srsly>=2.4.0,<3.0.0 # Development requirements +catalogue>=2.0.3,<2.1.0 pathy>=0.3.5 pytest>=5.2.0,!=7.1.0 mypy>=0.980,<0.990; platform_machine != 'aarch64' and python_version >= '3.7' From 9cbea17435f148f885a11f916a6f9235d326661a Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Mon, 3 Jul 2023 09:04:42 +0200 Subject: [PATCH 2/2] Add note about installing catalogue to README --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0b3b59f..3d7383e 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,8 @@ learn_rate = 0.001 gamma = 1e-8 ``` -To load and parse this configuration: +To load and parse this configuration using a `catalogue` registry (install +[`catalogue`](https://github.com/explosion/catalogue) separately): ```python import dataclasses