Python deb-pkg-tools 8.3

deb-pkg-tools is a Python module for managing Debian packages. It provides for inspecting, building, checking and signing packages, or managing repositories. deb-pkg-tools thereby bases its API on manual meta data parsing or wrapping calls to native tools, such as dpkg, dpkg-deb, lintian, apt-get, apt-ftparchiv, gzip, fakeroot, gpg, dpkg-scanpackages.

Tags python python-module dpkg debian-archive packaging
License MITL
State stable

Recent Releases

8.312 May 2020 15:45 minor feature: Slightly relax deb822 parsing (ignore comment blocks) . Increase deb822 parsing test coverage (inline comments). . Increase deb822 parsing test coverage (Unicode support). . Increase deb822 parsing test coverage (Unicode file support). . Improve deb822 parse errors (add filename and line number). . Release 8.3: Minor improvements to deb822 parsing.
8.202 May 2020 07:05 minor feature: Reproduce Python 2.7 incompatibility in test suite (textwrap.indent()) . Remove textwrap.indent() because it's not available on Python 2.7. . Release 8.2: Make deb822 module Python 2.7 compatible.
8.126 Apr 2020 03:45 minor feature: Ensure device nodes can be parsed from contents . Merge #22, add proper device type parsing and regression test. . broken attribute directives in docstrings (deb_pkg_tools.package.*). . Release 8.1: Device file type information parsing.
7.010 Feb 2020 06:45 minor feature: Change RTD URL . Properly document ALLOW_SUDO ( DPT_SUDO) option. . Properly document DIRECTORIES_TO_REMOVE constant. . Properly document FILES_TO_REMOVE constant. . Link to new documented constants. . Enable use of `...` role in documentation. . Properly document ALLOW_CHOWN ( DPT_CHOWN_FILES) option. . Properly document ALLOW_FAKEROOT_OR_SUDO option. . Properly document ALLOW_HARD_LINKS ( DPT_HARD_LINKS) option. . Link to PARSE_STRICT documentation in readme. . Properly document ALLOW_RESET_SETGID ( DPT_RESET_SETGID) option. . Properly document ROOT_USER/ROOT_GROUP options. . Properly document FORCE_ENTROPY option. . Simplify overview of environment variables. . Use new `...` role more consistently. . Properly document BINARY_PACKAGE_ARCHIVE_EXTENSIONS constant. . Properly document DEPENDENCY_FIELDS constant. . Make find_object_files() use exclude list. . Make update_conffiles() optional and add tests. . Start using __all__ to control what is exported. . some RST references. . Improve find_object_files() documentation. . Release 7.0: update_conffiles() is now optional. . Forgot to actually bump the version number .
6.106 Feb 2020 16:05 minor feature: Add license=MIT to setup.py . Bump copyright. . Use 'console' highlighting in readme. . Implemented feature request: Filename parsing fall back to package me . . Propagate cache from update_repository() to find_package_archives(). . Release 6.1: Filename parsing fall back to package metadata.
6.013 Sep 2019 12:45 minor feature:
5.218 Nov 2018 19:25 minor feature: Promote python-debian constraint to conditional dependency* . a silly typo in setup.py. . Release 5.2: Promote python-debian constraint to conditional dependency.
5.1.126 Oct 2018 06:05 minor feature: For logic behind GPGKey.existing_files property . Release 5.1.1: for GPGKey.existing_files logic.
4.501 Mar 2018 07:25 minor feature: Improve robustness of strip_object_files() . Don't run dpkg-shlibdeps when there are no object files. . Release 4.5: Improve robustness of `dpkg-shlibdeps' and `strip' integ .
4.325 Feb 2018 13:45 minor feature: Bump copyright . Include documentation in source distributions. . Restore Python 2.6 compatibility in test suite. . Make mandatory control field validation reusable. . Release 4.3: Make mandatory control field validation reusable.
4.001 Feb 2017 23:25 minor feature: Release 4.0: Support for architecture restriction parsing I'm bumping the major version number because 754debc removed the. Deb_pkg_tools. compat.total_ordering,utils.OrderedObject classes and. Internal methods like _key() so strictly speaking this breaks backwards. Compatibility, however both of these classes were part of miscellaneous. Scaffolding used by deb-pkg-tools but not an intentional part of the. Documented API, so I don't expect this to be particularly relevant. to most (if not all) users of deb-pkg-tools.
3.127 Jan 2017 10:45 minor feature: Suggest memcached in stdeb.cfg. Add support for ".udeb" micro packages. Add failing find_package_archives() test. failing find_package_archives() test. Add readme target to makefile. Release 3.1: Add support for *.udeb micro packages.
3.025 Nov 2016 17:05 minor feature: Remove SQLite text_factory confusion (it should just by `bytes'). Refactor makefile, setup script, etc. Don't unnecessarily garbage collect cache. Increase concurrency with SQLite Write-Ahead Log (WAL). Remove redundant :py: prefrom RST references. broken RST references logged by `sphinx-build -n'. deb_pkg_tools.utils.compact() ? humanfriendly.text.compact(). broken pretty printer test. Implement and enforce PEP-8 and PEP-257 compliance. Switch from SQLite to filesystem for package cache (to improve concur?. Python compatibility and PEP-8 warning. Document and optimize filesystem based package metadata cache. Add some concurrency to `deb-pkg-tools --collect'*. Re-implement garbage collection for filesystem based cache. for garbage collection when cache directory doesn't exist. Improvements to interactive package collection*. Enable manual garbage collection (deb-pkg-tools --garbage-collect). Update usage in readme. Improvements to makefile and Travis CI build configuration. Improvements to interactive package collection*. Increase test coverage (of concurrent collection). Increase test coverage. for obscure Python 2.6 compatibility *. Include command line interface in documentation. Release 3.0: Concurrent related package collection.
2.018 Nov 2016 10:05 minor feature: Stop using system wide temporary directory (concurrent builds!). Release 2.0: Stop using system wide temporary directory (concurrent b?.
1.32.201 May 2015 10:25 minor bugfix: Create another (currently failing) package promotion test. Proper related package archive collection is hard ?_?.
1.3224 Apr 2015 03:16 minor feature: Create collect_related_packages() test that fails in master ... :-). Improve implementation documentation of collect_related_packages().
1.3111 Apr 2015 11:45 minor cleanup: dpkg-scanpackages isn't used anymore, remove irrelevant references. Extract installed version discovery to re-usable function.
1.2530 Aug 2014 23:05 minor feature: Use high performance decorator to memoize overrides of Relationship.matches(). Exclude conflicting packages from all further processing as soon as they are found. Removed Version.hash(). Moved the dpkg comparison cache around.