Barnhunt

Latest version: v1.2.1rc3

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

Scan your dependencies

Page 1 of 7

1.2.1rc3

Bugs Fixed

- Fix crash when clone refers to a hidden layer.

Internal API changes

- `Inkscape.svg.ancestor_layers(elem)` now includes `elem` in the
returned results if `elem` is an Inkscape layer element.
Previously, the search for ancestor layers strated with `elem`'s
parent.

1.2.1rc2

New Features

- Provide access to RDF metadata in the SVG source in string
templates. E.g. the document description may be interpolated via
`{{ rdf['dc:description'] }}`.

Bugs Fixed

- Fix parsing of version strings reported by pre-release versions of
Inkscape.

1.2.1rc1

(There was no final release of 1.2.0. It is a long story. I mistakenly
committed a couple of files to LFS. To clear out LFS storage for a
GitHub repo, one has to [delete the whole repo](😬). As a result, the
workflow `$GITHUB_RUN_NUMBER` has reset. Thus a micro-version bump
is required to keep those PyOxidizer windows build version numbers —
`<major>.<minor>.<micro>.<run-number>` — monotonic.)

[delete the whole repo]: https://docs.github.com/en/repositories/working-with-files/managing-large-files/removing-files-from-git-large-file-storage#git-lfs-objects-in-your-repository

CLI Changes

- The `--inkscape-command`, `--processes` and `--shell-mode-inkscape`
options have been moved from the `barnhunt pdfs` subcommand to the
man `barnhunt` command group.

- And new `debug-info` subcommand has been added to display various
information about the installed version of the `barnhunt` command
and its execution environment.

- The `--dump-loaded-modules` option has been removed. The
functionality is still available by setting the
`$BARNHUNT_DUMP_LOADED_MODULES` environment variable to a non-empty
value.

Bugs Fixed

- Fixed exception in `barnhunt.cli.default_2up_output_file` during
shell-completion for `barnhunt 2up`.

1.2.0rc6

- Build an Windows executable and installer using [PyOxidizer]. The
.msi installer should be downloadable from the
[Releases](https://github.com/barnhunt/barnhunt/releases) page.

- Added a `--dump-loaded-modules` option which causes `barnhunt` to
write a list of all loaded modules the current working directory.
(This is a development tool, not generally useful to most users.)

- Hardwire the distribution version into `barnhunt.__version__` rather
than deducing it via `importlib.metadata`. This allows us to monkey
with the version we report from the PyOxidizer-built Windows
executable so that it indicates the MSI build version as well as
the distribution version.

- Convert package from setuptools to PDM.

[PyOxidizer]: https://pyoxidizer.readthedocs.io/en/stable/pyoxidizer.html

1.2.0rc5

Bugs Fixed

- When there was a visible “clone” (`<svg:use>` element) that
referenced a source on a hidden layer were being pruned from the SVG
before conversion to PDF. (When exporting an SVG, hidden layers are
omitted from the SVG — this speeds Inkscape up considerably when
there is a large amount of hidden content.) Now we detect hidden
layers that contain source material for clones, and retain them in
the SVG file.

- Add a cruft pattern to ignore “`Gtk-WARNING"`” messages that have
started appearing since I installed Inkscape from [Inkscape’s ppa][ppa].

- Fix tests to workaround segfault from pikepdf 7.0.0, 7.1.0, and 7.1.1.
(See [pikepdf/pikepdf452].)

[ppa]: https://inkscape.org/release/inkscape-1.2.2/gnulinux/ubuntu/ppa/dl/
[pikepdf/pikepdf452]: https://github.com/pikepdf/pikepdf/issues/452).

1.2.0rc4

Support python 3.11.

Bugs

- Shell-mode runner: fix readline/pexpect disagreement with respect to
horizontal scrolling of long lines. In some cases, when Inkscape is
compiled to use GNU readline, long input lines will be scrolled
horizontally (even when stdin is not a tty). This messes with
pexpect's head. We've now added some basic tests for this, and set
some environment variables to try to convince readline not to do the
scrolling.

Testing

- Test under python 3.11
- Fix tests for Windows environments where $APPDATA is not set
- Fix tests for error message changes in packaging>=22

Page 1 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.