2011-07-29 03:14:09 +02:00
|
|
|
.. -*- mode: rst; coding: utf-8 -*-
|
|
|
|
|
|
|
|
==============================================================================
|
|
|
|
pypiserver - minimal PyPI server for use with pip/easy_install
|
|
|
|
==============================================================================
|
|
|
|
|
2011-11-19 21:17:35 +01:00
|
|
|
|
2011-07-31 23:42:37 +02:00
|
|
|
:Authors: Ralf Schmitt <ralf@systemexit.de>
|
2014-03-05 22:54:17 +01:00
|
|
|
:Version: 1.1.6
|
|
|
|
:Date: 2014-03-05
|
2013-05-29 00:33:46 +02:00
|
|
|
:Download: https://pypi.python.org/pypi/pypiserver#downloads
|
2011-11-19 21:17:35 +01:00
|
|
|
:Code: https://github.com/schmir/pypiserver
|
|
|
|
|
2011-07-31 23:42:37 +02:00
|
|
|
|
|
|
|
.. contents:: Table of Contents
|
|
|
|
:backlinks: top
|
|
|
|
|
|
|
|
|
2011-07-29 03:14:09 +02:00
|
|
|
pypiserver is a minimal PyPI compatible server. It can be used to
|
|
|
|
serve a set of packages and eggs to easy_install or pip.
|
|
|
|
|
|
|
|
Installation and Usage/Quickstart
|
|
|
|
=================================
|
2013-01-03 21:24:20 +01:00
|
|
|
pypiserver will work with python 2.5, 2.6, 2.7, 3.2 and 3.3. python
|
|
|
|
3.0 and 3.1 may also work, but pypiserver is not being tested with
|
|
|
|
these versions.
|
2011-07-31 23:42:37 +02:00
|
|
|
|
2011-07-29 03:14:09 +02:00
|
|
|
Run the following commands to get your PyPI server up and running::
|
|
|
|
|
|
|
|
pip install pypiserver
|
|
|
|
mkdir ~/packages
|
|
|
|
# copy some source packages or eggs to this directory
|
2011-08-01 01:58:04 +02:00
|
|
|
pypi-server -p 8080 ~/packages
|
2015-02-27 13:13:54 +01:00
|
|
|
pip install --extra-index-url http://localhost:8080/simple/ ...
|
2011-07-29 03:14:09 +02:00
|
|
|
|
2014-01-05 01:32:34 +01:00
|
|
|
.. NOTE::
|
|
|
|
|
|
|
|
The above commands do work on an unix like operating system with a
|
|
|
|
posix shell. If you're using windows, you'll have to run their
|
|
|
|
'windows counterparts'. The same is true for the rest of this
|
|
|
|
documentation.
|
|
|
|
|
2011-08-01 23:09:42 +02:00
|
|
|
Alternative Installation as standalone script
|
|
|
|
=============================================
|
|
|
|
The git repository contains a 'pypi-server-standalone.py' script,
|
|
|
|
which is a single python file ready to be executed without any other
|
|
|
|
dependencies.
|
|
|
|
|
|
|
|
Run the following commands to download the script with wget::
|
|
|
|
|
|
|
|
wget https://raw.github.com/schmir/pypiserver/standalone/pypi-server-standalone.py
|
|
|
|
chmod +x pypi-server-standalone.py
|
|
|
|
|
|
|
|
or with curl::
|
|
|
|
|
|
|
|
curl -O https://raw.github.com/schmir/pypiserver/standalone/pypi-server-standalone.py
|
|
|
|
chmod +x pypi-server-standalone.py
|
|
|
|
|
|
|
|
The server can then be started with::
|
|
|
|
|
|
|
|
./pypi-server-standalone.py
|
|
|
|
|
|
|
|
Feel free to rename the script and move it into your $PATH.
|
|
|
|
|
2012-10-05 00:22:58 +02:00
|
|
|
Running on heroku/dotcloud
|
|
|
|
=================================
|
|
|
|
https://github.com/dexterous/pypiserver-on-the-cloud contains
|
|
|
|
instructions on how to run pypiserver on one of the supported cloud
|
|
|
|
service providers.
|
2011-07-29 03:14:09 +02:00
|
|
|
|
2011-08-01 01:58:04 +02:00
|
|
|
Detailed Usage
|
|
|
|
=================================
|
|
|
|
pypi-server -h will print a detailed usage message::
|
|
|
|
|
2013-01-28 00:45:01 +01:00
|
|
|
pypi-server [OPTIONS] [PACKAGES_DIRECTORY...]
|
2011-08-01 01:58:04 +02:00
|
|
|
start PyPI compatible package server serving packages from
|
|
|
|
PACKAGES_DIRECTORY. If PACKAGES_DIRECTORY is not given on the
|
2011-10-07 21:09:58 +02:00
|
|
|
command line, it uses the default ~/packages. pypiserver scans this
|
|
|
|
directory recursively for packages. It skips packages and
|
2013-02-14 22:58:03 +01:00
|
|
|
directories starting with a dot. Multiple package directories can be
|
|
|
|
specified.
|
2011-08-01 01:58:04 +02:00
|
|
|
|
|
|
|
pypi-server understands the following options:
|
|
|
|
|
2015-02-23 19:46:26 +01:00
|
|
|
-p, --port PORT
|
2011-08-01 01:58:04 +02:00
|
|
|
listen on port PORT (default: 8080)
|
|
|
|
|
2015-02-23 19:46:26 +01:00
|
|
|
-i, --interface INTERFACE
|
2011-08-01 01:58:04 +02:00
|
|
|
listen on interface INTERFACE (default: 0.0.0.0, any interface)
|
|
|
|
|
2015-02-23 19:46:26 +01:00
|
|
|
-a, --authenticate (UPDATE|download|list), ...
|
|
|
|
comma-separated list of (case-insensitive) actions to authenticate
|
|
|
|
(requires giving also the -P option). For example to password-protect
|
|
|
|
package uploads & downloads while leaving listings public, give:
|
|
|
|
-a update,download.
|
|
|
|
If unspecified, only 'update' is password-protected.
|
2015-01-09 11:08:10 +01:00
|
|
|
|
2015-02-23 19:46:26 +01:00
|
|
|
-P, --passwords PASSWORD_FILE
|
2015-01-09 11:13:59 +01:00
|
|
|
use apache htpasswd file PASSWORD_FILE to set usernames & passwords
|
2015-02-23 19:46:26 +01:00
|
|
|
used for authentication of certain actions (see -a option).
|
2012-06-06 00:18:51 +02:00
|
|
|
|
2011-08-09 23:03:50 +02:00
|
|
|
--disable-fallback
|
|
|
|
disable redirect to real PyPI index for packages not found in the
|
|
|
|
local index
|
2011-08-01 01:58:04 +02:00
|
|
|
|
2012-08-15 10:02:58 +02:00
|
|
|
--fallback-url FALLBACK_URL
|
|
|
|
for packages not found in the local index, this URL will be used to
|
|
|
|
redirect to (default: http://pypi.python.org/simple)
|
|
|
|
|
2011-08-01 01:58:04 +02:00
|
|
|
--server METHOD
|
|
|
|
use METHOD to run the server. Valid values include paste,
|
|
|
|
cherrypy, twisted, gunicorn, gevent, wsgiref, auto. The
|
|
|
|
default is to use "auto" which chooses one of paste, cherrypy,
|
|
|
|
twisted or wsgiref.
|
|
|
|
|
2015-02-23 19:46:26 +01:00
|
|
|
-r, --root PACKAGES_DIRECTORY
|
2011-08-09 23:03:50 +02:00
|
|
|
[deprecated] serve packages from PACKAGES_DIRECTORY
|
|
|
|
|
2013-04-11 10:36:47 +02:00
|
|
|
-o, --overwrite
|
|
|
|
allow overwriting existing package files
|
2014-11-15 02:37:40 +01:00
|
|
|
|
2014-11-14 00:36:32 +01:00
|
|
|
--welcome HTML_FILE
|
|
|
|
uses the ASCII contents of HTML_FILE as welcome message response.
|
|
|
|
|
2014-11-15 02:37:40 +01:00
|
|
|
-v
|
|
|
|
enable INFO logging; repeate for more verbosity.
|
|
|
|
|
|
|
|
--log-file <FILE>
|
|
|
|
write logging info into this FILE.
|
|
|
|
|
|
|
|
--log-frmt <FILE>
|
|
|
|
the logging format-string. (see `logging.LogRecord` class from standard python library)
|
|
|
|
[Default: %(asctime)s|%(levelname)s|%(thread)d|%(message)s]
|
|
|
|
|
|
|
|
--log-req-frmt FORMAT
|
|
|
|
a format-string selecting Http-Request properties to log; set to '%s' to see them all.
|
|
|
|
[Default: %(bottle.request)s]
|
|
|
|
|
|
|
|
--log-res-frmt FORMAT
|
|
|
|
a format-string selecting Http-Response properties to log; set to '%s' to see them all.
|
|
|
|
[Default: %(status)s]
|
|
|
|
|
|
|
|
--log-err-frmt FORMAT
|
|
|
|
a format-string selecting Http-Error properties to log; set to '%s' to see them all.
|
|
|
|
[Default: %(body)s: %(exception)s \n%(traceback)s]
|
|
|
|
|
2011-08-01 01:58:04 +02:00
|
|
|
pypi-server -h
|
|
|
|
pypi-server --help
|
|
|
|
show this help message
|
|
|
|
|
|
|
|
pypi-server --version
|
|
|
|
show pypi-server's version
|
|
|
|
|
2013-02-14 22:58:03 +01:00
|
|
|
pypi-server -U [OPTIONS] [PACKAGES_DIRECTORY...]
|
2011-11-19 21:17:35 +01:00
|
|
|
update packages in PACKAGES_DIRECTORY. This command searches
|
|
|
|
pypi.python.org for updates and shows a pip command line which
|
|
|
|
updates the package.
|
|
|
|
|
|
|
|
The following additional options can be specified with -U:
|
|
|
|
|
|
|
|
-x
|
|
|
|
execute the pip commands instead of only showing them
|
|
|
|
|
|
|
|
-d DOWNLOAD_DIRECTORY
|
|
|
|
download package updates to this directory. The default is to use
|
|
|
|
the directory which contains the latest version of the package to
|
|
|
|
be updated.
|
|
|
|
|
|
|
|
-u
|
|
|
|
allow updating to unstable version (alpha, beta, rc, dev versions)
|
|
|
|
|
2014-01-20 23:10:41 +01:00
|
|
|
Visit https://pypi.python.org/pypi/pypiserver for more information.
|
2011-08-01 01:58:04 +02:00
|
|
|
|
2011-11-19 21:17:35 +01:00
|
|
|
|
|
|
|
|
2011-08-09 23:28:14 +02:00
|
|
|
Configuring pip/easy_install
|
|
|
|
============================
|
|
|
|
Always specifying the the pypi url on the command line is a bit
|
|
|
|
cumbersome. Since pypi-server redirects pip/easy_install to the
|
|
|
|
pypi.python.org index if it doesn't have a requested package, it's a
|
|
|
|
good idea to configure them to always use your local pypi index.
|
|
|
|
|
|
|
|
pip
|
2011-08-09 23:47:34 +02:00
|
|
|
-----
|
2015-02-27 13:13:54 +01:00
|
|
|
For *pip* this can be done by setting the environment variable
|
|
|
|
PIP_EXTRA_INDEX_URL in your .bashrc/.profile/.zshrc::
|
2011-08-09 23:28:14 +02:00
|
|
|
|
2015-02-27 13:13:54 +01:00
|
|
|
export PIP_EXTRA_INDEX_URL=http://localhost:8080/simple/
|
2011-08-09 23:28:14 +02:00
|
|
|
|
|
|
|
or by adding the following lines to ~/.pip/pip.conf::
|
|
|
|
|
|
|
|
[global]
|
2015-02-27 13:13:54 +01:00
|
|
|
extra-index-url = http://localhost:8080/simple/
|
|
|
|
|
|
|
|
.. Note::
|
|
|
|
If you have installed *pypi-server* on a remote url without *https*
|
|
|
|
you wil receive an "untrusted" warning from `pip`, urging you to append
|
|
|
|
the '--trusted-host` option. You can include this option permanently
|
|
|
|
in your configuration-files or environment variables.
|
2011-08-09 23:28:14 +02:00
|
|
|
|
|
|
|
easy_install
|
2011-08-09 23:47:34 +02:00
|
|
|
------------
|
2011-08-09 23:28:14 +02:00
|
|
|
For easy_install it can be configured with the following setting in
|
|
|
|
~/.pydistutils.cfg::
|
|
|
|
|
|
|
|
[easy_install]
|
|
|
|
index_url = http://localhost:8080/simple/
|
|
|
|
|
2013-01-03 21:24:20 +01:00
|
|
|
|
|
|
|
Uploads via setup.py upload
|
|
|
|
===========================
|
|
|
|
Uploading packages via `python setup.py upload` is also
|
|
|
|
possible. First make sure you have the passlib module installed::
|
|
|
|
|
|
|
|
pip install passlib
|
|
|
|
|
|
|
|
Then create a apache htpassword file with::
|
|
|
|
|
|
|
|
htpasswd -sc .htaccess myusername
|
|
|
|
|
|
|
|
You'll be prompted for a password. You'll need to restart the server
|
|
|
|
with the -P option::
|
|
|
|
|
|
|
|
pypi-server -p 8080 -P /path/to/.htaccess /path/to/private_pypi_folder/
|
|
|
|
|
|
|
|
Edit or create a ~/.pypirc file with the following content::
|
|
|
|
|
|
|
|
[distutils]
|
|
|
|
index-servers =
|
2013-02-20 11:46:36 +01:00
|
|
|
pypi
|
|
|
|
internal
|
2013-01-03 21:24:20 +01:00
|
|
|
|
|
|
|
[pypi]
|
|
|
|
username:pypiusername
|
|
|
|
password:pypipasswd
|
|
|
|
|
|
|
|
[internal]
|
|
|
|
repository: http://127.0.0.1:8080
|
|
|
|
username: myusername
|
|
|
|
password: mypasswd
|
|
|
|
|
|
|
|
Uploading then works by running::
|
|
|
|
|
|
|
|
python setup.py sdist upload -r internal
|
|
|
|
|
|
|
|
|
2011-11-19 21:17:35 +01:00
|
|
|
Managing the package directory
|
|
|
|
==============================
|
|
|
|
pypi-server's -U option makes it possible to search for updates of
|
|
|
|
available packages. It scans the package directory for available
|
|
|
|
packages and searches on pypi.python.org for updates. Without further
|
|
|
|
options 'pypi-server -U' will just print a list of commands which must
|
|
|
|
be run in order to get the latest version of each package. Output
|
|
|
|
looks like::
|
|
|
|
|
2012-02-23 11:24:09 +01:00
|
|
|
checking 106 packages for newer version
|
2011-11-19 21:17:35 +01:00
|
|
|
|
2012-02-23 11:24:09 +01:00
|
|
|
.........u.e...........e..u.............
|
|
|
|
.....e..............................e...
|
|
|
|
..........................
|
2011-11-19 21:17:35 +01:00
|
|
|
|
2012-02-23 11:24:09 +01:00
|
|
|
no releases found on pypi for PyXML, Pymacs, mercurial, setuptools
|
2011-11-19 21:17:35 +01:00
|
|
|
|
2012-02-23 11:24:09 +01:00
|
|
|
# update raven from 1.4.3 to 1.4.4
|
2015-02-27 13:13:54 +01:00
|
|
|
pip -q install --no-deps --extra-index-url http://pypi.python.org/simple -d /home/ralf/packages/mirror raven==1.4.4
|
2011-11-19 21:17:35 +01:00
|
|
|
|
2012-02-23 11:24:09 +01:00
|
|
|
# update greenlet from 0.3.3 to 0.3.4
|
2015-02-27 13:13:54 +01:00
|
|
|
pip -q install --no-deps --extra-index-url http://pypi.python.org/simple -d /home/ralf/packages/mirror greenlet==0.3.4
|
2011-11-19 21:17:35 +01:00
|
|
|
|
|
|
|
It first prints for each package a single character after checking the
|
|
|
|
available versions on pypi. A dot means the package is up-to-date, 'u'
|
|
|
|
means the package can be updated and 'e' means the list of releases on
|
|
|
|
pypi is empty. After that it show a pip command line which can be used
|
|
|
|
to update a one package. Either copy and paste that or run
|
2011-11-23 22:29:35 +01:00
|
|
|
"pypi-server -Ux" in order to really execute those commands. You need
|
|
|
|
to have pip installed for that to work however.
|
2011-11-19 21:17:35 +01:00
|
|
|
|
|
|
|
Specifying an additional '-u' option will also allow alpha, beta and
|
|
|
|
release candidates to be downloaded. Without this option these
|
|
|
|
releases won't be considered.
|
2011-08-09 23:28:14 +02:00
|
|
|
|
2011-08-01 01:58:04 +02:00
|
|
|
|
2011-07-29 03:14:09 +02:00
|
|
|
Optional dependencies
|
|
|
|
=====================
|
|
|
|
- pypiserver ships with it's own copy of bottle. It's possible to use
|
2011-12-05 22:33:51 +01:00
|
|
|
bottle with different WSGI servers. pypiserver chooses any of the
|
2011-07-29 03:14:09 +02:00
|
|
|
following paste, cherrypy, twisted, wsgiref (part of python) if
|
|
|
|
available.
|
2012-06-06 00:18:51 +02:00
|
|
|
- pypiserver relies on the passlib module for parsing apache htpasswd
|
|
|
|
files. You need to install it, when using the -P, --passwords
|
|
|
|
option. The following command will do that::
|
|
|
|
|
|
|
|
pip install passlib
|
|
|
|
|
2011-07-29 03:14:09 +02:00
|
|
|
|
2012-03-26 02:22:41 +02:00
|
|
|
Using a different WSGI server
|
|
|
|
=============================
|
|
|
|
If none of the above servers matches your needs, pypiserver also
|
|
|
|
exposes an API to get the internal WSGI app, which you can then run
|
|
|
|
under any WSGI server you like. pypiserver.app has the following
|
|
|
|
interface::
|
|
|
|
|
|
|
|
def app(root=None,
|
|
|
|
redirect_to_fallback=True,
|
|
|
|
fallback_url="http://pypi.python.org/simple")
|
|
|
|
|
|
|
|
and returns the WSGI application. root is the package directory,
|
2013-01-07 13:58:47 +01:00
|
|
|
redirect_to_fallback specifies whether to redirect to fallback_url when
|
2012-03-26 02:22:41 +02:00
|
|
|
a package is missing.
|
|
|
|
|
|
|
|
gunicorn
|
|
|
|
----------------
|
|
|
|
|
|
|
|
The following command uses gunicorn to start pypiserver::
|
|
|
|
|
|
|
|
gunicorn -w4 'pypiserver:app("/home/ralf/packages")'
|
|
|
|
|
2013-01-28 00:45:01 +01:00
|
|
|
or when using multiple roots::
|
|
|
|
|
|
|
|
gunicorn -w4 'pypiserver:app(["/home/ralf/packages", "/home/ralf/experimental"])'
|
|
|
|
|
|
|
|
|
2012-03-26 02:22:41 +02:00
|
|
|
apache/mod_wsgi
|
|
|
|
----------------
|
|
|
|
In case you're using apache 2 with mod_wsgi, the following config file
|
|
|
|
(contributed by Thomas Waldmann) can be used::
|
|
|
|
|
|
|
|
# An example pypiserver.wsgi for use with apache2 and mod_wsgi, edit as necessary.
|
|
|
|
#
|
|
|
|
# apache virtualhost configuration for mod_wsgi daemon mode:
|
2012-08-09 14:07:18 +02:00
|
|
|
# Alias /robots.txt /srv/yoursite/htdocs/robots.txt
|
|
|
|
# WSGIPassAuthorization On
|
|
|
|
# WSGIScriptAlias / /srv/yoursite/cfg/pypiserver.wsgi
|
|
|
|
# WSGIDaemonProcess pypisrv user=pypisrv group=pypisrv processes=1 threads=5 maximum-requests=500 umask=0007 display-name=wsgi-pypisrv inactivity-timeout=300
|
|
|
|
# WSGIProcessGroup pypisrv
|
2012-03-26 02:22:41 +02:00
|
|
|
|
|
|
|
PACKAGES = "/srv/yoursite/packages"
|
2012-08-09 14:07:18 +02:00
|
|
|
HTPASSWD = "/srv/yoursite/htpasswd"
|
2012-03-26 02:22:41 +02:00
|
|
|
import pypiserver
|
2012-08-09 14:07:18 +02:00
|
|
|
application = pypiserver.app(PACKAGES, redirect_to_fallback=True, password_file=HTPASSWD)
|
2012-03-26 02:22:41 +02:00
|
|
|
|
2012-04-08 00:29:14 +02:00
|
|
|
paste/pastedeploy
|
|
|
|
----------------------
|
|
|
|
paste allows to run multiple WSGI applications under different URL
|
2013-01-07 13:58:47 +01:00
|
|
|
paths. Therefore it's possible to serve different set of packages on
|
2012-04-08 00:29:14 +02:00
|
|
|
different paths.
|
|
|
|
|
|
|
|
The following example `paste.ini` could be used to serve stable and
|
|
|
|
unstable packages on different paths::
|
|
|
|
|
|
|
|
[composite:main]
|
|
|
|
use = egg:Paste#urlmap
|
|
|
|
/unstable/ = unstable
|
|
|
|
/ = stable
|
|
|
|
|
|
|
|
[app:stable]
|
|
|
|
use = egg:pypiserver#main
|
2013-01-28 00:45:01 +01:00
|
|
|
root = ~/stable-packages
|
2012-04-08 00:29:14 +02:00
|
|
|
|
|
|
|
[app:unstable]
|
|
|
|
use = egg:pypiserver#main
|
2013-01-28 00:45:01 +01:00
|
|
|
root = ~/stable-packages
|
|
|
|
~/unstable-packages
|
2012-04-08 00:29:14 +02:00
|
|
|
|
|
|
|
[server:main]
|
|
|
|
use = egg:gunicorn#main
|
|
|
|
host = 0.0.0.0
|
|
|
|
port = 9000
|
|
|
|
workers = 5
|
|
|
|
accesslog = -
|
|
|
|
|
|
|
|
.. NOTE::
|
|
|
|
|
|
|
|
You need to install some more dependencies for this to work,
|
|
|
|
e.g. run::
|
|
|
|
|
|
|
|
pip install paste pastedeploy gunicorn pypiserver
|
|
|
|
|
|
|
|
The server can then be started with::
|
|
|
|
|
|
|
|
gunicorn_paster paste.ini
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-08-01 23:09:42 +02:00
|
|
|
Source
|
|
|
|
===========
|
|
|
|
Source releases can be downloaded from
|
2014-01-20 22:55:51 +01:00
|
|
|
https://pypi.python.org/pypi/pypiserver
|
2011-08-01 23:09:42 +02:00
|
|
|
|
|
|
|
https://github.com/schmir/pypiserver carries a git repository of the
|
|
|
|
in-development version.
|
|
|
|
|
|
|
|
Use::
|
|
|
|
|
|
|
|
git clone https://github.com/schmir/pypiserver.git
|
|
|
|
|
|
|
|
to create a copy of the repository, then::
|
|
|
|
|
|
|
|
git pull
|
|
|
|
|
|
|
|
inside the copy to receive the latest version.
|
|
|
|
|
2011-07-29 03:14:09 +02:00
|
|
|
|
|
|
|
Bugs
|
|
|
|
=============
|
2011-07-31 23:42:37 +02:00
|
|
|
pypiserver does not implement the full API as seen on PyPI_. It
|
|
|
|
implements just enough to make easy_install and pip install work.
|
|
|
|
|
|
|
|
The following limitations are known:
|
|
|
|
|
|
|
|
- pypiserver doesn't implement the XMLRPC interface: pip search
|
|
|
|
will not work.
|
2014-01-10 21:36:46 +01:00
|
|
|
- pypiserver doesn't implement the json based '/pypi' interface.
|
2014-03-05 22:53:09 +01:00
|
|
|
- pypiserver accepts documentation uploads but does not save them to
|
|
|
|
disk (see https://github.com/schmir/pypiserver/issues/47 for a
|
|
|
|
discussion)
|
2011-07-31 23:42:37 +02:00
|
|
|
|
2011-08-01 23:09:42 +02:00
|
|
|
Please use github's bugtracker
|
|
|
|
https://github.com/schmir/pypiserver/issues if you find any other
|
|
|
|
bugs.
|
|
|
|
|
|
|
|
|
2011-07-31 23:42:37 +02:00
|
|
|
License
|
|
|
|
=============
|
|
|
|
pypiserver contains a copy of bottle_ which is available under the
|
|
|
|
MIT license::
|
|
|
|
|
2013-01-03 21:51:14 +01:00
|
|
|
Copyright (c) 2012, Marcel Hellkamp.
|
2011-07-31 23:42:37 +02:00
|
|
|
|
|
|
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
in the Software without restriction, including without limitation the rights
|
|
|
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
|
|
copies of the Software, and to permit persons to whom the Software is
|
|
|
|
furnished to do so, subject to the following conditions:
|
|
|
|
|
|
|
|
The above copyright notice and this permission notice shall be included in all
|
|
|
|
copies or substantial portions of the Software.
|
|
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
|
SOFTWARE.
|
|
|
|
|
|
|
|
|
|
|
|
The remaining part is distributed under the zlib/libpng license::
|
|
|
|
|
2014-01-20 22:53:59 +01:00
|
|
|
Copyright (c) 2011-2014 Ralf Schmitt
|
2011-07-31 23:42:37 +02:00
|
|
|
|
|
|
|
This software is provided 'as-is', without any express or implied
|
|
|
|
warranty. In no event will the authors be held liable for any damages
|
|
|
|
arising from the use of this software.
|
|
|
|
|
|
|
|
Permission is granted to anyone to use this software for any purpose,
|
|
|
|
including commercial applications, and to alter it and redistribute it
|
|
|
|
freely, subject to the following restrictions:
|
|
|
|
|
|
|
|
1. The origin of this software must not be misrepresented; you must not
|
|
|
|
claim that you wrote the original software. If you use this software
|
|
|
|
in a product, an acknowledgment in the product documentation would be
|
|
|
|
appreciated but is not required.
|
|
|
|
|
|
|
|
2. Altered source versions must be plainly marked as such, and must not be
|
|
|
|
misrepresented as being the original software.
|
|
|
|
|
|
|
|
3. This notice may not be removed or altered from any source
|
|
|
|
distribution.
|
|
|
|
|
|
|
|
|
|
|
|
Similar Projects
|
|
|
|
====================
|
|
|
|
There are lots of other projects, which allow you to run your own
|
|
|
|
PyPI server. If pypiserver doesn't work for you, try one of the
|
|
|
|
following alternatives:
|
|
|
|
|
2013-05-07 23:38:59 +02:00
|
|
|
devpi-server (https://pypi.python.org/pypi/devpi-server)
|
|
|
|
easy-to-use caching proxy server
|
2011-08-09 23:47:34 +02:00
|
|
|
|
2013-05-29 00:15:35 +02:00
|
|
|
proxypypi (https://pypi.python.org/pypi/proxypypi)
|
|
|
|
a PyPI caching proxy
|
|
|
|
|
2011-08-09 23:47:34 +02:00
|
|
|
Changelog
|
|
|
|
=========
|
2015-01-09 11:21:30 +01:00
|
|
|
|
2015-02-16 00:47:35 +01:00
|
|
|
1.1.7 (2015-02-23)
|
2015-01-09 11:21:30 +01:00
|
|
|
------------------
|
2015-02-16 00:47:35 +01:00
|
|
|
- #65, #66: Improve Auth for private repos by supporting i
|
|
|
|
password protected package listings and downloads,
|
2015-01-09 11:21:30 +01:00
|
|
|
in addition to uploads (use the -a, --authenticate option
|
|
|
|
to specify which to protect).
|
2015-02-16 00:47:35 +01:00
|
|
|
- #67: Add cache-control http-header, reqed by pip.
|
|
|
|
- #56, #70: Ignore non-packages when serving.
|
|
|
|
- #58, #62: Log all http-requests.
|
|
|
|
- #61: Possible to change welcome-msg.
|
2015-02-23 02:19:58 +01:00
|
|
|
- #77, #78: Avoid XSS by generating web-content with SimpleTemplate
|
|
|
|
instead of python's string-substs.
|
2015-01-09 11:21:30 +01:00
|
|
|
|
2014-03-05 22:54:17 +01:00
|
|
|
1.1.6 (2014-03-05)
|
|
|
|
------------------
|
|
|
|
- remove --index-url cli parameter introduced in 1.1.5
|
|
|
|
|
2014-01-20 23:10:41 +01:00
|
|
|
1.1.5 (2014-01-20)
|
|
|
|
------------------
|
|
|
|
- only list devpi-server and proxypypi as alternatives
|
|
|
|
- fix wheel file handling for certain wheels
|
|
|
|
- serve wheel files as application/octet-stream
|
|
|
|
- make pypiserver executable from wheel file
|
|
|
|
- build universal wheel
|
|
|
|
- remove scripts subdirectory
|
|
|
|
- add --index-url cli parameter
|
|
|
|
|
2014-01-03 23:35:47 +01:00
|
|
|
1.1.4 (2014-01-03)
|
|
|
|
------------------
|
|
|
|
- make pypiserver compatible with pip 1.5
|
|
|
|
(https://github.com/schmir/pypiserver/pull/42)
|
|
|
|
|
2013-07-22 21:53:46 +02:00
|
|
|
1.1.3 (2013-07-22)
|
|
|
|
------------------
|
|
|
|
- make guessing of package name and version more robust
|
|
|
|
|
2013-06-22 23:01:32 +02:00
|
|
|
1.1.2 (2013-06-22)
|
|
|
|
------------------
|
|
|
|
- fix "pypi-server -U" stable/unstable detection, i.e. do not
|
|
|
|
accidentally update to unstable packages
|
|
|
|
|
2013-05-29 00:33:46 +02:00
|
|
|
1.1.1 (2013-05-29)
|
|
|
|
------------------
|
2013-04-11 10:36:47 +02:00
|
|
|
- add 'overwrite' option to allow overwriting existing package
|
|
|
|
files (default: false)
|
2013-05-29 00:33:46 +02:00
|
|
|
- show names with hyphens instead of underscores on the "/simple"
|
|
|
|
listing
|
|
|
|
- make the standalone version work with jython 2.5.3
|
|
|
|
- upgrade waitress to 0.8.5 in the standalone version
|
|
|
|
- workaround broken xmlrpc api on pypi.python.org by using HTTPS
|
2013-04-11 10:36:47 +02:00
|
|
|
|
2013-02-14 23:01:20 +01:00
|
|
|
1.1.0 (2013-02-14)
|
2013-01-28 00:45:01 +01:00
|
|
|
------------------
|
|
|
|
- implement multi-root support (one can now specify multiple package
|
|
|
|
roots)
|
|
|
|
- normalize pkgnames, handle underscore like minus
|
|
|
|
- sort files by their version, not alphabetically
|
2013-02-14 23:12:51 +01:00
|
|
|
- upgrade embedded bottle to 0.11.6
|
|
|
|
- upgrade waitress to 0.8.2 in the standalone script
|
|
|
|
- merge vsajip's support for verify, doc_upload and remove_pkg
|
2013-01-28 00:45:01 +01:00
|
|
|
|
2013-01-03 21:51:14 +01:00
|
|
|
1.0.1 (2013-01-03)
|
|
|
|
------------------
|
|
|
|
- make 'pypi-server -Ux' work on windows
|
|
|
|
('module' object has no attribute 'spawnlp',
|
|
|
|
https://github.com/schmir/pypiserver/issues/26)
|
|
|
|
- use absolute paths in hrefs for root view
|
|
|
|
(https://github.com/schmir/pypiserver/issues/25)
|
|
|
|
- add description of uploads to the documentation
|
|
|
|
- make the test suite work on python 3
|
2013-01-03 22:12:23 +01:00
|
|
|
- make pypi-server-standalone work with python 2.5
|
2013-01-03 21:51:14 +01:00
|
|
|
|
2012-10-26 20:34:52 +02:00
|
|
|
1.0.0 (2012-10-26)
|
2012-10-15 22:39:30 +02:00
|
|
|
------------------
|
|
|
|
- add passlib and waitress to pypi-server-standalone
|
2012-10-26 20:34:52 +02:00
|
|
|
- upgrade bottle to 0.11.3
|
2012-10-15 22:39:30 +02:00
|
|
|
- Update scripts/opensuse/pypiserver.init
|
|
|
|
- Refuse to re upload existing file
|
|
|
|
- Add 'console_scripts' section to 'entry_points', so
|
|
|
|
'pypi-server.exe' will be created on Windows.
|
|
|
|
- paste_app_factory now use the the password_file option to create the
|
|
|
|
app. Without this the package upload was not working.
|
|
|
|
- Add --fallback-url argument to pypi-server script to make it
|
|
|
|
configurable.
|
|
|
|
|
2012-08-07 22:06:14 +02:00
|
|
|
0.6.1 (2012-08-07)
|
|
|
|
------------------
|
|
|
|
- make 'python setup.py register' work
|
|
|
|
- added init scripts to start pypiserver on ubuntu/opensuse
|
|
|
|
|
2012-06-14 21:55:31 +02:00
|
|
|
0.6.0 (2012-06-14)
|
2012-06-06 00:18:51 +02:00
|
|
|
------------------
|
|
|
|
- make pypiserver work with pip on windows
|
|
|
|
- add support for password protected uploads
|
|
|
|
- make pypiserver work with non-root paths
|
|
|
|
- make pypiserver 'paste compatible'
|
|
|
|
- allow to serve multiple package directories using paste
|
|
|
|
|
2012-03-26 23:25:03 +02:00
|
|
|
0.5.2 (2012-03-27)
|
|
|
|
------------------
|
|
|
|
- provide a way to get the WSGI app
|
|
|
|
- improved package name and version guessing
|
|
|
|
- use case insensitive matching when removing archive suffixes
|
|
|
|
- fix pytz issue #6
|
|
|
|
|
2012-02-23 11:24:09 +01:00
|
|
|
0.5.1 (2012-02-23)
|
|
|
|
------------------
|
|
|
|
- make 'pypi-server -U' compatible with pip 1.1
|
|
|
|
|
2011-12-05 22:30:31 +01:00
|
|
|
0.5.0 (2011-12-05)
|
|
|
|
------------------
|
|
|
|
- make setup.py install without calling 2to3 by changing source code
|
|
|
|
to be compatible with both python 2 and python 3. We now ship a
|
|
|
|
slightly patched version of bottle. The upcoming bottle 0.11
|
|
|
|
also contains these changes.
|
|
|
|
- make the single-file pypi-server-standalone.py work with python 3
|
|
|
|
|
2011-11-23 22:29:35 +01:00
|
|
|
0.4.1 (2011-11-23)
|
|
|
|
------------------
|
|
|
|
- upgrade bottle to 0.9.7, fixes possible installation issues with
|
|
|
|
python 3
|
|
|
|
- remove dependency on pkg_resources module when running
|
|
|
|
'pypi-server -U'
|
2011-08-09 23:47:34 +02:00
|
|
|
|
2011-11-19 21:17:35 +01:00
|
|
|
0.4.0 (2011-11-19)
|
|
|
|
------------------
|
|
|
|
- add functionality to manage package updates
|
|
|
|
- updated documentation
|
|
|
|
- python 3 support has been added
|
|
|
|
|
2011-10-07 20:56:30 +02:00
|
|
|
0.3.0 (2011-10-07)
|
|
|
|
------------------
|
|
|
|
- pypiserver now scans the given root directory and it's
|
|
|
|
subdirectories recursively for packages. Files and directories
|
|
|
|
starting with a dot are now being ignored.
|
|
|
|
- /favicon.ico now returns a "404 Not Found" error
|
|
|
|
- pypiserver now contains some unit tests to be run with tox
|
|
|
|
|
2011-08-09 23:47:34 +02:00
|
|
|
0.2.0 (2011-08-09)
|
|
|
|
------------------
|
|
|
|
- better matching of package names (i.e. don't install package if only
|
|
|
|
a prefix matches)
|
|
|
|
- redirect to the real pypi.python.org server if a package is not found.
|
|
|
|
- add some documentation about configuring easy_install/pip
|
|
|
|
|
|
|
|
0.1.3 (2011-08-01)
|
|
|
|
------------------
|
|
|
|
- provide single file script pypi-server-standalone.py
|
|
|
|
- better documentation
|
|
|
|
|
|
|
|
0.1.2 (2011-08-01)
|
|
|
|
------------------
|
|
|
|
- prefix comparison is now case insensitive
|
|
|
|
- added usage message
|
2011-12-05 22:33:51 +01:00
|
|
|
- show minimal information for root url
|
2011-08-09 23:47:34 +02:00
|
|
|
|
|
|
|
0.1.1 (2011-07-29)
|
|
|
|
------------------
|
|
|
|
- don't require external dependencies
|
|
|
|
|
|
|
|
0.1.0 (2011-07-29)
|
|
|
|
------------------
|
|
|
|
- initial release
|
|
|
|
|
|
|
|
|
2011-07-31 23:42:37 +02:00
|
|
|
.. _bottle: http://bottlepy.org
|
|
|
|
.. _PyPI: http://pypi.python.org
|