⇤ ← Version 1 à la date du 2010-02-17 21:50:39
742
Commentaire:
|
1447
|
Texte supprimé. | Texte ajouté. |
Ligne 1: | Ligne 1: |
= Dépôt pypi de l'AUF avec CHISHOP = | <<TableOfContents()>> |
Ligne 3: | Ligne 3: |
== Le serveur == | = Dépôt pypi de l'AUF avec CHISHOP = == Utilisation == === setuptools === Pour utiliser le depot avec setuptools, il faut créer un fichier de configuration pour l'utilisateur qui va exécuter ces commandes. Modèle de {{{~/.pypirc}}}: {{{ [distutils] index-servers = local pypi [pypi] username:auf password:auf [local] username:<compte auf> password:<mot de passe> repository:http://pypi.auf.org/ }}} ''Notes'': * On doit re-spécifier pypi, sinon il ne sera pas consulté du tout, et les sections username/password sont obligatoires (pour le fichier), mais on en aura rarement besoin. === buildout === {{{ [buildout] find-links = http://pypi.auf.org/simple/ }}} == Serveur == === Le serveur === |
Ligne 9: | Ligne 48: |
== Installation / Configuration == | === Installation / Configuration === |
Ligne 12: | Ligne 51: |
* http://pypi.python.org/pypi/chishop/0.2.0 | |
Ligne 19: | Ligne 57: |
* auf_roa_authentification_backend + un buildout (fait par Cyril) | * auf_roa_authentification_backend * ajouter ''django_roa'' a l'option ''eggs'' dans ''buildout.cfg'' |
Ligne 24: | Ligne 63: |
$ python setup.py build # python setup.py install (en root) |
$ python bootstrap.py # bin/buildout |
Ligne 30: | Ligne 69: |
$ cd chipshop/ | $ cd chishop/ |
Ligne 32: | Ligne 71: |
}}} |
Sommaire
Dépôt pypi de l'AUF avec CHISHOP
Utilisation
setuptools
Pour utiliser le depot avec setuptools, il faut créer un fichier de configuration pour l'utilisateur qui va exécuter ces commandes.
Modèle de ~/.pypirc:
[distutils] index-servers = local pypi [pypi] username:auf password:auf [local] username:<compte auf> password:<mot de passe> repository:http://pypi.auf.org/
Notes:
- On doit re-spécifier pypi, sinon il ne sera pas consulté du tout, et les sections username/password sont obligatoires (pour le fichier), mais on en aura rarement besoin.
buildout
[buildout] find-links = http://pypi.auf.org/simple/
Serveur
Le serveur
- machine hôte : vz-tech.ca.auf
- N° de CT : 507
- IP : 199.84.140.25
- fqdn : pypi.auf.org
Installation / Configuration
- Documentation et téléchargement :
- télécharger chishop (ici la version 0.2.0)
- répertoire de base /srv/chishop
- prérequis :
aptitude install python-setuptools python-MySQLdb
- auf_roa_authentification_backend
ajouter django_roa a l'option eggs dans buildout.cfg
- installation :
$ cd /srv/chishop $ python bootstrap.py # bin/buildout
- configuration :
$ cd chishop/ $