Re-organize a single-file app into a poetry directory for building.
Project description
poetry-org
Reorganizes files to the same structure as provided with poetry new
without
creating new files.
This script is useful when using poetry
to manage a project that was not
created with poetry new
but was initialized with poetry init
; the script
allows conversion from a simple file structure (e.g., proj_dir/app_name.py
)
into a more standard one (e.g., proj_dir/app_name/app_name.py
) for building
with poetry build
.
The script moves the app files from the root project directory into a sub-directory
named after the app (as specified in the pyproject.toml
file), leaving the
meta files (e.g., README.md
, LICENSE
, pyproject.toml
) in the root
directory.
Installation
Install with pip
using
pip install poetry-org
Usage
Run in the root directory of the poetry project (where pyproject.toml
is located).
poetry-org
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
Hashes for poetry_org-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6790f37bd42274994f2d020f311fe71a368e145bd87cf485e7635dc669cf836 |
|
MD5 | 4536d5b95ba68c96175a8e5ad60e0595 |
|
BLAKE2b-256 | 4341508fb47db7496e3330decafe902a544b4384be273b807ab83a9f446e1321 |