Skip to main content

A PyPiServer based on the Flask Framework

Project description

=======
inupypi
=======

inetutils PyPI Server Project

To run in command line:

1. pip install inupypi

2. create app.py with the following content:

import os
os.environ["INUPYPI_SETTINGS"] = os.path.dirname(os.path.realpath(__file__)) + '/config.ini'
from inupypi import app as application
application.run()

3. create config.ini with the following content:

DEBUG = True
EGGBASKET_REPO = '<FULL PATH TO EGG BASKETS PARENT DIRECTORY>'

4. run app.py

python app.py

To run under apache mod_wsgi:

1. pip install inupypi

2. create app.py with the following content:

import os
os.environ["INUPYPI_SETTINGS"] = os.path.dirname(os.path.realpath(__file__)) + '/config.ini'
from inupypi import app as application

3. create config.ini with the following content:

DEBUG = False
EGGBASKET_REPO = '<FULL PATH TO EGG BASKETS PARENT DIRECTORY>'

4. create apache conf file with the following content and save it on /etc/apache/conf.d/inupypi

WSGIScriptAlias /inupypi <FULL PATH OF YOUR app.py created on step 2>
WSGIDaemonProcess inupypi user=<USER> group=<GROUP>\
home=<FULL PATH OF app.py parent directory> \
python-path=<PYTHON PATH>

<Location /inupypi>
WSGIProcessGroup inupypi
WSGIPassAuthorization On
</Location>

tests
=====

To run the tests:

1. export INUPYPI_SETTINGS = "<FULL PATH OF CONFIG FILE>"

2. python setup.py test

Project details


Download files

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

Source Distribution

inupypi-0.2.4.tar.gz (7.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page