Poetry-relax

Latest version: v1.1.0

Safety actively analyzes 623133 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.1.0

Changes

- Drops support for Python 3.7
- Adds support for Python 3.12
- Adds support for Poetry 1.6 and 1.7
- Fixes bug where the presence of git dependencies would cause `relax` to fail

1.0.1

This release fixes two bugs.

When the `--update` flag was used with relaxed dependencies in multiple groups, only dependencies in the _last_ group would be updated. Now, all of groups will be updated.

When a dependency had multiple versions with conditional markers, `poetry-relax` would fail to process the dependencies. For example:

toml
foo = [
{version = "<=1.9", python = ">=3.6,<3.8"},
{version = "^2.0", python = ">=3.8"}
]


Now, `poetry-relax` will parse dependencies with multiple versions and correctly relax relevant subsets.

1.0.0

🎂 **poetry-relax** turns one!

Since this has been out there for a bit and I wanted to change a default behavior, I've decided to release the first major version of this package.

**This release includes a breaking change: all groups are now relaxed by default.**

Previously, each group would need to be relaxed individually. When running `poetry relax --check`, this could be slow as the dependency solver would run multiple times. Now, multiple groups are supported with only a single execution of the dependency solver.

This change brings the tool closer to Poetry's default handling of groups. A `--without` option has been added (matching Poetry's group selection options) to exclude groups from relaxation. Additionally, the `--group` option has been renamed to `--only` — this also matches Poetry's options and is clearer when the default includes multiple groups. The `---group` option will remain usable, but will display deprecation warnings.

Note while `poetry install` excludes "optional" groups by default, `poetry relax` will include optional groups unless `--without` is used to exclude them.

See https://github.com/madkinsz/poetry-relax/compare/0.1.2...1.0.0 for a full list of changes.

0.1.2

This release ensures compatibility with Python 3.12 and Poetry 1.5.x.

See https://github.com/madkinsz/poetry-relax/compare/0.1.1...0.1.2 for a full list of changes.

0.1.1

This release ensures compatibility with Poetry 1.3.x and 1.4.x.

See https://github.com/madkinsz/poetry-relax/compare/0.1.0...0.1.1 for a full list of changes.

0.1.0

This is the first release of **poetry-relax**! Thanks for taking a look at the project.

This version supports the following commands:

bash
Install poetry-relax
poetry self add poetry-relax

Relax constraints for which Poetry set an upper version
poetry relax

Relax constraints and check that they are resolvable without performing upgrades
poetry relax --check

Relax constraints and upgrade packages
poetry relax --update

Relax constraints and update the lock file without upgrading packages
poetry relax --lock

Preview the changes `poetry relax` would make without modifying the project
poetry relax --dry-run


See [the README](https://github.com/madkinsz/poetry-relax#poetry-relax) for more details.

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.