Skip to main content

pyshop

Project description

A cheeseshop clone (PyPI server) written in pyramid

Getting Started

$ virtualenv pyshop
$ cd pyshop
(pyshop)$ source bin/activate
(pyshop)$ pip install git+https://github.com/mardiros/pyshop.git
(pyshop)$ cp development.ini pyshop.ini
(pyshop)$ pyshop_install pyshop.ini
(pyshop)$ pserve pyshop.ini start --log-file=pyshop.log

Visit the wen page http://localhost:6543/

For production usage, you should create accounts with the “developer” group. Visit http://localhost:6543/pyshop/user with the admin account to create account.

Configuring your environment to use that new pyshop

Here is all configuration files for usual python tools you have to edit for simplify the usage of pyshop.

~/.pip/pip.conf

Configuration used by pip

[global]
# when mirroring a package,
# pyshop retrieve informations from PyPI and
# store them in its DB.
# Be patient, it is not so long.
default-timeout = 60
timeout = 60
[install]
index-url = http://pip:changeme@localhost:6543/simple/

~/.pypirc

Configuration used by setuptools to upload package

[distutils]
index-servers =
    pyshop

[pyshop]
username: admin # or create an account in pyshop admin interface
password: changeme
repository: http://localhost:6543/simple/

setup.cfg

[easy_install]
index-url = http://pip:changeme@localhost:6543/simple/

Uploading a file to your pyshop

python setup.py sdist upload -v -r pyshop

0.2

Packaging Issue.

0.1

Initial version.

  • work with pip, setuptools

  • mirror packages

  • upload packages

  • secure access with login/password

  • create/update accounts

  • tests for python 2.7 only

  • compatible with python 2.6

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

pyshop-0.2.tar.gz (724.8 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