Skip to main content

Python Poetry Monorepo Tooling

Project description

Anthology

Anthology is a command-line tool designed to streamline common tasks in Poetry based mono-repos. It provides commands for installing dependencies, running scripts, and managing project versions.

Installation

To install Anthology, use poetry:

poetry self add anthology

Usage

Anthology provides several commands to manage Anthology projects:

poetry anthology install [dir]

This command installs sub-packages defined in the Anthology project. It reads the Anthology configuration, updates package sources, locks sub-packages, generates the meta pyproject.toml document, and installs dependencies.

poetry anthology run [script_name] [args]

This command runs scripts defined in the Anthology project. It reads the Anthology configuration, locates the package directory, retrieves the scripts defined in the Anthology configuration for the target, and executes the specified script using subprocess.

poetry anthology version [args]

This command manages versioning within the Anthology project. It reads the Anthology configuration, executes 'poetry version' command in each of the sub-packages, updates package sources, locks sub-packages, extracts the version of the sub-package, and generates the meta pyproject.toml document with the updated version.

Examples

To install sub-packages in the current directory:

poetry anthology install

To run a script named 'build' in the Anthology project:

poetry anthology run build

To update the version of sub-packages in the Anthology project:

poetry anthology version

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

anthology-0.1.3-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file anthology-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: anthology-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.8.18 Linux/6.5.0-1021-azure

File hashes

Hashes for anthology-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b13ea4a7db7a4852e6860b36bd37bb4a36db04ab9e8c22eeb7b947cd5fa356ef
MD5 3792f7f7585b5b591193f4ed769671d3
BLAKE2b-256 fabd1862205603a4632e927115f1d25e14e54c4169fd3c3d2575b91bc0ded96e

See more details on using hashes here.

Supported by

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