GithubHelp home page GithubHelp logo

isabella232 / djangopypi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from disqus/djangopypi

0.0 0.0 0.0 346 KB

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

License: BSD 3-Clause "New" or "Revised" License

Python 94.82% HTML 5.18%

djangopypi's Introduction

DjangoPyPI

DjangoPyPI is a Django application that provides a re-implementation of the Python Package Index.

Installation

Path

The first step is to get djangopypi into your Python path.

Buildout

Simply add djangopypi to your list of eggs and run buildout again it should downloaded and installed properly.

EasyInstall/Setuptools

If you have setuptools installed, you can use easy_install djangopypi

Manual

Download and unpack the source then run:

$ python setup.py install

Django Settings

Add djangopypi to your INSTALLED_APPS setting and run syncdb again to get the database tables1.

Then add an include in your url config for djangopypi.urls:

urlpatterns = patterns("",
    ...
    url(r'', include("djangopypi.urls"))
)

This will make the repository interface be accessible at /pypi/.

Uploading to your PyPI

Assuming you are running your Django site locally for now, 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/pypi/

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 for multiple repositories:

$ easy_install -U collective.dist

Instead of using register and dist command, you can use mregister and mupload which 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

  1. djangopypi is South enabled, if you are using South then you will need to run the South migrate command to get the tables.โ†ฉ

djangopypi's People

Contributors

benliles avatar hltbra avatar jezdez avatar bshi avatar brosner avatar mattrobenolt avatar runeh avatar stefanor avatar viniciuschagas avatar vandersonmota avatar davidmiller avatar jaap3 avatar jacobian avatar tomwys avatar stefanfoulis 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.