[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Status of python-apt 0.8



Hello everyone,

I just want to give a short update on the progress of python-apt 0.8.

The first alpha release 0.7.90 introduced the port to Python 3 and
some new features. The second alpha release, 0.7.91, focuses mostly
on building a new, more Pythonic API.

One of the most important changes is the introduction of real classes
in the extension. We now export almost every class as apt_pkg.ClassName
and also list their properties and methods.

Secondly, the process of renaming everything according to PEP 8 has
started. At the moment, the packages 'apt' and 'aptsources' have been
converted. The package 'apt.progress' is a bit more complicated, as
it also needs changes in apt_pkg. The extensions should follow soon;
I already created a tool to check code using them for deprecated
functions (utils/migrate-0.8.py).

Thirdly, python-apt starts supporting new language features. I added
the ability to use ActionGroups() as context managers for the with
statement, and apt.package.Record now subclasses collections.Mapping.

I also updated the documentation to reflect the new names and features,
but it's not complete yet.

Most of the changes are from April, because I was not very active during
May. But it's good to know what is done and what needs to be done, that's
the reason for this mail.

TODO:
  - Complete the rename process. (apt_pkg,apt_inst,apt.progress)
  - Introduce the new progress hierarchy (apt.progress)
  - Completely adapt the documentation to latest changes.
  - Compile deprecated functions only #ifndef COMPAT_0_7 (apt_pkg,apt_inst)

Accepted for 0.7.91:
  - Bug#527543: please downgrade the dependency on libjs-jquery to recommends
  - Bug#528263: 0.7.90 for amd64 depends on missing libapt virtual packages
  - Bug#481061: Rename API methods to conform with PEP 8
  - Bug#523998: Package class should have a get_version method
  - Bug#525134: please register python API reference with doc-base

Candidates for 0.7.91 or 0.7.92:
  - Bug#334923: a C/C++-language interface to python-apt
  - Bug#382725: wrap policy interface
  - Bug#468123: bind pkgCache::DepType, [...]
  - Bug#499296: Incorrect use of select



-- 
Julian Andres Klode  - Free Software Developer
   Debian Developer  - Contributing Member of SPI
   Ubuntu Member     - Fellow of FSFE

Website: http://jak-linux.org/   XMPP: juliank@jabber.org
Debian:  http://www.debian.org/  SPI:  http://www.spi-inc.org/
Ubuntu:  http://www.ubuntu.com/  FSFE: http://www.fsfe.org/

Attachment: signature.asc
Description: Digital signature


Reply to: