Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

poetry-org-0.1.8.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

poetry_org-0.1.8-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file poetry-org-0.1.8.tar.gz.

File metadata

  • Download URL: poetry-org-0.1.8.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.11 CPython/3.7.2 Windows/10

File hashes

Hashes for poetry-org-0.1.8.tar.gz
Algorithm Hash digest
SHA256 7a47a7258c8dd994e48a0ffe959272e209e5314a941a5bdedf0090aa0b69b8e8
MD5 5be379202bce1892cb60d2e55cb45269
BLAKE2b-256 21e954afb0b5cf7a8068ecda5ae54e4f055de96e0faa7aaf4137d239b294974e

See more details on using hashes here.

File details

Details for the file poetry_org-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: poetry_org-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.11 CPython/3.7.2 Windows/10

File hashes

Hashes for poetry_org-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 441f8d70eb653985403cc5b75787032da5763c5a78ff31d50065c452083bf613
MD5 3facdfd9e3762f6b4f2eef88a506d53e
BLAKE2b-256 7639d9cbaed5f28faea2984dc49ee9f2f29a7efd3cb03193203097bc319580ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page