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
peppyprojectusesini2toml[full]to readsetup.cfgand INI files, andast.literal_eval()to read and parse asetup.pyfile. It assumes you have vetted thesetup.pyand does not perform any sanitization or safety checking; thus, it is inadvisable to use on unknown or potentially malicioussetup.pyscripts.
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
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 peppyproject-1.0.2.tar.gz.
File metadata
- Download URL: peppyproject-1.0.2.tar.gz
- Upload date:
- Size: 78.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e6168fbe34ba19ce2d0a4ccc58198ba018e68f93b6c26aa99e99865a294e059
|
|
| MD5 |
3752acda839222668c5f533fc441d2b3
|
|
| BLAKE2b-256 |
90f1d5b17d59013174fe8857874748eed6bd8717a50a6c63eda8523c2b5aeabc
|
File details
Details for the file peppyproject-1.0.2-py3-none-any.whl.
File metadata
- Download URL: peppyproject-1.0.2-py3-none-any.whl
- Upload date:
- Size: 40.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a12cfb1fef157c4dd4957bdefcf0b78fdff6c7ca979981bec1dec6c264d5dd72
|
|
| MD5 |
b193dde1bb30bc77659a96dd246d2de4
|
|
| BLAKE2b-256 |
00f35c89ba5586e11715a0b7e55362b707dd7f60fd12a139fc0bb00294a8f88e
|