diff --git a/.github/workflows/issue_automation.yml b/.github/workflows/issue_automation.yml index 40a89ba60..3e5b9e016 100644 --- a/.github/workflows/issue_automation.yml +++ b/.github/workflows/issue_automation.yml @@ -109,6 +109,11 @@ jobs: issue_number: context.issue.number, }) const comment = comments.data.find(c => c.user.login === "github-actions[bot]" && c.body.includes(marker)); + if (comment) { + console.log("Found comment, id=" + comment.id); + } else { + console.log("No comment found"); + } if (!labels.includes("triage") || labels.includes("approved")) { console.log("Deleting comment if it exists..."); @@ -127,20 +132,20 @@ jobs: if (!found) { console.log("No bundle found, posting/updating reminder"); const text = REMINDER + "\n" + marker; - if (comment && comment.body !== text) { - await github.rest.issues.updateComment({ - owner: context.repo.owner, - repo: context.repo.repo, - comment_id: comment.id, - body: text - }); - } else { + if (!comment) { await github.rest.issues.createComment({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.issue.number, body: text }); + } else if (comment.body !== text) { + await github.rest.issues.updateComment({ + owner: context.repo.owner, + repo: context.repo.repo, + comment_id: comment.id, + body: text + }); } } else if (found && comment) { console.log("Bundle found, saying thanks"); diff --git a/.versioneer-lookup b/.versioneer-lookup index 3385166b9..10031a419 100644 --- a/.versioneer-lookup +++ b/.versioneer-lookup @@ -24,10 +24,10 @@ maintenance 1.7.0 07c4630d126617c2ae98a9c23ad49facf7bf0bbd pep440-dev fix/.* 1.7.0 07c4630d126617c2ae98a9c23ad49facf7bf0bbd pep440-dev improve/.* 1.7.0 07c4630d126617c2ae98a9c23ad49facf7bf0bbd pep440-dev -# staging/bugfix is the branch for preparation of the 1.7.2 bugfix release +# staging/bugfix is the branch for preparation of the 1.7.3 bugfix release # so are any bug/... branches -staging/bugfix 1.7.2 945825f03fbd2417a009dd33daf9f787aff60211 pep440-dev -bug/.* 1.7.2 945825f03fbd2417a009dd33daf9f787aff60211 pep440-dev +staging/bugfix 1.7.3 d60c5a631aedf2328e4492125d9b86f595e43d00 pep440-dev +bug/.* 1.7.3 d60c5a631aedf2328e4492125d9b86f595e43d00 pep440-dev # staging/maintenance is currently the branch for preparation of 1.7.0rc4 # so is regressionfix/... diff --git a/SUPPORTERS.md b/SUPPORTERS.md index 36ef22907..cb53fca62 100644 --- a/SUPPORTERS.md +++ b/SUPPORTERS.md @@ -14,9 +14,7 @@ thanks to everyone who contributed! * BigTreeTech * Boris Hussein * Brad Jackson - * BRANDON ROBERTSON * BuildBee - * Chris Lynch * Christian Petropolis * Christian Wolf * Christian Würthner @@ -25,6 +23,7 @@ thanks to everyone who contributed! * David Bounds * DeltaMaker 3D Printers * Dennis Breining + * Douglas Floyd * Dr. Frank Wester * Eric Betts * Ernesto Martinez @@ -33,6 +32,7 @@ thanks to everyone who contributed! * Greg Holloway * Hog Duske * Itay Shem-tov + * James Mackay * Jeff Moe * Jeremy Cole * Joshua Wills @@ -58,7 +58,6 @@ thanks to everyone who contributed! * Nat Friedman * Neil R. Goldberg * Norman Jaffe - * Ory Weaver * Peopoly * Pete Barnwell * Raise3D @@ -71,11 +70,14 @@ thanks to everyone who contributed! * Ronald Griehsler * Sebastien Andrivet * Stefan Krister + * Steve Dougherty * Steve Thompson * Sven Mueller * TH3D * The Spaghetti Detective + * TJ Horner * Ulderico Cirello * Ulrich Kempken + * Yehuda Katz -and 2247 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)! +and 2285 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)! diff --git a/docs/development/environment.rst b/docs/development/environment.rst index 144e37e71..b8d989ae3 100644 --- a/docs/development/environment.rst +++ b/docs/development/environment.rst @@ -180,7 +180,7 @@ Open the Git Bash you just installed and in that: cd /c/Devel git clone https://github.com/OctoPrint/OctoPrint.git cd OctoPrint - virtualenv --python=C:\Python3\python.exe venv3 + virtualenv --python=C:/Python3/python.exe venv3 source ./venv3/Scripts/activate pip install --upgrade pip python -m pip install -e '.[develop,plugins,docs]' @@ -207,7 +207,7 @@ Then: .. code-block:: none cd /c/Devel/OctoPrint - virtualenv --python=C:\Python27\python.exe venv2 + virtualenv --python=C:/Python27/python.exe venv2 source ./venv2/Scripts/activate python -m pip install --upgrade pip pip install -e '.[develop,plugins]' diff --git a/docs/features/accesscontrol.rst b/docs/features/accesscontrol.rst index 62a548768..1c3ee2583 100644 --- a/docs/features/accesscontrol.rst +++ b/docs/features/accesscontrol.rst @@ -184,6 +184,7 @@ further down there's also a dedicated list of steps for OctoPi specifically. autologinAs: "" localNetworks: - "127.0.0.0/8" + - "::1/128" - "" 4. Restart OctoPrint, check that everything works. diff --git a/docs/images/plugins_lifecycle.png b/docs/images/plugins_lifecycle.png deleted file mode 100644 index f0fe1e2d6..000000000 Binary files a/docs/images/plugins_lifecycle.png and /dev/null differ diff --git a/docs/images/plugins_lifecycle.svg b/docs/images/plugins_lifecycle.svg new file mode 100644 index 000000000..785e984e9 --- /dev/null +++ b/docs/images/plugins_lifecycle.svg @@ -0,0 +1,4 @@ + + + +
load
load
disabled
disabled
enabled
enabled
enable
enable
disable
disable
plugin_manager.plugins
plugin_manager.plugins
plugin.disable
deregister hooks
deregister implementation
plugin.implementation.on_plugin_disabled
plugin.disable...
plugin.enable
register hooks
register implementation
plugin.implementation.on_plugin_enabled

If/as soon as framework has started up:
inject dependencies into implementation
plugin.implementation.initialize

plugin.enable...
plugin.load
plugin.load
unload
unload
plugin.unload
plugin.unload
plugin_manager.enabled_plugins
plug...
plugin_manager.disabled_plugins
plug...
Viewer does not support full SVG 1.1
\ No newline at end of file diff --git a/docs/plugins/concepts.rst b/docs/plugins/concepts.rst index 5e1c624cf..add1acf03 100644 --- a/docs/plugins/concepts.rst +++ b/docs/plugins/concepts.rst @@ -39,6 +39,6 @@ Some plugin types require a reload of the frontend or a restart of OctoPrint for can recognize such plugins by their implementations implementing :class:`~octoprint.plugin.ReloadNeedingPlugin` or :class:`~octoprint.plugin.RestartNeedingPlugin` or providing handlers for one of the hooks marked correspondingly. -.. image:: ../images/plugins_lifecycle.png +.. image:: ../images/plugins_lifecycle.svg :align: center :alt: The lifecycle of OctoPrint plugins. diff --git a/setup.py b/setup.py index 6c0a87ded..737646345 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,6 @@ INSTALL_REQUIRES = [ # other observed problems "markupsafe>=1.1,<2.0", # Jinja dependency, newer versions require Python 3 "markdown>=3.1,<3.2", # newer versions require Python 3 - "regex!=2018.11.6", # avoid broken 2018.11.6. See #2874 "wrapt>=1.12.1,<1.13", # newer versions fail to build on OctoPi 0.15 # anything below this should be checked on releases for new versions "flask>=1.1.4,<2", # newer versions require Python 3 @@ -79,6 +78,7 @@ INSTALL_REQUIRES_PYTHON2 = [ "colorlog<5", # newer versions require Python 3 # vendor bundled dependencies "unidecode<1.3", # dependency of awesome-slugify, newer versions require Python 3 + "regex<2022.1.18", # dependency of awesome-slugify, newer versions require Python 3 ] # Python 3 specific requirements @@ -91,6 +91,7 @@ INSTALL_REQUIRES_PYTHON3 = [ "colorlog>=5.0.1,<6", # vendor bundled dependencies "unidecode", # dependency of awesome-slugify, leave w/o range to not cause dependency hell w/ Octolapse deps + "regex", # dependency of awesome-slugify ] # OSX specific requirements diff --git a/src/octoprint/plugin/core.py b/src/octoprint/plugin/core.py index f60908d31..a194e5b3b 100644 --- a/src/octoprint/plugin/core.py +++ b/src/octoprint/plugin/core.py @@ -850,11 +850,11 @@ class PluginManager(object): processed_blacklist = [] for entry in plugin_blacklist: - if isinstance(entry, tuple): + if isinstance(entry, (tuple, list)): key, version = entry try: processed_blacklist.append( - (key, pkg_resources.Requirement.parse(version)) + (key, pkg_resources.Requirement.parse(key + version)) ) except Exception: self.logger.warning( @@ -1340,7 +1340,7 @@ class PluginManager(object): return entry_key == key and version in entry_version return False - return any(map(lambda entry: matches_plugin(entry), self.plugin_blacklist)) + return any(map(matches_plugin, self.plugin_blacklist)) def reload_plugins( self, startup=False, initialize_implementations=True, force_reload=None diff --git a/src/octoprint/plugins/errortracking/__init__.py b/src/octoprint/plugins/errortracking/__init__.py index c4b4bd627..a165a7865 100644 --- a/src/octoprint/plugins/errortracking/__init__.py +++ b/src/octoprint/plugins/errortracking/__init__.py @@ -21,10 +21,10 @@ from octoprint.util.version import ( ) SENTRY_URL_SERVER = ( - "https://690e174698034bcc95928e6bfa8573f7@o118517.ingest.sentry.io/1373987" + "https://871751d3af18492bbfe9db952cb1929c@o118517.ingest.sentry.io/1373987" ) SENTRY_URL_COREUI = ( - "https://186f1dc5da7d46ab9d6b6de564d839bb@o118517.ingest.sentry.io/1374096" + "https://1c7e28064b0646c3aa109793a49eea81@o118517.ingest.sentry.io/1374096" ) SETTINGS_DEFAULTS = {