GithubHelp home page GithubHelp logo

sirmmo / chishop Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ask/chishop

1.0 1.0 0.0 955 KB

Simple PyPI server written in django. Allows you to register/upload with distutils and install with easy_install/pip.

chishop's Introduction

ChiShop/DjangoPyPI

Version

0.1

Installation

Install dependencies:

$ python bootstrap.py
$ ./bin/buildout

Initial configuration

$ cp chishop/settings.py.sample chishop/settings.py
$ $EDITOR chishop/settings.py
$ ./bin/django syncdb && ./bin/django migrate

Run the PyPI server

$ ./bin/django runserver

Please note that chishop/media/dists has to be writable by the user the web-server is running as.

In production

You may want to copy the file chishop/production_example.py and modify for use as your production settings; you will also need to modify bin/django.wsgi to refer to your production settings.

Using Setuptools

Add the following to your ~/.pypirc file:

[distutils]
index-servers =
    pypi
    local


[pypi]
username:user
password:secret

[local]

username:user
password:secret
repository:http://localhost:8000

Uploading a package: Python >=2.6

To push the package to the local pypi:

$ python setup.py register -r local sdist upload -r local

Uploading a package: Python <2.6

If you don't have Python 2.6 please run the command below to install the backport of the extension:

$ easy_install -U collective.dist

instead of using register and dist command, you can use "mregister" and "mupload", that are a backport of python 2.6 register and upload commands, that supports multiple servers.

To push the package to the local pypi:

$ python setup.py mregister -r local sdist mupload -r local

chishop's People

Contributors

benliles avatar brosner avatar bshi avatar dcramer avatar hltbra avatar jacobian avatar jezdez avatar runeh avatar stefanfoulis avatar vandersonmota avatar viniciuschagas avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.