Skip to content

Instantly share code, notes, and snippets.

@e3krisztian
Created April 3, 2014 17:35
Show Gist options
  • Save e3krisztian/9959023 to your computer and use it in GitHub Desktop.
Save e3krisztian/9959023 to your computer and use it in GitHub Desktop.
Start test pypiserver locally
#!/bin/bash
root=/ramdisk/pypiserver
package_dir=${root}/packages
mkdir -p ${package_dir}
htpasswd=${root}/htpasswd
htpasswd -bc ${htpasswd} testuser testpass
. ~/.virtualenvs/pypiserver/bin/activate
echo ============================
echo user-pass: testuser-testpass
echo ============================
exec pypi-server -P ${htpasswd} -i localhost ${package_dir}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment