{"id":15576645,"url":"https://github.com/branchvincent/pdm-publish","last_synced_at":"2025-07-29T09:38:29.508Z","repository":{"id":48811388,"uuid":"377741780","full_name":"branchvincent/pdm-publish","owner":"branchvincent","description":"📦 A PDM plugin to publish to PyPI ","archived":false,"fork":false,"pushed_at":"2021-07-10T17:13:38.000Z","size":59,"stargazers_count":24,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-19T17:28:58.673Z","etag":null,"topics":["pdm","pypi"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/branchvincent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-17T07:24:21.000Z","updated_at":"2025-05-10T19:59:22.000Z","dependencies_parsed_at":"2022-09-26T17:01:21.245Z","dependency_job_id":null,"html_url":"https://github.com/branchvincent/pdm-publish","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/branchvincent/pdm-publish","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/branchvincent%2Fpdm-publish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/branchvincent%2Fpdm-publish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/branchvincent%2Fpdm-publish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/branchvincent%2Fpdm-publish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/branchvincent","download_url":"https://codeload.github.com/branchvincent/pdm-publish/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/branchvincent%2Fpdm-publish/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267664592,"owners_count":24124347,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","pypi"],"created_at":"2024-10-02T18:53:38.925Z","updated_at":"2025-07-29T09:38:29.453Z","avatar_url":"https://github.com/branchvincent.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PDM Publish\n\n[![ci](https://github.com/branchvincent/pdm-publish/workflows/CI/badge.svg)](https://github.com/branchvincent/pdm-publish/actions/workflows/ci.yaml)\n[![pypi version](https://img.shields.io/pypi/v/pdm-publish.svg)](https://pypi.org/project/pdm-publish/)\n[![code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n[![checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)\n\nA PDM plugin to publish to PyPI\n\n\u003e NOTE: Consider if you need this over using [twine](https://twine.readthedocs.io/) directly\n\n## Installation\n\nWith `pdm` 1.6.4+:\n\n```sh\npdm plugin add pdm-publish\n```\n\nOtherwise, installation depends on how `pdm` was installed:\n\n\u003cdetails\u003e\n  \u003csummary\u003epipx\u003c/summary\u003e\n\n  ```sh\n  pipx inject pdm pdm-publish\n  ```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003ebrew\u003c/summary\u003e\n\n  ```sh\n  $(brew --prefix pdm)/libexec/bin/python -m pip install pdm-publish\n  ```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003epip\u003c/summary\u003e\n\n  ```sh\n  pip install --user pdm-publish\n  ```\n\n\u003c/details\u003e\n\n## Usage\n\n`pdm-publish` enables `pdm` to publish packages to PyPI by wrapping [twine](https://twine.readthedocs.io/en/latest/) internally.\nFor example, to build and publish:\n\n```sh\n# Using token auth\npdm publish --password token\n# To test PyPI using basic auth\npdm publish -r testpypi -u username -P password\n# To custom index\npdm publish -r https://custom.index.com/\n```\n\nFull usage:\n\n```sh\n$ pdm publish --help\nUpload artifacts to a remote repository\n\nUsage:\n\nOptions:\n  -h, --help            show this help message and exit\n  -v, --verbose         -v for detailed output and -vv for more detailed\n  -g, --global          Use the global project, supply the project root with\n                        `-p` option\n  -p PROJECT_PATH, --project PROJECT_PATH\n                        Specify another path as the project root, which\n                        changes the base of pyproject.toml and __pypackages__\n  -r REPOSITORY, --repository REPOSITORY\n                        The repository name or url to publish the package to\n                        [env var: PDM_PUBLISH_REPO]\n  -u USERNAME, --username USERNAME\n                        The username to access the repository [env var:\n                        PDM_PUBLISH_USERNAME]\n  -P PASSWORD, --password PASSWORD\n                        The password to access the repository [env var:\n                        PDM_PUBLISH_PASSWORD]\n  --dry-run             Perform all actions except upload the package\n  --no-build            Don't build the package before publishing\n```\n\n## Configuration\n\n| Config Item        | Description                           | Default Value | Available in Project | Env var                |\n| ------------------ | ------------------------------------- | ------------- | -------------------- | ---------------------- |\n| `publish.repo`     | PyPI repo name (pypi/testpypi) or url | `pypi`        | True                 | `PDM_PUBLISH_REPO`     |\n| `publish.username` | PyPI username                         | `__token__`   | True                 | `PDM_PUBLISH_USERNAME` |\n| `publish.password` | PyPI password                         |               | True                 | `PDM_PUBLISH_PASSWORD` |\n\n## Links\n\n- [Changelog](https://github.com/branchvincent/pdm-publish/releases)\n- [Contributing](CONTRIBUTING.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbranchvincent%2Fpdm-publish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbranchvincent%2Fpdm-publish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbranchvincent%2Fpdm-publish/lists"}