| Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
collections.Mapping.
This works on Python 2.6 and newer and enhances the Record class with some new methods
on these platforms, e.g. keys().
|
|
This new property allows us to get the translated record. This was previously
done in 'summary', but because 'description' also uses translated descriptions,
the lookup has been moved in this property.
|
|
|
|
The function deprecated_args() is used in case a function name is kept, but
the function previously had parameters in mixedCase names.
|
|
A new module, apt.deprecation, is introduced containing functions and
classes which assist in the deprecation.
The apt_pkg extension gets a new attribute, _COMPAT_0_7 which can be set
by defining COMPAT_0_7 at compile time (-DCOMPAT_0_7).
The names are changed, and compatibility functions are enabled if
bool(apt_pkg._COMPAT_0_7) == True, i.e. if the package has been built with
backward compatibility fixes.
This commit changes the apt and aptsources packages, the apt_pkg and
apt_inst extensions will be the next renames.
|
|
- Support assignments to the 'candidate' property of Package objects.
- Initial patch by Sebastian Heinlein
|
|
This is the first initial port to Python 3. The API is almost completely
identical to the one found in Python 2, except that functions working with
binary data require bytes (md5sum,sha1sum,sha256sum,Base64Encode).
Using setup3.py to install the modules will not work, because the apt package
still has to be converted to Python 3. For the package, we call 2to3-3.1 in
debian/rules to do this automatically.
|
|
Only create Package objects when they are requested, do not keep them in
a dict. Saves 10MB for 25,000 packages on my machine.
The set holds the names of all packages which have at least one version,
and the WeakValueDictionary() holds weak references to created Package
objects.
This way accessing the same package two times should return the same object,
kept by the WeakValueDictionary().
|
|
|
|
Extended the documentation, renamed 'Coding for python-apt' to 'Contributing
to python-apt' and other stuff.
|
|
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.
|
|
None in the candidate property. (Closes: #523801)
|
|
one of the deprecated properties (e.g. candidateVersion) is
requested. (Closes: #523801)
|
|
|
|
This makes it easier to use e.g. pydoc,sphinx,pychecker, which use inspect the
classes and therefore also have to access the properties.
|
|
|
|
- debian/copyright: Switch to machine-interpretable copyright
- apt/*.py: Fix the copyright years and comments.
|
|
|
|
Also fix doc/examples/records.py to use Package.candidate.*
|
|
|
|
|
|
|
|
- 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)
|
|
ship glib
|
|
_depcache, _records, _list - they add up to ~10mb for the full cache on my test system and all information is available via Package._pcache
|
|
|
|
|
|
- when setting a alternative rootdir, read the
config from it as well
* python/configuration.cc, python/apt_pkgmodule.cc:
- add apt_pkg.ReadConfigDir()
|
|
|
|
|
|
|
|
- make sure to set the defaulttimeout back to the
original value (in getChangelog(), LP: #314212)
|
|
- when running with the rootdir option, run
InitConfig() again to ensure that the config
from the rootdir is read, not from the host
(lp: #243550)
|
|
This fixes some styling issues.
|
|
- remove the future warning
|
|
- fix bug in candidateInstalledSize property
* aptsources/distinfo.py:
- fix too restrictive mirror url check
* aptsources/distro.py:
- only add nearest_server and server to the mirrors if
they are defined
|
|
- Almost complete cleanup of the code
- Remove inconsistent use of tabs and spaces (Closes: #505443)
- Improved documentation
* apt/debfile.py:
- Drop get*() methods, as they are deprecated and were
never in a stable release
- Make DscSrcPackage working
* apt/gtk/widgets.py:
- Fix the code and document the signals
* Introduce new documentation build with Sphinx
- Contains style Guide (Closes: #481562)
- debian/rules: Build the documentation here
- setup.py: Remove pydoc building and add new docs.
- debian/examples: Include examples from documentation
- debian/python-apt.docs:
+ Change html/ to build/doc/html.
+ Add build/doc/text for the text-only documentation
* setup.py:
- Only create build/data when building, not all the time
- Remove build/mo and build/data on clean -a
* debian/control:
- Remove the Conflicts on python2.3-apt, python2.4-apt, as
they are only needed for oldstable (sarge)
- Build-Depend on python-sphinx (>= 0.5)
* aptsources/distinfo.py:
- Allow @ in mirror urls (Closes: #478171) (LP: #223097)
* Merge Ben Finney's whitespace changes (Closes: #481563)
* Merge Ben Finney's do not use has_key() (Closes: #481878)
* Do not use deprecated form of raise statement (Closes: #494259)
* Add support for PkgRecords.SHA256Hash (Closes: #456113)
|
|
In accordance with the latest change of the guidelines, mixedCase names
may not be used anymore for new modules.
|
|
|
|
|
|
|
|
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'].
|
|
|
|
|
|
Sphinx autodoc requires reStructuredText in docstrings, we format the
list of signals with light markup.
|