forked from ghickman/djangopypi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
95 lines (61 loc) · 2.14 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
DjangoPyPI
==========
DjangoPyPI is a Django application that provides a re-implementation of the
`Python Package Index <http://pypi.python.org>`_.
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 tables [#]_.
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
.. [#] ``djangopypi`` is South enabled, if you are using South then you will need
to run the South ``migrate`` command to get the tables.