Skip to main content

A PDM plugin to sync the exported files with the project file

Project description

pdm-autoexport

Github Actions PyPI pdm-managed

A PDM plugin to sync the exported files with the project file.

Installation

Install the plugin with PDM CLI:

pdm plugin add pdm-autoexport

Or using pipx inject:

pipx inject pdm pdm-autoexport

Usage

Configure the requirement mapping in pyproject.toml:

[[tool.pdm.autoexport]]
filename = "requirements/prod.txt"
groups = ["default"]

[[tool.pdm.autoexport]]
filename = "setup.py"
format = "setuppy"

Then the requirement files will be synced every time when the lock file is updated.

Configuration

The configuration is an array of table [[tool.pdm.autoexport]] where each item may contain the following keys:

  • filename (required): The path to the exported file.
  • groups (optional, default: ["default"]): The groups of optional dependencies or dev dependency groups of PDM to sync with.
  • format (optional, default: "requirements"): The format of the exported file, same as the --format option to the pdm export command. Only requirements and setuppy are supported.
  • without-hashes (optional, default: false): Whether to remove the hashes from the exported file. Only applicable to requirements format.

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

pdm_autoexport-0.2.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

pdm_autoexport-0.2.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file pdm_autoexport-0.2.0.tar.gz.

File metadata

  • Download URL: pdm_autoexport-0.2.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for pdm_autoexport-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a7bd49c39cfc8a35dcd648f11e00817c3e1cb4764cb6501ab9d11a621934feac
MD5 efce1268f8b2dd19d71995478ac7aab7
BLAKE2b-256 ba09bca46c627fca49ade329c043e9944a5e6e338e9928b6269cc92b0d15dcae

See more details on using hashes here.

File details

Details for the file pdm_autoexport-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pdm_autoexport-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 385dd748bca5031a54cb3bcfbc1f230712fb6305d8d8ae75ee30affcbf98a4fc
MD5 bb78651bbfcaf6b18bad8410286d4ab1
BLAKE2b-256 4862a7f6fdd49cd8be5c1df2b5b40ae949f670b105c7da0242a0a2ae863c31c3

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