| 1 | pkgcore-0.2 < http://www.pkgcore.org > |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | WHAT IS PKGCORE? |
|---|
| 5 | |
|---|
| 6 | pkgcore is a framework for package management; via appropriate class plugins, |
|---|
| 7 | design should allow for any underlying repository/config/format to be used; |
|---|
| 8 | slackwares tgzs being exempted due to lack of any real metadata, and |
|---|
| 9 | autopackage format being exempted due to the fact they effectively embed the |
|---|
| 10 | manager in each package (pkgcore *does* require being able to treat the pkg as |
|---|
| 11 | data, instead of autopackages method of handing resolution/all manager ops off |
|---|
| 12 | to the package script). |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | WHO TO CONTACT IF I FIND A BUG? |
|---|
| 16 | |
|---|
| 17 | Please submit a bug/ticket via http://www.pkgcore.org. Barring that, please at |
|---|
| 18 | least send the details to pkgcore-bugs@pkgcore.org. Please do not use |
|---|
| 19 | bugs.gentoo.org as the first step; any bugs, pkgcore devs should filter before |
|---|
| 20 | passing up at this point. |
|---|
| 21 | |
|---|
| 22 | You can also stop by at #pkgcore on irc.freenode.net. |
|---|
| 23 | |
|---|
| 24 | |
|---|
| 25 | DOCUMENTATION? |
|---|
| 26 | |
|---|
| 27 | Please take a look at either doc/ and dev-notes/ ; additionally, the code for |
|---|
| 28 | the most part has docstrings, thus pydoc is a good reference. |
|---|
| 29 | |
|---|
| 30 | doc/getting-started.rst is a good introduction if you're just getting started. |
|---|
| 31 | If you want to start hacking, take a look at dev-notes/developing.rst. |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | TOOLS? |
|---|
| 35 | |
|---|
| 36 | pclone_cache: clone a repository cache |
|---|
| 37 | |
|---|
| 38 | pebuild: low-level ebuild operations, go through phases manually |
|---|
| 39 | |
|---|
| 40 | pmaint: generic utility for repository maintenance (syncing, copying...) |
|---|
| 41 | |
|---|
| 42 | pmerge: generic utility for doing resolution, fetching, merging/unmerging, |
|---|
| 43 | etc. |
|---|
| 44 | |
|---|
| 45 | pquery: generic utility for querying info about repositories, revdeps, pkg |
|---|
| 46 | search, vdb search, etc. |
|---|
| 47 | |
|---|
| 48 | pregen: script for doing ebuild metadata regeneration; can be parallelized |
|---|
| 49 | |
|---|
| 50 | TESTS? |
|---|
| 51 | |
|---|
| 52 | A standalone test runner is integrated in setup.py; to run, just execute |
|---|
| 53 | setup.py test |
|---|
| 54 | Aside from that, our runner of choice is twisted's trial; ran via- |
|---|
| 55 | |
|---|
| 56 | trial pkgcore |
|---|
| 57 | |
|---|
| 58 | If you're doing development, trial is significantly friendlier; the standalone |
|---|
| 59 | runner is designed to be mainly used for installations of pkgcore, where |
|---|
| 60 | all tests must pass, else installation is aborted. |
|---|
| 61 | |
|---|
| 62 | |
|---|
| 63 | INSTALLING: |
|---|
| 64 | |
|---|
| 65 | To build: |
|---|
| 66 | |
|---|
| 67 | tar jxf pkgcore-0.XX.tar.bz2 |
|---|
| 68 | cd pkgcore-0.XX |
|---|
| 69 | python setup.py build |
|---|
| 70 | |
|---|
| 71 | Run tests: |
|---|
| 72 | |
|---|
| 73 | cd pkgcore-0.xx |
|---|
| 74 | python setup.py test |
|---|
| 75 | or |
|---|
| 76 | trial pkgcore/ |
|---|
| 77 | |
|---|
| 78 | To install: |
|---|
| 79 | |
|---|
| 80 | cd pkgcore-0.xx |
|---|
| 81 | python setup.py install |
|---|
| 82 | pplugincache |
|---|