Skip to content

Releases: ashleysommer/sanic-plugin-toolkit

2022-01-04 - v1.2.1- Small bug fixes

04 Jan 14:43
Compare
Choose a tag to compare

1.2.1

  • Misc bugfixes for Sanic v21.3, and v21.9
  • Fix plugins with static dirs, on sanic v21.9
  • Explicit non-compatibility with Sanic v21.12+

2021-08-21 - v1.1.0 - Compat with Sanic v21.6+

31 Aug 01:20
Compare
Choose a tag to compare
  • Fix bugs when using SPTK on Sanic v21.6+
  • Fixed project name in pyproject.toml
  • Updated to latest poetry, poetry-core, and black
  • Fixed some bad typos in the Makefile

v1.0.1

13 Apr 07:20
Compare
Choose a tag to compare
  • Suppress deprecation warnings when injecting SPTK into Sanic App or Sanic Blueprint
  • Utilize the app.ctx (and bp.ctx) Namespace in Sanic 21.3+ instead of using the sanic config dict

Everything Starts With One

21 Mar 14:43
Compare
Choose a tag to compare

Name change. Sanic Plugins Framework is now Sanic Plugin Toolkit.

  • New package name on PyPI.
  • Merge Modernisation Branch
  • Project is now PEP517/Poetry based
  • Final changes for compatibility with new Sanic 21.3.0 release.
  • Some fixes to blueprint names
  • Fix for urlfor on blueprint
  • Drop python 3.6 support

** Version 1.0 works only on Sanic v21.3+ **

** If you need support for Sanic v20.12 or earlier, please use SPF v0.9.5 **

0.9.4.post2

21 Mar 14:42
Compare
Choose a tag to compare

Pinned this series of SPF to maximum Sanic v20.12.x, this series will not work on Sanic 21.x
- A new version of SanicPluginsFramework is in development that will work on Sanic 21.x
- It will have a new module name to avoid the conflict with the other spf library on Pip.
- It will be a PEP 517/518 project, with pyproject.toml and Poetry orchestration.
- New features in Sanic 21.x will necessitate some big changes in SanicPluginsFramework (this is a good thing!)

0.9.4.post1

19 Jan 00:31
Compare
Choose a tag to compare

Add setuptools as a specific requirement to this project.
- It is needed for the entrypoints-based plugin auto-discovery feature
- setuptools is not always included in a python distribution, so we cannot assume it will be there
- Pinned to >40.0 for now, but will likely change when we migrate to a Poetry/PEP517-based project

0.9.4

19 Jan 00:31
Compare
Choose a tag to compare

If the Sanic server emits a "before_server_start" event, use this to initialize SPF, instead of the "after_server_start" event.
- This solves a potential race-condition introduced in SPF v0.8.2, when this was reversed.
Changed the RuntimeError thrown in that circumstance to a Sanic ServerError
- This may make the error easier to catch and filter. Also may change what the end-user sees when this occurs.

Bugfix release

08 Jan 13:20
Compare
Choose a tag to compare
  • Explicitly set max Sanic version supported to 19.6.3

  • This is the last SPF version to support Sanic v0.8.3

    • (please update to 18.12 or greater if you are still on 0.8.3)

0.6.3.dev

17 Jul 22:13
Compare
Choose a tag to compare

Added listener capabilities and listener decorator to contextualize plugin,
added a new example for using sqlalchemy with contextualize plugin
Minor formatting and comment fixes

0.6.2 Now with Contextualize Plugin included

17 Jun 11:19
Compare
Choose a tag to compare

SanicPluginsFramework now comes with its own built-in plugin (one of possibly more to come)

The Contextualize plugin offers the shared context and enhanced middleware functions of SanicPluginsFramework, to regular Sanic users.
You no longer need to be writing a plugin in order to access features provided by SPF.

See the contextualize_example.py file to see how to use it!