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: Noneexclude_groups: specify what groups skip (dev,lint, etc.). Default: Nonepath_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.
[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
[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"
Release files for poetry-asterisk 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| poetry_asterisk-0.1.1.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| poetry_asterisk-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.3 kB
Release files / poetry_asterisk-0.1.1.tar.gz
| Download URL | poetry_asterisk-0.1.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
934c84e1ced9992873220c808ba340b52ebb8cccd4ad6ab3bcb747e5683a1dd0
|
|
BLAKE2b-256 checksum How to use checksums |
751905dd8e8dbfaaba75b8a5ff16828c463ade61a8bb3e2a3c78b3745bd93ebb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1018-azure
|
Release files / poetry_asterisk-0.1.1-py3-none-any.whl
| Download URL | poetry_asterisk-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1aab2b171f41789a1af99d8ec8a96cb5933cd4af8d1dbf87c0b1e5a3a92a60b5
|
|
BLAKE2b-256 checksum How to use checksums |
eb51b014c9922c4bad78c1a2b92a8471b444bb434a726392929a1c3ef2d6bf77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1018-azure
|