Snakeoil

Latest version: v0.10.9

Safety actively analyzes 681881 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 9 of 13

0.5.1

----------------------------

- Fix corner case exception in formatter extension, cleanup potential
NULL derefs.

- If hashlib has a whirlpool implementation, we use it and prefer it
over mhash or our fallback implementation; it's faster, drops the
GIL, and generally is the bees-knees.

- compatibility.raise_from no longer looses traceback information in
>py3k.

0.5

-------------------------

- lintplugins were updated to pylint 0.25.1 API; likely works with >=0.21.

- Added awareness of PEP3149 naming schemes to the namespace walkers.

- Fixed utime related race in 2to3 cacher; comes about due to python not
stamping the inode w/ the exact float given, represents via a particular
source file being converted a second time (typically breaking it); only
triggerable in local development, however it's annoying, thus sorted.

- Effective immediately, python2.4 is no longer supported. Last release
was in '08, so really, really don't care anymore.

- snakeoil.chksum grew whirlpool support, including native python fallback.

- snakeoil.chksum grew sha512 support.

- snakeoil.sphinx_utils was added w/ two reusable/importable scripts;

- generate_api_rsts.py: scans a given python namespace, generating properly
structured ReST docs. This is intended for better api doc generation than
what sphinx's autodoc tools currently provide.

- generate_news_rst.py: given a mostly ReST like NEWS/changelog file, this
can convert into into pages like
http://docs.snakeoil.googlecode.com/git/news.html . Given appropriate
args, it can bind in release urls, git shortlog urls, and generally make
it fairly pretty while useful.

- snakeoil.version is now reusable for other projects, and the _verinfo format
it uses has been converted to storing a dictionary (better deserialization
namely via having it as a dict).

- snakeoil.distutils_extensions:

- sphinx_build_doc now always returns
a class for usage, rather than None if sphinx wasn't available. Clients
should use this, and structure their deps appropriately to not execute
doc building unless desired (in which case it's better to have the command
throw an error, instead of having distutils state "no such command" for
a build_doc target for example).

- build and install now support generating _verinfo files automatically
from git, and installing them if the support is enabled.

- All bzr related code has been ripped out in full.

- Docstring work, and general doc's overhaul (including site updates).

- snakeoil.process now exposes functionality for finding the number of
actual HW cores, filtering out HT cpus. This is relevant since certain
operations (pbzip2 in particular) aren't any faster using HT- they just
consume more cpu.

- Api's have been shifting a bit; compatibility was left in place, but
large chunks of snakeoil.osutils and snakeoil.fileutils have moved to
the appropriate place.

- Compression framework was added; snakeoil.compression. Has built in
awareness of pbzip2, parallelization, and will use the most efficient
form it can to get things done (primarily threaded, but implemented
in a fashion where the GIL doesn't matter thus can easily hit multi
core).

- closerange compatibility method was added for <2.6; this method of
closing is far faster than normal "scan all fds", thus exposing it.

0.4.6

---------------------------

- for bash parsing, pass into shlex the file being read so that
relative source calls can find the file correctly. Issue 1.

- add currying.wrap_exception and currying.wrap_exception_complex

0.4.5

---------------------------

- Fix defaultdict in py2.4 to be compatible with >=py2.5 defaultdict.

- Fix WeakRefFinalizer so that instances that are still strongly referenced
at the time of sys.exit have their finalizers ran via atexit; specifically,
run the finalizers only for that pid.

0.4.4

---------------------------

- use sane permissions for directories created for tests.

- swallow ENOTDIR from readfiles and readlines if told to ignore
missing files.

0.4.3

---------------------------

- snakeoil.demandload is now threading aware, and no longer will complain
if threading leads to an accidental already-replaced placeholder access.

- snakeoil.osutils.read* moved to snakeoil.fileutils; compatibility
shim will be removed in 0.5.

- fileutils.write_file was added for quick one off writes.

- chksums generation now will parallelize where worthwhile. Since this is
python, GIL bouncing does occur, ultimately costing more total CPU for the
larger/more chksums. That said, it's overall faster going in parallel
(for 4 chksummers, it's about 75% faster; for 2, about 40% faster).

Again, note this is enabled by default. To disable, parallelize=False.

- added snakeoil.process for getting processor count

- don't install compatibility_py3k.py if we're targetting py2k; no need,
and it pisses off pyc generation.

Page 9 of 13

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.