⬆️ Update 3rd party deps

This commit is contained in:
Gina Häußge committed 2019-11-20 15:30:36 +01:00
1 parent 1485050234
commit d8c3063813
10 files changed
+48 -37

No files matched your search

-1
View File
@@ -9,7 +9,6 @@ REST API
general.rst
version.rst
apps.rst
connection.rst
files.rst
job.rst
+1 -1
View File
@@ -196,7 +196,7 @@ Version checks
* ``checkout_folder``: (mandatory) The full path to the folder with a valid git
repository to check.
* ``pypi_release``: Checks `pypi.org`_ for new releases of a specified package.
* ``pypi_release``: Checks `pypi.org <https://pypi.org>`_ for new releases of a specified package.
* ``package``: (mandatory) Name of the package which to check.
+13 -4
View File
@@ -18,20 +18,29 @@ below.
* `Git <https://git-scm.com>`_
* Checkout the OctoPrint sources from their Git repository:
* ``git clone -b devel https://github.com/foosel/OctoPrint.git``
* Enter the checked out source folder: ``cd OctoPrint``
* Create virtual environments in the checked out source folder for both Python 2.7 and Python 3.7 to use for
installing and running OctoPrint and its dependencies (this avoids potential versioning issues for the dependencies
with system wide installed instances):
* PY2: ``virtualenv --python=python2 venv2``
* PY3: ``virtualenv --python=python3 venv3``
* PY2: ``virtualenv --python=python2 venv2``
* PY3: ``virtualenv --python=python3 venv3``
* Activate one of the virtual environments:
* PY2: ``source venv2/bin/activate`` (Linux, macOS) or ``source venv2/Scripts/activate`` (Git Bash under Windows, see below)
* PY3: ``source venv3/bin/activate`` (Linux, macOS) or ``source venv3/Scripts/activate`` (Git Bash under Windows, see below)
* PY2: ``source venv2/bin/activate`` (Linux, macOS) or ``source venv2/Scripts/activate`` (Git Bash under Windows, see below)
* PY3: ``source venv3/bin/activate`` (Linux, macOS) or ``source venv3/Scripts/activate`` (Git Bash under Windows, see below)
* Update ``pip`` in the virtual environment:
* ``pip install --upgrade pip``
* Install OctoPrint in `"editable" mode <https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs>`_,
including its regular *and* development and plugin development dependencies:
* ``pip install -e .[develop,plugins]``
When the virtual environment is activated you can then:
+1 -1
View File
@@ -686,7 +686,7 @@ SettingsUpdated
.. _sec-events-available_events-printer_profile:
Printer Profile
--------
---------------
PrinterProfileModified
A printer profile was modified.
+1 -1
View File
@@ -166,7 +166,7 @@ Now, the execution order of the ``on_after_startup`` method will be determined b
This will result in the following messages to be generated:
.. code-block:: plain
.. code-block:: none
Plugin B starting up
Plugin C starting up
+5 -6
View File
@@ -11,7 +11,7 @@ import requests
from contextlib import closing
from sphinx.directives.code import LiteralIncludeReader, LiteralInclude, dedent_lines, \
nodes, set_source_info, parselinenos, logger, container_wrapper
nodes, parselinenos, logger, container_wrapper
if False:
# For type annotation
@@ -39,11 +39,10 @@ class OnlineIncludeReader(LiteralIncludeReader):
return lines
except (IOError, OSError):
raise IOError(_('Include file %r not found or reading it failed') % filename)
raise IOError('Include file %r not found or reading it failed' % filename)
except UnicodeError:
raise UnicodeError(_('Encoding %r used for reading included file %r seems to '
'be wrong, try giving an :encoding: option') %
(self.encoding, filename))
raise UnicodeError('Encoding %r used for reading included file %r seems to '
'be wrong, try giving an :encoding: option' % (self.encoding, filename))
class OnlineIncludeDirective(LiteralInclude):
@@ -69,7 +68,7 @@ class OnlineIncludeDirective(LiteralInclude):
text, lines = reader.read(location=location)
retnode = nodes.literal_block(text, text, source=url)
set_source_info(self, retnode)
self.set_source_info(retnode)
if self.options.get('diff'): # if diff is set, set udiff
retnode['language'] = 'udiff'
elif 'language' in self.options:
+18 -18
View File
@@ -27,7 +27,7 @@ INSTALL_REQUIRES = [
# guarantee backwards compatibility for plugins and such with that
# version, hence we need to pin to a lower version for now. See #1697
"tornado==4.5.3", # a memory leak was observed in tornado >= 5, see #2585
"regex!=2018.11.6", # avoid broken 2018.11.6. See #2874
"regex!=2018.11.6", # avoid broken 2018.11.6. See #2874
# anything below this should be checked on releases for new versions
@@ -35,10 +35,10 @@ INSTALL_REQUIRES = [
"Flask-Principal>=0.4,<0.5",
"Flask-Babel>=0.12,<0.13",
"Flask-Assets>=0.12,<0.13",
"werkzeug>=0.15.1,<0.16",
"werkzeug>=0.16,<0.17",
"cachelib>=0.1,<0.2",
"PyYAML>=5.1,<6",
"markdown>=3.0,<3.1",
"markdown>=3.1,<3.2",
"pyserial>=3.4,<3.5",
"netaddr>=0.7.19,<0.8",
"watchdog>=0.9.0,<0.10",
@@ -47,33 +47,33 @@ INSTALL_REQUIRES = [
"pylru>=1.2,<1.3",
"rsa>=4.0,<5",
"pkginfo>=1.5.0.1,<1.6",
"requests>=2.21.0,<3",
"semantic_version>=2.6,<2.7",
"psutil>=5.6.1,<5.7",
"requests>=2.22.0,<3",
"semantic_version>=2.8,<2.9",
"psutil>=5.6.5,<5.7",
"Click>=7,<8",
"awesome-slugify>=1.6.5,<1.7",
"feedparser>=5.2.1,<5.3",
"future>=0.17,<0.18",
"future>=0.18.2,<0.19",
"websocket-client>=0.56,<0.57",
"wrapt>=1.11.1,<1.12",
"emoji>=0.5.1,<0.6",
"wrapt>=1.11.2,<1.12",
"emoji>=0.5.4,<0.6",
"frozendict>=1.2,<1.3",
"sentry-sdk==0.7.7",
"sentry-sdk==0.13.2",
"filetype>=1.0.5,<2"
]
# Python 2 specific requirements
INSTALL_REQUIRES_PYTHON2 = [
"futures>=3.2,<3.3",
"futures>=3.3,<3.4",
"monotonic>=1.5,<1.6",
"scandir>=1.10,<1.11",
"chainmap>=1.0.3,<1.1",
"typing>=3.6.6,<4"
"typing>=3.7.4.1,<4"
]
# OSX specific requirements
INSTALL_REQUIRES_OSX = [
"appdirs>=1.4.0",
"appdirs>=1.4.3",
]
# Additional requirements for optional install options
@@ -81,8 +81,8 @@ EXTRA_REQUIRES = dict(
# Dependencies for developing OctoPrint
develop=[
# Testing dependencies
"mock>=2.0.0,<3",
"pytest>=4.2.1,<5.0",
"mock>=3.0.5,<4",
"pytest==4.6.6",
"pytest-doctest-custom>=1.0.0,<1.1",
"ddt",
@@ -90,11 +90,11 @@ EXTRA_REQUIRES = dict(
"flake8",
# Documentation dependencies
"sphinx>=1.6,<1.7",
"sphinx>=1.8.5,<2",
"sphinxcontrib-httpdomain",
"sphinxcontrib-mermaid>=0.3",
"sphinxcontrib-mermaid>=0.3.1",
"sphinx_rtd_theme",
"readthedocs-sphinx-ext==0.5.7"
"readthedocs-sphinx-ext==1.0.1"
],
# Dependencies for developing OctoPrint plugins
@@ -866,7 +866,7 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
inapplicable_arguments = self.__class__.PIP_INAPPLICABLE_ARGUMENTS.get(args[0], list())
for inapplicable_argument in inapplicable_arguments:
additional_args = re.sub("(^|\s)" + re.escape(inapplicable_argument) + "\\b", "", additional_args)
additional_args = re.sub(r"(^|\s)" + re.escape(inapplicable_argument) + r"\\b", "", additional_args)
if additional_args:
args.append(additional_args)
+5 -1
View File
@@ -1541,7 +1541,11 @@ class CountedEvent(object):
class InvariantContainer(object):
def __init__(self, initial_data=None, guarantee_invariant=None):
from collections import Iterable
try:
from collections import Iterable
except ImportError:
# Python >= 3.8
from collections.abc import Iterable
from threading import RLock
if guarantee_invariant is None:
+3 -3
View File
@@ -1,12 +1,12 @@
[tox]
envlist = py27,py37,flake8
envlist = py27,py37,py38,flake8
[testenv]
passenv = APPDATA
setenv = PY_IGNORE_IMPORTMISMATCH = 1
deps =
mock>=2.0.0,<3
pytest>=4.2.1,<5.0
mock>=3.0.5,<4
pytest==4.6.6
pytest-doctest-custom>=1.0.0,<1.1
ddt
commands = pytest