Skip to content

Commit

Permalink
Constrain plugin version by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Aug 21, 2023
1 parent 8b3f8a1 commit f439eef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```

Expand Down
2 changes: 1 addition & 1 deletion poetry_dynamic_versioning/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down

0 comments on commit f439eef

Please sign in to comment.