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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file poetry_example_project-0.1.1.tar.gz.

File metadata

  • Download URL: poetry_example_project-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.2 CPython/3.10.4 Linux/5.4.0-1105-azure

File hashes

Hashes for poetry_example_project-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d28421dc1a51b8d57b0ae1737211bc68a0a2802b291d5d7f37ca4f92b8f8b058
MD5 cd2f34ff0c72e19b4ce5c79697ccd160
BLAKE2b-256 a314ca54855bd7018e0e2e1b46d0e02aebe54665b0a2df82d21d2e972691d9f0

See more details on using hashes here.

File details

Details for the file poetry_example_project-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for poetry_example_project-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b28ea4fdcdb7405db24b020734c7b63eea4364290bc7d7e345393f5bb2882be5
MD5 06344cf3d132d39063754ca31a2b5f67
BLAKE2b-256 3193b5cc1965e0f7efd769380f5925c163d7cc256dd8f435ba1c44ea97a54573

See more details on using hashes here.

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