https://github.com/chandr-andr/poetry-asterisk
Small util for automate poetry dependency version change to "*"
https://github.com/chandr-andr/poetry-asterisk
dependencies poetry poetry-python versions
Last synced: 8 months ago
JSON representation
Small util for automate poetry dependency version change to "*"
- Host: GitHub
- URL: https://github.com/chandr-andr/poetry-asterisk
- Owner: chandr-andr
- Created: 2023-12-19T19:08:49.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-20T07:59:04.000Z (almost 2 years ago)
- Last Synced: 2025-01-09T10:37:47.821Z (9 months ago)
- Topics: dependencies, poetry, poetry-python, versions
- Language: Python
- Homepage: https://github.com/chandr-andr/poetry-asterisk
- Size: 62.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

[](https://codecov.io/gh/chandr-andr/poetry-asterisk)# Poetry-Asterisk
This library performs auto change dependency version to `"*"`.
You can specify 3 parameters for detail setup.# Installation
You can install this library this way:
```
poetry add poetry-asterisk
```
or with pip:
```
pip install poetry-asterisk
```# Usage
Just run:
```
pasterisk
```It has arguments:
- `exclude_packages`: specify what packages skip. Default: None
- `exclude_groups`: specify what groups skip (`dev`, `lint`, etc.). Default: None
- `path_to_pyproject`: path to the pyproject.toml. By default asterisk searches in the root directory.Advanced example:
```
pasterisk --exclude_packages "pytest, orjson" --exclude_groups "lint" --path_to_pyproject ./pyproject.toml
```# Example of work
`pyproject.toml` before update.
```toml
[tool.poetry]
name = "test"
version = "0.0.1"
description = ""
authors = ["awesome man"]
readme = "README.md"[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
pydantic = "^2.4.2"[tool.poetry.group.test.dependencies]
typing-extensions = "^4.8.0"
pytest = "^7.4.3"[tool.poetry.group.lint.dependencies]
ruff = "^0.1.2"
```command:
```
pasterisk --exclude_packages "pytest" --exclude_groups "lint"
````pyproject.toml` after update. We didn't touched `pytest` and the whole `lint` group
```toml
[tool.poetry]
name = "test"
version = "0.0.1"
description = ""
authors = ["awesome man"]
readme = "README.md"[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
pydantic = "*"[tool.poetry.group.test.dependencies]
typing-extensions = "*"
pytest = "^7.4.3"[tool.poetry.group.lint.dependencies]
ruff = "^0.1.2"
```