Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sbrunner/poetry-plugin-tweak-dependencies-version


https://github.com/sbrunner/poetry-plugin-tweak-dependencies-version

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Poetry plugin tweak dependencies version

Plugin use to tweak the dependencies of the project.

Will be used when we have different constraints for the dependencies, like publish and dependency upgrader like Renovate.

This plugin will let us tweak the dependencies of the published packages.

Config:

```toml
[build-system]
requires = ["poetry-core>=1.0.0", "poetry-plugin-tweak-dependencies-version"]
build-backend = "poetry.core.masonry.api"

[tool.poetry-plugin-tweak-dependencies-version]
default = "(present|major|minor|patch|full)" # Default to `full`
"" = "(present|major|minor|patch|full|)"

```

`present` => `*`, `major` => `x.*`, `minor` => `x.y.*`, `patch` => `x.y.z`, `full` => keep the original version.
Or just specify an alternate version constraint.

## Contributing

Install the pre-commit hooks:

```bash
pip install pre-commit
pre-commit install --allow-missing-config
```