Skip to main content

Package for counting the number of lines in files

Project description

GENERAL

README.md Contient des informations sur le package. Il sera affiché comme documentation sur la page de notre package sur PyPI. On peut écrire n’importe quoi dans ce fichier.

FT_PACKAGE_IDERIGHE

Ce package est un test de création de package. Pour ce test, ce package aura comme fonction de compter le nombre de lignes dans un texte.txt

AU PREALABLE : CONSTRUIRE LE PACKAGE

  • pip install --upgrade build (- python3 -m build --sdist => NON : ne crée que ft_package-0.0.1.tar.gz)
  • python -m build -> crée ft_package-0.0.1.tar.gz ET ft_package-0.0.1-py3-none-any.whl => build installe le builder spécifié dans le fichier.toml et l'utilisera ensuite pour construire une distribution sdist et wheel (fichier.whl)

Après ces deux commandes, on a ft_package-0.0.1.tar.gz ET ft_package-0.0.1-py3-none-any.whl

AU PREALABLE : CREER UN COMPTE PERSO SUR PyPI

Récupérer un token pour l'API PyPI

AU PREALABLE : PUBLIER LE PACKAGE SUR LA BIBLIO PYTHON PyPI

  • python3 -m pip install twine => installe twine
  • ajouter export PATH="$HOME/.local/bin:$PATH" dans le fichier .zshrc
  • source ~/.zshrc => recharge le fichier de config
  • twine upload dist/* => cancel le wallet KDE, puis entrer le token de l'API

A ce stade, notre package est dans la biblio online PyPI (Python Package Index)

TELECHARGER LE PACKAGE

  • pip install ./dist/ft_package-0.0.1.tar.gz
  • pip install ./dist/ft_package-0.0.1-py3-none-any.whl ATTENTION : les deux commandes doivent fonctionner

VERIFICATION

  • pip list : pour voir si le package apparait dans les packages installés
  • pip show -v ft_package : display les caractéristique du package

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

ft_package_iderighe-0.0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

ft_package_iderighe-0.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file ft_package_iderighe-0.0.1.tar.gz.

File metadata

  • Download URL: ft_package_iderighe-0.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for ft_package_iderighe-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a98197ce7eb5960b2792e0dad3f2132101f6d41c4cbf9a1eecd366408644967a
MD5 8cb2d15b4afa15201c99a472b5915cd7
BLAKE2b-256 2c904f824517f2f7243dbc42bd9211f135789c732bde47f68e389b70b34d12b3

See more details on using hashes here.

File details

Details for the file ft_package_iderighe-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ft_package_iderighe-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 42cb3d77eeccdacd64e16cc910a7bada9de0b289a29c3324dc908ac9c7e94ffe
MD5 13bf294d16369801b6ad509b4c2fce86
BLAKE2b-256 48e1bf4d88601967c654bb3661a5c4318de73eac3492a1fff0cac6bd8eb9c797

See more details on using hashes here.

Supported by

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