diff --git a/CHANGELOG.md b/CHANGELOG.md index 888ddf8..a4e966e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ * Fixed: * Compatibility with poetry-core 1.7.0, which removed the `poetry.core.semver` module. + * The `enable` command now constrains the plugin version to `>=1.0.0,<2.0.0` + to protect against any potential API changes. ## v1.0.0 (2023-08-18) diff --git a/README.md b/README.md index 358cbff..8d19ec1 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ be sure to uninstall it before proceeding. ```toml [build-system] - requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"] + requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"] build-backend = "poetry_dynamic_versioning.backend" ``` diff --git a/poetry_dynamic_versioning/cli.py b/poetry_dynamic_versioning/cli.py index fde9b94..67c50d5 100644 --- a/poetry_dynamic_versioning/cli.py +++ b/poetry_dynamic_versioning/cli.py @@ -14,7 +14,7 @@ _validate_config, ) -_DEFAULT_REQUIRES = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"] +_DEFAULT_REQUIRES = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"] _DEFAULT_BUILD_BACKEND = "poetry_dynamic_versioning.backend"