| Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
Due to the new C++ API and because I wanted to include some tutorials,
the documentation is now seperated into 4 sections:
library => Documentation of modules.
tutorials => Tutorials for using python-apt and contributing
whatsnew => Release notes
c++ => Documentation,Tutorials for the C++ API
This commit also includes a new overview page, like the Python
documentation.
|
|
This is yet another context manager, this time for locking files. It can
be used multiple times and features an internal counter.
|
|
|
|
|
|
You can now compile this as a module or as an application. The benefit is
that the explained process is more like the one required for Python 3.
|
|
The C++ API provides support for creating Python objects from C++ objects
given by pointer or reference (depending on the implementation of the Python
object) and for retrieving the underlying C++ object from the Python object
and for checking the type of the Python object.
|
|
|
|
These are the new C++ coding style guidelines, which are derived from
PEP 7.
|
|
The Hashes class is a function which calculates all supported hashes for
one input. DebImg will use this for calculating the hashes of files.
|
|
|
|
|
|
|
|
This is a short function which creates an actiongroup on the current
depcache.
|
|
|
|
|
|
|
|
- add update_status_full() that takes file_size/partial_size as
additional callback arguments
- add pulse_items() that takes a addtional "items" tuple that
gives the user full access to the individual items that are
fetched
* python/progress.cc:
- low level code for update_status_full and pulse_items()
|
|
|
|
|
|
|
|
This is the first pre-release of python-apt 0.8. It is completely backward
compatible (even on Python 3), API changes will appear in 0.7.91.
|
|
|
|
Extended the documentation, renamed 'Coding for python-apt' to 'Contributing
to python-apt' and other stuff.
|
|
documentation
|
|
Support the replacement of mapping.has_key() for Configuration,ConfigurationPtr
and ConfigurationSub objects.
This is implemented by extending the various types with the tp_as_sequence
slot, which refers to a PySequenceMethods containing only this method.
The CnfGetAttr() function has been removed and replaced by the use of the
tp_method slot. This helps the py3k port because the previously used
Py_FindMethod() is not avilable anymore.
This completes the support of the 'in' operator in all python-apt objects,
which makes it even easier to convert python-apt-using applications to py3k
once python-apt supports it, as 2to3 converts 'm.has_key(k)' to 'k in m'.
Also finalize the types in apt_pkgmodule.cc and add the new 'key in conf'
description to the documentation.
|
|
Support the replacement of mapping.has_key() for sections, and
update the usage in apt/package.py and apt/debfile accordingly.
This is implemented by extending the TagSecType with sequence
methods, but only settings the contains method there.
The TagSecGetAttr() function has been removed and replaced by
the use of the tp_methods slot.
|
|
Try to get the release from the information in the environment variable
DEBVER, which is exported in debian/rules. If it is not set, use python-debian
to read the release from the changelog.
|
|
- doc/source/conf.py: Only include directories for current python version.
- debian/control: Build-Depend on python-gtk2, python-vte.
- setup.py: If pygtk can not be imported, do not build the documentation.
|
|
|
|
|
|
Also fix doc/examples/records.py to use Package.candidate.*
|
|
|
|
|
|
- Document more attributes and functions of apt_pkg (they are all listed)
|
|
- apt/progress/gtk2.py: Moved here from apt/gtk/widgets.py
- apt/progress/__init__.py: Move here from apt/progress.py
|
|
- Deprecate Package.candidate*() and Package.installed*(), except for
installedFiles.
- Provide Version.get_source() (LP: #118788)
|
|
|
|
The exception for mixedCase names is now only granted for modules
introduced prior to version 0.7.9 and changes thereto.
Modules which are listed as deprecated in the documentation of Python 2.6
should be avoided.
has_key() may only be used on TagSection objects.
|
|
|
|
|
|
|
|
A little bit adjusted to not remove the has_key() methods,
and to use has_key() where needed [the low-level part does
not have the needed functionality for 'key in mapping'].
|
|
|
|
|
|
This changes our style to match the Python documentation.
|
|
There is no description for MetaIndex yet, but this will be added soon.
|
|
Not documented: MetaIndex PackageIndexFile PkgManager PkgRecords PkgSourceList
PkgSrcRecords ProblemResolver TagFile TagSection (9)
|
|
Complete the documentation of pkgCache, pkgDepCache, pkgCache::Package.
Introduce new documentation for pkgCache::Version, pkgCache::Dependency,
pkgCache::PackageFile, pkgcache::Description.
There is also an example now which checks for missing dependencies.
|
|
|