Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: load deb822 sources; use add-apt-repository to add #137

Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
7472c51
feat: support deb822 style source specification
james-garner-canonical Nov 20, 2024
66f42cd
refactor: separate file reading and object updating from parsing lines
james-garner-canonical Nov 20, 2024
20b0f9e
refactor: preserve line nos when parsing deb822 lines into paragraphs
james-garner-canonical Nov 20, 2024
0e6c8b3
refactor: move turning numbered lines into options dict to helper
james-garner-canonical Nov 20, 2024
8dbd158
feat: support inline comments in deb822 source files
james-garner-canonical Nov 21, 2024
9d9c9fa
tests: add some unit tests for _iter_deb822_paragraphs
james-garner-canonical Nov 21, 2024
5a7c22e
fix: raise an InvalidSourceError on missing required deb822 keys
james-garner-canonical Nov 21, 2024
bf26ce0
tests: add some unit tests for _get_deb822_options
james-garner-canonical Nov 21, 2024
d43074b
fix: correctly handle newline terminated lines in paragraph iteration
james-garner-canonical Nov 21, 2024
484b106
tests: add some unit tests for _iter_deb822_paragraphs
james-garner-canonical Nov 21, 2024
86e78b5
tests: add some tests for _parse_deb822_lines
james-garner-canonical Nov 21, 2024
2dd9dcd
feat: add the number of errors to the debug output in load_deb822
james-garner-canonical Nov 21, 2024
6c39d86
tests: add some unit tests for load_deb822
james-garner-canonical Nov 21, 2024
246bd56
tests: add a unit test for initialiasing RepositoryMapping with deb822
james-garner-canonical Nov 21, 2024
8717652
style: tox -e fmt tests/unit/test_apt.py
james-garner-canonical Nov 21, 2024
9dfadc1
fix: correct docstring
james-garner-canonical Nov 21, 2024
c44a4a5
fix: python3.8 context managers and clean up linter directives
james-garner-canonical Nov 21, 2024
2df185e
feat: make DebianRepository aware of deb822 format for some operations
james-garner-canonical Nov 27, 2024
c963280
fix: remove extraneous information from docstring
james-garner-canonical Nov 27, 2024
7fa6295
feat: use apt-add-repository for RepositoryMapping.add
james-garner-canonical Nov 28, 2024
86ebdd1
refactor: logic and testing cleanup
james-garner-canonical Dec 1, 2024
c364111
style: type annotate integration test helper function
james-garner-canonical Dec 2, 2024
71c5f90
feat: support apt autoremove in remove_package
james-garner-canonical Dec 2, 2024
afc85b6
feat: debug useful information on error in apt.update
james-garner-canonical Dec 2, 2024
3b7872a
feat: log when writing to a sources file in from_repo_line
james-garner-canonical Dec 3, 2024
e24001a
feat: make the apt directories (private) attributes (for testing)
james-garner-canonical Dec 3, 2024
497bf0e
style: correct RepositoryMapping.__iter__ annotation and add FIXME
james-garner-canonical Dec 3, 2024
7c70fa8
feat: log the filename as well as the number of repos when parsing
james-garner-canonical Dec 3, 2024
10df1e8
feat: refactor RepositoryMapping.add to possible support remove as well
james-garner-canonical Dec 3, 2024
2b726c4
feat: allow _Deb822Stanza from an empty set of lines
james-garner-canonical Dec 3, 2024
9d3230a
tests: add unit tests that use files on disk
james-garner-canonical Dec 3, 2024
620cb15
tests: update integration tests
james-garner-canonical Dec 3, 2024
eafe869
feat: use sourceslist (one-per-line) format for add-apt-repository
james-garner-canonical Dec 3, 2024
2945765
feat: call _add_apt_repository in from_repo_line (don't reimplement l…
james-garner-canonical Dec 3, 2024
1232175
tests: re-enable package cleanup in integration tests
james-garner-canonical Dec 3, 2024
569c39e
tests: add test case from hardware-observer charm and cleanup keys
james-garner-canonical Dec 3, 2024
b081253
tests: refactor deb822 unit tests
james-garner-canonical Dec 3, 2024
da057f5
tests: iterate on deb822 tests
james-garner-canonical Dec 3, 2024
08aa90d
tests: fully refactor and expand deb822 unit tests
james-garner-canonical Dec 3, 2024
8008a97
style: make linting happy
james-garner-canonical Dec 4, 2024
58c61be
test: fix an erroneous assert in integration tests
james-garner-canonical Dec 4, 2024
89014aa
refactor: clean up diff, signatures, etc
james-garner-canonical Dec 4, 2024
d0674e9
refactor: move keys to files
james-garner-canonical Dec 4, 2024
3745426
fix: don't warn about key file on remove
james-garner-canonical Dec 4, 2024
865aad8
style: use tuple for endswith
james-garner-canonical Dec 4, 2024
b993c54
style: paragraph -> stanza, repositories -> repos
james-garner-canonical Dec 4, 2024
9ce3e48
test: switch from inkscape to terminator ppa for ci
james-garner-canonical Dec 4, 2024
2b7cb4e
test: switch from terminator to fish ppa for ci
james-garner-canonical Dec 5, 2024
709e2c7
chore: remove ValueError from RepositoryMapping.add
james-garner-canonical Dec 5, 2024
2820497
test: remove old tests from test_repo.py
james-garner-canonical Dec 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Loading