snakeoil icon indicating copy to clipboard operation
snakeoil copied to clipboard

a python library that implements optimized versions of common functionality

Results 19 snakeoil issues
Sort by recently updated
recently updated
newest added

For snakeoil v10, I want to fully remove `distutils_extensions.py`, and just use some plain build back-end. Ideally I want to use `flit`, but I guess it is impossible to use...

This test fails in [CI](https://github.com/pkgcore/snakeoil/runs/6867053761), but passes locally. The failure in CI looks weird from output (an exception isn't of type BaseException, but it looks like it does).

Full log: [py38.log](https://github.com/pkgcore/snakeoil/files/4694882/py38.log) Apparently `socket.getfqdn()` != `socket.gethostname()` (the latter returns `host` as expected). According to [docs](https://docs.python.org/3/library/socket.html#socket.getfqdn), it's trying to do some resolver magic, so it might be that. ``` ===================================...

I'm going to guess that the underlying file system has second precision. ``` ________________________________________________________ TestTouch.test_set_custom_nstimes ________________________________________________________ self = def test_set_custom_nstimes(self): fileutils.touch(self.path) orig_stat = os.stat(self.path) ns = (1, 1) fileutils.touch(self.path, ns=ns)...

For example, `pinspect profile` should have its own man page outside of pinspect in order to make the formatting of the pinspect page more sane. We probably should default to...

enhancement

Long story short, pkgcore right now kinda pushes output through two separate pipesets. The 'Python part' of the output goes through formatters, while the 'bash part' (and other subprocesses) output...

The module [snakeoil.tar](https://github.com/pkgcore/snakeoil/blob/08d724940a92c06e183d112a0377ef32c911a7c3/src/snakeoil/tar.py) was created to basically clone python's tarfile logic while monkeypatching `__slots__` into the clone; that slots usage knocked >33% of memory usage off for any tar interaction,...

See https://github.com/pkgcore/snakeoil/blob/266d2c7b8b975ccc6361eb47bcab7e73b578a1f6/src/snakeoil/compression/_bzip2.py#L41-L49 Note that upon module import it detects lbzip2 and the code uses it from that point forward. This will break if someone does something like merging bzip2 and...

bug

An equal sign is required before the argument's value. For example, `pkgcheck scan --help` says: ``` -c CHECK[,-CHECK,+CHECK,...], --checks CHECK[,-CHECK,+CHECK,...] limit checks to run ``` but ```bash pkgcheck scan --checks...