From ba797fe1cc951db01bdd83b2543014e3ff9a7077 Mon Sep 17 00:00:00 2001 From: Aline Abler Date: Mon, 20 Jan 2020 11:19:30 +0100 Subject: [PATCH] Try straightforward python3 compatibility options --- octoprint_mystromswitch/__init__.py | 1 + setup.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/octoprint_mystromswitch/__init__.py b/octoprint_mystromswitch/__init__.py index 04492c9..5c64c16 100644 --- a/octoprint_mystromswitch/__init__.py +++ b/octoprint_mystromswitch/__init__.py @@ -245,6 +245,7 @@ class MyStromSwitchPlugin(octoprint.plugin.SettingsPlugin, __plugin_name__ = "MyStrom Switch" +__plugin_pythoncompat__ = ">=2.7,<4" def __plugin_load__(): diff --git a/setup.py b/setup.py index 4901dbb..3cfe8db 100644 --- a/setup.py +++ b/setup.py @@ -57,7 +57,9 @@ plugin_ignored_packages = [] # Example: # plugin_requires = ["someDependency==dev"] # additional_setup_parameters = {"dependency_links": ["https://github.com/someUser/someRepo/archive/master.zip#egg=someDependency-dev"]} -additional_setup_parameters = {} +additional_setup_parameters = { + "use_2to3": True, +} ########################################################################################################################