Skip to main content

Pypi

pip config

Poetry stores your API token in a plaintext file when you add it as your credentials.

$HOME/.config/pip/pip.conf
$HOME/.pip/pip.conf

Simple text file

1. Configure token to repositories

poetry config pypi-token.pypi <your-api-token>

2. Build and pulish it

poetry publish --build

Using keyring

1. Install Keyring

Ensure you have the keyring package installed:

pip install keyring

2. Check Available Backends

List available backends to see which ones are installed:

python -m keyring --list-backends

3. Using env

export PYPI_USERNAME=__token__
export PYPI_PASSWORD=<token-from-pypi>

poetry run pytest --cov=src tests/

Metadata

Release files for poetry-publish-pypi 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for poetry-publish-pypi 0.1.0
File Size Uploaded
poetry_publish_pypi-0.1.0.tar.gz 1.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for poetry-publish-pypi 0.1.0
File Interpreter ABI Platform
poetry_publish_pypi-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 2.9 kB

Release files / poetry_publish_pypi-0.1.0.tar.gz

Download URL poetry_publish_pypi-0.1.0.tar.gz
Size 1.3 kB
Tags Source
SHA-256 checksum
How to use checksums
88fa8608acbd60b31d13a8be5ced77601eeab50f2769342f878237e6472eaab7
BLAKE2b-256 checksum
How to use checksums
f1ce7a8e6536467e67b7819b62be1774440e58459d120083daa2f87c6609d0c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.2 Linux/5.15.153.1-microsoft-standard-WSL2

Release files / poetry_publish_pypi-0.1.0-py3-none-any.whl

Download URL poetry_publish_pypi-0.1.0-py3-none-any.whl
Size 1.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80ec4aca7385fdf09ec8e048fee53c6b5586d949b456057cb0c1428c35b0f17e
BLAKE2b-256 checksum
How to use checksums
07776dabc6d925d91da3b807da269cb5f66c5cbe2821827aff07f67b3804d8a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.11.2 Linux/5.15.153.1-microsoft-standard-WSL2

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page