CLI to add python dependencies to pyproject.toml
Project description
add-pyproject
A CLI that just adds python dependencies directly into pyproject.toml
$ add_pyproject "numpy>=1.26"
|
|
|
Before [project]
name = "mypackage"
version = "0.1.0"
|
After [project]
name = "mypackage"
version = "0.1.0"
dependencies = ["numpy>=1.26"]
|
Integration
Pip
pip install add-pyproject
uvx
uvx add-pyproject
uv tool install add-pyproject
Hatch
[project]
name = "mypackage"
version = "0.1.0"
dependencies = []
[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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
add_pyproject-0.2.0.tar.gz
(5.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file add_pyproject-0.2.0.tar.gz.
File metadata
- Download URL: add_pyproject-0.2.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f391c73e81d70d01b8318130d43f3bd7bafdd84fa0bc21e6c86cd935fadff557
|
|
| MD5 |
acbd3fe4ba4efd2ab5895ad4df17c574
|
|
| BLAKE2b-256 |
61d5009b8f8bf01393d8823035c8bfa593c65efca96eade6d14ec34cc54e1e32
|
File details
Details for the file add_pyproject-0.2.0-py3-none-any.whl.
File metadata
- Download URL: add_pyproject-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f54333943fa01da12fc8d0f22fe35465cda4acbdb05126f7570a66f0902d90d
|
|
| MD5 |
9c9d3e95dcfb585f034aeff66df6f242
|
|
| BLAKE2b-256 |
33a99732204cdd406bb3941e1641b6a00c056011bb4acdf444a4335e142ee10e
|