Simpypi.

Einfaches PYPI-Paket
Jetzt downloaden

Simpypi. Ranking & Zusammenfassung

Anzeige

  • Rating:
  • Lizenz:
  • MPL
  • Preis:
  • FREE
  • Name des Herausgebers:
  • Jeff Hammel
  • Website des Verlags:
  • http://topp.openplans.org

Simpypi. Stichworte


Simpypi. Beschreibung

SIMPYPI ist ein einfacher Python-Paketindex.Wie Simpypi-Worksthe Herz von SIMPYPI ist SIMPYPI.WSGI.SIMPYPI, eine einfache WSGI-Web-App, die eine hochgeladene Python-Paketverteilung akzeptiert, und legt sie entsprechend seiner dem einfachen Indexprotokoll entsprechenden Namen und Versionsmetadaten an. Für die Sicherheit kehrt SIMPYPI für ungültige Anfragen gerade http 400 s zurück. Dies könnte wahrscheinlich verbessert werden. Das Verzeichnis sollte von einem Fileserver gedient werden, der Verzeichnisindizes generiert (wie http://guide.python-distribute.org/contriputing.html#distribute.org/contriTing.html#the-simle-index-Protocol), z. B. Apache oder Fileserver. Simpypi.Factory.Factory bietet eine Fabrik, um eine WSGI-App zu erstellen, die in Middleware fileserver wechselt und den einfachen Index unter / Index / und die SIMPYPI-App bei / dient. Zusätzlich wird ein SIMPYPI-Befehlszeilenprogramm bereitgestellt, das diese Front-End-Command-Dateien nur auf Source-Distributionen (das heißt, Pakete mit Python Setup.vy SDIST) arbeitet. Examplei installiert eine Instanz von SIMPYPI unter http://k0s.org installiert : 8080 für Demonstrationszwecke mit einem Paketindex unter http://k0s.org:8080/index/. Für Testzwecke habe ich ein Skript gemacht, Upload_Mobase.py, das die Mozbase-Pakete in Simpypi hochlädt. Der Index ist nun mit ihnen aufgefüllt. Sie können Pakete mit Curl> wget http://pypi.python.org/packages/source/p/pyyaml/pyyaml-3.10.tar.gz> curl -f 'paket = @ Pyyaml-3.10.tar.gz 'http://k0s.org:8080/Sie kann easy_install mozbase von http://k0s.org:8080/index/. Wenn die Abhängigkeiten eines Pakets vom SIMPYPI-Paketindex gefunden werden können, werden sie auch vom Index installiert:> Virtualenv.py tmpnew Python ausführbar in TMP / Bin / Pythoninstalling SetUtuptools ............ Fertig. PIP installieren ................ fertig.> CD TMP / (TMP) easy_install -i http://k0s.org:8080/index/ mozrunnerearching for mozrunneReReading http: // k0s .org: 8080 / Index / Mozrunner / Best Match: Mozrunner 5.1downloading http://k0s.org:8080/index/mozrunner/mozRunner-5.1.gzprozessing mozrunner-5.1.tar.gzrunning Mozrunner-5.1 / setup.py -Q bdist_egg --dist-dir / tmp / easy_install-gqerov / mozrunner-5.1 / ei-dist-tmp-qyx3cradding mozrunner 5.1 bis einfach install.pth fileinstallation mozrunner skript zu / home / jhammel / tmp / bininstalled / home / jhammel /tmp/lib/python2.7/site-packages/mozrunner-5.1-py2.7.egggrocessing-Abhängigkeiten für Mozrunnerearching für Mozprofile> = 0.1Reading http://k0s.org:8080/index/mozprofile/best Spiele: Mozprofile 0.1 Herunterladen http://k0s.org:8080/INDEX/MOZPROFILE/MOZPROFILE-0.1.TAR.GZPR. OCESSING MOZPROFILE-0,1.TAR.GZRUNNMUNKTION MOZPROFILE-0.1 / SETUP.PY -Q BDIST_EGG --DIST-DIR / TMP / EASY_INSTALL-4IM6X0 / MOZPROFILE-0.1 / Egg-Dist-TMP-9JP5TRADDING MOZPROFILE 0.1 bis Easy-install.pth featinstalling Mozprofile-Skript an /Home/jhammel/tmp/bininstalls/home/jhammel/tmp/lib/python2.7/ssite-packages/mozprofile-0.1-py2.7.eggSearching für mozprocessreading http://k0s.org:8080/index / Mozprocess / Best Match: Mozprocess 0.1b2downloadingHttp: //k0s.org: 8080 / index / mozprozess / mozprocess-0.1b2.tar.gzprozess mozprocess-0.1b2.tar.gzrunning mozprocess-0.1b2 / setup.py -q bdist_egg - -Dist-dir / tmp / easy_install-ku6aif / mozprocess-0.1b2 / ei-dist-tmp-4j5cmpadding mozprocess 0.1b2 bis einfach install.pth fileinstalled / home / jhammel / tmp / lib / python2.7 / site-pakete / Mozprocess-0.1b2-py2.7.eggSearching für Mozinforeading http://k0s.org:8080/index/mozinfo/best: Mozinfo 0.3.3Download http://k0s.org:8080/index/mozinfo/mozinfo-0.3 .3.tar.gzprozess mozinfo-0.3.3.tar.gzrunning mozinfo-0.3.3 / setup.py -q bdist_egg --dist-dir / tmp / easy_install-jakeaz / mozinfo-0.3.3 / ei-dist-tmp-xwojezadding mozinfo 0.3.3 bis einfach install.pth fileinstallation mozinfo-skript zu / home / jhammel / tmp / bininstalled / home / jhammel / tmp / lib / python2.7 / site-pakages / mozinfo-0.3.3-py2.7.eggSearching für manifestdestiny> = 0.5.4Reading http://k0s.org:8080/index/manifestdestiny/best passen: manifestdestiny 0.5.4downloadingHttp: //k0s.org: 8080 / index / manifestdestiny / manifestdestiny-0.5.4.tar.gzprozessing manifestdestiny-0.5.4.tar.gzrunning manifestdestiny-0.5.4 / setup.py -q bdist_egg --dist- Dir / TMP / Easy_Install-2BLF3S / Manifestdestiny-0.5.4 / Egg-Dist-TMP-R3KZDedding Manifestdestiny 0.5.4 zu einfach install.pth fileinstalling manifestparer skript nach / home / jhammel / tmp / bininstalled / home / jhammel / tmp / lib / python2.7 / site-packages / manifestdestiny-0.5.4-py2.7.eggefinierte Verarbeitungsabhängigkeiten für MozrunnerNote, dass alle Pakete von der Installation von k0s.org und nicht von http://pypi.python.org/ kommen .) Das Teststhe Tests-Verzeichnis enthält Ctests und der Testlauf, test.py. Diese Tests veranschaulichen die grundlegende Funktionalität und schützen vor Regressionen, wenn sie ausgeführt werden, bevor der Code festgelegt ist. tests-forake.txt enthält Abhängigkeiten, die installiert werden sollen, um die Tests auszuführen. Einfügen von TestApp, obwohl dies zu WebTest übertragen werden kann. Virtualenv wird zum Isolieren von Python-Umgebungen verwendet. Um die Tests auszuführen, tun Sie: Python Test.pyproduct's Homepage


Simpypi. Zugehörige Software