| 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 on irc.freenode.net #pkgcore |
|---|
| 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 | For just getting started, dev-notes/developing.rst is a good intro |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | TOOLS? |
|---|
| 34 | |
|---|
| 35 | pclone_cache: clone a repository cache |
|---|
| 36 | |
|---|
| 37 | pebuild: low-level ebuild operations, go through phases manually |
|---|
| 38 | |
|---|
| 39 | pmaint: generic utility for repository maintenance (syncing, copying...) |
|---|
| 40 | |
|---|
| 41 | pmerge: generic utility for doing resolution, fetching, merging/unmerging, |
|---|
| 42 | etc. |
|---|
| 43 | |
|---|
| 44 | pquery: generic utility for querying info about repositories, revdeps, pkg |
|---|
| 45 | search, vdb search, etc. |
|---|
| 46 | |
|---|
| 47 | pregen: script for doing ebuild metadata regeneration; can be parallelized |
|---|
| 48 | |
|---|
| 49 | TESTS? |
|---|
| 50 | |
|---|
| 51 | A standalone test runner is integrated in setup.py; to run, just execute |
|---|
| 52 | setup.py test |
|---|
| 53 | Aside from that, our runner of choice is twisteds trial; ran via- |
|---|
| 54 | |
|---|
| 55 | trial pkgcore |
|---|
| 56 | |
|---|
| 57 | if doing development, trial is significantly friendlier; the standalone |
|---|
| 58 | runner is designed to be used mainly for installations of pkgcore, where |
|---|
| 59 | all tests must pass, else installation is aborted. |
|---|
| 60 | |
|---|
| 61 | |
|---|
| 62 | INSTALLING: |
|---|
| 63 | |
|---|
| 64 | pretty simple- |
|---|
| 65 | |
|---|
| 66 | tar jxf pkgcore-0.XX.tar.bz2 |
|---|
| 67 | cd pkgcore-0.XX |
|---|
| 68 | python setup.py build |
|---|
| 69 | |
|---|
| 70 | if after running tests, |
|---|
| 71 | |
|---|
| 72 | cd pkgcore-0.xx |
|---|
| 73 | python setup.py test |
|---|
| 74 | |
|---|
| 75 | finally, installing- |
|---|
| 76 | |
|---|
| 77 | cd pkgcore-0.xx |
|---|
| 78 | python setup.py install |
|---|
| 79 | pplugincache |
|---|