GithubHelp home page GithubHelp logo

chandr-andr / poetry-asterisk Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 64 KB

Small util for automate poetry dependency version change to "*"

Home Page: https://github.com/chandr-andr/poetry-asterisk

Python 100.00%
dependencies poetry poetry-python versions

poetry-asterisk's Introduction

Static Badge codecov

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.

[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"

poetry-asterisk's People

Contributors

chandr-andr avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.