Skip to content

Get rid of some deprecations - #373

Open
jacopotediosi wants to merge 2 commits into
OctoPrint:masterfrom
jacopotediosi:get-rid-of-deprecations
Open

Get rid of some deprecations#373
jacopotediosi wants to merge 2 commits into
OctoPrint:masterfrom
jacopotediosi:get-rid-of-deprecations

Conversation

@jacopotediosi

@jacopotediosi jacopotediosi commented Apr 30, 2026

Copy link
Copy Markdown
Member

Hi, I'm an active contributor to OctoPrint core. I helped ship OctoPrint 2.0.0rc1 and I'm now helping plugins stay compatible with the new and upcoming OctoPrint releases, which is why you're receiving this PR.


This PR fixes the use of some deprecations that were causing warnings in OctoPrint's logs.

In particular:

  • Migrated the installation method to pyproject (ref). This was done via the octoprint dev plugin:migrate-to-pyproject command, with minor manual adjustments to the generated files.
  • Enabled TemplatePlugin autoescape (ref) and added the |safe filter to templates that injected HTML code inside Jinja variables.

I tested the installation on both OctoPrint 2.0.0rc1 and the latest stable release 1.11.7 and didn't notice any significant issues.

@jacopotediosi

Copy link
Copy Markdown
Member Author

@benlye When you have time, could you please take a look at this one?

1 similar comment
@jacopotediosi

Copy link
Copy Markdown
Member Author

@benlye When you have time, could you please take a look at this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant