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_toml('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.1.1.tar.gz
(73.0 kB
view hashes)
Built Distribution
Close
Hashes for peppyproject-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fda507340a4db2cbdb189dfece3c31b60763a6a46a49a8590c0d333b3099d6f1 |
|
MD5 | 0e2fb8ef087fd3de30e666e81694fde6 |
|
BLAKE2b-256 | f89628f657720f484430cca396166ddd13ac55eda5ce441c4fd989d29a411f54 |