{"id":27671731,"url":"https://github.com/frostming/pdm-autoexport","last_synced_at":"2025-04-25T00:01:55.408Z","repository":{"id":65423240,"uuid":"517981606","full_name":"pdm-project/pdm-autoexport","owner":"pdm-project","description":"A PDM plugin to sync the exported files with the project file","archived":false,"fork":false,"pushed_at":"2023-10-12T09:07:06.000Z","size":29,"stargazers_count":15,"open_issues_count":2,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2024-12-25T09:25:45.513Z","etag":null,"topics":["pdm"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/pdm-autoexport","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pdm-project.png","metadata":{"files":{"readme":"README.md","changelog":"changelogithub.config.json","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":["pdm-project","frostming"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2022-07-26T08:44:44.000Z","updated_at":"2024-12-23T18:03:01.000Z","dependencies_parsed_at":"2023-12-21T01:48:37.611Z","dependency_job_id":"c96673ba-07ec-4926-977e-7aa65a7aef34","html_url":"https://github.com/pdm-project/pdm-autoexport","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":"0.19999999999999996","last_synced_commit":"40a9d027c903ff7c8e6ff32ec8ecfa0f7164d8ce"},"previous_names":["frostming/pdm-autoexport"],"tags_count":3,"template":true,"template_full_name":"frostming/onepm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdm-project%2Fpdm-autoexport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdm-project%2Fpdm-autoexport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdm-project%2Fpdm-autoexport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pdm-project%2Fpdm-autoexport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pdm-project","download_url":"https://codeload.github.com/pdm-project/pdm-autoexport/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231406262,"owners_count":18372011,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pdm"],"created_at":"2025-04-25T00:01:14.584Z","updated_at":"2025-04-25T00:01:55.333Z","avatar_url":"https://github.com/pdm-project.png","language":"Python","funding_links":["https://github.com/sponsors/pdm-project","https://github.com/sponsors/frostming"],"categories":["Plugins"],"sub_categories":[],"readme":"# pdm-autoexport\n\n![Github Actions](https://github.com/frostming/pdm-autoexport/workflows/Tests/badge.svg)\n[![PyPI](https://img.shields.io/pypi/v/pdm-autoexport?logo=python\u0026logoColor=%23cccccc)](https://pypi.org/project/pdm-autoexport)\n[![pdm-managed](https://img.shields.io/badge/pdm-managed-blueviolet)](https://pdm.fming.dev)\n\nA PDM plugin to sync the exported files with the project file.\n\n## Installation\n\nInstall the plugin with PDM CLI:\n\n```bash\npdm plugin add pdm-autoexport\n```\n\nOr using `pipx inject`:\n\n```bash\npipx inject pdm pdm-autoexport\n```\n\n## Usage\n\nConfigure the requirement mapping in `pyproject.toml`:\n\n```toml\n[[tool.pdm.autoexport]]\nfilename = \"requirements/prod.txt\"\ngroups = [\"default\"]\n\n[[tool.pdm.autoexport]]\nfilename = \"setup.py\"\nformat = \"setuppy\"\n```\n\nThen the requirement files will be synced every time when the lock file is updated.\n\n## Configuration\n\nThe configuration is an array of table `[[tool.pdm.autoexport]]` where each item may contain the following keys:\n\n- `filename` (required): The path to the exported file.\n- `groups` (optional, default: `[\"default\"]`): The groups of optional dependencies or dev dependency groups of PDM to sync with.\n- `format` (optional, default: `\"requirements\"`): The format of the exported file, same as the `--format` option to the `pdm export` command.\n  Only `requirements` and `setuppy` are supported.\n- `without-hashes` (optional, default: `false`): Whether to remove the hashes from the exported file. Only applicable to `requirements` format.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrostming%2Fpdm-autoexport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrostming%2Fpdm-autoexport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrostming%2Fpdm-autoexport/lists"}