A poetry plugin for keeping your CodeArtifact authorization token up-to-date
Project description
poetry-codeartifact-plugin
This Poetry plugin automatically refreshes your authorization token when working with CodeArtifact repositories.
Installation
Run this to install the plugin:
poetry self add poetry-codeartifact-plugin
And to remove:
poetry self remove poetry-codeartifact-plugin
Usage
No configuration or workflow changes are needed. If the plugin detects a HTTP 401 or 403 from a CodeArtifact URL, it will refresh your authorization token and retry the request.
This assumes that your local AWS creds are up-to-date -- if not, your command will still fail.
Adding a CodeArtifact repository
Add this snippet to your project's pyproject.toml:
[[tool.poetry.source]]
name = "codeartifact-pypi" # arbitrary, just don't reuse repository names between CodeArtifact repos
url = "https://DOMAIN-123412341234.d.codeartifact.us-west-2.amazonaws.com/REPO/pypi/simple/" # get this URL from your CodeArtifact dashboard or the GetRepositoryEndpoint API call
Learn more about Poetry repositories here: https://python-poetry.org/docs/repositories/
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file poetry_codeartifact_plugin-1.0.3.tar.gz.
File metadata
- Download URL: poetry_codeartifact_plugin-1.0.3.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dfcd7e1fab659f59be9be121f367348922bdc61f723582fd88582684d307428
|
|
| MD5 |
2a20f98041cea67fec7ffbb0d28e7271
|
|
| BLAKE2b-256 |
13beadc120b1605196bc74618ff2b88d0c6b117ea0ccbdd4ea7baf1b5861b81a
|
File details
Details for the file poetry_codeartifact_plugin-1.0.3-py3-none-any.whl.
File metadata
- Download URL: poetry_codeartifact_plugin-1.0.3-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92ee9100bb90684f7600967bab6105bf661ae471999d271d132da05ccf4da794
|
|
| MD5 |
24e9dc37e8e80469d0508d2241765152
|
|
| BLAKE2b-256 |
c55da52521e538605f1c1bc5e378740edb5a55158fe6fa3f8d01738ca4bf42e6
|