aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* arghparse: fix handling with python 3.11.9Arthur Zamarin2024-04-081-1/+1
| | | | | | | | | | | | | | | In commit [0], the private function changes the tuple size it returns. By using `*_` in the middle, we can support both extracted versions (3 and 4) of the function. This investigation was done by ajak, thank you. [0] https://github.com/python/cpython/commit/c02b7ae4dd367444aa6822d5fb73b61e8f5a4ff9 Resolves: https://github.com/pkgcore/pkgcheck/issues/676 Resolves: https://github.com/pkgcore/pkgdev/issues/184 Investigated-by: John Helmert III <ajak@gentoo.org> Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* start work on 0.10.8Arthur Zamarin2024-01-261-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* fix(sphinx_ext): email is optional.Brian Harring2024-01-261-3/+13
| | | | | | | | | | | | | | | It's not obvious, but both name and email are optional for authors. NFC what one does with an author field lacking both, but that's for the PEP authors to resolve. We have authors in the pkgcore project that don't have email listed, which now breaks html generation. Thus this change. The only hanky point here is that if it's just email, we output that w/out the usual `<{email}>` brackets per standards. Signed-off-by: Brian Harring <ferringb@gmail.com> Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* reformat with black 24Arthur Zamarin2024-01-2610-19/+5
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* start work on 0.10.7Arthur Zamarin2024-01-181-1/+1
| | | | | | | This release might deprecate a lot of functionality which should be unused. Most likely next release would be 0.11.0 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* Add missing DirProxy/GetAttrProxy to klass.__all__Brian Harring2024-01-151-0/+2
| | | | | | | These are public symbols and were supposed to be marked as such. Signed-off-by: Brian Harring <ferringb@gmail.com>
* mappings: small refactorArthur Zamarin2023-08-301-9/+9
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* remove deprecated distutils_extensionsArthur Zamarin2023-03-241-1049/+0
| | | | | Resolves: https://github.com/pkgcore/snakeoil/issues/77 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* Reformat with black 23.1.0Arthur Zamarin2023-03-2414-37/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* start work on 0.10.6Arthur Zamarin2023-01-201-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* new release 0.10.5v0.10.5Arthur Zamarin2023-01-201-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* cli.arghparse: add missing comma in help metavar textArthur Zamarin2023-01-201-3/+2
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* formatters: add typing annotationsArthur Zamarin2023-01-171-15/+33
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* cli.arghparse: improve _format_args for DelayedArthur Zamarin2023-01-161-0/+2
| | | | | Resolves: https://github.com/pkgcore/pkgcheck/issues/520 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* fileutils: small cleanup and modernizationArthur Zamarin2022-12-312-24/+5
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* process.spawn: add type annotationsArthur Zamarin2022-12-312-43/+45
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* cli.arghparse: fix bind_final_checkArthur Zamarin2022-12-311-1/+1
| | | | | | Follows: 47d21307c44cad87641e20f50f57b3f5d218c0f4 Closes: https://github.com/pkgcore/pkgdev/issues/112 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* little modernization of snakeoil.cliArthur Zamarin2022-12-303-29/+26
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* fix after removal of osutils.native_readdir.listdirArthur Zamarin2022-12-251-5/+4
| | | | | Follows: 2e4f73760dcbf1fb15bea4c6a89e4a65012ef74d Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* remove osutils.native_readdir.listdirArthur Zamarin2022-12-252-3/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* remove proces.closerangeArthur Zamarin2022-12-252-6/+3
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* fix small boolean values typoArthur Zamarin2022-12-252-2/+4
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* Reformat w/ black 22.12.0 for consistency.Brian Harring2022-12-2551-1006/+1614
| | | | | Signed-off-by: Brian Harring <ferringb@gmail.com> Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* compression: prefer gtar over tar if availableSam James2022-12-221-1/+2
| | | | | | | | | | | Prefer 'gtar' over 'tar' if available, as we need GNU tar for --use-compress-program. With libarchive's tar, we get an 'unrecognized archive' error. Signed-off-by: Sam James <sam@gentoo.org> Closes: https://github.com/pkgcore/snakeoil/pull/93 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* generate_man_rsts: better formatting for optionsArthur Zamarin2022-12-091-0/+4
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* generate_man_rsts: improve sub sectioning for sub commandsArthur Zamarin2022-12-091-6/+6
| | | | | | Improve tree structure for sub commands. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* mark distutils_extensions as deprecatedArthur Zamarin2022-12-091-0/+3
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* Add constraint satisfaction problem solverArthur Zamarin2022-12-091-0/+198
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* start work on 0.10.4Arthur Zamarin2022-11-191-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* dist.sphinxext: new sphinx extensionArthur Zamarin2022-11-114-111/+132
| | | | | | | Small sphinx extension to generate docs from argparse scripts. Simplifies all `conf.py` across all pkgcore stack. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* start work on 0.10.3Arthur Zamarin2022-11-081-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* snakeoil/test/*.py: fix f-stringsArthur Zamarin2022-11-012-6/+6
| | | | | Fixes: 7aed9341485ee53c0784df9e2982338e1ec271f2 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* snakeoil.test.eq_hash_inheritance: fix pytest warningArthur Zamarin2022-11-011-1/+1
| | | | | | | | Usage of `setup` function is deprecated by pytest (was added as compatibility layer for nose). Fix the warning by using correct name - `setup_method`. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* compression: tidy up bzip2 docsSam James2022-10-101-3/+3
| | | | | | Signed-off-by: Sam James <sam@gentoo.org> Closes: https://github.com/pkgcore/snakeoil/pull/84 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* compression: add parallel xz supportSam James2022-10-102-8/+83
| | | | | | Closes: https://github.com/pkgcore/snakeoil/issues/83 Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* compression.__init__: add testsArthur Zamarin2022-10-102-30/+21
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* compression/_bzip2: add testsArthur Zamarin2022-10-103-12/+22
| | | | | | | Add tests for all modes used by compression._bzip2 to compress and decompress data. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* start work on v0.10.2Arthur Zamarin2022-09-301-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* new release 0.10.1v0.10.1Arthur Zamarin2022-09-301-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* refactor to use f-stringsArthur Zamarin2022-09-2610-36/+25
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* move `DemandLoadTargets` to testsArthur Zamarin2022-09-261-30/+0
| | | | | | | Used only in tests, which test `mixins.PythonNamespaceWalker`, meaning I can't just remove it. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* descriptors: remove unused `classproperty`Arthur Zamarin2022-09-251-34/+0
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* fileutils: remove unused `UnbufferedWriteHandle`Arthur Zamarin2022-09-241-17/+1
| | | | | | | Not used anywhere, without tests. If needed, use `io.TextIOWrapper` with `write_through=True` argument. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* fileutils: remove deprecated `write_file`Arthur Zamarin2022-09-242-17/+2
| | | | | | | | Last usage was removed, so we can remove the function as well. In most cases, like tests, you can use `Path.write_text` or `Path.write_bytes` instead. If not in tests, just use `open` and `write`. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* test/mixins: remove `mk_named_tempfile`Arthur Zamarin2022-09-241-9/+1
| | | | | | | Last usage was removed, so we can remove the function as well. For tests just use normal `tmp_path / [filename]` instead. Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* Revert "dist.distutils_extensions: fix _verinfo.py file"Arthur Zamarin2022-09-192-52/+45
| | | | | Revert: b4658d2ebfe9d929ba9cc93e84a93c0ac2d399c7 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* dist.distutils_extensions: fix _verinfo.py fileArthur Zamarin2022-09-191-1/+3
| | | | | Fixes: 40b46fc3cc8200727e9198b7ab179da21d28da67 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* version: refactor the codeArthur Zamarin2022-09-182-48/+53
| | | | | | | | - make it to use standard ISO 8601 dates - use namedtuple for easier usage of this type - use datetime objects for better handling of dates Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* version: fix env for traversalArthur Zamarin2022-09-181-1/+1
|
* version: better locale protection around running gitArthur Zamarin2022-09-181-1/+5
| | | | | Bug: https://bugs.gentoo.org/869878 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>