Skip to main content

poetry-example-project

Installation

pip install poetry
poetry init

Dans le init, on renseigne l'ensemble des informations demandées, ainsi que les dépendances anciennements requises par le projet.

Initialisation du répertoire

poetry_example_project/
    __init__.py
    hello.py
tests/
    __init__.py
    test_hello.py

Puis exécuter la commande suivante :

poetry run pytest

Configuration des repositories privées

cf doc : https://python-poetry.org/docs/repositories/

poetry source add mon_nexus https://mon_nexus.exemple/simple/
poetry source add mon_nexus_prod https://mon_nexus_prod.exemple/simple/

poetry config http-basic.mon_nexus <username> <password>
poetry config http-basic.mon_nexus_prod <username> <password>

Pour publier spécifiquement sur le repository mon_nexus_prod :

poetry publish --repository=mon_nexus_prod

Mettre à jour une version

poetry version 0.1.1

Release files for poetry-example-project 0.1.1

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-example-project 0.1.1
File Size Uploaded
poetry_example_project-0.1.1.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for poetry-example-project 0.1.1
File Interpreter ABI Platform
poetry_example_project-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.1 kB

Release files / poetry_example_project-0.1.1.tar.gz

Download URL poetry_example_project-0.1.1.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d28421dc1a51b8d57b0ae1737211bc68a0a2802b291d5d7f37ca4f92b8f8b058
BLAKE2b-256 checksum
How to use checksums
a314ca54855bd7018e0e2e1b46d0e02aebe54665b0a2df82d21d2e972691d9f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.10.4 Linux/5.4.0-1105-azure

Release files / poetry_example_project-0.1.1-py3-none-any.whl

Download URL poetry_example_project-0.1.1-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b28ea4fdcdb7405db24b020734c7b63eea4364290bc7d7e345393f5bb2882be5
BLAKE2b-256 checksum
How to use checksums
3193b5cc1965e0f7efd769380f5925c163d7cc256dd8f435ba1c44ea97a54573
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.10.4 Linux/5.4.0-1105-azure

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

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