{"id":22832730,"url":"https://github.com/ietf-tools/pypi-publish","last_synced_at":"2025-06-21T12:35:43.025Z","repository":{"id":57118013,"uuid":"454190659","full_name":"ietf-tools/pypi-publish","owner":"ietf-tools","description":"Tool for publishing a Python package to PyPI from a GitHub Release","archived":false,"fork":false,"pushed_at":"2022-08-29T22:37:08.000Z","size":110,"stargazers_count":13,"open_issues_count":2,"forks_count":8,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-06-04T07:49:43.629Z","etag":null,"topics":["cli","publish","pypi"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ietf-tools.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-31T22:28:19.000Z","updated_at":"2025-04-28T20:42:07.000Z","dependencies_parsed_at":"2022-08-22T20:10:12.655Z","dependency_job_id":null,"html_url":"https://github.com/ietf-tools/pypi-publish","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/ietf-tools/pypi-publish","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ietf-tools%2Fpypi-publish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ietf-tools%2Fpypi-publish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ietf-tools%2Fpypi-publish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ietf-tools%2Fpypi-publish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ietf-tools","download_url":"https://codeload.github.com/ietf-tools/pypi-publish/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ietf-tools%2Fpypi-publish/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260653882,"owners_count":23042647,"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":["cli","publish","pypi"],"created_at":"2024-12-12T21:09:00.690Z","updated_at":"2025-06-21T12:35:38.011Z","avatar_url":"https://github.com/ietf-tools.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \n\u003cimg src=\"https://raw.githubusercontent.com/ietf-tools/common/main/assets/logos/pypi-publish.svg\" alt=\"PYPI PUBLISH\" height=\"125\" /\u003e\n\n[![Release](https://img.shields.io/github/release/ietf-tools/pypi-publish.svg?style=flat\u0026maxAge=600)](https://github.com/ietf-tools/pypi-publish/releases)\n[![License](https://img.shields.io/github/license/ietf-tools/pypi-publish)](https://github.com/ietf-tools/pypi-publish/blob/main/LICENSE)\n[![npm](https://img.shields.io/npm/v/@ietf-tools/pypi-publish)](https://www.npmjs.com/package/@ietf-tools/pypi-publish)\n[![node-current](https://img.shields.io/node/v/@ietf-tools/pypi-publish)](https://github.com/ietf-tools/pypi-publish)\n    \n##### Tool for publishing a Python package to PyPI from a GitHub Release\n    \n\u003c/div\u003e\n\n- [Changelog](https://github.com/ietf-tools/pypi-publish/blob/main/CHANGELOG.md)\n- [Contributing](https://github.com/ietf-tools/.github/blob/main/CONTRIBUTING.md)\n- [Requirements](#requirements)\n- [Usage](#usage)\n\n---\n\nThis tool is a CLI which provides the following automation:\n\n- Fetch the list of available repositories and releases\n- Download the latest build of a Python package\n- Install Twine *(if not already installed)*\n- Sign and publish the package to PyPI (or TestPyPI)\n\n## Requirements\n\n- [Node.js](https://nodejs.org/) **16.x or later**\n- [Python](https://www.python.org/) **3.x**\n\n\u003e This tool assumes that you have the signing key used to sign Python packages already configured on your system. It will be used when publishing the package to PyPI.\n\n## Usage\n\nInstall the `@ietf-tools/pypi-publish` NPM package globally using:\n\n```sh\nnpm install -g @ietf-tools/pypi-publish\n```\n\nThen run *(from any location)*:\n\n```sh\npypi-publish\n```\n\nEnter the necessary info as prompted.\n\n### CLI Arguments *(optional)*\n\nThese arguments can also be passed to the CLI to automate values and bypass the questions. All arguments are optional.\n\n| Short         | Long                  | Description                                 |\n|---------------|-----------------------|---------------------------------------------|\n| `-t TARGET`   | `--target=TARGET`     | Target PyPI repository [`pypi`, `testpypi`] |\n| `-a TOKEN`    | `--token=TOKEN`       | PyPI API Token                              |\n| `-i IDENTITY` | `--identity=IDENTITY` | GPG identity to use for package signing     |\n| `-p PROJECT`  | `--project=PROJECT`   | GitHub project (repository) to publish from |\n| `-r RELEASE`  | `--release=RELEASE`   | GitHub release to publish                   |\n|               | `--python-path=PATH`  | Path to Python executable                   |\n| `-h`          | `--help`              | Display usage + help message and exit       |\n| `-v`          | `--version`           | Display CLI version and exit                |\n\n## License\n\nBSD-3-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fietf-tools%2Fpypi-publish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fietf-tools%2Fpypi-publish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fietf-tools%2Fpypi-publish/lists"}