Skip to main content

Mon exemple de projet utilisant Poetry

Project description

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

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

poetry_example_project-0.1.1.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

poetry_example_project-0.1.1-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page