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
, etc.).
pip install peppyproject
peppyproject --input ./my_python_project --output new-pyproject.toml
peppyproject
uses ini2toml[full]
to read setup.cfg
and INI files, and ast.literal_eval()
to read and parse
a setup.py
file.
from peppyproject import PyProjectConfiguration
configuration = PyProjectConfiguration.from_directory('./my_python_project')
configuration.to_file('new-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-0.2.3.tar.gz
(74.8 kB
view hashes)
Built Distribution
Close
Hashes for peppyproject-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b06663956d9507b1c1f1c5207f8b69ea69efe20ad40668d5906f808012e78ad |
|
MD5 | 542db8fefab6061b755774ef9cd53bd1 |
|
BLAKE2b-256 | aef8280509838407b32ce995ebb549edec8e5a847f1a562723fd10938586c803 |