diff options
author | Russell Sim <russell.sim@vpac.org> | 2009-04-21 20:51:23 +1000 |
---|---|---|
committer | Russell Sim <russell.sim@vpac.org> | 2009-04-21 20:51:23 +1000 |
commit | 0acf3892c113e65cc5087edbe73149f6704df086 (patch) | |
tree | 8d3826cedb20b4b9ad739a82a04339a6c10ab693 | |
parent | 9912d25f105a6a9ae0ead2a18f41140992a5ffef (diff) | |
download | chishop-0acf3892c113e65cc5087edbe73149f6704df086.tar.bz2 chishop-0acf3892c113e65cc5087edbe73149f6704df086.tar.xz chishop-0acf3892c113e65cc5087edbe73149f6704df086.zip |
cleaned up README, added simple usage example
-rw-r--r-- | README | 40 |
1 files changed, 37 insertions, 3 deletions
@@ -15,6 +15,8 @@ First you have to install the dependencies:: | |||
15 | 15 | ||
16 | Initial configuration | 16 | Initial configuration |
17 | --------------------- | 17 | --------------------- |
18 | :: | ||
19 | |||
18 | $ cd chipshop/ | 20 | $ cd chipshop/ |
19 | 21 | ||
20 | $ $EDITOR settings.py | 22 | $ $EDITOR settings.py |
@@ -23,6 +25,7 @@ Initial configuration | |||
23 | 25 | ||
24 | Run the PyPI server | 26 | Run the PyPI server |
25 | ------------------- | 27 | ------------------- |
28 | :: | ||
26 | 29 | ||
27 | $ python manage.py runserver | 30 | $ python manage.py runserver |
28 | 31 | ||
@@ -30,8 +33,39 @@ Run the PyPI server | |||
30 | Please note that ``chishop/media/dists`` has to be writable by the | 33 | Please note that ``chishop/media/dists`` has to be writable by the |
31 | user the web-server is running as. | 34 | user the web-server is running as. |
32 | 35 | ||
33 | Contact Information | 36 | Using Setuptools |
34 | ==================== | 37 | ================ |
35 | askh@opera.com | 38 | |
39 | Add the following to your ``~/.pypirc`` file:: | ||
40 | |||
41 | [distutils] | ||
42 | index-servers = | ||
43 | pypi | ||
44 | local | ||
45 | |||
46 | |||
47 | [pypi] | ||
48 | username:user | ||
49 | password:secret | ||
50 | |||
51 | [local] | ||
52 | |||
53 | username:user | ||
54 | password:secret | ||
55 | |||
56 | repository:http://localhost:8000 | ||
57 | |||
58 | Pushing a package to local PyPI | ||
59 | ----------------------------------- | ||
60 | |||
61 | 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. | ||
62 | |||
63 | To push the package to the local pypi:: | ||
64 | |||
65 | $ python setup.py mregister sdist mupload -r local | ||
66 | |||
67 | If you don't have Python 2.6 please run the command below to install the backport of the extension:: | ||
68 | |||
69 | $ easy_install -U collective.dist | ||
36 | 70 | ||
37 | .. # vim: syntax=rst expandtab tabstop=4 shiftwidth=4 shiftround | 71 | .. # vim: syntax=rst expandtab tabstop=4 shiftwidth=4 shiftround |