|
|
7 роки тому | |
|---|---|---|
| .. | ||
| lib | 7 роки тому | |
| .gitignore | 7 роки тому | |
| MANIFEST.in | 7 роки тому | |
| README.md | 7 роки тому | |
| nose2.cfg | 7 роки тому | |
| requirements.txt | 7 роки тому | |
| setup.py | 7 роки тому | |
| test.py | 7 роки тому | |
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