|
|
%!s(int64=7) %!d(string=hai) anos | |
|---|---|---|
| .. | ||
| lib | %!s(int64=7) %!d(string=hai) anos | |
| .gitignore | %!s(int64=7) %!d(string=hai) anos | |
| MANIFEST.in | %!s(int64=7) %!d(string=hai) anos | |
| README.md | %!s(int64=7) %!d(string=hai) anos | |
| nose2.cfg | %!s(int64=7) %!d(string=hai) anos | |
| requirements.txt | %!s(int64=7) %!d(string=hai) anos | |
| setup.py | %!s(int64=7) %!d(string=hai) anos | |
| test.py | %!s(int64=7) %!d(string=hai) anos | |
Un script python hello_world.
hello_world/hello_world.py : Script python, instancie une fonction main() qui renvoie un message de salutations.
hello_world/__init__.py : Fichier qui peut rester vide, mais nécessaire pour que le répertoire soit reconu comme une librairie python.
test.py : Contient les tests unitaires
nose2.cfg : (facultatif) configuration de nose2
setup.py : (facultatif) instruction de déploiement
README.md : (facultatif) C'est moi.
MANIFEST.in : (facultatif) Détaille les fichiers non-python à inclure dans la distribution.
Pour déployer le code:
python setup.py install
Pour exécuter les tests, ouvrir une console (invite de commande), et exécuter:
Tests unitaires et couverture
nose2
Syntaxe
pylint