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
Release history Release notifications | RSS feed
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
Close
Hashes for poetry_example_project-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d28421dc1a51b8d57b0ae1737211bc68a0a2802b291d5d7f37ca4f92b8f8b058 |
|
MD5 | cd2f34ff0c72e19b4ce5c79697ccd160 |
|
BLAKE2b-256 | a314ca54855bd7018e0e2e1b46d0e02aebe54665b0a2df82d21d2e972691d9f0 |
Close
Hashes for poetry_example_project-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b28ea4fdcdb7405db24b020734c7b63eea4364290bc7d7e345393f5bb2882be5 |
|
MD5 | 06344cf3d132d39063754ca31a2b5f67 |
|
BLAKE2b-256 | 3193b5cc1965e0f7efd769380f5925c163d7cc256dd8f435ba1c44ea97a54573 |