Pyrus status update

From: Date: Sun, 26 Apr 2009 22:10:12 +0000
Subject: Pyrus status update
Groups: php.pear.core 
Request: Send a blank email to pear-core+get-8375@lists.php.net to get a copy of this message
Hi, It's been a long time since I did any kind of report on Pyrus, and so here it is. The code is extremely close to being ready for its first alpha release. As of right now, I have 66% test coverage reported, and climbing (this is significantly better than PEAR, which is at 61% on my machine). The registries are nearly fully covered, we have successful registry cloning implemented, which means we will be able to auto-convert PEAR 1.x to Pyrus registries - and vice versa. Things to implement in no particular order are - atomic file transaction This is a new concept I've been toying with for ages, which is about structuring our file transactions around directory renaming, which is as close to atomic as a file operation can get. Currently, we use a buttload of files prepended with .tmp and so Ctrl-C mid-install leaves a mess. I just committed proof-of-concept and will be designing tests for this next, and then will plug it into the installer/uninstaller. - remote channel iteration API Things like: <?php $channel = PEAR2_Pyrus_Config::current()->channelregistry['pear2.php.net']; foreach ($channel->maintainers as $maintainer) {} foreach ($channel->upgradeable as $package) {} foreach ($channel->packages['stable'] as $package) {} echo $channel->package['PackageName']->version['release']; foreach ($channel->releases['PackageName'] as $package) { echo $package->version['release'], $package->stability['release']; } ?> - plugin API There is no way to extend Pyrus, since we can't install stuff into the phar, so implementing a plugins directory in the user's home path where new roles, tasks, and commands can be installed using a parallel installation command structure "plugin-install" "plugin-upgrade" "plugin-list" etc. - use bundle package.xml inside a phar so that "pyrus install package.phar" results in installing all the needed junk (MultiErrors/Autoload/etc.) - new minimal XML registry This registry would rely exclusively on extracted package.xml/channel.xml to do its business, which will allow using pyrus to directly manage a bundled PEAR2 library inside a larger app without leaving lots of clutter to manage. The only stuff there would be the files and the package.xml - download progress bar This is a why-the-hell-don't-we-have-this-yet feature and has to do with PEAR2_HTTP_Request not yet having a way to do this (ahem...) - interactive CLI frontend, complete script-based frontend - registry detection Simple method in PEAR2_Pyrus_Registry to detect which registries are present of Sqlite3, Xml, Pear1 - pecl extension building - compatibility scripts for pear/pecl That's all I can think of for now. Also extremely EXTREMELY important is: - get the damn pear-svn mailing list working again - get pear group to decide on a namespace standard for CS. Thanks, Greg

« previous php.pear.core (#8375) next »