Staticjinja

Latest version: v5.0.0

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

Scan your dependencies

Page 1 of 4

5.0.0

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

Changed
^^^^^^^

* As previously deprecated:
Always resolve relative paths to CWD, not a python build script. This was
deprecated in https://github.com/staticjinja/staticjinja/issues/149

Removed
^^^^^^^

* Remove previously deprecated ``Site.get_dependencies()``.
Use ``Site.get_dependents()`` instead. See
https://github.com/staticjinja/staticjinja/commit/170b027a4fff86790bc69a1222d7b0a36c1080bc
* Removed previously deprecated ``logger`` argument to Site.__init__().
Use ``staticjinja.logger`` for the staticjinja-wide logger instead. See
https://github.com/staticjinja/staticjinja/issues/144
* Stop testing for Python 3.6. It still may work, just not officially supported.

Added
^^^^^

* Add testing for Python 3.10 and 3.11. See
https://github.com/staticjinja/staticjinja/pull/174

* Add type hints throughout the project. See
https://github.com/staticjinja/staticjinja/pull/175

4.1.3

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

Fixed
^^^^^

* Removed upper limits on dependencies. See
https://github.com/staticjinja/staticjinja/pull/171

4.1.2

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

Fixed
^^^^^

* Allow nested directories to be created. Thanks zakx! See
https://github.com/staticjinja/staticjinja/pull/167

4.1.1

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

Fixed
^^^^^

* Fix _ensure_dir() when a folder-less path is used

If a folder-less path, like "file.txt" is passed, then
`os.path.dirname(Path(path))` results in `""`, instead
of `"."`, like we want. This causes `mkdir()` to fail.
This fixes it, and adds a test for it. The test fails without the change.

Fixes https://github.com/staticjinja/staticjinja/issues/160

4.1.0

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

Added
^^^^^

* Allow jinja version 3.x.
See https://github.com/staticjinja/staticjinja/issues/158

4.0.0

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

Added
^^^^^

* ``--log`` argument to CLI to set log level.

Removed
^^^^^^^

* Removed ``logger`` argument to Site(). Use ``staticjinja.logger`` for the
staticjinja-wide logger instead. See
https://github.com/staticjinja/staticjinja/issues/144

* Removed ``Renderer`` class and ``make_renderer`` function. Remove the bare
``make_site`` function, use ``Site.make_site`` instead. All of this was deprecated 6
years ago, no one should still be using them.

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.