Skip to main content

A PyPiServer based on the Flask Framework and supports multiple repositories.

Project description

inetutils PyPI Server Project

To run in command line:

  1. To install:

    pip install inupypi
    
  2. create config.ini with the following content:

    DEBUG = True
    
    INUPYPI_REPO = '<FULL PATH TO EGG BASKETS PARENT DIRECTORY>'
    
  3. run inupypi_server:

    . <virtualenv_path>/bin/activate
    
    inupypi_server -c <path_to_config_ini_file>
    

To run inupypi under apache mod_wsgi:

  1. Install inupypi:

    pip install inupypi
    
  2. create config.ini with the following content (This will not be necessary once configure distcmd is done):

    DEBUG = False
    
    INUPYPI_REPO = '<FULL PATH TO INUPYPI REPO>'
    
  3. edit and then save the httpd-inupypi.conf.sample into httpd’s conf directory and ensure it’s being included in httpd.conf

  4. start / restart your apache and browse to http://httpd_host/inupypi

Deploy with Apache

  1. Run the inupypi_configure.py script and fill in the values. By default the user/group is inupypi and default config file is inupypi.conf:

    inupypi_configure.py
    
  2. Copy the generated file to your apache configuration folder, restart Apache and keep your fingers crossed.

Why another pypiserver application ?

  1. We could not find another pypiserver that supported multiple eggbaskets.
  2. We wanted to have templates with our pypiserver so that formatting can be easily done.
  3. We had a few ideas where we wanted to bring our pypiserver that were not compatible or accepted by current pypiserver implementations.

TODO

  1. Create automated processes to generate all of the steps above to make the process less manual

Tests

To run the tests:

1. python setup.py develop

2. export export INUPYPI_SETTINGS=<full path to config.ini>

3. python setup.py test

Build Status (Travis CI)

[![Build Status] (https://travis-ci.org/hallaj/inupypi.png)] (https://travis-ci.org/hallaj/inupypi) Version 0.2.6.4 =============== - Added inupypi_configure.py script to help generate an apache.conf file for installed inupypi instance. - re #15 Changed inupypi_configure.py to use the proper way of calling and getting python lib.

Version 0.2.6.1

  • Fixed a few bugs regarding functionality as well as code clean up.
  • Fixed sorting bug reported by Grzegorz Śliwiński. re #12

Version 0.2.5.6

  • Added Changelog file to track changes between releases
  • Changed the way that app.py work, so that setting INUPYPI_SETTINGS is not a must
  • app.py now can also accept an argument to point at external config file.
  • Updated README.rst with changes done.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for inupypi, version 0.2.6.4
Filename, size File type Python version Upload date Hashes
Filename, size inupypi-0.2.6.4.tar.gz (10.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page