Skip to content

ketozhang/add-pyproject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

add-pyproject

PyPI - Version PyPI - Python Version

A CLI that just adds python dependencies directly into pyproject.toml

$ python -m add_pyproject numpy>=1.26

Before

[project]
name = "mypackage"
version = "0.1.0"
dependencies = ["foobar"]

After

[project]
name = "mypackage"
version = "0.1.0"
dependencies = ["foobar", "numpy>=1.26"]

Installation

pip install add-pyproject

Integration

Hatch

[project]
# ...
dependencies = [
  "foobar"
]

[tool.hatch.envs.default]
dependencies = [
  "add-pyproject"
]

[tool.hatch.envs.default.scripts]
add = "python -m add_pyproject {args}"
$ hatch run add numpy>=1.26

License

add-pyproject is distributed under the terms of the MIT license.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages