Merge ppa-dev-tools:add_source_package_module into ppa-dev-tools:main
Status: | Merged |
---|---|
Merge reported by: | Bryce Harrington |
Merged at revision: | 95148554e9c5addd7385a4eb7fd16b1fd7d55b95 |
Proposed branch: | ppa-dev-tools:add_source_package_module |
Merge into: | ppa-dev-tools:main |
Diff against target: |
2401 lines (+2291/-13) 5 files modified
ppa/binary_package.py (+11/-13) ppa/source_package.py (+230/-0) tests/data/source/Release (+6/-0) tests/data/source/Sources (+1960/-0) tests/test_source_package.py (+84/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Athos Ribeiro (community) | Approve | ||
Canonical Server | Pending | ||
Canonical Server Reporter | Pending | ||
Review via email: mp+439886@code.staging.launchpad.net |
Description of the change
This is the follow-up to the BinaryPackage class. It's dealing with similar data, so the implementation is also quite similar.
As before, tests can be run via:
$ pytest-3 tests/test_
$ check-scripts ppa/source_
$ python3 -m ppa.source_package
Below is the output from these:
stirling: ~/src/PpaDevToo
=======
platform linux -- Python 3.10.6, pytest-6.2.5, py-1.10.0, pluggy-0.13.0 -- /usr/bin/python3
cachedir: .pytest_cache
rootdir: /home/bryce/
plugins: cov-3.0.0
collected 12 items
tests/test_
tests/test_
tests/test_
tests/test_
tests/test_
tests/test_
tests/test_
tests/test_
tests/test_
tests/test_
tests/test_
tests/test_
=======
stirling: ~/src/PpaDevToo
### python3 -m py_compile '/home/
### pyflakes3 '/home/
### flake8 '/home/
### pylint '/home/
-------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
### python3 -m py_compile '/home/
### pyflakes3 '/home/
### flake8 '/home/
### pylint '/home/
-------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)
stirling: ~/src/PpaDevToo
#######
## SourcePackage class smoke test ##
#######
Source Packages
---------------
aalib (1.4p5-50build1)
autopkgtest (5.25ubuntu4)
autotools-dev (20220109.1)
b43-fwcutter (1:019-8)
x-kit (0.5.0ubuntu6)
x11-apps (7.7+9)
x11-session-utils (7.7+5)
x11-utils (7.7+5build2)
x11-xkb-utils (7.7+7)
x11-xserver-utils (7.7+9build1)
...
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xserver-
xtrans (1.4.0-1)
xwayland (2:22.1.8-1)
zvmcloudconnector (2.0.0~
Details for "dovecot"
-------
* Object:
{ 'architecture': 'any',
'binary': 'dovecot-core, dovecot-dev, dovecot-imapd, dovecot-pop3d, '
'build_
'checksums_
'checksums_
'checksums_
'directory': 'pool/main/
'files': '\n'
' 146ac1a3b2a90d9
' f8c84c45b05352d
' c334e8ef30546af
' c3e7d443a8f4854
' ',
'format': '3.0 (quilt)',
'homepage': 'https:/
'maintainer': 'Ubuntu Developers <email address hidden>',
'original_
'package': 'dovecot',
'package_list': '\n'
'priority': 'optional',
'section': 'mail',
'standards_
'testsuite': 'autopkgtest',
'testsuite_
'uploaders': 'Jaldhar H. Vyas <email address hidden>, Jelmer Vernooij '
'vcs_browser': 'https:/
'vcs_git': 'https:/
'version': '1:2.3.
* Provides Binaries:
- dovecot-auth-lua
- dovecot-core
- dovecot-dev
- dovecot-gssapi
- dovecot-imapd
- dovecot-ldap
- dovecot-lmtpd
- dovecot-lucene
- dovecot-
- dovecot-mysql
- dovecot-pgsql
- dovecot-pop3d
- dovecot-sieve
- dovecot-solr
- dovecot-sqlite
- dovecot-submissiond
* Build Dependencies:
- debhelper-compat: (= 13)
- default-
- krb5-multidev:
- libapparmor-dev: [linux-any]
- libbz2-dev:
- libcap-dev: [linux-any]
- libclucene-dev:
- libdb-dev:
- libexpat-dev:
- libexttextcat-dev:
- libicu-dev:
- libldap2-dev:
- liblua5.3-dev:
- liblz4-dev:
- liblzma-dev:
- libpam0g-dev:
- libpq-dev:
- libsasl2-dev:
- libsodium-dev:
- libsqlite3-dev:
- libssl-dev:
- libstemmer-dev:
- libsystemd-dev: [linux-any]
- libunwind-dev: [amd64 arm64 armel armhf hppa i386 ia64 mips mips64 mips64el mipsel powerpc powerpcspe ppc64 ppc64el sh4]
- libwrap0-dev:
- libzstd-dev:
- lsb-release:
- pkg-config:
- zlib1g-dev:
There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.
Thanks Bryce!
I have a few comments inline, mostly regarding the usage of the internal class instance data structures.