create a PEP621-compliant `pyproject.toml` file from existing build configuration
Project description
peppyproject
peppyproject
creates a PEP621-compliant pyproject.toml
file from an existing Python project's build
configuration (setup.cfg
, setup.py
, tox.ini
, pytest.ini
, etc.).
Installation
pip install peppyproject
Usage
Warning
peppyproject
usesini2toml[full]
to readsetup.cfg
and INI files, andast.literal_eval()
to read and parse asetup.py
file. It assumes you have vetted thesetup.py
and does not perform any sanitization or safety checking; thus, it is inadvisable to use on unknown or potentially malicioussetup.py
scripts.
peppyproject . -o pyproject.toml
Usage: peppyproject [OPTIONS] [DIRECTORY]
read a Python project configuration and output a PEP621-compliant `pyproject.toml`
Arguments:
[DIRECTORY] directory from which to read configuration
Options:
-o, --output PATH path to which to write TOML
--help Show this message and exit.
API
from peppyproject import PyProjectConfiguration
configuration = PyProjectConfiguration.from_directory('./my_python_project')
configuration.to_file('./my_python_project/pyproject.toml')
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
peppyproject-1.0.1.tar.gz
(76.8 kB
view hashes)
Built Distribution
Close
Hashes for peppyproject-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8df5ce16338710d1852e0c5af75ad2f9cfe50a12e2869580e13a196aee686981 |
|
MD5 | bcccc0f4ca07de1b136d9d276f3f04c7 |
|
BLAKE2b-256 | 659db8da46040c0407c28d658def001f8120826bcd615099ec7b7e46dcf292b2 |