in_source_id
stringlengths
13
58
issue
stringlengths
3
241k
before_files
listlengths
0
3
after_files
listlengths
0
3
pr_diff
stringlengths
109
107M
angr__angr-1669
angr should not require futures In [setup.py](https://github.com/angr/angr/blob/c2cf015f78bd060b263e80627f5962b3062e0ea7/setup.py#L145), a dependency on [futures](https://pypi.org/project/futures/) is declared. However, `futures` is a backport to Python2 of the `concurrent.futures` standard library module available in Python3. The only occurrences of `futures` at this point are in [exploration_techniques/threading.py](https://github.com/angr/angr/blob/8edb29f5f885f029d2e97fba470063c3d78f7832/angr/exploration_techniques/threading.py). (Maybe) Relates to #1277 .
[ { "content": "# pylint: disable=no-name-in-module,import-error,unused-variable\nimport os\nimport sys\nimport subprocess\nimport pkg_resources\nimport shutil\nimport platform\nimport glob\n\nif bytes is str:\n raise Exception(\"\"\"\n\n=-=-=-=-=-=-=-=-=-=-=-=-= WELCOME TO THE FUTURE! =-=-=-=-=-=-=-=-=-=-=-...
[ { "content": "# pylint: disable=no-name-in-module,import-error,unused-variable\nimport os\nimport sys\nimport subprocess\nimport pkg_resources\nimport shutil\nimport platform\nimport glob\n\nif bytes is str:\n raise Exception(\"\"\"\n\n=-=-=-=-=-=-=-=-=-=-=-=-= WELCOME TO THE FUTURE! =-=-=-=-=-=-=-=-=-=-=-...
diff --git a/setup.py b/setup.py index 67ee6acfdc5..6db63516e05 100644 --- a/setup.py +++ b/setup.py @@ -142,7 +142,6 @@ def run(self, *args): 'capstone>=3.0.5rc2', 'cooldict', 'dpkt', - 'futures; python_version == "2.7"', 'mulpyplexer', 'networkx>=2.0', 'progressbar',
django-hijack__django-hijack-693
Missing staticfiles manifest entry for 'hijack/hijack.js' When trying to access the User Admin, the `hijack.js` file fails to load when DEBUG is enabled. Under production settings with a manifest based staticfiles storage, it results in an exception. ``` Missing staticfiles manifest entry for 'hijack/hijack.js' ``` This is possibly the culprit: https://github.com/django-hijack/django-hijack/blob/3966f3758fbe5490c79957ca3b15b81e300616c0/hijack/contrib/admin/admin.py#L19 Shouldn't it be `.mjs` instead?
[ { "content": "import django\nfrom django import forms\nfrom django.shortcuts import resolve_url\nfrom django.template.loader import render_to_string\nfrom django.utils.translation import gettext_lazy as _\n\nfrom hijack.conf import settings\nfrom hijack.forms import ESM\n\n\nclass HijackUserAdminMixin:\n \"\...
[ { "content": "import django\nfrom django import forms\nfrom django.shortcuts import resolve_url\nfrom django.template.loader import render_to_string\nfrom django.utils.translation import gettext_lazy as _\n\nfrom hijack.conf import settings\nfrom hijack.forms import ESM\n\n\nclass HijackUserAdminMixin:\n \"\...
diff --git a/hijack/contrib/admin/admin.py b/hijack/contrib/admin/admin.py index e51622f6..27d4c148 100644 --- a/hijack/contrib/admin/admin.py +++ b/hijack/contrib/admin/admin.py @@ -16,7 +16,7 @@ class HijackUserAdminMixin: @property def media(self): - return super().media + forms.Media(js=[ESM("hijack/hijack.js")]) + return super().media + forms.Media(js=[ESM("hijack/hijack.mjs")]) def get_hijack_user(self, obj): """
archlinux__archinstall-504
Incorrect line ending after "progressbar" finishes I thought this would be handled in: https://github.com/archlinux/archinstall/blob/54a693be4fa2fbce83fd894b5ac3b0909f3a1e10/archinstall/lib/general.py#L157-L161 ![2021-05-21-093818_1024x795_scrot](https://user-images.githubusercontent.com/861439/119100996-cc082780-ba18-11eb-844d-aafd34ea583c.png)
[ { "content": "import hashlib\nimport json\nimport logging\nimport os\nimport pty\nimport shlex\nimport subprocess\nimport sys\nimport time\nfrom datetime import datetime, date\nfrom select import epoll, EPOLLIN, EPOLLHUP\nfrom typing import Union\n\nfrom .exceptions import *\nfrom .output import log\n\n\ndef ge...
[ { "content": "import hashlib\nimport json\nimport logging\nimport os\nimport pty\nimport shlex\nimport subprocess\nimport sys\nimport time\nfrom datetime import datetime, date\nfrom select import epoll, EPOLLIN, EPOLLHUP\nfrom typing import Union\n\nfrom .exceptions import *\nfrom .output import log\n\n\ndef ge...
diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py index 249c789071..3b62c891a8 100644 --- a/archinstall/lib/general.py +++ b/archinstall/lib/general.py @@ -333,6 +333,10 @@ def create_session(self): while self.session.ended is None: self.session.poll() + if self.peak_output: + sys.stdout.write('\n') + sys.stdout.flush() + except SysCallError: return False
plone__Products.CMFPlone-3404
Expose the human_readable_size helper in the @@plone view The [@@plone view](https://github.com/plone/Products.CMFPlone/blob/009f785e450430ee7b143624480aef9268491c0b/Products/CMFPlone/browser/ploneview.py#L19) has helper methods that can be used in templates. It would be handy to add the [Products.CMFPlone.utils.human_readable_size](https://github.com/plone/Products.CMFPlone/blob/009f785e450430ee7b143624480aef9268491c0b/Products/CMFPlone/utils.py#L855-L876) function as a method of that view.
[ { "content": "from Acquisition import aq_inner\nfrom plone.memoize.view import memoize\nfrom Products.CMFCore.utils import getToolByName\nfrom Products.CMFPlone import utils\nfrom Products.CMFPlone.browser.interfaces import IPlone\nfrom Products.Five import BrowserView\nfrom zope.component import getMultiAdapte...
[ { "content": "from Acquisition import aq_inner\nfrom plone.memoize.view import memoize\nfrom Products.CMFCore.utils import getToolByName\nfrom Products.CMFPlone import utils\nfrom Products.CMFPlone.browser.interfaces import IPlone\nfrom Products.Five import BrowserView\nfrom zope.component import getMultiAdapte...
diff --git a/Products/CMFPlone/browser/ploneview.py b/Products/CMFPlone/browser/ploneview.py index 7bae74eb74..c9735e95c8 100644 --- a/Products/CMFPlone/browser/ploneview.py +++ b/Products/CMFPlone/browser/ploneview.py @@ -211,3 +211,7 @@ def patterns_settings(self): return getMultiAdapter( (context, self.request), name='plone_patterns_settings')() + + @property + def human_readable_size(self): + return utils.human_readable_size diff --git a/Products/CMFPlone/tests/testPloneView.py b/Products/CMFPlone/tests/testPloneView.py index 4f68681a98..5efdcc84bd 100644 --- a/Products/CMFPlone/tests/testPloneView.py +++ b/Products/CMFPlone/tests/testPloneView.py @@ -151,3 +151,8 @@ def testCropText(self): def testSiteEncoding(self): view = Plone(self.portal, self.app.REQUEST) self.assertEqual('utf-8', view.site_encoding()) + + def test_human_readable_size(self): + view = Plone(self.portal, self.app.REQUEST) + from Products.CMFPlone.utils import human_readable_size + self.assertIs(view.human_readable_size, human_readable_size) diff --git a/news/3146.feature b/news/3146.feature new file mode 100644 index 0000000000..49a34411e5 --- /dev/null +++ b/news/3146.feature @@ -0,0 +1,2 @@ +The @@plone view exposes the human_readable_size helper +[ale-rt]
gammapy__gammapy-3719
FitResult print output is confusing A `print(fit_result)` displays both the `covariance_result` and the `optimize_result` as `OptimizeResult`, eg: see cell 19 https://docs.gammapy.org/dev/tutorials/starting/analysis_2.html#Fit-the-model Reminder issue to fix it during the sprint week
[ { "content": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\nimport itertools\nimport logging\nimport numpy as np\nfrom gammapy.utils.pbar import progress_bar\nfrom gammapy.utils.table import table_from_row_data\nfrom .covariance import Covariance\nfrom .iminuit import (\n confidence_iminui...
[ { "content": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\nimport itertools\nimport logging\nimport numpy as np\nfrom gammapy.utils.pbar import progress_bar\nfrom gammapy.utils.table import table_from_row_data\nfrom .covariance import Covariance\nfrom .iminuit import (\n confidence_iminui...
diff --git a/gammapy/modeling/fit.py b/gammapy/modeling/fit.py index 76900466f9..1e4f4b89ca 100644 --- a/gammapy/modeling/fit.py +++ b/gammapy/modeling/fit.py @@ -635,7 +635,7 @@ def optimize_result(self): @property def covariance_result(self): """Optimize result""" - return self._optimize_result + return self._covariance_result def __repr__(self): str_ = "" diff --git a/gammapy/modeling/tests/test_fit.py b/gammapy/modeling/tests/test_fit.py index 59bd504688..0f63fd640d 100644 --- a/gammapy/modeling/tests/test_fit.py +++ b/gammapy/modeling/tests/test_fit.py @@ -95,6 +95,8 @@ def test_run(backend): assert result.success assert result.optimize_result.method == "migrad" + assert result.covariance_result.method == "hesse" + assert result.covariance_result.success == True assert_allclose(pars["x"].value, 2, rtol=1e-3) assert_allclose(pars["y"].value, 3e2, rtol=1e-3)
aio-libs__aiohttp-6924
ClientSession.timeout has an incorrect typing ### Describe the bug The `aiohttp.ClientSession.timeout` attribute has a type of `Union[object, aiohttp.ClientTimeout]`, however the code logic will never actually assign a bare `object` type to the `self._timeout` attribute, making this typing quite over-inclusive. Trying to use this attribute in typed code results in having to use `cast(aiohttp.ClientTimeout, session.timeout)`, which is far from ideal considering one can just fix the typing in the library. I ran into this while using Python 3.8.10, but the exact same explanation above applies to the current master branch (and the version I'm using of course), as shown by the snippets below. 3.8 branch `__init__` parameter: https://github.com/aio-libs/aiohttp/blob/6243204a6a6a0e5ff84ac754218381b44a841e72/aiohttp/client.py#L217 3.8 branch `self._timeout` assignment: https://github.com/aio-libs/aiohttp/blob/6243204a6a6a0e5ff84ac754218381b44a841e72/aiohttp/client.py#L261-L290 Note the `# type: ignore` comment on `L278` there - it's because the `timeout is sentinel` check does not narrow down the `timeout` type. The correct way to go about this would be to use a `cast` there instead of ignoring the issue like that. 3.8 branch `timeout` attribute declaration: https://github.com/aio-libs/aiohttp/blob/6243204a6a6a0e5ff84ac754218381b44a841e72/aiohttp/client.py#L1029-L1032 Master branch `__init__` parameter: https://github.com/aio-libs/aiohttp/blob/52fa599c5637dd1a38761afb6829b0439b1cf505/aiohttp/client.py#L215 Master branch `self._timeout` assignment: https://github.com/aio-libs/aiohttp/blob/52fa599c5637dd1a38761afb6829b0439b1cf505/aiohttp/client.py#L260-L263 Due to a different handling of the `sentinel` value via an `Enum` member, no `cast` is needed here. Master branch `timeout` attribute declaration: https://github.com/aio-libs/aiohttp/blob/52fa599c5637dd1a38761afb6829b0439b1cf505/aiohttp/client.py#L1008-L1011 The attribute type is still over-inclusive here though. The solution would be quite simple: ```py @property def timeout(self) -> ClientTimeout: """Timeout for the session.""" return self._timeout ```` Please let me know if you'd welcome a PR for this. I'd like to get this backported back to 3.8 (that I'm using) if possible, but if not, just fixing it in the master branch so that it's correct going forward would be good enough for me. ### To Reproduce Utilize some kind of a type checker like MyPy. ```py import asyncio import aiohttp async def main: session = aiohttp.ClientSession(timeout=aiohttp.ClientTimeout(total=10)) # read back the total time attribute total_time = session.timeout.total # "object" type of "Union[object, ClientTimeout]" has no attribute "total" print(total_time) asyncio.run(main()) ``` ### Expected behavior The attribute having only the `aiohttp.ClientTimeout` type and not requiring `cast` usage when accessing the attribute during library usage in user code. ### Logs/tracebacks ```python-traceback Not applicable ``` ### Python Version ```console Python 3.8.10 ``` ### aiohttp Version ```console Version: 3.8.1 ``` ### multidict Version ```console Version: 6.0.2 ``` ### yarl Version ```console Version: 1.7.2 ``` ### OS Windows ### Related component Client ### Additional context Related issues and PRs: #4191 #4193 ### Code of Conduct - [X] I agree to follow the aio-libs Code of Conduct
[ { "content": "\"\"\"HTTP Client for asyncio.\"\"\"\n\nimport asyncio\nimport base64\nimport hashlib\nimport json\nimport os\nimport sys\nimport traceback\nimport warnings\nfrom contextlib import suppress\nfrom types import SimpleNamespace, TracebackType\nfrom typing import (\n Any,\n Awaitable,\n Calla...
[ { "content": "\"\"\"HTTP Client for asyncio.\"\"\"\n\nimport asyncio\nimport base64\nimport hashlib\nimport json\nimport os\nimport sys\nimport traceback\nimport warnings\nfrom contextlib import suppress\nfrom types import SimpleNamespace, TracebackType\nfrom typing import (\n Any,\n Awaitable,\n Calla...
diff --git a/CHANGES/6917.bugfix b/CHANGES/6917.bugfix new file mode 100644 index 00000000000..468e21a2b0f --- /dev/null +++ b/CHANGES/6917.bugfix @@ -0,0 +1,3 @@ +Dropped the :class:`object` type possibility from +the :py:attr:`aiohttp.ClientSession.timeout` +property return type declaration. diff --git a/CHANGES/6917.doc b/CHANGES/6917.doc new file mode 120000 index 00000000000..b8eddb8d6dc --- /dev/null +++ b/CHANGES/6917.doc @@ -0,0 +1 @@ +6917.bugfix \ No newline at end of file diff --git a/CHANGES/6923.bugfix b/CHANGES/6923.bugfix new file mode 120000 index 00000000000..b8eddb8d6dc --- /dev/null +++ b/CHANGES/6923.bugfix @@ -0,0 +1 @@ +6917.bugfix \ No newline at end of file diff --git a/CHANGES/6923.doc b/CHANGES/6923.doc new file mode 120000 index 00000000000..c05397962f9 --- /dev/null +++ b/CHANGES/6923.doc @@ -0,0 +1 @@ +6917.doc \ No newline at end of file diff --git a/aiohttp/client.py b/aiohttp/client.py index 3746d6d81e4..c555a64808b 100644 --- a/aiohttp/client.py +++ b/aiohttp/client.py @@ -1044,7 +1044,7 @@ def loop(self) -> asyncio.AbstractEventLoop: return self._loop @property - def timeout(self) -> Union[object, ClientTimeout]: + def timeout(self) -> ClientTimeout: """Timeout for the session.""" return self._timeout
mathesar-foundation__mathesar-341
Individually run API tests don't build tables database ## Description Running a individual test in `mathesar` that doesn't use the `engine` or `test_db` fixture will not have the tables databases built for the test. As a result, many will error when trying to access the tables database. ## Expected behavior The tables database should always be built. ## To Reproduce Run any test in `mathesar` that doesn't use `engine` or `test_db`. Ex: ``` docker exec mathesar_web_1 pytest mathesar/tests/views/api/test_schema_api.py::test_schema_update ``` ## Additional context Introduced due to the changes in #329, since `pytest-django` no longer creates the tables db for us.
[ { "content": "\"\"\"\nThis file should provide utilities for setting up test DBs and the like. It's\nintended to be the containment zone for anything specific about the testing\nenvironment (e.g., the login info for the Postgres instance for testing)\n\"\"\"\nimport pytest\nfrom sqlalchemy import create_engine...
[ { "content": "\"\"\"\nThis file should provide utilities for setting up test DBs and the like. It's\nintended to be the containment zone for anything specific about the testing\nenvironment (e.g., the login info for the Postgres instance for testing)\n\"\"\"\nimport pytest\nfrom sqlalchemy import create_engine...
diff --git a/conftest.py b/conftest.py index 577e099be2..79447b14a7 100644 --- a/conftest.py +++ b/conftest.py @@ -15,7 +15,7 @@ def test_db_name(): return TEST_DB -@pytest.fixture(scope="session") +@pytest.fixture(scope="session", autouse=True) def test_db(): superuser_engine = _get_superuser_engine() with superuser_engine.connect() as conn:
pyodide__pyodide-4090
New Pyodide fatal error in scipy tests: Error: EAGAIN: resource temporarily unavailable, write This started to happen two days ago in https://github.com/lesteve/scipy-tests-pyodide, here is [a build log](https://github.com/lesteve/scipy-tests-pyodide/actions/runs/5946896593/job/16128148017). The stack trace looks like this: ``` Error: EAGAIN: resource temporarily unavailable, write at Object.writeSync (node:fs:936:3) at ue.write (/home/runner/work/scipy-tests-pyodide/scipy-tests-pyodide/node_modules/pyodide/pyodide.asm.js:6566:23) at Object.write (/home/runner/work/scipy-tests-pyodide/scipy-tests-pyodide/node_modules/pyodide/pyodide.asm.js:6301:28) at Object.write (/home/runner/work/scipy-tests-pyodide/scipy-tests-pyodide/node_modules/pyodide/pyodide.asm.js:12457:46) at doWritev (/home/runner/work/scipy-tests-pyodide/scipy-tests-pyodide/node_modules/pyodide/pyodide.asm.js:19506:23) at _fd_write (/home/runner/work/scipy-tests-pyodide/scipy-tests-pyodide/node_modules/pyodide/pyodide.asm.js:19589:19) at write (wasm://wasm/025b4bda:wasm-function[9088]:0x45849f) at _Py_write (wasm://wasm/025b4bda:wasm-function[4144]:0x2d9eec) at _io_FileIO_write (wasm://wasm/025b4bda:wasm-function[6443]:0x39de9f) at _PyCFunctionWithKeywords_TrampolineCall (/home/runner/work/scipy-tests-pyodide/scipy-tests-pyodide/node_modules/pyodide/pyodide.asm.js:6855:33) { errno: -11, syscall: 'write', code: 'EAGAIN', pyodide_fatal_error: true } ``` For some reason, it seems to happen right at the end of `scipy.special.tests` when pytest is printing its summary. In my experience, the timing of stdout vs stderr can not be fully trusted so maybe it happens in a test towards the end of scipy.special.tests. I'll be able to look into it more next week. My wild guess is that this could be related to #4035? New Pyodide fatal error in scipy tests: Error: EAGAIN: resource temporarily unavailable, write This started to happen two days ago in https://github.com/lesteve/scipy-tests-pyodide, here is [a build log](https://github.com/lesteve/scipy-tests-pyodide/actions/runs/5946896593/job/16128148017). The stack trace looks like this: ``` Error: EAGAIN: resource temporarily unavailable, write at Object.writeSync (node:fs:936:3) at ue.write (/home/runner/work/scipy-tests-pyodide/scipy-tests-pyodide/node_modules/pyodide/pyodide.asm.js:6566:23) at Object.write (/home/runner/work/scipy-tests-pyodide/scipy-tests-pyodide/node_modules/pyodide/pyodide.asm.js:6301:28) at Object.write (/home/runner/work/scipy-tests-pyodide/scipy-tests-pyodide/node_modules/pyodide/pyodide.asm.js:12457:46) at doWritev (/home/runner/work/scipy-tests-pyodide/scipy-tests-pyodide/node_modules/pyodide/pyodide.asm.js:19506:23) at _fd_write (/home/runner/work/scipy-tests-pyodide/scipy-tests-pyodide/node_modules/pyodide/pyodide.asm.js:19589:19) at write (wasm://wasm/025b4bda:wasm-function[9088]:0x45849f) at _Py_write (wasm://wasm/025b4bda:wasm-function[4144]:0x2d9eec) at _io_FileIO_write (wasm://wasm/025b4bda:wasm-function[6443]:0x39de9f) at _PyCFunctionWithKeywords_TrampolineCall (/home/runner/work/scipy-tests-pyodide/scipy-tests-pyodide/node_modules/pyodide/pyodide.asm.js:6855:33) { errno: -11, syscall: 'write', code: 'EAGAIN', pyodide_fatal_error: true } ``` For some reason, it seems to happen right at the end of `scipy.special.tests` when pytest is printing its summary. In my experience, the timing of stdout vs stderr can not be fully trusted so maybe it happens in a test towards the end of scipy.special.tests. I'll be able to look into it more next week. My wild guess is that this could be related to #4035?
[ { "content": "\"\"\"\nVarious common utilities for testing.\n\"\"\"\nimport os\nimport pathlib\nimport re\nimport sys\nfrom collections.abc import Sequence\n\nimport pytest\n\nROOT_PATH = pathlib.Path(__file__).parents[0].resolve()\nDIST_PATH = ROOT_PATH / \"dist\"\n\nsys.path.append(str(ROOT_PATH / \"pyodide-b...
[ { "content": "\"\"\"\nVarious common utilities for testing.\n\"\"\"\nimport os\nimport pathlib\nimport re\nimport sys\nfrom collections.abc import Sequence\n\nimport pytest\n\nROOT_PATH = pathlib.Path(__file__).parents[0].resolve()\nDIST_PATH = ROOT_PATH / \"dist\"\n\nsys.path.append(str(ROOT_PATH / \"pyodide-b...
diff --git a/conftest.py b/conftest.py index c5f0a1df72a..fd8ad7a78b5 100644 --- a/conftest.py +++ b/conftest.py @@ -40,6 +40,10 @@ pyodide.pyimport("pyodide_js._api") """ +only_node = pytest.mark.xfail_browsers( + chrome="node only", firefox="node only", safari="node only" +) + def pytest_addoption(parser): group = parser.getgroup("general") diff --git a/src/js/streams.ts b/src/js/streams.ts index 5bf9613da30..007dde028cd 100644 --- a/src/js/streams.ts +++ b/src/js/streams.ts @@ -90,14 +90,37 @@ function syncSleep(timeout: number): boolean { } } -function readHelper(devops: Reader, buffer: Uint8Array): number { +/** + * Calls the callback and handle node EAGAIN errors. + * + * In the long run, it may be helpful to allow C code to handle these errors on + * their own, at least if the Emscripten file descriptor has O_NONBLOCK on it. + * That way the code could do other periodic tasks in the delay loop. + * + * This code is outside of the stream handler itself so if the user wants to + * inject some code in this loop they could do it with: + * ```js + * read(buffer) { + * try { + * return doTheRead(); + * } catch(e) { + * if (e && e.code === "EAGAIN") { + * // do periodic tasks + * } + * // in every case rethrow the error + * throw e; + * } + * } + * ``` + */ +function handleEAGAIN(cb: () => number): number { while (true) { try { - return devops.read(buffer); + return cb(); } catch (e: any) { if (e && e.code === "EAGAIN") { - // Presumably this means we're in node and tried to read from an - // O_NONBLOCK file descriptor. Synchronously sleep for 100ms as + // Presumably this means we're in node and tried to read from/write to + // an O_NONBLOCK file descriptor. Synchronously sleep for 100ms as // requested by EAGAIN and try again. In case for some reason we fail to // sleep, propagate the error (it will turn into an EOFError). if (syncSleep(100)) { @@ -109,6 +132,44 @@ function readHelper(devops: Reader, buffer: Uint8Array): number { } } +function readWriteHelper(stream: Stream, cb: () => number, method: string) { + let nbytes; + try { + nbytes = handleEAGAIN(cb); + } catch (e: any) { + if (e && e.code && Module.ERRNO_CODES[e.code]) { + throw new FS.ErrnoError(Module.ERRNO_CODES[e.code]); + } + if (isErrnoError(e)) { + // the handler set an errno, propagate it + throw e; + } + console.error("Error thrown in read:"); + console.error(e); + throw new FS.ErrnoError(cDefs.EIO); + } + if (nbytes === undefined) { + // Prevent an infinite loop caused by incorrect code that doesn't return a + // value + // Maybe we should set nbytes = buffer.length here instead? + console.warn( + `${method} returned undefined; a correct implementation must return a number`, + ); + throw new FS.ErrnoError(cDefs.EIO); + } + if (nbytes !== 0) { + stream.node.timestamp = Date.now(); + } + return nbytes; +} + +const prepareBuffer = ( + buffer: Uint8Array, + offset: number, + length: number, +): Uint8Array => + API.typedArrayAsUint8Array(buffer).subarray(offset, offset + length); + const stream_ops: StreamOps = { open: function (stream) { const devops = DEVOPS[stream.node.rdev]; @@ -130,69 +191,12 @@ const stream_ops: StreamOps = { } }, read: function (stream, buffer, offset, length, pos /* ignored */) { - buffer = API.typedArrayAsUint8Array(buffer).subarray( - offset, - offset + length, - ); - let bytesRead; - try { - bytesRead = readHelper(stream.devops, buffer); - } catch (e: any) { - if (e && e.code && Module.ERRNO_CODES[e.code]) { - throw new FS.ErrnoError(Module.ERRNO_CODES[e.code]); - } - if (isErrnoError(e)) { - // the handler set an errno, propagate it - throw e; - } - console.error("Error thrown in read:"); - console.error(e); - throw new FS.ErrnoError(cDefs.EIO); - } - if (bytesRead === undefined) { - // Prevent an infinite loop caused by incorrect code that doesn't return a - // value - // - // Maybe we should set bytesWritten = buffer.length here instead? - console.warn( - "read returned undefined; a correct implementation must return a number", - ); - throw new FS.ErrnoError(cDefs.EIO); - } - if (bytesRead !== 0) { - stream.node.timestamp = Date.now(); - } - return bytesRead; + buffer = prepareBuffer(buffer, offset, length); + return readWriteHelper(stream, () => stream.devops.read(buffer), "read"); }, write: function (stream, buffer, offset, length, pos /* ignored */): number { - buffer = API.typedArrayAsUint8Array(buffer); - let bytesWritten; - try { - bytesWritten = stream.devops.write( - buffer.subarray(offset, offset + length), - ); - } catch (e) { - if (isErrnoError(e)) { - throw e; - } - console.error("Error thrown in write:"); - console.error(e); - throw new FS.ErrnoError(cDefs.EIO); - } - if (bytesWritten === undefined) { - // Prevent an infinite loop caused by incorrect code that doesn't return a - // value - // - // Maybe we should set bytesWritten = buffer.length here instead? - console.warn( - "write returned undefined; a correct implementation must return a number", - ); - throw new FS.ErrnoError(cDefs.EIO); - } - if (length) { - stream.node.timestamp = Date.now(); - } - return bytesWritten; + buffer = prepareBuffer(buffer, offset, length); + return readWriteHelper(stream, () => stream.devops.write(buffer), "write"); }, }; @@ -560,20 +564,7 @@ class LegacyReader { if (this.saved) { return this.saved; } - let val; - try { - val = this.infunc(); - } catch (e) { - if (isErrnoError(e)) { - // Allow infunc to set other errno - throw e; - } - // Since we're throwing a new error without the traceback, let people know - // what the original cause was. - console.error("Error thrown in stdin:"); - console.error(e); - throw new FS.ErrnoError(cDefs.EIO); - } + let val = this.infunc(); if (typeof val === "number") { return val; } diff --git a/src/tests/test_streams.py b/src/tests/test_streams.py index 6638819d882..0f8b59c856a 100644 --- a/src/tests/test_streams.py +++ b/src/tests/test_streams.py @@ -1,7 +1,7 @@ import pytest from pytest_pyodide import run_in_pyodide -from conftest import strip_assertions_stderr +from conftest import only_node, strip_assertions_stderr @pytest.mark.skip_refcount_check @@ -576,3 +576,49 @@ def test_custom_stdout_interrupts(selenium, method): pyodide.setStdout(); """ ) + + +@only_node +@run_in_pyodide +def test_node_eagain(selenium): + from pyodide.code import run_js + + result = run_js( + """ + pyodide.setStdin({ + i: 0, + stdin() { + this.i ++; + if (this.i < 3) { + throw {code: "EAGAIN"}; + } + this.i = 0; + return "abcdefg"; + } + }); + let result = []; + pyodide.setStdout({ + i: 0, + write(a) { + this.i ++; + if (this.i < 3) { + throw {code: "EAGAIN"}; + } + this.i = 0; + result.push(new TextDecoder().decode(a)); + return a.length; + } + }); + result + """ + ) + try: + assert input() == "abcdefg" + print("hi there!") + assert result[0] == "hi there!\n" + finally: + run_js( + """ + pyodide.setStdin(); + """ + )
falconry__falcon-1985
StaticRouteAsync leaves open files When using static routes with a [`falcon.asgi.App`](https://falcon.readthedocs.io/en/stable/api/app.html#asgi-app), it seems that the `_AsyncFileReader` wrapper does not implement any `.close()` method, so files are left open. On CPython, I wasn't able to demonstrate any practical impact of this bug as the file object in question is refcounted to 0 and garbage collected as soon as it goes out of scope. However, that isn't the case when running `uvicorn` on PyPy 3.7, as PyPy uses a different GC implementation. Test case in point: ``` import io import logging import os.path import unittest.mock import falcon.asgi logging.basicConfig( format='%(asctime)s [%(levelname)s] %(message)s', level=logging.INFO) class DebugIO(io.BytesIO): @classmethod def open(cls, *args, **kwargs): return cls(b'Test data!\n') def close(self): logging.info(f'{self}.close()') super().close() app = falcon.asgi.App() app.add_static_route('/files', '/tmp') debug = unittest.mock.patch('io.open', DebugIO.open) debug.start() ``` StaticRouteAsync leaves open files When using static routes with a [`falcon.asgi.App`](https://falcon.readthedocs.io/en/stable/api/app.html#asgi-app), it seems that the `_AsyncFileReader` wrapper does not implement any `.close()` method, so files are left open. On CPython, I wasn't able to demonstrate any practical impact of this bug as the file object in question is refcounted to 0 and garbage collected as soon as it goes out of scope. However, that isn't the case when running `uvicorn` on PyPy 3.7, as PyPy uses a different GC implementation. Test case in point: ``` import io import logging import os.path import unittest.mock import falcon.asgi logging.basicConfig( format='%(asctime)s [%(levelname)s] %(message)s', level=logging.INFO) class DebugIO(io.BytesIO): @classmethod def open(cls, *args, **kwargs): return cls(b'Test data!\n') def close(self): logging.info(f'{self}.close()') super().close() app = falcon.asgi.App() app.add_static_route('/files', '/tmp') debug = unittest.mock.patch('io.open', DebugIO.open) debug.start() ```
[ { "content": "from functools import partial\nimport io\nimport os\nimport pathlib\nimport re\n\nimport falcon\nfrom falcon.util.sync import get_running_loop\n\n\ndef _open_range(file_path, req_range):\n \"\"\"Open a file for a ranged request.\n\n Args:\n file_path (str): Path to the file to open.\n...
[ { "content": "from functools import partial\nimport io\nimport os\nimport pathlib\nimport re\n\nimport falcon\nfrom falcon.util.sync import get_running_loop\n\n\ndef _open_range(file_path, req_range):\n \"\"\"Open a file for a ranged request.\n\n Args:\n file_path (str): Path to the file to open.\n...
diff --git a/docs/_newsfragments/1963.bugfix.rst b/docs/_newsfragments/1963.bugfix.rst new file mode 100644 index 000000000..b917bc17f --- /dev/null +++ b/docs/_newsfragments/1963.bugfix.rst @@ -0,0 +1,3 @@ +Previously, files could be left open when serving via an ASGI static route +(depending on the underlying GC implementation). This has been fixed so that a +file is closed explicitly after rendering the response. diff --git a/falcon/routing/static.py b/falcon/routing/static.py index 19d4ddc7a..2d23e0555 100644 --- a/falcon/routing/static.py +++ b/falcon/routing/static.py @@ -241,3 +241,6 @@ def __init__(self, file): async def read(self, size=-1): return await self._loop.run_in_executor(None, partial(self._file.read, size)) + + async def close(self): + await self._loop.run_in_executor(None, self._file.close) diff --git a/tests/test_static.py b/tests/test_static.py index 67467edb9..591276da4 100644 --- a/tests/test_static.py +++ b/tests/test_static.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - import errno import io import os @@ -47,11 +45,14 @@ def __init__(self, size): fd = FakeFD(1337) fd._stat = FakeStat(len(data)) fake_file.fileno = lambda: fd + + patch.current_file = fake_file return fake_file monkeypatch.setattr(io, 'open', open) monkeypatch.setattr(os, 'fstat', lambda fileno: fileno._stat) + patch.current_file = None return patch @@ -575,3 +576,16 @@ def test_bounded_file_wrapper(): assert not buffer.closed fh.close() assert buffer.closed + + +def test_file_closed(client, patch_open): + patch_open(b'test_data') + + client.app.add_static_route('/static', '/var/www/statics') + + resp = client.simulate_request(path='/static/foo/bar.txt') + assert resp.status_code == 200 + assert resp.text == 'test_data' + + assert patch_open.current_file is not None + assert patch_open.current_file.closed
ansible__ansible-modules-core-4649
ios_facts: exception due to missing itertools <!--- Verify first that your issue/request is not already reported in GitHub --> ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME ios_facts ##### ANSIBLE VERSION <!--- Paste verbatim output from “ansible --version” between quotes below --> ``` ansible 2.2.0 (devel 9963ae1d3e) last updated 2016/09/02 19:50:22 (GMT +1100) lib/ansible/modules/core: (detached HEAD 7e79c59d38) last updated 2016/09/02 19:50:32 (GMT +1100) lib/ansible/modules/extras: (detached HEAD e8a5442345) last updated 2016/09/02 19:50:32 (GMT +1100) config file = configured module search path = Default w/o overrides ``` ##### CONFIGURATION <!--- defaults --> ##### OS / ENVIRONMENT <!--- Mention the OS you are running Ansible from, and the OS you are managing, or say “N/A” for anything that is not platform-specific. --> CentOS 7 ##### SUMMARY <!--- Explain the problem briefly --> Running against Cisco ASR1000 resulted in exceptions being thrown. ##### STEPS TO REPRODUCE ansible -m ios_facts -a "host=asr01.lab username=pbaker password=xxxxxx gather_subset=interfaces" localhost -vvv ##### RESULTS AND SUGGESTED FIX Initial exception was not very helpful. ``` An exception occurred during task execution. The full traceback is: Traceback (most recent call last): File "/tmp/ansible_l3i6QO/ansible_module_ios_facts.py", line 455, in <module> main() File "/tmp/ansible_l3i6QO/ansible_module_ios_facts.py", line 444, in main module.exit_json(out=module.from_json(runner.items)) File "/tmp/ansible_l3i6QO/ansible_modlib.zip/ansible/module_utils/basic.py", line 1781, in from_json File "/usr/lib64/python2.7/json/__init__.py", line 338, in loads return _default_decoder.decode(s) File "/usr/lib64/python2.7/json/decoder.py", line 365, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) TypeError: expected string or buffer ``` Comparing ios_facts.py to other _facts.py modules revealed the following line was missing, adding it back in seemed to help. ``` @@ -440,6 +440,7 @@ def main(): inst.populate() facts.update(inst.facts) except Exception: + raise module.exit_json(out=module.from_json(runner.items)) ansible_facts = dict() ``` Which led to this traceback ``` An exception occurred during task execution. The full traceback is: Traceback (most recent call last): File "/tmp/ansible_HvEaaO/ansible_module_ios_facts.py", line 455, in <module> main() File "/tmp/ansible_HvEaaO/ansible_module_ios_facts.py", line 440, in main inst.populate() File "/tmp/ansible_HvEaaO/ansible_module_ios_facts.py", line 238, in populate self.populate_ipv6_interfaces(data) File "/tmp/ansible_HvEaaO/ansible_module_ios_facts.py", line 272, in populate_ipv6_interfaces for addr, subnet in itertools.izip(addresses, subnets): NameError: global name 'itertools' is not defined ``` So I made the following modification ``` @@ -128,7 +128,7 @@ import re from ansible.module_utils.basic import get_exception from ansible.module_utils.netcli import CommandRunner, AddCommandError from ansible.module_utils.ios import NetworkModule - +import itertools def add_command(runner, command): try: ``` Note: I'm very new to ansible, github and python, so sorry if I have gone against conventions in any way!
[ { "content": "#!/usr/bin/python\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later vers...
[ { "content": "#!/usr/bin/python\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later vers...
diff --git a/network/ios/ios_facts.py b/network/ios/ios_facts.py index d842c2b4c09..884e9b5b296 100644 --- a/network/ios/ios_facts.py +++ b/network/ios/ios_facts.py @@ -124,6 +124,7 @@ type: dict """ import re +import itertools from ansible.module_utils.basic import get_exception from ansible.module_utils.netcli import CommandRunner, AddCommandError
fossasia__open-event-server-395
list_events url is inconsistent in API v2 The url is `/events/` whereas it should be `/events` to be consistent with other urls.
[ { "content": "from flask.ext.restplus import Resource, Namespace, fields\n\nfrom open_event.models.event import Event as EventModel\nfrom .helpers import get_object_list, get_object_or_404\n\napi = Namespace('events', description='Events')\n\nEVENT = api.model('Event', {\n 'id': fields.Integer(required=True)...
[ { "content": "from flask.ext.restplus import Resource, Namespace, fields\n\nfrom open_event.models.event import Event as EventModel\nfrom .helpers import get_object_list, get_object_or_404\n\napi = Namespace('events', description='Events')\n\nEVENT = api.model('Event', {\n 'id': fields.Integer(required=True)...
diff --git a/open_event/api/events.py b/open_event/api/events.py index 86b3ed133b..ef679005aa 100644 --- a/open_event/api/events.py +++ b/open_event/api/events.py @@ -32,7 +32,7 @@ def get(self, event_id): return get_object_or_404(EventModel, event_id) -@api.route('/') +@api.route('') class EventList(Resource): @api.doc('list_events') @api.marshal_list_with(EVENT)
ansible__ansible-modules-core-3683
docker_service module does not work ##### ISSUE TYPE - Bug Report ##### COMPONENT NAME docker_service ##### ANSIBLE VERSION ``` ansible 2.2.0 (devel 9ad5a32208) last updated 2016/05/17 15:58:35 (GMT +000) lib/ansible/modules/core: (detached HEAD 127d518011) last updated 2016/05/17 13:42:30 (GMT +000) lib/ansible/modules/extras: (detached HEAD f953d5dc0c) last updated 2016/05/17 13:42:40 (GMT +000) config file = configured module search path = Default w/o overrides ``` ##### CONFIGURATION None ##### OS / ENVIRONMENT Fedora 23 ##### SUMMARY docker_service does not work the way it is documented, and throws a traceback as posted under ##### STEPS TO REPRODUCE The [docker-compose.yaml](https://github.com/rafabene/devops-demo/blob/master/compose/docker-compose.yml) file I am using is - ``` version: "2" networks: mynet: services: db: container_name: "db" image: postgres networks: - mynet ports: - "5432:5432" environment: - POSTGRES_USER=ticketmonster - POSTGRES_PASSWORD=ticketmonster-docker modcluster: container_name: "modcluster" networks: - mynet image: karm/mod_cluster-master-dockerhub environment: - MODCLUSTER_NET=192. 172. 10. 179. 213. - MODCLUSTER_PORT=80 ports: - "80:80" wildfly: image: rafabene/wildfly-ticketmonster-ha #build: ../Dockerfiles/ticketmonster-ha/ networks: - mynet ``` The ansible playbook I created - ``` - name: deploy docker compose artifacts hosts: localhost connection: local tasks: - name: compose_up docker_service: project_src: /root/ticket_monster/ project_name: Ticket Monster state: present - name: scale_3 docker_service: project_src: /root/ticket_monster/ state: present scale: {'wildfly': 3} - name: scale_2 docker_service: project_src: /root/ticket_monster/ state: present scale: {'wildfly': 2} - name: compose_down docker_service: project_src: /root/ticket_monster/ state: absent ``` To reproduce, run - `ansible-playbook compose_playbook.yaml` ##### EXPECTED RESULTS ``` bash # ansible-playbook compose_playbook.yaml [WARNING]: Host file not found: /etc/ansible/hosts [WARNING]: provided hosts list is empty, only localhost is available PLAY [deploy docker compose artifacts] ***************************************** TASK [setup] ******************************************************************* ok: [localhost] TASK [compose_up] ************************************************************** changed: [localhost] TASK [scale_3] ***************************************************************** changed: [localhost] TASK [scale_2] ***************************************************************** changed: [localhost] TASK [compose_down] ************************************************************ changed: [localhost] PLAY RECAP ********************************************************************* localhost : ok=5 changed=4 unreachable=0 failed=0 ``` ##### ACTUAL RESULTS ``` bash # ansible-playbook --step -vvv compose_playbook.yaml No config file found; using defaults [WARNING]: Host file not found: /etc/ansible/hosts [WARNING]: provided hosts list is empty, only localhost is available PLAYBOOK: compose_playbook.yaml ************************************************ 1 plays in compose_playbook.yaml PLAY [deploy docker compose artifacts] ***************************************** Perform task: TASK: setup (N)o/(y)es/(c)ontinue: y Perform task: TASK: setup (N)o/(y)es/(c)ontinue: ******************************* TASK [setup] ******************************************************************* <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1463502948.45-35859527533704 `" && echo ansible-tmp-1463502948.45-35859527533704="` echo $HOME/.ansible/tmp/ansible-tmp-1463502948.45-35859527533704 `" )' <127.0.0.1> PUT /tmp/tmp549TTU TO /root/.ansible/tmp/ansible-tmp-1463502948.45-35859527533704/setup.py <127.0.0.1> EXEC /bin/sh -c 'chmod -R u+x /root/.ansible/tmp/ansible-tmp-1463502948.45-35859527533704/' <127.0.0.1> EXEC /bin/sh -c 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /bin/python /root/.ansible/tmp/ansible-tmp-1463502948.45-35859527533704/setup.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1463502948.45-35859527533704/" > /dev/null 2>&1' ok: [localhost] Perform task: TASK: compose_up (N)o/(y)es/(c)ontinue: y Perform task: TASK: compose_up (N)o/(y)es/(c)ontinue: ************************** TASK [compose_up] ************************************************************** task path: /root/compose_env/compose_playbook.yaml:5 <127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root <127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1463502951.99-46439211651353 `" && echo ansible-tmp-1463502951.99-46439211651353="` echo $HOME/.ansible/tmp/ansible-tmp-1463502951.99-46439211651353 `" )' <127.0.0.1> PUT /tmp/tmpbxDxDC TO /root/.ansible/tmp/ansible-tmp-1463502951.99-46439211651353/docker_service.py <127.0.0.1> EXEC /bin/sh -c 'chmod -R u+x /root/.ansible/tmp/ansible-tmp-1463502951.99-46439211651353/' <127.0.0.1> EXEC /bin/sh -c 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /bin/python /root/.ansible/tmp/ansible-tmp-1463502951.99-46439211651353/docker_service.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1463502951.99-46439211651353/" > /dev/null 2>&1' An exception occurred during task execution. The full traceback is: Traceback (most recent call last): File "/tmp/ansible_iVSEP_/ansible_module_docker_service.py", line 760, in <module> main() File "/tmp/ansible_iVSEP_/ansible_module_docker_service.py", line 755, in main result = ContainerManager(client).exec_module() File "/tmp/ansible_iVSEP_/ansible_module_docker_service.py", line 437, in __init__ super(ContainerManager, self).__init__(module=client.module) TypeError: __init__() got an unexpected keyword argument 'module' fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "invocation": {"module_name": "docker_service"}, "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_iVSEP_/ansible_module_docker_service.py\", line 760, in <module>\n main()\n File \"/tmp/ansible_iVSEP_/ansible_module_docker_service.py\", line 755, in main\n result = ContainerManager(client).exec_module()\n File \"/tmp/ansible_iVSEP_/ansible_module_docker_service.py\", line 437, in __init__\n super(ContainerManager, self).__init__(module=client.module)\nTypeError: __init__() got an unexpected keyword argument 'module'\n", "module_stdout": "", "msg": "MODULE FAILURE", "parsed": false} NO MORE HOSTS LEFT ************************************************************* to retry, use: --limit @compose_playbook.retry PLAY RECAP ********************************************************************* localhost : ok=1 changed=0 unreachable=0 failed=1 ```
[ { "content": "#!/usr/bin/python\n#\n# Copyright 2016 Red Hat | Ansible\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License...
[ { "content": "#!/usr/bin/python\n#\n# Copyright 2016 Red Hat | Ansible\n#\n# This file is part of Ansible\n#\n# Ansible is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License...
diff --git a/cloud/docker/docker_service.py b/cloud/docker/docker_service.py index 315657acf80..266ab372a5c 100644 --- a/cloud/docker/docker_service.py +++ b/cloud/docker/docker_service.py @@ -434,7 +434,7 @@ class ContainerManager(DockerBaseClass): def __init__(self, client): - super(ContainerManager, self).__init__(module=client.module) + super(ContainerManager, self).__init__() self.client = client self.project_src = None
django-json-api__django-rest-framework-json-api-1105
django-admin loaddata drf_example falied (venv) PS C:\django-rest-framework-json-api> (venv) PS C:\django-rest-framework-json-api> django-admin loaddata drf_example --settings=example.settings System check identified some issues: WARNINGS: example.Author: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'. example.AuthorBio: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'. example.AuthorBioMetadata: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'. example.AuthorType: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'. example.Blog: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'. example.Comment: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'. example.Company: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'. example.Entry: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'. example.LabResults: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'. example.Project: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'. example.ProjectType: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'. example.TaggedItem: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'. tests.BasicModel: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'. tests.ForeignKeySource: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'. tests.ForeignKeyTarget: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'. tests.ManyToManySource: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'. tests.ManyToManyTarget: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'. tests.NestedRelatedSource: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. HINT: Configure the DEFAULT_AUTO_FIELD setting or the AppConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'. Traceback (most recent call last): File "C:\django-rest-framework-json-api\venv\lib\site-packages\django\db\models\options.py", line 668, in get_field return self.fields_map[field_name] KeyError: 'type' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\django-rest-framework-json-api\venv\lib\site-packages\django\core\serializers\json.py", line 70, in Deserializer yield from PythonDeserializer(objects, **options) File "C:\django-rest-framework-json-api\venv\lib\site-packages\django\core\serializers\python.py", line 131, in Deserializer field = Model._meta.get_field(field_name) File "C:\django-rest-framework-json-api\venv\lib\site-packages\django\db\models\options.py", line 670, in get_field raise FieldDoesNotExist( django.core.exceptions.FieldDoesNotExist: Author has no field named 'type' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "c:\python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\python39\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\django-rest-framework-json-api\venv\Scripts\django-admin.exe\__main__.py", line 7, in <module> File "C:\django-rest-framework-json-api\venv\lib\site-packages\django\core\management\__init__.py", line 446, in execute_from_command_line utility.execute() File "C:\django-rest-framework-json-api\venv\lib\site-packages\django\core\management\__init__.py", line 440, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "C:\django-rest-framework-json-api\venv\lib\site-packages\django\core\management\base.py", line 402, in run_from_argv self.execute(*args, **cmd_options) File "C:\django-rest-framework-json-api\venv\lib\site-packages\django\core\management\base.py", line 448, in execute output = self.handle(*args, **options) File "C:\django-rest-framework-json-api\venv\lib\site-packages\django\core\management\commands\loaddata.py", line 102, in handle self.loaddata(fixture_labels) File "C:\django-rest-framework-json-api\venv\lib\site-packages\django\core\management\commands\loaddata.py", line 163, in loaddata self.load_label(fixture_label) File "C:\django-rest-framework-json-api\venv\lib\site-packages\django\core\management\commands\loaddata.py", line 251, in load_label for obj in objects: File "C:\django-rest-framework-json-api\venv\lib\site-packages\django\core\serializers\json.py", line 74, in Deserializer raise DeserializationError() from exc django.core.serializers.base.DeserializationError: Problem installing fixture 'C:\django-rest-framework-json-api\example\fixtures\drf_example.json': (venv) PS C:\django-rest-framework-json-api>
[ { "content": "import os\n\nSITE_ID = 1\nDEBUG = True\n\nMEDIA_ROOT = os.path.normcase(os.path.dirname(os.path.abspath(__file__)))\nMEDIA_URL = \"/media/\"\nUSE_TZ = False\n\nDATABASE_ENGINE = \"sqlite3\"\n\nDATABASES = {\n \"default\": {\n \"ENGINE\": \"django.db.backends.sqlite3\",\n \"NAME\":...
[ { "content": "import os\n\nSITE_ID = 1\nDEBUG = True\n\nMEDIA_ROOT = os.path.normcase(os.path.dirname(os.path.abspath(__file__)))\nMEDIA_URL = \"/media/\"\nUSE_TZ = False\nDEFAULT_AUTO_FIELD = \"django.db.models.AutoField\"\n\nDATABASE_ENGINE = \"sqlite3\"\n\nDATABASES = {\n \"default\": {\n \"ENGINE\...
diff --git a/example/fixtures/drf_example.json b/example/fixtures/drf_example.json index 498c0d1c..944f502c 100644 --- a/example/fixtures/drf_example.json +++ b/example/fixtures/drf_example.json @@ -26,8 +26,9 @@ "created_at": "2016-05-02T10:09:48.277", "modified_at": "2016-05-02T10:09:48.277", "name": "Alice", + "full_name": "Alice Test", "email": "alice@example.com", - "type": null + "author_type": null } }, { @@ -37,8 +38,9 @@ "created_at": "2016-05-02T10:09:57.133", "modified_at": "2016-05-02T10:09:57.133", "name": "Bob", + "full_name": "Bob Test", "email": "bob@example.com", - "type": null + "author_type": null } }, { diff --git a/example/settings/dev.py b/example/settings/dev.py index 8e13ec15..c5405338 100644 --- a/example/settings/dev.py +++ b/example/settings/dev.py @@ -6,6 +6,7 @@ MEDIA_ROOT = os.path.normcase(os.path.dirname(os.path.abspath(__file__))) MEDIA_URL = "/media/" USE_TZ = False +DEFAULT_AUTO_FIELD = "django.db.models.AutoField" DATABASE_ENGINE = "sqlite3"
pandas-dev__pandas-5411
BLD: plot failures in master This started after I merged #5375 (which passed cleanly before merging) https://travis-ci.org/pydata/pandas/jobs/13376953
[ { "content": "from datetime import datetime, timedelta\nimport re\nimport sys\n\nimport numpy as np\n\nimport pandas.lib as lib\nimport pandas.tslib as tslib\nimport pandas.core.common as com\nfrom pandas.compat import StringIO, callable\nimport pandas.compat as compat\n\ntry:\n import dateutil\n from dat...
[ { "content": "from datetime import datetime, timedelta\nimport re\nimport sys\n\nimport numpy as np\n\nimport pandas.lib as lib\nimport pandas.tslib as tslib\nimport pandas.core.common as com\nfrom pandas.compat import StringIO, callable\nimport pandas.compat as compat\n\ntry:\n import dateutil\n from dat...
diff --git a/ci/requirements-3.3.txt b/ci/requirements-3.3.txt index 318030e733158..94a77bbc06024 100644 --- a/ci/requirements-3.3.txt +++ b/ci/requirements-3.3.txt @@ -1,4 +1,4 @@ -python-dateutil==2.1 +python-dateutil==2.2 pytz==2013b openpyxl==1.6.2 xlsxwriter==0.4.3 diff --git a/pandas/tseries/tools.py b/pandas/tseries/tools.py index 3d8803237931d..af1a31bcec311 100644 --- a/pandas/tseries/tools.py +++ b/pandas/tseries/tools.py @@ -305,6 +305,10 @@ def dateutil_parse(timestr, default, res = DEFAULTPARSER._parse(fobj, **kwargs) + # dateutil 2.2 compat + if isinstance(res, tuple): + res, _ = res + if res is None: raise ValueError("unknown string format")
comic__grand-challenge.org-3363
Mismatch in evaluation jobs when challenge admin pre-runs algorithm on cases from the phases archive `create_algorithm_jobs_for_evaluation` exits successfully but the evaluation remains in the executing algorithm state. Occurs when the challenge admin uses the try out algorithm page and selects an image from the archive linked to the phase. Probably the jobs need filtering by creator?
[ { "content": "import logging\nfrom tempfile import TemporaryDirectory\nfrom typing import NamedTuple\n\nimport boto3\nfrom botocore.exceptions import ClientError\nfrom celery import chain, group, shared_task\nfrom django.conf import settings\nfrom django.core.cache import cache\nfrom django.core.files.base impo...
[ { "content": "import logging\nfrom tempfile import TemporaryDirectory\nfrom typing import NamedTuple\n\nimport boto3\nfrom botocore.exceptions import ClientError\nfrom celery import chain, group, shared_task\nfrom django.conf import settings\nfrom django.core.cache import cache\nfrom django.core.files.base impo...
diff --git a/app/grandchallenge/algorithms/tasks.py b/app/grandchallenge/algorithms/tasks.py index e3b98744de..e5af0269fd 100644 --- a/app/grandchallenge/algorithms/tasks.py +++ b/app/grandchallenge/algorithms/tasks.py @@ -319,7 +319,7 @@ def filter_civs_for_algorithm(*, civ_sets, algorithm_image): ), ) ) - .filter(inputs_match_count=len(input_interfaces)) + .filter(inputs_match_count=len(input_interfaces), creator=None) .prefetch_related("inputs") } diff --git a/app/tests/algorithms_tests/test_tasks.py b/app/tests/algorithms_tests/test_tasks.py index 58aa09b8eb..c8629c574a 100644 --- a/app/tests/algorithms_tests/test_tasks.py +++ b/app/tests/algorithms_tests/test_tasks.py @@ -639,13 +639,19 @@ def test_existing_jobs(self): cis = ComponentInterfaceFactory.create_batch(2) ai.algorithm.inputs.set(cis) - civs = [ComponentInterfaceValueFactory(interface=c) for c in cis] + civs1 = [ComponentInterfaceValueFactory(interface=c) for c in cis] + civs2 = [ComponentInterfaceValueFactory(interface=c) for c in cis] - j = AlgorithmJobFactory(algorithm_image=ai) - j.inputs.set(civs) + j1 = AlgorithmJobFactory(creator=None, algorithm_image=ai) + j1.inputs.set(civs1) + j2 = AlgorithmJobFactory(algorithm_image=ai) + j2.inputs.set(civs2) civ_sets = [ - civs, # Job already exists + {civ for civ in civs1}, # Job already exists (system job) + { + civ for civ in civs2 + }, # Job already exists but with a creator set and hence should be ignored { # New values ComponentInterfaceValueFactory(interface=cis[0]), @@ -653,7 +659,7 @@ def test_existing_jobs(self): }, { # Changed values - civs[0], + civs1[0], ComponentInterfaceValueFactory(interface=cis[1]), }, ] @@ -662,7 +668,7 @@ def test_existing_jobs(self): civ_sets=civ_sets, algorithm_image=ai ) - assert filtered_civ_sets == civ_sets[1:] + assert sorted(filtered_civ_sets) == sorted(civ_sets[1:]) @pytest.mark.django_db
enthought__chaco-424
Demo quiver.py not working **Problem Description** Zooming in will ends with the following and blank plot. **Reproduction Steps:** Run the file and zoom in until the plot breaks. **Expected behavior:** Plot disappear if keep zooming in and ends with following trace. ``` Traceback (most recent call last): File "/Users/ktakami/.edm/envs/chaco-dev/lib/python2.7/site-packages/enable/qt4/base_window.py", line 202, in paintEvent self.handler.paintEvent(event) File "/Users/ktakami/.edm/envs/chaco-dev/lib/python2.7/site-packages/enable/qt4/base_window.py", line 54, in paintEvent self._enable_window._paint(event) File "/Users/ktakami/.edm/envs/chaco-dev/lib/python2.7/site-packages/enable/abstract_window.py", line 468, in _paint self.component.draw(gc, view_bounds=(0, 0, size[0], size[1])) File "/Users/ktakami/.edm/envs/chaco-dev/lib/python2.7/site-packages/enable/component.py", line 427, in draw self._draw(gc, view_bounds, mode) File "/Users/ktakami/.edm/envs/chaco-dev/lib/python2.7/site-packages/enable/component.py", line 779, in _draw self._dispatch_draw(layer, gc, view_bounds, mode) File "/Users/ktakami/.edm/envs/chaco-dev/lib/python2.7/site-packages/enable/container.py", line 272, in _dispatch_draw component._dispatch_draw(layer, gc, new_bounds, mode) File "/Users/ktakami/.edm/envs/chaco-dev/lib/python2.7/site-packages/enable/container.py", line 272, in _dispatch_draw component._dispatch_draw(layer, gc, new_bounds, mode) File "/Users/ktakami/.edm/envs/chaco-dev/lib/python2.7/site-packages/enable/component.py", line 799, in _dispatch_draw handler(gc, view_bounds, mode) File "/Users/ktakami/.edm/envs/chaco-dev/lib/python2.7/site-packages/chaco/base_xy_plot.py", line 466, in _draw_plot self._draw_component(gc, view_bounds, mode) File "/Users/ktakami/.edm/envs/chaco-dev/lib/python2.7/site-packages/chaco/base_xy_plot.py", line 474, in _draw_component self._render(gc, pts) File "/Users/ktakami/.edm/envs/chaco-dev/lib/python2.7/site-packages/chaco/quiverplot.py", line 80, in _render ends = points + self._cached_vector_data ValueError: operands could not be broadcast together with shapes (0,) (0,2) ``` **OS, Python version:** OSX, Python 2.7 splits from #385
[ { "content": "\nfrom __future__ import with_statement\n\nfrom numpy import array, compress, matrix, newaxis, sqrt, zeros\n\n# Enthought library imports\nfrom enable.api import ColorTrait\nfrom traits.api import Array, Enum, Float, Instance, Int\n\n# Chaco relative imports\nfrom .abstract_data_source import Abst...
[ { "content": "\nfrom __future__ import with_statement\n\nfrom numpy import array, compress, matrix, newaxis, sqrt, zeros\n\n# Enthought library imports\nfrom enable.api import ColorTrait\nfrom traits.api import Array, Enum, Float, Instance, Int\n\n# Chaco relative imports\nfrom .abstract_data_source import Abst...
diff --git a/chaco/quiverplot.py b/chaco/quiverplot.py index 757c22a32..adf614741 100644 --- a/chaco/quiverplot.py +++ b/chaco/quiverplot.py @@ -69,6 +69,9 @@ def _gather_points_old(self): def _render(self, gc, points, icon_mode=False): + if len(points) < 1: + return + with gc: gc.clip_to_rect(self.x, self.y, self.width, self.height)
pymodbus-dev__pymodbus-1282
async serial server isn't explicitly started by StartAsyncSerialServer Now my python modbus server isn't replying to the client talking to it on the serial port. It was working with 3.1.0, it fails with 3.1.1, and it's not because of the logging changes. I'll investigate... Meanwhile, found a typo: tcp.py line 213: ` if self.params.host.startswith("unit:"):` "unit" should be "unix", since it's about unix sockets... === I found the issue, it works now. In 3.1.0, StartAsyncSerialServer() calls server.start() In 3.1.1 it does not and returns the server object. So I added .start() in my code on the return value of StartAsyncSerialServer(), and now the server serves. I wonder if this is a bug in my code, perhaps I was supposed to call .start(), but it feels weird that a function called StartAsyncSerialServer() does not actually start the server. Hmm... _Originally posted by @peufeu2 in https://github.com/pymodbus-dev/pymodbus/issues/1279#issuecomment-1400424302_
[ { "content": "\"\"\"Implementation of a Threaded Modbus Server.\"\"\"\n# pylint: disable=missing-type-doc\nimport asyncio\nimport logging\nimport ssl\nimport traceback\nfrom binascii import b2a_hex\nfrom time import sleep\n\nfrom pymodbus.client.serial_asyncio import create_serial_connection\nfrom pymodbus.cons...
[ { "content": "\"\"\"Implementation of a Threaded Modbus Server.\"\"\"\n# pylint: disable=missing-type-doc\nimport asyncio\nimport logging\nimport ssl\nimport traceback\nfrom binascii import b2a_hex\nfrom time import sleep\n\nfrom pymodbus.client.serial_asyncio import create_serial_connection\nfrom pymodbus.cons...
diff --git a/pymodbus/server/async_io.py b/pymodbus/server/async_io.py index 66593afee..6151a528b 100644 --- a/pymodbus/server/async_io.py +++ b/pymodbus/server/async_io.py @@ -1263,6 +1263,7 @@ async def StartAsyncSerialServer( # pylint: disable=invalid-name,dangerous-defa ) if not defer_start: job = _serverList(server, custom_functions, not defer_start) + await server.start() await job.run() return server
mindee__doctr-243
Pb: unitest text_export_size not passing on tf 2.3.1 Unitest text_export_size not OK locally on tf 2.3.1 : ``` def test_export_sizes(test_convert_to_tflite, test_convert_to_fp16, test_quantize_model): assert sys.getsizeof(test_convert_to_tflite) > sys.getsizeof(test_convert_to_fp16) > assert sys.getsizeof(test_convert_to_fp16) > sys.getsizeof(test_quantize_model) E AssertionError: assert 3041 > 3041 ```
[ { "content": "# Copyright (C) 2021, Mindee.\n\n# This program is licensed under the Apache License version 2.\n# See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details.\n\n\"\"\"\nPackage installation setup\n\"\"\"\n\nimport os\nfrom pathlib import Path\nimport subproces...
[ { "content": "# Copyright (C) 2021, Mindee.\n\n# This program is licensed under the Apache License version 2.\n# See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details.\n\n\"\"\"\nPackage installation setup\n\"\"\"\n\nimport os\nfrom pathlib import Path\nimport subproces...
diff --git a/requirements.txt b/requirements.txt index 329db4d173..e67e58e8d2 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ numpy>=1.16.0 scipy>=1.4.0 opencv-python>=3.4.5.20 -tensorflow>=2.3.0 +tensorflow>=2.4.0 PyMuPDF>=1.16.0,<1.18.11 pyclipper>=1.2.0 shapely>=1.6.0 diff --git a/setup.py b/setup.py index 7c423b4c58..145c41bad0 100644 --- a/setup.py +++ b/setup.py @@ -40,7 +40,7 @@ "numpy>=1.16.0", "scipy>=1.4.0", "opencv-python>=4.2", - "tensorflow>=2.3.0", + "tensorflow>=2.4.0", "PyMuPDF>=1.16.0,<1.18.11", "pyclipper>=1.2.0", "shapely>=1.6.0", diff --git a/test/test_models_export.py b/test/test_models_export.py index fe0b9b9a30..d482e4a10e 100644 --- a/test/test_models_export.py +++ b/test/test_models_export.py @@ -40,7 +40,4 @@ def test_quantize_model(mock_model): def test_export_sizes(test_convert_to_tflite, test_convert_to_fp16, test_quantize_model): assert sys.getsizeof(test_convert_to_tflite) > sys.getsizeof(test_convert_to_fp16) - if tf.__version__ < "2.4.0": - assert sys.getsizeof(test_convert_to_fp16) >= sys.getsizeof(test_quantize_model) - else: - assert sys.getsizeof(test_convert_to_fp16) > sys.getsizeof(test_quantize_model) + assert sys.getsizeof(test_convert_to_fp16) > sys.getsizeof(test_quantize_model)
DjangoGirls__djangogirls-63
Order of the questions in the form can get mixed up Haven't debug it yet, but just adding so I won't forget
[ { "content": "from django import forms\n\n\ndef generate_form_from_questions(questions):\n fields = {}\n\n for question in questions:\n options = {\n 'label': question.title,\n 'help_text': question.help_text or None,\n 'required': question.is_required,\n }\n...
[ { "content": "from collections import OrderedDict\n\nfrom django import forms\n\n\ndef generate_form_from_questions(questions):\n fields = OrderedDict()\n\n for question in questions:\n options = {\n 'label': question.title,\n 'help_text': question.help_text or None,\n ...
diff --git a/applications/utils.py b/applications/utils.py index 280a0a333..f6ce9c84e 100644 --- a/applications/utils.py +++ b/applications/utils.py @@ -1,8 +1,10 @@ +from collections import OrderedDict + from django import forms def generate_form_from_questions(questions): - fields = {} + fields = OrderedDict() for question in questions: options = {
urllib3__urllib3-783
HTTPResponse.close may not close underlying connection. Found while investigating kennethreitz/requests#2963 The `HTTPResponse` class has a `close` method that rather suggests it will try to close the backing TCP connection behind the given HTTP response. Right now, that's not what happens if the connection is kept alive for any reason (that is, if the server did not send `Connection: close`): instead, the TCP connection will be kept alive and handled as normal. This seems moderately surprising to me. What it means, in practice, is that calling `HTTPResponse.close()` in both urllib3 and httplib/http.client does not guarantee the closure of the backing TCP connection: instead, in both cases it says "I'm done with the TCP connection, but the underlying connection is free to re-use it". The problems this causes can be see in the `_error_catcher` context manager on the HTTPResponse which does not actually call the class `close` method, presumably because it's too deficient to do the job. This behaviour affects the chunked transfer encoding decoding logic which calls `self.close()` and therefore may incorrectly keep the connection alive, though it does not itself return the connection to the pool. I believe it _should_ be safe to have `close` close the underlying connection if it is present. As something of an optimisation, we can then safely assume that `close` can call `release_conn`, which will allow us to keep hold of the `HTTPConnection` object in a situation where otherwise we might lose it.
[ { "content": "from __future__ import absolute_import\nfrom contextlib import contextmanager\nimport zlib\nimport io\nfrom socket import timeout as SocketTimeout\nfrom socket import error as SocketError\n\nfrom ._collections import HTTPHeaderDict\nfrom .exceptions import (\n ProtocolError, DecodeError, ReadTi...
[ { "content": "from __future__ import absolute_import\nfrom contextlib import contextmanager\nimport zlib\nimport io\nfrom socket import timeout as SocketTimeout\nfrom socket import error as SocketError\n\nfrom ._collections import HTTPHeaderDict\nfrom .exceptions import (\n ProtocolError, DecodeError, ReadTi...
diff --git a/test/with_dummyserver/test_socketlevel.py b/test/with_dummyserver/test_socketlevel.py index 1e6113f447..8895c063b6 100644 --- a/test/with_dummyserver/test_socketlevel.py +++ b/test/with_dummyserver/test_socketlevel.py @@ -433,6 +433,53 @@ def socket_handler(listener): timeout=Timeout(connect=1, read=0.1)) self.assertEqual(len(response.read()), 8) + def test_closing_response_actually_closes_connection(self): + done_closing = Event() + complete = Event() + # The insane use of this variable here is to get around the fact that + # Python 2.6 does not support returning a value from Event.wait(). This + # means we can't tell if an event timed out, so we can't use the timing + # out of the 'complete' event to determine the success or failure of + # the test. Python 2 also doesn't have the nonlocal statement, so we + # can't write directly to this variable, only mutate it. Hence: list. + successful = [] + + def socket_handler(listener): + sock = listener.accept()[0] + + buf = b'' + while not buf.endswith(b'\r\n\r\n'): + buf = sock.recv(65536) + + sock.send(('HTTP/1.1 200 OK\r\n' + 'Content-Type: text/plain\r\n' + 'Content-Length: 0\r\n' + '\r\n').encode('utf-8')) + + # Wait for the socket to close. + done_closing.wait(timeout=1) + + # Look for the empty string to show that the connection got closed. + # Don't get stuck in a timeout. + sock.settimeout(1) + new_data = sock.recv(65536) + self.assertFalse(new_data) + successful.append(True) + sock.close() + complete.set() + + self._start_server(socket_handler) + pool = HTTPConnectionPool(self.host, self.port) + + response = pool.request('GET', '/', retries=0, preload_content=False) + self.assertEqual(response.status, 200) + response.close() + + done_closing.set() # wait until the socket in our pool gets closed + complete.wait(timeout=1) + if not successful: + self.fail("Timed out waiting for connection close") + class TestProxyManager(SocketDummyServerTestCase): diff --git a/urllib3/response.py b/urllib3/response.py index 8f2a1b5c29..f02192124e 100644 --- a/urllib3/response.py +++ b/urllib3/response.py @@ -387,6 +387,9 @@ def close(self): if not self.closed: self._fp.close() + if self._connection is not None: + self._connection.close() + @property def closed(self): if self._fp is None:
holoviz__panel-743
GridSpec objects attribute violates Panel interface contract The `Panel` class provides an `objects` attribute that is expected to contain a list of child objects: ```python class Panel(Reactive): ... objects = param.Parameter(default=[], doc=""" The list of child objects that make up the layout.""") ``` but `GridSpec` overrides this with a dictionary: ```python class GridSpec(Panel): ... objects = param.Dict(default={}, doc=""" The dictionary of child objects that make up the grid.""") ``` Consequently any code that is meant to operate on a `Panel .object` list is likely to break when applied to a `GridSpec`. In particular, the `Panel._cleanup`, which is inherited by `GridSpec` will fail because iterating over the objects will return tuples instead of the actual child objects. For this case, you could probably fix this by overriding `_cleanup` in `GridSpec` but it would not fix the underlying issue. Observed using Panel 0.6.0.
[ { "content": "\"\"\"\nDefines Layout classes which may be used to arrange panes and widgets\nin flexible ways to build complex dashboards.\n\"\"\"\nfrom __future__ import absolute_import, division, unicode_literals\n\nfrom collections import OrderedDict\n\nimport param\nimport numpy as np\n\nfrom bokeh.layouts ...
[ { "content": "\"\"\"\nDefines Layout classes which may be used to arrange panes and widgets\nin flexible ways to build complex dashboards.\n\"\"\"\nfrom __future__ import absolute_import, division, unicode_literals\n\nfrom collections import OrderedDict\n\nimport param\nimport numpy as np\n\nfrom bokeh.layouts ...
diff --git a/panel/layout.py b/panel/layout.py index 7289c9c8e4..301bf0f1d7 100644 --- a/panel/layout.py +++ b/panel/layout.py @@ -24,9 +24,6 @@ class Panel(Reactive): Abstract baseclass for a layout of Viewables. """ - objects = param.Parameter(default=[], doc=""" - The list of child objects that make up the layout.""") - _bokeh_model = None __abstract = True
huggingface__transformers-4916
🐛 TPU Training broken due to recent changes # 🐛 Bug Looks like due to changes in file_utils.py, the TPU Training has become broken. Reverting transformers to a version before https://github.com/huggingface/transformers/commit/2cfb947f59861d5d910f84eba3be57da200b5599 fixes the problem. ## Information Seems like file_utils.py is trying to reinitialize the TPU system right after being imported. This fails because xla_spawn.py has already initialized the TPU. Model I am using (Bert, XLNet ...): roberta (but doesn't matter) Language I am using the model on (English, Chinese ...): English The problem arises when using: * [x] the official example scripts: (give details below) * [ ] my own modified scripts: (give details below) The tasks I am working on is: * [x] an official GLUE/SQUaD task: (give the name) * [ ] my own task or dataset: (give details below) ## To reproduce Steps to reproduce the behavior: With a setup capable of training on TPU, replicating the official language modeling example ``` /transformers/examples$ python xla_spawn.py --num_cores 8 language-modeling/run_language_modeling.py --output_dir=output --model_type=roberta --model_name_or_path=roberta-base --do_train --train_data_file=$TRAIN_FILE --do_eval --eval_data_file=$TEST_FILE --mlm ``` <!-- If you have code snippets, error messages, stack traces please provide them here as well. Important! Use code tags to correctly format your code. See https://help.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks#syntax-highlighting Do not use screenshots, as they are hard to read and (more importantly) don't allow others to copy-and-paste your code.--> The failure stacktrace- ``` File "/home/saurabh/chat-ai/vendor/transformers/examples/language-modeling/run_language_modeling.py", line 29, in <module> self = reduction.pickle.load(from_parent) from transformers import ( File "/home/saurabh/chat-ai/vendor/transformers/examples/language-modeling/run_language_modeling.py", line 29, in <module> File "/anaconda3/envs/torch-xla-nightly/lib/python3.6/site-packages/transformers/__init__.py", line 23, in <module> from transformers import ( File "/anaconda3/envs/torch-xla-nightly/lib/python3.6/site-packages/transformers/__init__.py", line 23, in <module> from transformers import ( from .configuration_albert import ALBERT_PRETRAINED_CONFIG_ARCHIVE_MAP, AlbertConfig File "/anaconda3/envs/torch-xla-nightly/lib/python3.6/site-packages/transformers/__init__.py", line 23, in <module> File "/anaconda3/envs/torch-xla-nightly/lib/python3.6/site-packages/transformers/configuration_albert.py", line 18, in <modul e> from .configuration_albert import ALBERT_PRETRAINED_CONFIG_ARCHIVE_MAP, AlbertConfig File "/anaconda3/envs/torch-xla-nightly/lib/python3.6/site-packages/transformers/configuration_albert.py", line 18, in <modul e> from .configuration_utils import PretrainedConfig File "/anaconda3/envs/torch-xla-nightly/lib/python3.6/site-packages/transformers/configuration_utils.py", line 25, in <module > from .configuration_albert import ALBERT_PRETRAINED_CONFIG_ARCHIVE_MAP, AlbertConfig File "/anaconda3/envs/torch-xla-nightly/lib/python3.6/site-packages/transformers/configuration_albert.py", line 18, in <modul e> from .configuration_utils import PretrainedConfig File "/anaconda3/envs/torch-xla-nightly/lib/python3.6/site-packages/transformers/configuration_utils.py", line 25, in <module > from .file_utils import CONFIG_NAME, cached_path, hf_bucket_url, is_remote_url File "/anaconda3/envs/torch-xla-nightly/lib/python3.6/site-packages/transformers/file_utils.py", line 76, in <module> from .configuration_utils import PretrainedConfig from .file_utils import CONFIG_NAME, cached_path, hf_bucket_url, is_remote_url File "/anaconda3/envs/torch-xla-nightly/lib/python3.6/site-packages/transformers/configuration_utils.py", line 25, in <module > File "/anaconda3/envs/torch-xla-nightly/lib/python3.6/site-packages/transformers/file_utils.py", line 76, in <module> tpu_device = xm.xla_device() from .file_utils import CONFIG_NAME, cached_path, hf_bucket_url, is_remote_url File "/anaconda3/envs/torch-xla-nightly/lib/python3.6/site-packages/torch_xla/core/xla_model.py", line 146, in xla_device File "/anaconda3/envs/torch-xla-nightly/lib/python3.6/site-packages/transformers/file_utils.py", line 76, in <module> tpu_device = xm.xla_device() File "/anaconda3/envs/torch-xla-nightly/lib/python3.6/site-packages/torch_xla/core/xla_model.py", line 146, in xla_device tpu_device = xm.xla_device() devkind=[devkind] if devkind is not None else None) File "/anaconda3/envs/torch-xla-nightly/lib/python3.6/site-packages/torch_xla/core/xla_model.py", line 146, in xla_device File "/anaconda3/envs/torch-xla-nightly/lib/python3.6/site-packages/torch_xla/core/xla_model.py", line 50, in get_xla_support ed_devices devkind=[devkind] if devkind is not None else None) File "/anaconda3/envs/torch-xla-nightly/lib/python3.6/site-packages/torch_xla/core/xla_model.py", line 50, in get_xla_support ed_devices xla_devices = torch_xla._XLAC._xla_get_devices() devkind=[devkind] if devkind is not None else None) RuntimeError: tensorflow/compiler/xla/xla_client/xrt_computation_client.cc:1245 : Check failed: session.Run({tensorflow::Output (result, 0)}, &outputs) == ::tensorflow::Status::OK() (Already exists: From /job:tpu_worker/replica:0/task:0: 2 root error(s) found. (0) Already exists: Resource localhost/tpu_mesh_common_state/N10tensorflow3tpu21TpuMeshStateInterfaceE [[{{node configure_distributed_tpu/_0}}]] (1) Already exists: Resource localhost/tpu_mesh_common_state/N10tensorflow3tpu21TpuMeshStateInterfaceE [[{{node configure_distributed_tpu/_0}}]] 0 successful operations. 0 derived errors ignored. vs. OK) ``` ## Expected behavior Model trains ## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` version: 2.11.0 (master) - Platform: Linux-4.9.0-12-amd64-x86_64-with-debian-9.12 - Python version: 3.6.10 - PyTorch version (GPU?): 1.6.0a0+af05158 (False) - Tensorflow version (GPU?): not installed (NA) - Using GPU in script?: no - Using distributed or parallel set-up in script?: yes, 8 way parallelism with xla_spawn.py
[ { "content": "\"\"\"\nUtilities for working with the local dataset cache.\nThis file is adapted from the AllenNLP library at https://github.com/allenai/allennlp\nCopyright by the AllenNLP authors.\n\"\"\"\n\nimport fnmatch\nimport json\nimport logging\nimport os\nimport shutil\nimport sys\nimport tarfile\nimpor...
[ { "content": "\"\"\"\nUtilities for working with the local dataset cache.\nThis file is adapted from the AllenNLP library at https://github.com/allenai/allennlp\nCopyright by the AllenNLP authors.\n\"\"\"\n\nimport fnmatch\nimport json\nimport logging\nimport os\nimport shutil\nimport sys\nimport tarfile\nimpor...
diff --git a/src/transformers/file_utils.py b/src/transformers/file_utils.py index a6925aa0827f..433c77ae5add 100644 --- a/src/transformers/file_utils.py +++ b/src/transformers/file_utils.py @@ -71,9 +71,7 @@ try: - import torch_xla.core.xla_model as xm - - tpu_device = xm.xla_device() + import torch_xla.core.xla_model as xm # noqa: F401 if _torch_available: _torch_tpu_available = True # pylint: disable=
mindee__doctr-404
WeasyPrint import error Python 3.7 ## 🐛 Bug When importing weasyprint with python 3.7 I have an error: `AttributeError: 'OutStream' object has no attribute 'buffer'`* ## To Reproduce Steps to reproduce the behavior: `from doctr.models import ocr_predictor` leads to: ``` AttributeError Traceback (most recent call last) <ipython-input-4-19f78ebc9b57> in <module>() ----> 1 from doctr.models import ocr_predictor 2 3 # Load predictor 4 model = ocr_predictor(pretrained=True) 7 frames /usr/local/lib/python3.7/dist-packages/doctr/__init__.py in <module>() 1 from .file_utils import is_tf_available, is_torch_available 2 from .version import __version__ # noqa: F401 ----> 3 from . import documents 4 from . import transforms 5 from . import utils /usr/local/lib/python3.7/dist-packages/doctr/documents/__init__.py in <module>() 1 from .elements import * ----> 2 from .reader import * /usr/local/lib/python3.7/dist-packages/doctr/documents/reader.py in <module>() 8 from pathlib import Path 9 import fitz ---> 10 from weasyprint import HTML 11 from typing import List, Tuple, Optional, Any, Union, Sequence, Dict 12 /usr/local/lib/python3.7/dist-packages/weasyprint/__init__.py in <module>() 321 # Work around circular imports. 322 from .css import preprocess_stylesheet # noqa isort:skip --> 323 from .html import ( # noqa isort:skip 324 HTML5_UA_COUNTER_STYLE, HTML5_UA_STYLESHEET, HTML5_PH_STYLESHEET, 325 find_base_url) /usr/local/lib/python3.7/dist-packages/weasyprint/html.py in <module>() 21 from .css.counters import CounterStyle 22 from .formatting_structure import boxes ---> 23 from .images import SVGImage 24 from .logger import LOGGER 25 from .urls import get_url_attribute /usr/local/lib/python3.7/dist-packages/weasyprint/images.py in <module>() 11 from itertools import cycle 12 ---> 13 import pydyf 14 from PIL import Image 15 /usr/local/lib/python3.7/dist-packages/pydyf/__init__.py in <module>() 402 403 --> 404 class PDF: 405 """PDF document.""" 406 def __init__(self): /usr/local/lib/python3.7/dist-packages/pydyf/__init__.py in PDF() 506 self.write_line(b'%%EOF', output) 507 --> 508 def write(self, output=sys.stdout.buffer): 509 """Write PDF to output. 510 AttributeError: 'OutStream' object has no attribute 'buffer' ``` ## Expected behavior Nothing, special ## Environment ``` DocTR version: 0.3.0 TensorFlow version: 2.5.0 PyTorch version: 1.9.0+cu102 (torchvision 0.10.0+cu102) OpenCV version: 4.5.3 OS: Ubuntu 18.04.5 LTS Python version: 3.7 Is CUDA available (TensorFlow): No Is CUDA available (PyTorch): No CUDA runtime version: 11.0.221 GPU models and configuration: Could not collect Nvidia driver version: Could not collect ```
[ { "content": "# Copyright (C) 2021, Mindee.\n\n# This program is licensed under the Apache License version 2.\n# See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details.\n\n\"\"\"\nPackage installation setup\n\"\"\"\n\nimport os\nimport re\nfrom pathlib import Path\nimpor...
[ { "content": "# Copyright (C) 2021, Mindee.\n\n# This program is licensed under the Apache License version 2.\n# See LICENSE or go to <https://www.apache.org/licenses/LICENSE-2.0.txt> for full license details.\n\n\"\"\"\nPackage installation setup\n\"\"\"\n\nimport os\nimport re\nfrom pathlib import Path\nimpor...
diff --git a/requirements.txt b/requirements.txt index c0df7a7617..c244b2ba87 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ pyclipper>=1.2.0 shapely>=1.6.0 matplotlib>=3.1.0 mplcursors>=0.3 -weasyprint>=52.2 +weasyprint>=52.2,<53.0 unidecode>=1.0.0 tensorflow>=2.4.0 Pillow>=8.0.0 diff --git a/setup.py b/setup.py index 7ccec5a6d4..64abf6f766 100644 --- a/setup.py +++ b/setup.py @@ -49,7 +49,7 @@ "shapely>=1.6.0", "matplotlib>=3.1.0", "mplcursors>=0.3", - "weasyprint>=52.2", + "weasyprint>=52.2,<53.0", "unidecode>=1.0.0", "tensorflow-cpu>=2.4.0", "torch>=1.8.0",
qtile__qtile-2674
utils.has_transparency has print statement left in from testing # Issue description utils.has_transparency is printing bar colors to stdout. https://github.com/qtile/qtile/blob/a3dcd5db984f3ab08ef3f89eff86e014dd367ee1/libqtile/utils.py#L127 I would submit a pr myself but my fork is currently a little snafu. # Qtile version 0.18 # Configuration in my config I have ``` bar.BAR( #other stuff background=["#000000","#000000","#000000","#003300"],) ``` This is showing up in stdout as: `['#000000', '#000000', '#000000', '#003300']`
[ { "content": "# Copyright (c) 2008, Aldo Cortesi. All rights reserved.\n# Copyright (c) 2020, Matt Colligan. All rights reserved.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Softwa...
[ { "content": "# Copyright (c) 2008, Aldo Cortesi. All rights reserved.\n# Copyright (c) 2020, Matt Colligan. All rights reserved.\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Softwa...
diff --git a/libqtile/utils.py b/libqtile/utils.py index 5947ebf800..9a378488e4 100644 --- a/libqtile/utils.py +++ b/libqtile/utils.py @@ -124,7 +124,6 @@ def has_alpha(col): return has_alpha(colour) elif isinstance(colour, list): - print([c for c in colour]) return any([has_transparency(c) for c in colour]) return False
liqd__a4-opin-906
styling of categories in dashboard (Safari) When using Safari the styling of categories in the dashboard is broken. ![safari styling issue](https://user-images.githubusercontent.com/15954895/28914159-fe84edde-783a-11e7-8ae4-09f0a6b978cd.png)
[ { "content": "from adhocracy4.categories import forms as category_forms\n\nfrom . import models\n\n\nclass IdeaForm(category_forms.CategorizableForm):\n class Meta:\n model = models.Idea\n fields = ['name', 'description', 'image', 'category']\n", "path": "euth/ideas/forms.py" } ]
[ { "content": "from adhocracy4.categories import forms as category_forms\n\nfrom . import models\n\n\nclass IdeaForm(category_forms.CategorizableForm):\n class Meta:\n model = models.Idea\n fields = ['name', 'description', 'image', 'category']\n\n def __init__(self, *args, **kwargs):\n ...
diff --git a/euth/ideas/forms.py b/euth/ideas/forms.py index 0c07e55ec..056c2b412 100644 --- a/euth/ideas/forms.py +++ b/euth/ideas/forms.py @@ -7,3 +7,7 @@ class IdeaForm(category_forms.CategorizableForm): class Meta: model = models.Idea fields = ['name', 'description', 'image', 'category'] + + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) + self.fields['category'].empty_label = '---' diff --git a/euth/ideas/templates/euth_ideas/idea_form.html b/euth/ideas/templates/euth_ideas/idea_form.html index 54b115ef7..00155960b 100644 --- a/euth/ideas/templates/euth_ideas/idea_form.html +++ b/euth/ideas/templates/euth_ideas/idea_form.html @@ -65,6 +65,8 @@ <h3 class="sans-serif"> </div> {{ form.image.errors }} </div> + + {% if form.show_categories %} <div class="form-group"> <label class="control-label" for="{{ form.category.id_for_label }}">{% trans 'Category'%}</label> {% if form.category.errors %} @@ -74,6 +76,7 @@ <h3 class="sans-serif"> {% endif %} {{ form.category.errors }} </div> + {% endif %} {% block additional_fields %}{% endblock %} {% block post_form %} diff --git a/euth_wagtail/assets/scss/components/_category-form.scss b/euth_wagtail/assets/scss/components/_category-form.scss index 2a641e968..0bfaf3e2f 100644 --- a/euth_wagtail/assets/scss/components/_category-form.scss +++ b/euth_wagtail/assets/scss/components/_category-form.scss @@ -17,9 +17,7 @@ } .category__delete { - visibility: collapse; - width: 100%; - left: 0; + @extend .sr-only; &:checked ~ input[type="text"] { text-decoration: line-through;
huggingface__transformers-4448
LayerNorm not excluded from weight decay in TF # 🐛 Bug ## Information Model I am using (Bert, XLNet ...): bert-base-cased Language I am using the model on (English, Chinese ...): English The problem arises when using: * [X] the official example scripts: (give details below) * [ ] my own modified scripts: (give details below) The tasks I am working on is: * [X] an official GLUE/SQUaD task: (give the name) * [ ] my own task or dataset: (give details below) ## To reproduce Steps to reproduce the behavior: 1. Add a print statement to `_do_use_weight_decay` in [AdamWeightDecay](https://github.com/huggingface/transformers/blob/master/src/transformers/optimization_tf.py) to see which parameters are actually excluded: ```python def _do_use_weight_decay(self, param_name): """Whether to use L2 weight decay for `param_name`.""" if self.weight_decay_rate == 0: return False if self._include_in_weight_decay: for r in self._include_in_weight_decay: if re.search(r, param_name) is not None: return True if self._exclude_from_weight_decay: for r in self._exclude_from_weight_decay: if re.search(r, param_name) is not None: print(f"Found: {param_name}") return False return True ``` 2. run `python examples/text-classification/run_tf_glue.py --model_name_or_path bert-base-cased --task_name mrpc --output_dir temp --logging_dir temp --do_train --overwrite_output_dir --optimizer_name adamw`. 3. Observe that no weights related to layer norms are printed. <!-- If you have code snippets, error messages, stack traces please provide them here as well. Important! Use code tags to correctly format your code. See https://help.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks#syntax-highlighting Do not use screenshots, as they are hard to read and (more importantly) don't allow others to copy-and-paste your code.--> ## Expected behavior <!-- A clear and concise description of what you would expect to happen. --> The weights of the layer norms (and the biases) should be printed. See for example: https://github.com/google-research/bert/blob/f39e881b169b9d53bea03d2d341b31707a6c052b/optimization.py. Based on the fact that no layer norm weights are printed with "layer_norm" simply switching "layer_norm" to "LayerNorm" seems like the easiest change. ## Environment info <!-- You can run the command `transformers-cli env` and copy-and-paste its output below. Don't forget to fill out the missing fields in that output! --> - `transformers` version: 2.9.0 - Platform: Darwin-19.4.0-x86_64-i386-64bit - Python version: 3.7.7 - PyTorch version (GPU?): 1.5.0 (False) - Tensorflow version (GPU?): 2.2.0 (False) - Using GPU in script?: No - Using distributed or parallel set-up in script?: No
[ { "content": "# Copyright 2019 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
[ { "content": "# Copyright 2019 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\...
diff --git a/src/transformers/optimization_tf.py b/src/transformers/optimization_tf.py index 6f4e78908919..b72e54905054 100644 --- a/src/transformers/optimization_tf.py +++ b/src/transformers/optimization_tf.py @@ -75,7 +75,7 @@ def create_optimizer(init_lr, num_train_steps, num_warmup_steps, end_lr=0.0, opt beta_1=0.9, beta_2=0.999, epsilon=1e-6, - exclude_from_weight_decay=["layer_norm", "bias"], + exclude_from_weight_decay=["LayerNorm", "layer_norm", "bias"], ) return optimizer
DDMAL__CantusDB-776
Chant Search Manuscript view - change URL path to match OldCantus I understand we're trying to keep URLs the same between OldCantus and NewCantus, but there's a difference in the Chant Search Manuscript view. OldCantus uses `/searchms/` (e.g. https://cantus.uwaterloo.ca/searchms/123610?t=est), whereas NewCantus uses `/chant-search-ms/` (e.g. http://206.12.93.196/chant-search-ms/123610?t=est). This doesn't strike me as a particularly vital difference - I doubt many people will have bookmarked and or cited a Search Manuscript page. But this would be a fairly simple fix, so we may as well make NewCantus work the same as OldCantus in this case. Bigger picture question: how important is it that all URL paths match between OldCantus and New? @annamorphism, do you have a sense of this?
[ { "content": "from django.urls import include, path, reverse\nfrom django.contrib.auth.views import (\n PasswordResetView,\n PasswordResetDoneView,\n PasswordResetConfirmView,\n PasswordResetCompleteView,\n)\nfrom main_app.views import views\nimport debug_toolbar\nfrom main_app.views.century import ...
[ { "content": "from django.urls import include, path, reverse\nfrom django.contrib.auth.views import (\n PasswordResetView,\n PasswordResetDoneView,\n PasswordResetConfirmView,\n PasswordResetCompleteView,\n)\nfrom main_app.views import views\nimport debug_toolbar\nfrom main_app.views.century import ...
diff --git a/django/cantusdb_project/main_app/urls.py b/django/cantusdb_project/main_app/urls.py index 0e40b0ec9..0f355fc53 100644 --- a/django/cantusdb_project/main_app/urls.py +++ b/django/cantusdb_project/main_app/urls.py @@ -319,7 +319,7 @@ ), # misc search path( - "chant-search-ms/<int:source_pk>", + "searchms/<int:source_pk>", ChantSearchMSView.as_view(), name="chant-search-ms", ),
StackStorm__st2-5091
St2Stream service broken when using SSL with mongodb ## SUMMARY This issue is an extension to #4832 however this time it is the st2stream service, I have looked that the code and can see the same monkey patch code hasn't been applied to the st2stream app ### STACKSTORM VERSION Paste the output of ``st2 --version``: 3.3.0 ##### OS, environment, install method Docker compose with the split services and mongo db references commented out so that an external db can be used https://github.com/StackStorm/st2-docker/blob/master/docker-compose.yml All other services correctly connected to mongodb.net test instance with the exception of st2stream. ## Steps to reproduce the problem use docker yaml at https://github.com/StackStorm/st2-docker/blob/master/docker-compose.yml, comment out mongo container and references, adjust files/st2-docker.conf to point to external DB with SSL = True enabled. docker-compose up ## Expected Results What did you expect to happen when running the steps above? st2stream to operate correctly ## Actual Results What happened? What output did you get? 2020-11-16 05:48:55,053 WARNING [-] Retry on ConnectionError - Cannot connect to database default : maximum recursion depth exceeded Adding monkey patch code to st2stream app resolves the issue (manually injected into container to test). file: st2stream/cmd/api.py Code: from st2common.util.monkey_patch import monkey_patch monkey_patch()
[ { "content": "# Copyright 2020 The StackStorm Authors.\n# Copyright 2019 Extreme Networks, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/l...
[ { "content": "# Copyright 2020 The StackStorm Authors.\n# Copyright 2019 Extreme Networks, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/l...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 675b6b48c4..39e389323f 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -22,6 +22,7 @@ Changed Fixed ~~~~~~~~~ +* Added monkey patch fix to st2stream to enable it to work with mongodb via SSL. (bug fix) #5078 #5091 * Fix nginx buffering long polling stream to client. Instead of waiting for closed connection wait for final event to be sent to client. (bug fix) #4842 #5042 diff --git a/st2stream/st2stream/cmd/api.py b/st2stream/st2stream/cmd/api.py index 1c7d5f4d8b..cc1eec7d17 100644 --- a/st2stream/st2stream/cmd/api.py +++ b/st2stream/st2stream/cmd/api.py @@ -13,6 +13,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +from st2common.util.monkey_patch import monkey_patch +monkey_patch() + import os import sys
alltheplaces__alltheplaces-4303
Domain missing from Holland & Barrett website URLs In the holland_and_barrett spider results, the website values returned are missing the domain, e.g. `"website": "/stores/aylesbury-3180/"`. This is what's in the code that the scraper is reading. But presumably AllThePlaces should return a fully qualified url, i.e. `https://www.hollandandbarrett.com/stores/aylesbury-3180/` in this case. I don't know what the micordata etc standards say about whether relative URLs are allowed, but perhaps the framework code could be modified to automatically complete the URL of the page if a relative URL is harvested.
[ { "content": "from scrapy.spiders import SitemapSpider\n\nfrom locations.linked_data_parser import LinkedDataParser\n\n\nclass HollandAndBarrettSpider(SitemapSpider):\n name = \"holland_and_barrett\"\n item_attributes = {\n \"brand\": \"Holland & Barrett\",\n \"brand_wikidata\": \"Q5880870\"...
[ { "content": "from scrapy.spiders import SitemapSpider\n\nfrom locations.linked_data_parser import LinkedDataParser\n\n\nclass HollandAndBarrettSpider(SitemapSpider):\n name = \"holland_and_barrett\"\n item_attributes = {\n \"brand\": \"Holland & Barrett\",\n \"brand_wikidata\": \"Q5880870\"...
diff --git a/locations/spiders/holland_and_barrett.py b/locations/spiders/holland_and_barrett.py index d206fef221f..0ecf6ab804e 100644 --- a/locations/spiders/holland_and_barrett.py +++ b/locations/spiders/holland_and_barrett.py @@ -19,4 +19,6 @@ class HollandAndBarrettSpider(SitemapSpider): download_delay = 1.0 def parse(self, response): - yield LinkedDataParser.parse(response, "LocalBusiness") + item = LinkedDataParser.parse(response, "LocalBusiness") + item["website"] = response.urljoin(item["website"]) + yield item
internetarchive__openlibrary-5645
Image uploader does not recognise uploaded file <!-- What problem are we solving? What does the experience look like today? What are the symptoms? --> As of today (8-09-2021) the image uploader does not recognise that an image has been selected and uploaded. Instead, it displays "Please provide an image URL" after hitting submit. ### Evidence / Screenshot (if possible) ### Relevant url? <!-- `https://openlibrary.org/...` --> ### Steps to Reproduce <!-- What steps caused you to find the bug? --> 1. Go to ...any edition 2. Do ...upload an image as a cover and submit. <!-- What actually happened after these steps? What did you expect to happen? --> * Actual: "Please provide an image URL" * Expected: Image should be added as cover. ### Details - **Logged in (Y/N)?** y - **Browser type/version?** Chrome Version 92.0.4515.159 (Official Build) (x86_64) - **Operating system?** MacOS - **Environment (prod/dev/local)?** prod <!-- If not sure, put prod --> ### Proposal & Constraints <!-- What is the proposed solution / implementation? Is there a precedent of this approach succeeding elsewhere? --> ### Related files <!-- Files related to this issue; this is super useful for new contributors who might want to help! If you're not sure, leave this blank; a maintainer will add them. --> ### Stakeholders <!-- @ tag stakeholders of this bug -->
[ { "content": "\"\"\"Handle book cover/author photo upload.\n\"\"\"\nfrom logging import getLogger\n\nimport requests\nimport six\nimport web\nfrom six import BytesIO\n\nfrom infogami.utils import delegate\nfrom infogami.utils.view import safeint\nfrom openlibrary import accounts\nfrom openlibrary.plugins.upstre...
[ { "content": "\"\"\"Handle book cover/author photo upload.\n\"\"\"\nfrom logging import getLogger\n\nimport requests\nimport six\nimport web\nfrom six import BytesIO\n\nfrom infogami.utils import delegate\nfrom infogami.utils.view import safeint\nfrom openlibrary import accounts\nfrom openlibrary.plugins.upstre...
diff --git a/openlibrary/plugins/upstream/covers.py b/openlibrary/plugins/upstream/covers.py index f27e6609d21..9c98ac0bf15 100644 --- a/openlibrary/plugins/upstream/covers.py +++ b/openlibrary/plugins/upstream/covers.py @@ -54,7 +54,7 @@ def upload(self, key, i): else: data = None - if i.url and i.url.strip() == "http://": + if i.url and i.url.strip() == "https://": i.url = "" user = accounts.get_current_user()
wagtail__wagtail-1791
Cachebusting query parameter (e.g. _=1441835249458) not ignored by api From the [documentation for jQuery.ajax, under "cache"](http://api.jquery.com/jquery.ajax/): > Setting cache to false will only work correctly with HEAD and GET requests. It works by appending "_={timestamp}" to the GET parameters. The parameter is not needed for other types of requests, except in IE8 when a POST is made to a URL that has already been requested by a GET. It seems like it's standard practice to ignore the underscore keyword. Unless I'm mistaken this is an oversight and not a disagreement on the principle of the thing. Reproduce: make an Ajax call to any wagtail API endpoint with the cache flag set to false. Or just navigate to something like `http://localhost:8000/api/v1/pages/?type=home.HomePage&_=1441835249458` You'll get this message: ``` { "message": "query parameter is not an operation or a recognised field: _" } ```
[ { "content": "from __future__ import absolute_import\n\nfrom collections import OrderedDict\n\nfrom django.conf.urls import url\nfrom django.http import Http404\n\nfrom rest_framework import status\nfrom rest_framework.response import Response\nfrom rest_framework.viewsets import GenericViewSet\n\nfrom wagtail....
[ { "content": "from __future__ import absolute_import\n\nfrom collections import OrderedDict\n\nfrom django.conf.urls import url\nfrom django.http import Http404\n\nfrom rest_framework import status\nfrom rest_framework.response import Response\nfrom rest_framework.viewsets import GenericViewSet\n\nfrom wagtail....
diff --git a/wagtail/contrib/wagtailapi/endpoints.py b/wagtail/contrib/wagtailapi/endpoints.py index c6a2489fccf7..26846d598b86 100644 --- a/wagtail/contrib/wagtailapi/endpoints.py +++ b/wagtail/contrib/wagtailapi/endpoints.py @@ -37,6 +37,9 @@ class BaseAPIEndpoint(GenericViewSet): 'fields', 'order', 'search', + + # Used by jQuery for cache-busting. See #1671 + '_', ]) extra_api_fields = [] name = None # Set on subclass.
kymatio__kymatio-352
ENH+TST find a way of testing GPU code With not too much investment in 💲 💰 it should be possible to set up a `jenkins` testing suite on amazon aws: The idea is to have a micro machine that costs 1c/h run the jenkins server. When tests should be run, this should somehow spawn a couple of GPU machines with different GPUs, ideally as spot instances, run the tests and then shut them down again. I looked into this at the very beginning of `kymatio`, but I don't really know how to set this up yet. If anybody has experience with this, feel free to try! :)
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport csv\nimport importlib\nimport os\nimport shutil\nimport sys\nfrom setuptools import setup, find_packages\n\n# Constants\nDISTNAME = 'kymatio'\nDESCRIPTION = 'Wavelet scattering transforms in Python with GPU acceleration'\nURL = 'https://www....
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport csv\nimport importlib\nimport os\nimport shutil\nimport sys\nfrom setuptools import setup, find_packages\n\n# Constants\nDISTNAME = 'kymatio'\nDESCRIPTION = 'Wavelet scattering transforms in Python with GPU acceleration'\nURL = 'https://www....
diff --git a/.travis.yml b/.travis.yml index 885beb281..bab8e4b97 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,4 +12,4 @@ install: script: - pytest --cov=kymatio after_success: - - bash <(curl -s https://codecov.io/bash) + - bash <(curl -s https://codecov.io/bash) -F travis diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 3619022c9..a285412a1 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -10,5 +10,6 @@ Vincent Lostanlen nshervt Jan Schlüter Edouard Oyallon +Dylan Simon Louis Thiry Sergey Zagoruyko diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..ec16e50f3 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,75 @@ +pipeline { + agent none + options { + disableConcurrentBuilds() + buildDiscarder(logRotator(numToKeepStr: '8', daysToKeepStr: '20')) + timeout(time: 1, unit: 'HOURS') + } + stages { + stage('torch') { + agent { + dockerfile { + dir 'tools' + args '--device /dev/nvidia0:/dev/nvidia0 --device /dev/nvidiactl:/dev/nvidiactl --device /dev/nvidia-uvm:/dev/nvidia-uvm' + } + } + environment { + HOME = pwd(tmp:true) + } + steps { + sh 'python3 -m venv $HOME' + sh '''#!/bin/bash -ex + source $HOME/bin/activate + pip3 install -r requirements.txt pytest pytest-cov torchvision + python3 setup.py develop + KYMATIO_BACKEND=$STAGE_NAME pytest --cov=kymatio + bash <(curl -s https://codecov.io/bash) -t 3941b784-370b-4e50-a162-e5018b7c2861 -F jenkins_$STAGE_NAME + ''' + } + } + stage('skcuda') { + agent { + dockerfile { + dir 'tools' + args '--device /dev/nvidia0:/dev/nvidia0 --device /dev/nvidiactl:/dev/nvidiactl --device /dev/nvidia-uvm:/dev/nvidia-uvm' + } + } + environment { + HOME = pwd(tmp:true) + } + steps { + sh 'python3 -m venv $HOME' + sh '''#!/bin/bash -ex + source $HOME/bin/activate + pip3 install -r requirements.txt pytest pytest-cov scikit-cuda cupy + python3 setup.py develop + KYMATIO_BACKEND=$STAGE_NAME pytest --cov=kymatio + bash <(curl -s https://codecov.io/bash) -t 3941b784-370b-4e50-a162-e5018b7c2861 -F jenkins_$STAGE_NAME + ''' + } + } + } + post { + failure { + emailext subject: '$PROJECT_NAME - Build #$BUILD_NUMBER - $BUILD_STATUS', + body: '''$PROJECT_NAME - Build #$BUILD_NUMBER - $BUILD_STATUS + +Check console output at $BUILD_URL to view full results. + +Building $BRANCH_NAME for $CAUSE +$JOB_DESCRIPTION + +Chages: +$CHANGES + +End of build log: +${BUILD_LOG,maxLines=60} +''', + recipientProviders: [ + [$class: 'DevelopersRecipientProvider'], + ], + replyTo: '$DEFAULT_REPLYTO', + to: 'janden@flatironinstitute.org' + } + } +} diff --git a/setup.py b/setup.py index 4bf31a9ae..cb9110a63 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ # Parse description -with open('README.md') as f: +with open('README.md', encoding='utf8') as f: README = f.read().split('\n') LONG_DESCRIPTION = '\n'.join([x for x in README if not x[:3]=='[![']) diff --git a/tools/Dockerfile b/tools/Dockerfile new file mode 100644 index 000000000..355f602ce --- /dev/null +++ b/tools/Dockerfile @@ -0,0 +1,19 @@ +FROM ubuntu:bionic + +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common && \ + add-apt-repository ppa:graphics-drivers/ppa && \ + DEBIAN_FRONTEND=noninteractive apt-get install -y \ + libnvidia-compute-410 \ + nvidia-cuda-toolkit \ + python3-scipy \ + python3-appdirs \ + python3-pytest \ + python3-pytest-cov \ + python3-pip \ + python3-venv \ + curl \ + && \ + apt-get autoremove --purge -y && \ + apt-get autoclean -y && \ + rm -rf /var/cache/apt/* /var/lib/apt/lists/*
apache__tvm-3962
docker/build.sh demo_android -it bash fails https://github.com/dmlc/tvm/blob/9e4f07b4695a8849590cdd46de662e3fa273d59b/docker/Dockerfile.demo_android#L70 Command fails with errors like: ``` CMake Error at cmake/util/FindLLVM.cmake:76 (string): string sub-command STRIP requires two arguments. Call Stack (most recent call first): cmake/modules/LLVM.cmake:22 (find_llvm) CMakeLists.txt:240 (include) ``` And more generally it's hard to follow the tutorial to optimize for Android. - On my Ubuntu 19.04 Java 11 is installed by default with which sources are not compatible - docker/bash.sh tvmai/demo-android fails - building image fails So the only way to run the tutorial is to prepare custom docker image where all needed resources will be avilable
[ { "content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n...
[ { "content": "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n...
diff --git a/CMakeLists.txt b/CMakeLists.txt index 754aa6498156..abf198de1c53 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,7 +101,7 @@ else(MSVC) set(CMAKE_C_FLAGS "-O2 -Wall -fPIC ${CMAKE_C_FLAGS}") set(CMAKE_CXX_FLAGS "-O2 -Wall -fPIC ${CMAKE_CXX_FLAGS}") if (HIDE_PRIVATE_SYMBOLS) - message("Hide private symbols...") + message(STATUS "Hide private symbols...") set(CMAKE_C_FLAGS "-fvisibility=hidden ${CMAKE_C_FLAGS}") set(CMAKE_CXX_FLAGS "-fvisibility=hidden ${CMAKE_CXX_FLAGS}") endif(HIDE_PRIVATE_SYMBOLS) diff --git a/cmake/util/FindLLVM.cmake b/cmake/util/FindLLVM.cmake index 1c3b2f0ca0d8..7e759ab20037 100644 --- a/cmake/util/FindLLVM.cmake +++ b/cmake/util/FindLLVM.cmake @@ -49,13 +49,29 @@ macro(find_llvm use_llvm) message(STATUS "Use llvm-config=" ${LLVM_CONFIG}) separate_arguments(LLVM_CONFIG) execute_process(COMMAND ${LLVM_CONFIG} --libfiles + RESULT_VARIABLE __llvm_exit_code OUTPUT_VARIABLE __llvm_libfiles) + if(NOT "${__llvm_exit_code}" STREQUAL "0") + message(FATAL_ERROR "Fatal error executing: ${use_llvm} --libfiles") + endif() execute_process(COMMAND ${LLVM_CONFIG} --system-libs + RESULT_VARIABLE __llvm_exit_code OUTPUT_VARIABLE __llvm_system_libs) + if(NOT "${__llvm_exit_code}" STREQUAL "0") + message(FATAL_ERROR "Fatal error executing: ${use_llvm} --system-libs") + endif() execute_process(COMMAND ${LLVM_CONFIG} --cxxflags + RESULT_VARIABLE __llvm_exit_code OUTPUT_VARIABLE __llvm_cxxflags) + if(NOT "${__llvm_exit_code}" STREQUAL "0") + message(FATAL_ERROR "Fatal error executing: ${use_llvm} --cxxflags") + endif() execute_process(COMMAND ${LLVM_CONFIG} --version + RESULT_VARIABLE __llvm_exit_code OUTPUT_VARIABLE __llvm_version) + if(NOT "${__llvm_exit_code}" STREQUAL "0") + message(FATAL_ERROR "Fatal error executing: ${use_llvm} --version") + endif() # llvm version string(REGEX REPLACE "^([^.]+)\.([^.])+\.[^.]+.*$" "\\1\\2" TVM_LLVM_VERSION ${__llvm_version}) # definitions diff --git a/docker/Dockerfile.demo_android b/docker/Dockerfile.demo_android index d6d9a9b50bd6..6f8720c9eb3e 100644 --- a/docker/Dockerfile.demo_android +++ b/docker/Dockerfile.demo_android @@ -61,7 +61,7 @@ RUN cd /usr && \ mkdir -p build && \ cd build && \ cmake \ - -DUSE_LLVM=llvm-config-6.0 \ + -DUSE_LLVM=llvm-config-8 \ -DUSE_RPC=ON \ -DUSE_SORT=ON \ -DUSE_GRAPH_RUNTIME=ON \ diff --git a/tutorials/frontend/deploy_model_on_android.py b/tutorials/frontend/deploy_model_on_android.py index 72404132c19e..9969d0788ba0 100644 --- a/tutorials/frontend/deploy_model_on_android.py +++ b/tutorials/frontend/deploy_model_on_android.py @@ -66,7 +66,7 @@ # # mkdir build # cd build -# cmake -DUSE_LLVM=llvm-config-6.0 \ +# cmake -DUSE_LLVM=llvm-config-8 \ # -DUSE_RPC=ON \ # -DUSE_SORT=ON \ # -DUSE_VULKAN=ON \
open-telemetry__opentelemetry-python-2307
Rename `ConsoleExporter` to `ConsoleLogExporter`? As suggested by @lonewolf3739, we should rename the ConsoleExporter to ConsoleLogExporter to follow the pattern established by the ConsoleSpanExporter. Not in this PR; Should we rename this to `ConsoleLogExporter`? _Originally posted by @lonewolf3739 in https://github.com/open-telemetry/opentelemetry-python/pull/2253#r759589860_
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f0cf21c606..cd154b753cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ([#2303](https://github.com/open-telemetry/opentelemetry-python/pull/2303)) - Adding entrypoints for log emitter provider and console, otlp log exporters ([#2253](https://github.com/open-telemetry/opentelemetry-python/pull/2253)) +- Rename ConsoleExporter to ConsoleLogExporter + ([#2307](https://github.com/open-telemetry/opentelemetry-python/pull/2307)) ## [1.7.1-0.26b1](https://github.com/open-telemetry/opentelemetry-python/releases/tag/v1.7.0-0.26b0) - 2021-11-11 diff --git a/opentelemetry-sdk/setup.cfg b/opentelemetry-sdk/setup.cfg index a8025965004..e78448dd820 100644 --- a/opentelemetry-sdk/setup.cfg +++ b/opentelemetry-sdk/setup.cfg @@ -57,7 +57,7 @@ opentelemetry_traces_exporter = opentelemetry_log_emitter_provider = sdk_log_emitter_provider = opentelemetry.sdk._logs:LogEmitterProvider opentelemetry_logs_exporter = - console = opentelemetry.sdk._logs.export:ConsoleExporter + console = opentelemetry.sdk._logs.export:ConsoleLogExporter opentelemetry_id_generator = random = opentelemetry.sdk.trace.id_generator:RandomIdGenerator opentelemetry_environment_variables = diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/_logs/export/__init__.py b/opentelemetry-sdk/src/opentelemetry/sdk/_logs/export/__init__.py index c705c2b2497..87ac308317d 100644 --- a/opentelemetry-sdk/src/opentelemetry/sdk/_logs/export/__init__.py +++ b/opentelemetry-sdk/src/opentelemetry/sdk/_logs/export/__init__.py @@ -63,7 +63,7 @@ def shutdown(self): """ -class ConsoleExporter(LogExporter): +class ConsoleLogExporter(LogExporter): """Implementation of :class:`LogExporter` that prints log records to the console. diff --git a/opentelemetry-sdk/tests/logs/test_export.py b/opentelemetry-sdk/tests/logs/test_export.py index 45b83358f93..502c68ed759 100644 --- a/opentelemetry-sdk/tests/logs/test_export.py +++ b/opentelemetry-sdk/tests/logs/test_export.py @@ -31,7 +31,7 @@ ) from opentelemetry.sdk._logs.export import ( BatchLogProcessor, - ConsoleExporter, + ConsoleLogExporter, SimpleLogProcessor, ) from opentelemetry.sdk._logs.export.in_memory_log_exporter import ( @@ -321,7 +321,7 @@ def _target(): log_processor.shutdown() -class TestConsoleExporter(unittest.TestCase): +class TestConsoleLogExporter(unittest.TestCase): def test_export(self): # pylint: disable=no-self-use """Check that the console exporter prints log records.""" log_data = LogData( @@ -341,7 +341,7 @@ def test_export(self): # pylint: disable=no-self-use "first_name", "first_version" ), ) - exporter = ConsoleExporter() + exporter = ConsoleLogExporter() # Mocking stdout interferes with debugging and test reporting, mock on # the exporter instance instead. @@ -362,7 +362,7 @@ def formatter(record): # pylint: disable=unused-argument return mock_record_str mock_stdout = Mock() - exporter = ConsoleExporter(out=mock_stdout, formatter=formatter) + exporter = ConsoleLogExporter(out=mock_stdout, formatter=formatter) log_data = LogData( log_record=LogRecord(), instrumentation_info=InstrumentationInfo( diff --git a/opentelemetry-sdk/tests/test_configurator.py b/opentelemetry-sdk/tests/test_configurator.py index 8a4aadd4790..ca755544b76 100644 --- a/opentelemetry-sdk/tests/test_configurator.py +++ b/opentelemetry-sdk/tests/test_configurator.py @@ -28,7 +28,7 @@ _import_id_generator, _init_tracing, ) -from opentelemetry.sdk._logs.export import ConsoleExporter +from opentelemetry.sdk._logs.export import ConsoleLogExporter from opentelemetry.sdk.resources import SERVICE_NAME, Resource from opentelemetry.sdk.trace.export import ConsoleSpanExporter from opentelemetry.sdk.trace.id_generator import IdGenerator, RandomIdGenerator @@ -193,5 +193,5 @@ def test_console_exporters(self): trace_exporters["console"].__class__, ConsoleSpanExporter.__class__ ) self.assertEqual( - logs_exporters["console"].__class__, ConsoleExporter.__class__ + logs_exporters["console"].__class__, ConsoleLogExporter.__class__ )
scikit-hep__pyhf-1220
pytest v6.2.0 causing test_optim_with_value to fail # Description `v0.5.4` `bump2version` changes were swept into `master` 2020-12-12 with f824afe and the CI on `master` succeeded. Later that day [`pytest` `v6.2.0`](https://github.com/pytest-dev/pytest/releases/tag/6.2.0) was released and the nightly scheduled CI failed on ```pytb _______________________ test_optim_with_value[jax-mu=1] ________________________ backend = (<pyhf.tensor.jax_backend.jax_backend object at 0x7f6bf92def50>, None) source = {'bindata': {'bkg': [100.0, 150.0], 'bkgsys_dn': [98, 100], 'bkgsys_up': [102, 190], 'data': [120.0, 180.0], ...}, 'binning': [2, -0.5, 1.5]} spec = {'channels': [{'name': 'singlechannel', 'samples': [{'data': [30.0, 95.0], 'modifiers': [{...}], 'name': 'signal'}, {'data': [100.0, 150.0], 'modifiers': [{...}], 'name': 'background'}]}]} mu = 1.0 @pytest.mark.parametrize('mu', [1.0], ids=['mu=1']) def test_optim_with_value(backend, source, spec, mu): pdf = pyhf.Model(spec) data = source['bindata']['data'] + pdf.config.auxdata init_pars = pdf.config.suggested_init() par_bounds = pdf.config.suggested_bounds() optim = pyhf.optimizer result = optim.minimize(pyhf.infer.mle.twice_nll, data, pdf, init_pars, par_bounds) assert pyhf.tensorlib.tolist(result) result, fitted_val = optim.minimize( pyhf.infer.mle.twice_nll, data, pdf, init_pars, par_bounds, fixed_vals=[(pdf.config.poi_index, mu)], return_fitted_val=True, ) assert pyhf.tensorlib.tolist(result) assert pyhf.tensorlib.shape(fitted_val) == () > assert pytest.approx(17.52954975, rel=1e-5) == fitted_val E assert 17.52954975 ± 1.8e-04 == DeviceArray(17.52954975, dtype=float64) E + where 17.52954975 ± 1.8e-04 = <function approx at 0x7f6cc1747f80>(17.52954975, rel=1e-05) E + where <function approx at 0x7f6cc1747f80> = pytest.approx tests/test_optim.py:383: AssertionError ``` Diffing the installed libraries between the two (in [f824afe_install.txt](https://github.com/scikit-hep/pyhf/files/5684241/f824afe_install.txt) and [failing_install.txt](https://github.com/scikit-hep/pyhf/files/5684242/failing_install.txt)) shows that the relevant change is `pytest` ``` $ diff f824afe_install.txt failing_install.txt 33a34 > importlib-metadata 3.1.1 83c84 < py 1.9.0 --- > py 1.10.0 96c97 < pytest 6.1.2 --- > pytest 6.2.0 143a145 > zipp 3.4.0 ``` This is confirmed as if ```diff --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ + extras_require['contrib'] + extras_require['shellcomplete'] + [ - 'pytest~=6.0', + 'pytest~=6.1.0', 'pytest-cov>=2.5.1', 'pytest-mock', 'pytest-benchmark[histogram]', ``` the [CI installs `v6.1.2` and passes](https://github.com/scikit-hep/pyhf/actions/runs/418404132). This behavior is confusing as the only mention of `pytest.approx`in the [`v6.2.0` release notes](https://github.com/pytest-dev/pytest/releases/tag/6.2.0) is under "Improvements" > 7710: Use strict equality comparison for non-numeric types in pytest.approx instead of raising TypeError. > > This was the undocumented behavior before 3.7, but is now officially a supported feature.
[ { "content": "from setuptools import setup\n\nextras_require = {\n 'shellcomplete': ['click_completion'],\n 'tensorflow': [\n 'tensorflow~=2.2.0', # TensorFlow minor releases are as volatile as major\n 'tensorflow-probability~=0.10.0',\n ],\n 'torch': ['torch~=1.2'],\n 'jax': ['jax...
[ { "content": "from setuptools import setup\n\nextras_require = {\n 'shellcomplete': ['click_completion'],\n 'tensorflow': [\n 'tensorflow~=2.2.0', # TensorFlow minor releases are as volatile as major\n 'tensorflow-probability~=0.10.0',\n ],\n 'torch': ['torch~=1.2'],\n 'jax': ['jax...
diff --git a/.github/workflows/dependencies-head.yml b/.github/workflows/dependencies-head.yml index 174c1f382f..77b6f18142 100644 --- a/.github/workflows/dependencies-head.yml +++ b/.github/workflows/dependencies-head.yml @@ -57,7 +57,7 @@ jobs: run: | python -m pytest -r sx --ignore tests/benchmarks/ --ignore tests/contrib --ignore tests/test_notebooks.py - uproot: + uproot3: runs-on: ${{ matrix.os }} strategy: @@ -75,7 +75,31 @@ jobs: run: | python -m pip install --upgrade pip setuptools wheel python -m pip install --ignore-installed --upgrade -q --no-cache-dir -e .[test] - python -m pip install --upgrade --no-cache-dir git+git://github.com/scikit-hep/uproot.git + python -m pip install --upgrade --no-cache-dir git+git://github.com/scikit-hep/uproot3.git + python -m pip list + - name: Test with pytest + run: | + python -m pytest -r sx --ignore tests/benchmarks/ --ignore tests/contrib --ignore tests/test_notebooks.py + + pytest: + + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + python-version: [3.8] + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip setuptools wheel + python -m pip install --ignore-installed --upgrade -q --no-cache-dir -e .[test] + python -m pip install --upgrade --no-cache-dir git+git://github.com/pytest-dev/pytest.git python -m pip list - name: Test with pytest run: | diff --git a/setup.py b/setup.py index 7a35d1d706..3baab9d7ff 100644 --- a/setup.py +++ b/setup.py @@ -48,7 +48,7 @@ extras_require['docs'] = sorted( { 'sphinx>=3.1.2', - 'sphinxcontrib-bibtex', + 'sphinxcontrib-bibtex~=1.0', 'sphinx-click', 'sphinx_rtd_theme', 'nbsphinx', diff --git a/tests/test_optim.py b/tests/test_optim.py index 5303f5b73a..f7f84517ec 100644 --- a/tests/test_optim.py +++ b/tests/test_optim.py @@ -380,7 +380,7 @@ def test_optim_with_value(backend, source, spec, mu): ) assert pyhf.tensorlib.tolist(result) assert pyhf.tensorlib.shape(fitted_val) == () - assert pytest.approx(17.52954975, rel=1e-5) == fitted_val + assert pytest.approx(17.52954975, rel=1e-5) == pyhf.tensorlib.tolist(fitted_val) @pytest.mark.parametrize('mu', [1.0], ids=['mu=1'])
ray-project__ray-5287
[Tune] The logdir string of Trial is always truncated For now, the logdir string of a trial is created by `Trial.create_logdir`: https://github.com/ray-project/ray/blob/6f737e6a500dc9f500d4cf7ba7b31f979922a18b/python/ray/tune/trial.py#L373-L389 The `identifier` is always be truncated to a length of `MAX_LEN_IDENTIFIER`. This should be configurable since the max length of file names could be 256 in some systems. @richardliaw
[ { "content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nfrom collections import namedtuple\nimport ray.cloudpickle as cloudpickle\nimport copy\nfrom datetime import datetime\nimport logging\nimport json\nimport uuid\nimport time\nimport tem...
[ { "content": "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nfrom collections import namedtuple\nimport ray.cloudpickle as cloudpickle\nimport copy\nfrom datetime import datetime\nimport logging\nimport json\nimport uuid\nimport time\nimport tem...
diff --git a/python/ray/tune/trial.py b/python/ray/tune/trial.py index a5f9cef3abd17..1221c2a534c38 100644 --- a/python/ray/tune/trial.py +++ b/python/ray/tune/trial.py @@ -30,7 +30,7 @@ from ray.utils import binary_to_hex, hex_to_binary DEBUG_PRINT_INTERVAL = 5 -MAX_LEN_IDENTIFIER = 130 +MAX_LEN_IDENTIFIER = int(os.environ.get("MAX_LEN_IDENTIFIER", 130)) logger = logging.getLogger(__name__)
python-pillow__Pillow-6874
Fatal Python error for negative radius in ImageFilter.BoxBlur() Hi, Python crashes without an exception when a negative radius is passed into ImageFilter.BoxBlur(). This is the error message using spyder. ``` Fatal Python error: Aborted Main thread: Current thread 0x00007fbab679b740 (most recent call first): File "/home/mgouka/miniconda3/envs/bx_gui/lib/python3.9/site-packages/PIL/ImageFilter.py", line 189 in filter File "/home/mgouka/miniconda3/envs/bx_gui/lib/python3.9/site-packages/PIL/Image.py", line 1305 in filter File "/tmp/ipykernel_28079/2108891280.py", line 1 in <module> Restarting kernel... ``` And using python in the standard linux terminal it says: ``` Segmentation fault (core dumped) ``` The code below produces the problem. ```python import numpy as np from PIL import Image, ImageFilter img = Image.fromarray(np.ones([100, 100, 3], dtype='uint8')) img = img.filter(ImageFilter.BoxBlur(-2)) ```
[ { "content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# standard filters\n#\n# History:\n# 1995-11-27 fl Created\n# 2002-06-08 fl Added rank and mode filters\n# 2003-09-15 fl Fixed rank calculation in rank filter; added expand call\n#\n# Copyright (c) 1997-2003 by Secret Labs AB.\n# Copyright (c) 199...
[ { "content": "#\n# The Python Imaging Library.\n# $Id$\n#\n# standard filters\n#\n# History:\n# 1995-11-27 fl Created\n# 2002-06-08 fl Added rank and mode filters\n# 2003-09-15 fl Fixed rank calculation in rank filter; added expand call\n#\n# Copyright (c) 1997-2003 by Secret Labs AB.\n# Copyright (c) 199...
diff --git a/Tests/test_image_filter.py b/Tests/test_image_filter.py index cfe46b65898..a2ef2280b72 100644 --- a/Tests/test_image_filter.py +++ b/Tests/test_image_filter.py @@ -24,6 +24,7 @@ ImageFilter.ModeFilter, ImageFilter.GaussianBlur, ImageFilter.GaussianBlur(5), + ImageFilter.BoxBlur(0), ImageFilter.BoxBlur(5), ImageFilter.UnsharpMask, ImageFilter.UnsharpMask(10), @@ -173,3 +174,14 @@ def test_consistency_5x5(mode): Image.merge(mode, source[: len(mode)]).filter(kernel), Image.merge(mode, reference[: len(mode)]), ) + + +def test_invalid_box_blur_filter(): + with pytest.raises(ValueError): + ImageFilter.BoxBlur(-2) + + im = hopper() + box_blur_filter = ImageFilter.BoxBlur(2) + box_blur_filter.radius = -2 + with pytest.raises(ValueError): + im.filter(box_blur_filter) diff --git a/src/PIL/ImageFilter.py b/src/PIL/ImageFilter.py index 59e2c18b9ac..63d6dcf5cec 100644 --- a/src/PIL/ImageFilter.py +++ b/src/PIL/ImageFilter.py @@ -183,6 +183,9 @@ class BoxBlur(MultibandFilter): name = "BoxBlur" def __init__(self, radius): + if radius < 0: + msg = "radius must be >= 0" + raise ValueError(msg) self.radius = radius def filter(self, image): diff --git a/src/libImaging/BoxBlur.c b/src/libImaging/BoxBlur.c index 2e45a33587c..5afe7cf5043 100644 --- a/src/libImaging/BoxBlur.c +++ b/src/libImaging/BoxBlur.c @@ -237,6 +237,9 @@ ImagingBoxBlur(Imaging imOut, Imaging imIn, float radius, int n) { if (n < 1) { return ImagingError_ValueError("number of passes must be greater than zero"); } + if (radius < 0) { + return ImagingError_ValueError("radius must be >= 0"); + } if (strcmp(imIn->mode, imOut->mode) || imIn->type != imOut->type || imIn->bands != imOut->bands || imIn->xsize != imOut->xsize ||
encode__httpx-1799
Update h2 pin? ### Discussed in https://github.com/encode/httpx/discussions/1485 <div type='discussions-op-text'> <sup>Originally posted by **HarrySky** February 24, 2021</sup> Hi, some time ago `h2` pin was updated in `httpcore`: https://github.com/encode/httpcore/pull/208 But it is still pinned to `3.*` in this package's `http2` extra: https://github.com/encode/httpx/blob/0f280af8b170ed5cc48c12a894f71a8b5762f748/setup.py#L65 This is not an issue, as I can just add `h2>=3,<5` to my setup.py instead of using `httpx[http2]`, but maybe you want dependencies to be in sync with `httpcore`. EDIT: Using git blame we can see that before `http2` extra - `httpcore[http2]` was used instead of `h2` dependency directly.</div>
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport re\nfrom pathlib import Path\n\nfrom setuptools import setup\n\n\ndef get_version(package):\n \"\"\"\n Return package version as listed in `__version__` in `init.py`.\n \"\"\"\n version = Path(package, \"__version__.py\").read_te...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport re\nfrom pathlib import Path\n\nfrom setuptools import setup\n\n\ndef get_version(package):\n \"\"\"\n Return package version as listed in `__version__` in `init.py`.\n \"\"\"\n version = Path(package, \"__version__.py\").read_te...
diff --git a/setup.py b/setup.py index 212aedf865..8854039e21 100644 --- a/setup.py +++ b/setup.py @@ -63,7 +63,7 @@ def get_packages(package): "async_generator; python_version < '3.7'" ], extras_require={ - "http2": "h2==3.*", + "http2": "h2>=3,<5", "brotli": "brotlicffi==1.*", }, classifiers=[
scikit-image__scikit-image-5206
Small typo in utils.py ## Description Small typo in the docs The class docs have the argument name as `arg_mapping` https://github.com/scikit-image/scikit-image/blob/87a8806cca7fb5366b6e5ddbe5e46364b44f90fe/skimage/_shared/utils.py#L119 However, the actual `__init__` method takes the argument with the name `kwarg_mapping` https://github.com/scikit-image/scikit-image/blob/87a8806cca7fb5366b6e5ddbe5e46364b44f90fe/skimage/_shared/utils.py#L131
[ { "content": "import inspect\nimport functools\nimport numbers\nimport sys\nimport warnings\n\nimport numpy as np\nfrom numpy.lib import NumpyVersion\nimport scipy\n\nfrom ..util import img_as_float\nfrom ._warnings import all_warnings, warn\n\n__all__ = ['deprecated', 'get_bound_method_class', 'all_warnings',\...
[ { "content": "import inspect\nimport functools\nimport numbers\nimport sys\nimport warnings\n\nimport numpy as np\nfrom numpy.lib import NumpyVersion\nimport scipy\n\nfrom ..util import img_as_float\nfrom ._warnings import all_warnings, warn\n\n__all__ = ['deprecated', 'get_bound_method_class', 'all_warnings',\...
diff --git a/skimage/_shared/utils.py b/skimage/_shared/utils.py index c0cf954e44a..144145dfdfe 100644 --- a/skimage/_shared/utils.py +++ b/skimage/_shared/utils.py @@ -119,7 +119,7 @@ class deprecate_kwarg: Parameters ---------- - arg_mapping: dict + kwarg_mapping: dict Mapping between the function's old argument names and the new ones. warning_msg: str
cupy__cupy-4734
`pip install` completely ignores existing source builds and installed dependencies I suspect this has to do with #4619. I am on the latest master, and now every time I call `pip install -v -e .` two things happens: 1. These packages keeps being reinstalled despite I already have them in my env: setuptools, wheel, Cython, fastrlock 2. All modules are re-cythonized and recompiled from scratch, despite they've been built and nothing has changed I will try to build in a fresh env to see if something is wrong with my current env. But it's better to be confirmed independently. cc: @kmaehashi @emcastillo
[ { "content": "#!/usr/bin/env python\n\nimport glob\nimport os\nfrom setuptools import setup, find_packages\nimport sys\n\nimport cupy_setup_build\n\n\nfor submodule in ('cupy/core/include/cupy/cub/',\n 'cupy/core/include/cupy/jitify'):\n if len(os.listdir(submodule)) == 0:\n msg = '''...
[ { "content": "#!/usr/bin/env python\n\nimport glob\nimport os\nfrom setuptools import setup, find_packages\nimport sys\n\nimport cupy_setup_build\n\n\nfor submodule in ('cupy/core/include/cupy/cub/',\n 'cupy/core/include/cupy/jitify'):\n if len(os.listdir(submodule)) == 0:\n msg = '''...
diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index 64d5a0e5df7..00000000000 --- a/pyproject.toml +++ /dev/null @@ -1,2 +0,0 @@ -[build-system] -requires = ["setuptools", "wheel", "Cython>=0.28.0", "fastrlock>=0.5"] diff --git a/setup.py b/setup.py index fc0d55303d4..5350393bff5 100644 --- a/setup.py +++ b/setup.py @@ -24,8 +24,7 @@ requirements = { - # setup_requires remains here for pip v18 or earlier. - # Keep in sync with pyproject.yaml. + # TODO(kmaehashi): migrate to pyproject.toml (see #4727, #4619) 'setup': [ 'Cython>=0.28.0', 'fastrlock>=0.5',
streamlink__streamlink-4238
plugins.ustreamtv: [plugin.api.websocket][error] EOF occurred in violation of protocol (_ssl.c:1129) ### Checklist - [X] This is a bug report and not a different kind of issue - [X] [I have read the contribution guidelines](https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#contributing-to-streamlink) - [X] [I have checked the list of open and recently closed bug reports](https://github.com/streamlink/streamlink/issues?q=is%3Aissue+label%3A%22bug%22) - [X] [I have checked the commit log of the master branch](https://github.com/streamlink/streamlink/commits/master) ### Streamlink version Latest stable release ### Description Installed the latest stable build on Windows 11 and the command fails every time with > **[plugin.api.websocket][error] [Errno 2] No such file or directory** this command line `streamlink --loglevel debug https://video.ibm.com/nasahdtv` See the debug info for the result. Note - although the debug log says I am running windows 10 - it is most definitely windows 11 (via winver). This is a new laptop (DELL) that came pre-installed with Windows 11 I didn't see any reference to this issue - but perhaps I have missed something. Thanks for any tips. ### Debug log ```text C:\Users\liamk>streamlink --loglevel debug https://video.ibm.com/nasahdtv [cli][debug] OS: Windows 10 [cli][debug] Python: 3.9.8 [cli][debug] Streamlink: 3.0.3 [cli][debug] Requests(2.26.0), Socks(1.7.1), Websocket(1.2.1) [cli][debug] Arguments: [cli][debug] url=https://video.ibm.com/nasahdtv [cli][debug] --loglevel=debug [cli][debug] --ffmpeg-ffmpeg=C:\Program Files (x86)\Streamlink\ffmpeg\ffmpeg.exe [cli][info] Found matching plugin ustreamtv for URL https://video.ibm.com/nasahdtv [plugins.ustreamtv][debug] Connecting to UStream API: media_id=6540154, application=channel, referrer=https://video.ibm.com/nasahdtv, cluster=live [plugin.api.websocket][debug] Connecting to: wss://r2935561-1-6540154-channel-ws-live.ums.ustream.tv:1935/1/ustream [plugins.ustreamtv][debug] Waiting for stream data (for at most 15 seconds)... [plugin.api.websocket][error] [Errno 2] No such file or directory [plugin.api.websocket][debug] Closed: wss://r2935561-1-6540154-channel-ws-live.ums.ustream.tv:1935/1/ustream [plugins.ustreamtv][error] Waiting for stream data timed out. error: No playable streams found on this URL: https://video.ibm.com/nasahdtv ```
[ { "content": "import logging\nimport re\nfrom collections import deque\nfrom datetime import datetime, timedelta\nfrom random import randint\nfrom threading import Event, RLock\nfrom typing import Any, Callable, Deque, Dict, List, NamedTuple, Union\nfrom urllib.parse import urljoin, urlunparse\n\nfrom requests ...
[ { "content": "import logging\nimport re\nfrom collections import deque\nfrom datetime import datetime, timedelta\nfrom random import randint\nfrom threading import Event, RLock\nfrom typing import Any, Callable, Deque, Dict, List, NamedTuple, Union\nfrom urllib.parse import urljoin, urlunparse\n\nfrom requests ...
diff --git a/src/streamlink/plugins/ustreamtv.py b/src/streamlink/plugins/ustreamtv.py index ca6f628691a..b1e31730985 100644 --- a/src/streamlink/plugins/ustreamtv.py +++ b/src/streamlink/plugins/ustreamtv.py @@ -57,7 +57,7 @@ def url(self, base: str, template: str) -> str: class UStreamTVWsClient(WebsocketClient): - API_URL = "wss://r{0}-1-{1}-{2}-ws-{3}.ums.ustream.tv:1935/1/ustream" + API_URL = "wss://r{0}-1-{1}-{2}-ws-{3}.ums.services.video.ibm.com/1/ustream" APP_ID = 3 APP_VERSION = 2
mitmproxy__mitmproxy-6796
Failed to proxy HTTPS request to unicode domains #### Problem Description Just like issue https://github.com/mitmproxy/mitmproxy/issues/6381. #### Steps to reproduce the behavior: 1. start mitmproxy: `mitmproxy -p 8080` 2. browse url with proxy setup, for example: `https://tt.广西阀门.net` and then mitmproxy throws following exception: ``` Addon error: DNSName values should be passed as an A-label string. This means unicode characters should be encoded via a library like idna. Traceback (most recent call last): File "/home/pan/.local/lib/python3.10/site-packages/mitmproxy/addons/tlsconfig.py", line 526, in _ip_or_dns_name ip = ipaddress.ip_address(val) File "/usr/lib/python3.10/ipaddress.py", line 54, in ip_address raise ValueError(f'{address!r} does not appear to be an IPv4 or IPv6 address') ValueError: 'tt.广西阀门.net' does not appear to be an IPv4 or IPv6 address During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/pan/.local/lib/python3.10/site-packages/cryptography/x509/general_name.py", line 85, in __init__ value.encode("ascii") UnicodeEncodeError: 'ascii' codec can't encode characters in position 3-6: ordinal not in range(128) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/pan/.local/lib/python3.10/site-packages/mitmproxy/addons/tlsconfig.py", line 178, in tls_start_client entry = self.get_cert(tls_start.context) File "/home/pan/.local/lib/python3.10/site-packages/mitmproxy/addons/tlsconfig.py", line 512, in get_cert altnames.append(_ip_or_dns_name(conn_context.server.address[0])) File "/home/pan/.local/lib/python3.10/site-packages/mitmproxy/addons/tlsconfig.py", line 528, in _ip_or_dns_name return x509.DNSName(val) File "/home/pan/.local/lib/python3.10/site-packages/cryptography/x509/general_name.py", line 87, in __init__ raise ValueError( ValueError: DNSName values should be passed as an A-label string. This means unicode characters should be encoded via a library like idna. [16:31:32.448][127.0.0.1:53048] No TLS context was provided, failing connection. ``` #### System Information ```sh $ mitmproxy --version Mitmproxy: 10.2.4 Python: 3.10.12 OpenSSL: OpenSSL 3.2.1 30 Jan 2024 Platform: Linux-6.5.0-21-generic-x86_64-with-glibc2.35 ``` Browser: ``` Google Chrome 122.0.6261.94 (Official Build) (64-bit) Revision 880dbf29479c6152d5e4f08dfd3a96b30f919e56-refs/branch-heads/6261@{#960} OS Linux JavaScript V8 12.2.281.19 User Agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Command Line /usr/bin/google-chrome-stable --flag-switches-begin --flag-switches-end --desktop-startup-id=gnome-shell/Google Chrome/2430-1-PC_TIME219086 ```
[ { "content": "import ipaddress\nimport logging\nimport os\nimport ssl\nfrom pathlib import Path\nfrom typing import Any\nfrom typing import TypedDict\n\nfrom aioquic.h3.connection import H3_ALPN\nfrom aioquic.tls import CipherSuite\nfrom cryptography import x509\nfrom OpenSSL import crypto\nfrom OpenSSL import ...
[ { "content": "import ipaddress\nimport logging\nimport os\nimport ssl\nfrom pathlib import Path\nfrom typing import Any\nfrom typing import TypedDict\n\nfrom aioquic.h3.connection import H3_ALPN\nfrom aioquic.tls import CipherSuite\nfrom cryptography import x509\nfrom OpenSSL import crypto\nfrom OpenSSL import ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index a0a31038c6..1df19bb268 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,8 @@ ([#6767](https://github.com/mitmproxy/mitmproxy/pull/6767), @txrp0x9) * Fix compatibility with older cryptography versions and silence a DeprecationWarning on Python <3.11. ([#6790](https://github.com/mitmproxy/mitmproxy/pull/6790), @mhils) +* Fix a bug when proxying unicode domains. + ([#6796](https://github.com/mitmproxy/mitmproxy/pull/6796), @mhils) ## 07 March 2024: mitmproxy 10.2.4 diff --git a/mitmproxy/addons/tlsconfig.py b/mitmproxy/addons/tlsconfig.py index 63f876a0da..20d6aa8e1b 100644 --- a/mitmproxy/addons/tlsconfig.py +++ b/mitmproxy/addons/tlsconfig.py @@ -525,6 +525,6 @@ def _ip_or_dns_name(val: str) -> x509.GeneralName: try: ip = ipaddress.ip_address(val) except ValueError: - return x509.DNSName(val) + return x509.DNSName(val.encode("idna").decode()) else: return x509.IPAddress(ip) diff --git a/test/mitmproxy/addons/test_tlsconfig.py b/test/mitmproxy/addons/test_tlsconfig.py index d209fd91eb..f4a7bf9ea9 100644 --- a/test/mitmproxy/addons/test_tlsconfig.py +++ b/test/mitmproxy/addons/test_tlsconfig.py @@ -138,12 +138,12 @@ def test_get_cert(self, tdata): ) # And now we also incorporate SNI. - ctx.client.sni = "sni.example" + ctx.client.sni = "🌈.sni.example" entry = ta.get_cert(ctx) assert entry.cert.altnames == x509.GeneralNames( [ x509.DNSName("example.mitmproxy.org"), - x509.DNSName("sni.example"), + x509.DNSName("xn--og8h.sni.example"), x509.DNSName("server-address.example"), ] )
pytorch__pytorch-4384
Profiler for Python 2.7 Running `prof = torch.autograd.profiler.load_nvprof('trace_name.prof')` on Python 2.7 causes an error: `NameError: global name 'FileNotFoundError' is not defined` and according to [here](https://github.com/philkr/lpo/issues/5#issuecomment-100596671), FileNotFoundError apparently doesn't exist in python 2.7. A simple solution that worked for me is to add to the beginning of torch/autograd/profiler.py file the following lines: ``` try: FileNotFoundError except NameError: #py2 FileNotFoundError = IOError ``` Which I got from [here](https://stackoverflow.com/a/21368622/850760). PS: I can create a PR if you agree with the solution. Cheers,
[ { "content": "import torch\nimport subprocess\nimport os\nimport sys\nimport copy\nimport tempfile\nimport itertools\nfrom collections import defaultdict, namedtuple\n\n\nclass range(object):\n def __init__(self, name):\n self.name = name\n\n def __enter__(self):\n torch.autograd._push_range...
[ { "content": "import torch\nimport subprocess\nimport os\nimport sys\nimport copy\nimport tempfile\nimport itertools\nfrom collections import defaultdict, namedtuple\n\ntry:\n FileNotFoundError\nexcept NameError:\n # py2.7\n FileNotFoundError = IOError\n\n\nclass range(object):\n def __init__(self, ...
diff --git a/torch/autograd/profiler.py b/torch/autograd/profiler.py index 107d176430accf..1c9f8fd9d2b348 100644 --- a/torch/autograd/profiler.py +++ b/torch/autograd/profiler.py @@ -7,6 +7,12 @@ import itertools from collections import defaultdict, namedtuple +try: + FileNotFoundError +except NameError: + # py2.7 + FileNotFoundError = IOError + class range(object): def __init__(self, name):
open-telemetry__opentelemetry-python-contrib-98
EC2 resource detector hangs for a long time outside of an EC2 instance **Describe your environment** Describe any aspect of your environment relevant to the problem, including your Python version, [platform](https://docs.python.org/3/library/platform.html), version numbers of installed dependencies, information about your cloud hosting provider, etc. If you're reporting a problem with a specific version of a library in this repo, please check whether the problem has been fixed on main. The environment I initially saw this in was a container running in Docker compose on an AWS EC2 instance but I've been able to reproduce it on my laptop as well. I think it will show up in anything not directly running in AWS. **Steps to reproduce** Describe exactly how to reproduce the error. Include a code sample if applicable. The following code reproduced the issue on my laptop: ```python from opentelemetry.sdk.extension.aws.resource.ec2 import AwsEc2ResourceDetector from opentelemetry.sdk.resources import get_aggregated_resources resource = get_aggregated_resources( detectors=[AwsEc2ResourceDetector()] ) ``` **What is the expected behavior?** It should complete quickly (this is the behavior I see running on an EC2 instance). **What is the actual behavior?** What did you see instead? On my laptop, it will hand ~indefinitely. Note: one solution is just to remove the resource detector but we'd like to be able to include it and just have it fail silently, which is the behavior we've seen in other resource detectors. **Additional context** I think the problem is here: https://github.com/open-telemetry/opentelemetry-python-contrib/blob/80969a06da77d1e616124de178d12a1ebe3ffe7f/sdk-extension/opentelemetry-sdk-extension-aws/src/opentelemetry/sdk/extension/aws/resource/ec2.py#L37 It looks like the request is using a 1000 _second_ timeout which I suspect is intended to be a 1000 _millisecond_ timeout. At least with the server program I've been working on that will block the startup of the program until the request completes. You can verify by running: ``` curl http://169.254.169.254/latest/api/token ``` Which is one of the requests that the resource detector makes -- it should hang indefinitely as well.
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/instrumentation/opentelemetry-instrumentation-botocore/setup.cfg b/instrumentation/opentelemetry-instrumentation-botocore/setup.cfg index ee7849c143..a299838577 100644 --- a/instrumentation/opentelemetry-instrumentation-botocore/setup.cfg +++ b/instrumentation/opentelemetry-instrumentation-botocore/setup.cfg @@ -40,13 +40,13 @@ package_dir= packages=find_namespace: install_requires = botocore ~= 1.0 - opentelemetry-api == 0.15.dev0 - opentelemetry-instrumentation == 0.15.dev0 + opentelemetry-api == 0.15b0 + opentelemetry-instrumentation == 0.15b0 [options.extras_require] test = moto ~= 1.0 - opentelemetry-test == 0.15.dev0 + opentelemetry-test == 0.15b0 [options.packages.find] where = src diff --git a/instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/version.py b/instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/version.py index e7b342d644..ff494d225a 100644 --- a/instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/version.py +++ b/instrumentation/opentelemetry-instrumentation-botocore/src/opentelemetry/instrumentation/botocore/version.py @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = "0.15.dev0" +__version__ = "0.15b0"
huggingface__diffusers-1052
Improve the precision of our integration tests We currently have a rather low precision when testing our pipeline due to due reasons. 1. - Our reference is an image and not a numpy array. This means that when we created our reference image we lost float precision which is unnecessary 2. - We only test for `.max() < 1e-2` . IMO we should test for `.max() < 1e-4` with the numpy arrays. In my experiements across multiple devices I have **not** seen differences bigger than `.max() < 1e-4` when using full precision. IMO this could have also prevented: https://github.com/huggingface/diffusers/issues/902
[ { "content": "# Copyright 2022 The HuggingFace Inc. team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2...
[ { "content": "# Copyright 2022 The HuggingFace Inc. team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2...
diff --git a/src/diffusers/utils/__init__.py b/src/diffusers/utils/__init__.py index 12d731128385..7395f4edfa26 100644 --- a/src/diffusers/utils/__init__.py +++ b/src/diffusers/utils/__init__.py @@ -42,6 +42,7 @@ if is_torch_available(): from .testing_utils import ( floats_tensor, + load_hf_numpy, load_image, load_numpy, parse_flag_from_env, diff --git a/src/diffusers/utils/testing_utils.py b/src/diffusers/utils/testing_utils.py index bd3b08d54a1c..bf398e5b6fe5 100644 --- a/src/diffusers/utils/testing_utils.py +++ b/src/diffusers/utils/testing_utils.py @@ -139,6 +139,29 @@ def require_onnxruntime(test_case): return unittest.skipUnless(is_onnx_available(), "test requires onnxruntime")(test_case) +def load_numpy(arry: Union[str, np.ndarray]) -> np.ndarray: + if isinstance(arry, str): + if arry.startswith("http://") or arry.startswith("https://"): + response = requests.get(arry) + response.raise_for_status() + arry = np.load(BytesIO(response.content)) + elif os.path.isfile(arry): + arry = np.load(arry) + else: + raise ValueError( + f"Incorrect path or url, URLs must start with `http://` or `https://`, and {arry} is not a valid path" + ) + elif isinstance(arry, np.ndarray): + pass + else: + raise ValueError( + "Incorrect format used for numpy ndarray. Should be an url linking to an image, a local path, or a" + " ndarray." + ) + + return arry + + def load_image(image: Union[str, PIL.Image.Image]) -> PIL.Image.Image: """ Args: @@ -168,17 +191,13 @@ def load_image(image: Union[str, PIL.Image.Image]) -> PIL.Image.Image: return image -def load_numpy(path) -> np.ndarray: +def load_hf_numpy(path) -> np.ndarray: if not path.startswith("http://") or path.startswith("https://"): path = os.path.join( "https://huggingface.co/datasets/fusing/diffusers-testing/resolve/main", urllib.parse.quote(path) ) - response = requests.get(path) - response.raise_for_status() - array = np.load(BytesIO(response.content)) - - return array + return load_numpy(path) # --- pytest conf functions --- # diff --git a/tests/models/test_models_unet_2d.py b/tests/models/test_models_unet_2d.py index 548588918c88..20371708a4d8 100644 --- a/tests/models/test_models_unet_2d.py +++ b/tests/models/test_models_unet_2d.py @@ -21,7 +21,15 @@ import torch from diffusers import UNet2DConditionModel, UNet2DModel -from diffusers.utils import floats_tensor, load_numpy, logging, require_torch_gpu, slow, torch_all_close, torch_device +from diffusers.utils import ( + floats_tensor, + load_hf_numpy, + logging, + require_torch_gpu, + slow, + torch_all_close, + torch_device, +) from parameterized import parameterized from ..test_modeling_common import ModelTesterMixin @@ -423,7 +431,7 @@ def tearDown(self): def get_latents(self, seed=0, shape=(4, 4, 64, 64), fp16=False): dtype = torch.float16 if fp16 else torch.float32 - image = torch.from_numpy(load_numpy(self.get_file_format(seed, shape))).to(torch_device).to(dtype) + image = torch.from_numpy(load_hf_numpy(self.get_file_format(seed, shape))).to(torch_device).to(dtype) return image def get_unet_model(self, fp16=False, model_id="CompVis/stable-diffusion-v1-4"): @@ -439,7 +447,7 @@ def get_unet_model(self, fp16=False, model_id="CompVis/stable-diffusion-v1-4"): def get_encoder_hidden_states(self, seed=0, shape=(4, 77, 768), fp16=False): dtype = torch.float16 if fp16 else torch.float32 - hidden_states = torch.from_numpy(load_numpy(self.get_file_format(seed, shape))).to(torch_device).to(dtype) + hidden_states = torch.from_numpy(load_hf_numpy(self.get_file_format(seed, shape))).to(torch_device).to(dtype) return hidden_states @parameterized.expand( diff --git a/tests/models/test_models_vae.py b/tests/models/test_models_vae.py index f6333d6cd906..3da7b50e34f3 100644 --- a/tests/models/test_models_vae.py +++ b/tests/models/test_models_vae.py @@ -20,7 +20,7 @@ from diffusers import AutoencoderKL from diffusers.modeling_utils import ModelMixin -from diffusers.utils import floats_tensor, load_numpy, require_torch_gpu, slow, torch_all_close, torch_device +from diffusers.utils import floats_tensor, load_hf_numpy, require_torch_gpu, slow, torch_all_close, torch_device from parameterized import parameterized from ..test_modeling_common import ModelTesterMixin @@ -147,7 +147,7 @@ def tearDown(self): def get_sd_image(self, seed=0, shape=(4, 3, 512, 512), fp16=False): dtype = torch.float16 if fp16 else torch.float32 - image = torch.from_numpy(load_numpy(self.get_file_format(seed, shape))).to(torch_device).to(dtype) + image = torch.from_numpy(load_hf_numpy(self.get_file_format(seed, shape))).to(torch_device).to(dtype) return image def get_sd_vae_model(self, model_id="CompVis/stable-diffusion-v1-4", fp16=False): diff --git a/tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py b/tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py index 0a373ada68bc..f5a8b3cf9ecc 100644 --- a/tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py +++ b/tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py @@ -28,7 +28,7 @@ UNet2DModel, VQModel, ) -from diffusers.utils import floats_tensor, load_image, slow, torch_device +from diffusers.utils import floats_tensor, load_image, load_numpy, slow, torch_device from diffusers.utils.testing_utils import require_torch_gpu from PIL import Image from transformers import CLIPTextConfig, CLIPTextModel, CLIPTokenizer @@ -278,11 +278,10 @@ def test_stable_diffusion_inpaint_pipeline(self): "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main" "/in_paint/overture-creations-5sI6fQgYIuo_mask.png" ) - expected_image = load_image( - "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main" - "/in_paint/yellow_cat_sitting_on_a_park_bench.png" + expected_image = load_numpy( + "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/in_paint" + "/yellow_cat_sitting_on_a_park_bench.npy" ) - expected_image = np.array(expected_image, dtype=np.float32) / 255.0 model_id = "runwayml/stable-diffusion-inpainting" pipe = StableDiffusionInpaintPipeline.from_pretrained( @@ -307,7 +306,7 @@ def test_stable_diffusion_inpaint_pipeline(self): image = output.images[0] assert image.shape == (512, 512, 3) - assert np.abs(expected_image - image).max() < 1e-2 + assert np.abs(expected_image - image).max() < 1e-3 def test_stable_diffusion_inpaint_pipeline_fp16(self): init_image = load_image( @@ -318,11 +317,10 @@ def test_stable_diffusion_inpaint_pipeline_fp16(self): "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main" "/in_paint/overture-creations-5sI6fQgYIuo_mask.png" ) - expected_image = load_image( - "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main" - "/in_paint/yellow_cat_sitting_on_a_park_bench_fp16.png" + expected_image = load_numpy( + "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/in_paint" + "/yellow_cat_sitting_on_a_park_bench_fp16.npy" ) - expected_image = np.array(expected_image, dtype=np.float32) / 255.0 model_id = "runwayml/stable-diffusion-inpainting" pipe = StableDiffusionInpaintPipeline.from_pretrained( @@ -360,11 +358,10 @@ def test_stable_diffusion_inpaint_pipeline_pndm(self): "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main" "/in_paint/overture-creations-5sI6fQgYIuo_mask.png" ) - expected_image = load_image( - "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main" - "/in_paint/yellow_cat_sitting_on_a_park_bench_pndm.png" + expected_image = load_numpy( + "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/in_paint" + "/yellow_cat_sitting_on_a_park_bench_pndm.npy" ) - expected_image = np.array(expected_image, dtype=np.float32) / 255.0 model_id = "runwayml/stable-diffusion-inpainting" pndm = PNDMScheduler.from_config(model_id, subfolder="scheduler") @@ -388,4 +385,4 @@ def test_stable_diffusion_inpaint_pipeline_pndm(self): image = output.images[0] assert image.shape == (512, 512, 3) - assert np.abs(expected_image - image).max() < 1e-2 + assert np.abs(expected_image - image).max() < 1e-3 diff --git a/tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint_legacy.py b/tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint_legacy.py index d25342a35aea..81deba67f274 100644 --- a/tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint_legacy.py +++ b/tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint_legacy.py @@ -31,7 +31,7 @@ VQModel, ) from diffusers.utils import floats_tensor, load_image, slow, torch_device -from diffusers.utils.testing_utils import require_torch_gpu +from diffusers.utils.testing_utils import load_numpy, require_torch_gpu from PIL import Image from transformers import CLIPTextConfig, CLIPTextModel, CLIPTokenizer @@ -358,11 +358,10 @@ def test_stable_diffusion_inpaint_legacy_pipeline(self): "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main" "/in_paint/overture-creations-5sI6fQgYIuo_mask.png" ) - expected_image = load_image( - "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main" - "/in_paint/red_cat_sitting_on_a_park_bench.png" + expected_image = load_numpy( + "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/in_paint" + "/red_cat_sitting_on_a_park_bench.npy" ) - expected_image = np.array(expected_image, dtype=np.float32) / 255.0 model_id = "CompVis/stable-diffusion-v1-4" pipe = StableDiffusionInpaintPipeline.from_pretrained( @@ -389,7 +388,7 @@ def test_stable_diffusion_inpaint_legacy_pipeline(self): image = output.images[0] assert image.shape == (512, 512, 3) - assert np.abs(expected_image - image).max() < 1e-2 + assert np.abs(expected_image - image).max() < 1e-3 def test_stable_diffusion_inpaint_legacy_pipeline_k_lms(self): # TODO(Anton, Patrick) - I think we can remove this test soon @@ -401,11 +400,10 @@ def test_stable_diffusion_inpaint_legacy_pipeline_k_lms(self): "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main" "/in_paint/overture-creations-5sI6fQgYIuo_mask.png" ) - expected_image = load_image( - "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main" - "/in_paint/red_cat_sitting_on_a_park_bench_k_lms.png" + expected_image = load_numpy( + "https://huggingface.co/datasets/hf-internal-testing/diffusers-images/resolve/main/in_paint" + "/red_cat_sitting_on_a_park_bench_k_lms.npy" ) - expected_image = np.array(expected_image, dtype=np.float32) / 255.0 model_id = "CompVis/stable-diffusion-v1-4" lms = LMSDiscreteScheduler.from_config(model_id, subfolder="scheduler") @@ -434,7 +432,7 @@ def test_stable_diffusion_inpaint_legacy_pipeline_k_lms(self): image = output.images[0] assert image.shape == (512, 512, 3) - assert np.abs(expected_image - image).max() < 1e-2 + assert np.abs(expected_image - image).max() < 1e-3 def test_stable_diffusion_inpaint_legacy_intermediate_state(self): number_of_steps = 0
e2nIEE__pandapower-563
from_mpc failed to load the case generated by to_mpc After checking the source code, I found the to_mpc function saves the fields in a loose format. According to the from_mpc function, all the fields should be under a variable called "mpc" (default), however the to_mpc function does not follow this, which leads to a situation that the from_mpc function cannot load the case generated by the to_mpc function.
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright (c) 2016-2019 by University of Kassel and Fraunhofer Institute for Energy Economics\n# and Energy System Technology (IEE), Kassel. All rights reserved.\n\n\nimport copy\n\nimport numpy as np\nfrom scipy.io import savemat\n\nfrom pandapower.converter.pypower i...
[ { "content": "# -*- coding: utf-8 -*-\n\n# Copyright (c) 2016-2019 by University of Kassel and Fraunhofer Institute for Energy Economics\n# and Energy System Technology (IEE), Kassel. All rights reserved.\n\n\nimport copy\n\nimport numpy as np\nfrom scipy.io import savemat\n\nfrom pandapower.converter.pypower i...
diff --git a/pandapower/converter/matpower/to_mpc.py b/pandapower/converter/matpower/to_mpc.py index e345cb66a..8afac2ee9 100644 --- a/pandapower/converter/matpower/to_mpc.py +++ b/pandapower/converter/matpower/to_mpc.py @@ -42,7 +42,8 @@ def to_mpc(net, filename=None, **kwargs): """ ppc = to_ppc(net, **kwargs) - mpc = _ppc2mpc(ppc) + mpc = dict() + mpc["mpc"] = _ppc2mpc(ppc) if filename is not None: # savemat savemat(filename, mpc)
django-wiki__django-wiki-891
Translations out-of-date I noticed the string "Search whole wiki..." has not been translated on my wiki because the translation file has not been updated since December 2017. Would you update the `django.po` file so I can work on the translation in Transifex? Thanks.
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\nimport sys\nfrom glob import glob\n\nfrom setuptools import find_packages, setup\n\nsys.path.append(\n os.path.join(os.path.dirname(__file__), 'src')\n)\n\n# noqa\nfrom wiki import __version__ # isort:skip # noqa\n\n\n# Utility func...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport os\nimport sys\nfrom glob import glob\n\nfrom setuptools import find_packages, setup\n\nsys.path.append(\n os.path.join(os.path.dirname(__file__), 'src')\n)\n\n# noqa\nfrom wiki import __version__ # isort:skip # noqa\n\n\n# Utility func...
diff --git a/setup.py b/setup.py index 97c52daef..55ec1efde 100755 --- a/setup.py +++ b/setup.py @@ -50,7 +50,9 @@ def get_path(fname): 'pytest-runner', ] -development_requirements = test_requirements + test_lint_requirements +development_requirements = test_requirements + test_lint_requirements + [ + 'pre-commit', +] extras_requirements = { 'devel': development_requirements, diff --git a/src/wiki/locale/en/LC_MESSAGES/django.po b/src/wiki/locale/en/LC_MESSAGES/django.po index 6e344e57f..48f6c1d10 100644 --- a/src/wiki/locale/en/LC_MESSAGES/django.po +++ b/src/wiki/locale/en/LC_MESSAGES/django.po @@ -3,13 +3,12 @@ # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # -#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:19 #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2017-12-11 00:56+0100\n" +"POT-Creation-Date: 2018-07-26 16:02+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -18,471 +17,463 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: admin.py:87 models/article.py:36 +#: admin.py:85 models/article.py:38 msgid "created" msgstr "" -#: apps.py:9 -msgid "Wiki notifications" -msgstr "" - -#: apps.py:15 -msgid "Wiki images" -msgstr "" - -#: apps.py:21 -msgid "Wiki attachments" +#: apps.py:12 +msgid "Wiki" msgstr "" -#: conf/settings.py:52 +#: conf/settings.py:50 msgid "Table of Contents" msgstr "" -#: core/plugins/base.py:65 +#: core/plugins/base.py:63 msgid "Settings for plugin" msgstr "" -#: forms.py:37 +#: forms.py:26 msgid "A 'slug' cannot consist solely of numbers." msgstr "" -#: forms.py:64 +#: forms.py:53 msgid "A slug may not begin with an underscore." msgstr "" -#: forms.py:67 +#: forms.py:56 msgid "'admin' is not a permitted slug name." msgstr "" -#: forms.py:82 +#: forms.py:71 #, python-format msgid "A deleted article with slug \"%s\" already exists." msgstr "" -#: forms.py:86 +#: forms.py:75 #, python-format msgid "A slug named \"%s\" already exists." msgstr "" -#: forms.py:95 +#: forms.py:84 msgid "This slug conflicts with an existing URL." msgstr "" -#: forms.py:130 +#: forms.py:119 msgid "Spam protection failed to find both a logged in user and an IP address." msgstr "" -#: forms.py:145 +#: forms.py:134 #, python-format msgid "" "Spam protection: You are only allowed to create or edit %(revisions)d " "article(s) per %(interval_name)s." msgstr "" -#: forms.py:163 +#: forms.py:152 msgid "minute" msgstr "" -#: forms.py:164 +#: forms.py:153 #, python-format msgid "%d minutes" msgstr "" -#: forms.py:173 +#: forms.py:162 msgid "hour" msgstr "" -#: forms.py:179 forms.py:207 forms.py:382 templates/wiki/dir.html:48 -#: templates/wiki/search.html:30 +#: forms.py:168 forms.py:196 forms.py:335 templates/wiki/dir.html:48 +#: templates/wiki/search.html:35 msgid "Title" msgstr "" -#: forms.py:181 +#: forms.py:170 msgid "Initial title of the article. May be overridden with revision titles." msgstr "" -#: forms.py:183 +#: forms.py:172 msgid "Type in some contents" msgstr "" -#: forms.py:185 +#: forms.py:174 msgid "" "This is just the initial contents of your article. After creating it, you " "can use more complex features like adding plugins, meta data, related " "articles etc..." msgstr "" -#: forms.py:191 +#: forms.py:180 msgid "Destination" msgstr "" -#: forms.py:193 +#: forms.py:182 msgid "Redirect pages" msgstr "" -#: forms.py:194 +#: forms.py:183 msgid "Create a redirect page for every moved article?" msgstr "" -#: forms.py:209 forms.py:389 +#: forms.py:198 forms.py:342 msgid "Contents" msgstr "" -#: forms.py:214 forms.py:394 +#: forms.py:203 forms.py:347 msgctxt "Revision comment" msgid "Summary" msgstr "" -#: forms.py:216 +#: forms.py:205 msgid "" "Give a short reason for your edit, which will be stated in the revision log." msgstr "" -#: forms.py:272 +#: forms.py:261 msgid "Article is missing title or has an invalid title" msgstr "" -#: forms.py:286 +#: forms.py:275 msgid "" "While you were editing, someone else changed the revision. Your contents " "have been automatically merged with the new contents. Please review the text " "below." msgstr "" -#: forms.py:289 +#: forms.py:278 msgid "No changes made. Nothing to save." msgstr "" -#: forms.py:329 +#: forms.py:305 msgid "Select an option" msgstr "" -#: forms.py:384 templates/wiki/dir.html:49 +#: forms.py:337 templates/wiki/dir.html:49 msgid "Slug" msgstr "" -#: forms.py:386 +#: forms.py:339 msgid "" "This will be the address where your article can be found. Use only " "alphanumeric characters and - or _.<br>Note: If you change the slug later " "on, links pointing to this article are <b>not</b> updated." msgstr "" -#: forms.py:395 +#: forms.py:348 msgid "Write a brief message for the article's history log." msgstr "" -#: forms.py:415 +#: forms.py:367 msgid "Yes, I am sure" msgstr "" -#: forms.py:418 templates/wiki/deleted.html:47 +#: forms.py:370 templates/wiki/deleted.html:47 msgid "Purge" msgstr "" -#: forms.py:420 +#: forms.py:372 msgid "" "Purge the article: Completely remove it (and all its contents) with no undo. " "Purging is a good idea if you want to free the slug such that users can " "create new articles in its place." msgstr "" -#: forms.py:427 plugins/attachments/forms.py:167 plugins/images/forms.py:69 +#: forms.py:379 plugins/attachments/forms.py:163 plugins/images/forms.py:66 msgid "You are not sure enough!" msgstr "" -#: forms.py:431 +#: forms.py:382 msgid "While you tried to delete this article, it was modified. TAKE CARE!" msgstr "" -#: forms.py:438 +#: forms.py:389 msgid "Lock article" msgstr "" -#: forms.py:439 +#: forms.py:390 msgid "Deny all users access to edit this article." msgstr "" -#: forms.py:442 +#: forms.py:393 msgid "Permissions" msgstr "" -#: forms.py:448 +#: forms.py:399 msgid "Owner" msgstr "" -#: forms.py:449 +#: forms.py:400 msgid "Enter the username of the owner." msgstr "" -#: forms.py:452 forms.py:507 plugins/notifications/util.py:14 +#: forms.py:403 forms.py:458 plugins/notifications/util.py:12 msgid "(none)" msgstr "" -#: forms.py:453 +#: forms.py:404 msgid "Group" msgstr "" -#: forms.py:459 +#: forms.py:410 msgid "Inherit permissions" msgstr "" -#: forms.py:460 +#: forms.py:411 msgid "" "Check here to apply the above permissions (excluding group and owner of the " "article) recursively to articles below this one." msgstr "" -#: forms.py:464 +#: forms.py:415 msgid "Inherit owner" msgstr "" -#: forms.py:465 +#: forms.py:416 msgid "" "Check here to apply the ownership setting recursively to articles below this " "one." msgstr "" -#: forms.py:469 +#: forms.py:420 msgid "Inherit group" msgstr "" -#: forms.py:470 +#: forms.py:421 msgid "" "Check here to apply the group setting recursively to articles below this one." msgstr "" -#: forms.py:475 +#: forms.py:426 msgid "Permission settings for the article were updated." msgstr "" -#: forms.py:477 +#: forms.py:428 msgid "Your permission settings were unchanged, so nothing saved." msgstr "" -#: forms.py:537 +#: forms.py:486 msgid "No user with that username" msgstr "" -#: forms.py:572 +#: forms.py:521 msgid "Article locked for editing" msgstr "" -#: forms.py:579 +#: forms.py:528 msgid "Article unlocked for editing" msgstr "" -#: forms.py:606 +#: forms.py:555 msgid "Filter..." msgstr "" -#: forms.py:616 templates/wiki/base_site.html:44 +#: forms.py:565 msgid "Search..." msgstr "" -#: forms.py:665 +#: forms.py:614 msgid "Passwords don't match" msgstr "" -#: models/article.py:29 models/pluginbase.py:161 -#: plugins/attachments/models.py:32 +#: models/article.py:30 models/pluginbase.py:165 +#: plugins/attachments/models.py:26 msgid "current revision" msgstr "" -#: models/article.py:32 +#: models/article.py:34 msgid "" "The revision being displayed for this article. If you need to do a roll-" "back, simply change the value of this field." msgstr "" -#: models/article.py:40 +#: models/article.py:42 msgid "modified" msgstr "" -#: models/article.py:41 +#: models/article.py:43 msgid "Article properties last modified" msgstr "" -#: models/article.py:44 +#: models/article.py:46 msgid "owner" msgstr "" -#: models/article.py:47 +#: models/article.py:49 msgid "" "The owner of the article, usually the creator. The owner always has both " "read and write access." msgstr "" -#: models/article.py:51 +#: models/article.py:53 msgid "group" msgstr "" -#: models/article.py:54 +#: models/article.py:56 msgid "" "Like in a UNIX file system, permissions can be given to a user according to " "group membership. Groups are handled through the Django auth system." msgstr "" -#: models/article.py:59 +#: models/article.py:61 msgid "group read access" msgstr "" -#: models/article.py:62 +#: models/article.py:64 msgid "group write access" msgstr "" -#: models/article.py:65 +#: models/article.py:67 msgid "others read access" msgstr "" -#: models/article.py:68 +#: models/article.py:70 msgid "others write access" msgstr "" -#: models/article.py:181 +#: models/article.py:178 #, python-format msgid "Article without content (%(id)d)" msgstr "" -#: models/article.py:186 +#: models/article.py:183 msgid "Can edit all articles and lock/unlock/restore" msgstr "" -#: models/article.py:187 +#: models/article.py:184 msgid "Can change ownership of any article" msgstr "" -#: models/article.py:188 +#: models/article.py:185 msgid "Can assign permissions to other users" msgstr "" -#: models/article.py:239 +#: models/article.py:260 msgid "content type" msgstr "" -#: models/article.py:241 +#: models/article.py:262 msgid "object ID" msgstr "" -#: models/article.py:250 +#: models/article.py:271 msgid "Article for object" msgstr "" -#: models/article.py:251 +#: models/article.py:272 msgid "Articles for object" msgstr "" -#: models/article.py:263 +#: models/article.py:284 msgid "revision number" msgstr "" -#: models/article.py:269 +#: models/article.py:290 msgid "IP address" msgstr "" -#: models/article.py:273 +#: models/article.py:294 msgid "user" msgstr "" -#: models/article.py:288 +#: models/article.py:309 #: plugins/attachments/templates/wiki/plugins/attachments/history.html:23 #: plugins/attachments/templates/wiki/plugins/attachments/index.html:25 #: plugins/attachments/templates/wiki/plugins/attachments/search.html:44 -#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:69 +#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:68 #: templates/wiki/includes/revision_info.html:15 msgid "deleted" msgstr "" -#: models/article.py:292 -#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:75 +#: models/article.py:313 +#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:74 #: templates/wiki/article.html:23 templates/wiki/includes/revision_info.html:21 msgid "locked" msgstr "" -#: models/article.py:333 models/pluginbase.py:40 models/urlpath.py:58 +#: models/article.py:351 models/pluginbase.py:44 models/urlpath.py:56 msgid "article" msgstr "" -#: models/article.py:336 +#: models/article.py:354 msgid "article contents" msgstr "" -#: models/article.py:341 +#: models/article.py:359 msgid "article title" msgstr "" -#: models/article.py:344 +#: models/article.py:362 msgid "" "Each revision contains a title field that must be filled out, even if the " "title has not changed" msgstr "" -#: models/pluginbase.py:81 +#: models/pluginbase.py:85 msgid "original article" msgstr "" -#: models/pluginbase.py:83 +#: models/pluginbase.py:87 msgid "Permissions are inherited from this article" msgstr "" -#: models/pluginbase.py:146 +#: models/pluginbase.py:150 msgid "A plugin was changed" msgstr "" -#: models/pluginbase.py:166 +#: models/pluginbase.py:171 msgid "" "The revision being displayed for this plugin. If you need to do a roll-back, " "simply change the value of this field." msgstr "" -#: models/urlpath.py:60 +#: models/urlpath.py:58 msgid "" "This field is automatically updated, but you need to populate it when " "creating a new URL path." msgstr "" -#: models/urlpath.py:67 +#: models/urlpath.py:65 msgid "slug" msgstr "" -#: models/urlpath.py:75 +#: models/urlpath.py:74 msgid "Position of URL path in the tree." msgstr "" -#: models/urlpath.py:79 +#: models/urlpath.py:78 msgid "Moved to" msgstr "" -#: models/urlpath.py:80 +#: models/urlpath.py:79 msgid "Article path was moved to this location" msgstr "" -#: models/urlpath.py:181 +#: models/urlpath.py:180 msgid "(root)" msgstr "" -#: models/urlpath.py:189 +#: models/urlpath.py:188 msgid "URL path" msgstr "" -#: models/urlpath.py:190 +#: models/urlpath.py:189 msgid "URL paths" msgstr "" -#: models/urlpath.py:196 +#: models/urlpath.py:195 msgid "Sorry but you cannot have a root article with a slug." msgstr "" -#: models/urlpath.py:199 +#: models/urlpath.py:198 msgid "A non-root note must always have a slug." msgstr "" -#: models/urlpath.py:205 +#: models/urlpath.py:204 #, python-format msgid "There is already a root node on %s" msgstr "" -#: models/urlpath.py:408 +#: models/urlpath.py:405 msgid "" "Articles who lost their parents\n" "===============================\n" @@ -491,90 +482,94 @@ msgid "" "probably find a new home for them." msgstr "" -#: models/urlpath.py:411 +#: models/urlpath.py:408 msgid "Lost and found" msgstr "" -#: plugins/attachments/forms.py:19 +#: plugins/attachments/apps.py:7 +msgid "Wiki attachments" +msgstr "" + +#: plugins/attachments/forms.py:15 #: plugins/attachments/templates/wiki/plugins/attachments/history.html:14 msgid "Description" msgstr "" -#: plugins/attachments/forms.py:20 +#: plugins/attachments/forms.py:16 msgid "A short summary of what the file contains" msgstr "" -#: plugins/attachments/forms.py:69 +#: plugins/attachments/forms.py:65 msgid "Remove previous" msgstr "" -#: plugins/attachments/forms.py:70 +#: plugins/attachments/forms.py:66 msgid "Remove previous attachment revisions and their files (to save space)?" msgstr "" -#: plugins/attachments/forms.py:79 +#: plugins/attachments/forms.py:75 msgid "File or zip archive" msgstr "" -#: plugins/attachments/forms.py:84 +#: plugins/attachments/forms.py:80 msgid "Unzip file" msgstr "" -#: plugins/attachments/forms.py:86 +#: plugins/attachments/forms.py:82 msgid "" "Create individual attachments for files in a .zip file - directories do not " "work." msgstr "" -#: plugins/attachments/forms.py:107 +#: plugins/attachments/forms.py:103 msgid "Not a zip file" msgstr "" -#: plugins/attachments/forms.py:116 +#: plugins/attachments/forms.py:112 msgid "User not allowed to moderate this article" msgstr "" -#: plugins/attachments/forms.py:162 +#: plugins/attachments/forms.py:158 msgid "Yes I am sure..." msgstr "" -#: plugins/attachments/models.py:35 +#: plugins/attachments/models.py:30 msgid "" "The revision of this attachment currently in use (on all articles using the " "attachment)" msgstr "" -#: plugins/attachments/models.py:39 +#: plugins/attachments/models.py:34 msgid "original filename" msgstr "" -#: plugins/attachments/models.py:52 +#: plugins/attachments/models.py:47 msgid "attachment" msgstr "" -#: plugins/attachments/models.py:53 +#: plugins/attachments/models.py:48 msgid "attachments" msgstr "" -#: plugins/attachments/models.py:72 +#: plugins/attachments/models.py:67 msgid "No file extension found in filename. That's not okay!" msgstr "" -#: plugins/attachments/models.py:78 +#: plugins/attachments/models.py:73 msgid "" "The following filename is illegal: {filename:s}. Extension has to be one of " "{extensions:s}" msgstr "" -#: plugins/attachments/models.py:126 +#: plugins/attachments/models.py:119 msgid "file" msgstr "" -#: plugins/attachments/models.py:132 +#: plugins/attachments/models.py:125 msgid "attachment revision" msgstr "" -#: plugins/attachments/models.py:133 +#: plugins/attachments/models.py:126 msgid "attachment revisions" msgstr "" @@ -587,15 +582,13 @@ msgstr "" #: plugins/attachments/templates/wiki/plugins/attachments/delete.html:12 msgid "" -"\n" -" The file may be referenced on other articles. Deleting it means that " -"they will loose their references to this file. The following articles " -"reference this file:\n" -" " +"The file may be referenced on other articles. Deleting it means that they " +"will loose their references to this file. The following articles reference " +"this file:" msgstr "" -#: plugins/attachments/templates/wiki/plugins/attachments/delete.html:29 -#: plugins/attachments/templates/wiki/plugins/attachments/delete.html:53 +#: plugins/attachments/templates/wiki/plugins/attachments/delete.html:27 +#: plugins/attachments/templates/wiki/plugins/attachments/delete.html:51 #: plugins/attachments/templates/wiki/plugins/attachments/history.html:49 #: plugins/attachments/templates/wiki/plugins/attachments/replace.html:39 #: plugins/attachments/templates/wiki/plugins/attachments/search.html:75 @@ -606,15 +599,15 @@ msgstr "" msgid "Go back" msgstr "" -#: plugins/attachments/templates/wiki/plugins/attachments/delete.html:33 +#: plugins/attachments/templates/wiki/plugins/attachments/delete.html:31 msgid "Delete it!" msgstr "" -#: plugins/attachments/templates/wiki/plugins/attachments/delete.html:40 +#: plugins/attachments/templates/wiki/plugins/attachments/delete.html:38 msgid "Remove" msgstr "" -#: plugins/attachments/templates/wiki/plugins/attachments/delete.html:42 +#: plugins/attachments/templates/wiki/plugins/attachments/delete.html:40 msgid "" "\n" " You can remove a reference to a file, but it will retain its references " @@ -622,7 +615,7 @@ msgid "" " " msgstr "" -#: plugins/attachments/templates/wiki/plugins/attachments/delete.html:57 +#: plugins/attachments/templates/wiki/plugins/attachments/delete.html:55 msgid "Remove reference" msgstr "" @@ -633,12 +626,12 @@ msgstr "" #: plugins/attachments/templates/wiki/plugins/attachments/history.html:12 #: plugins/attachments/templates/wiki/plugins/attachments/search.html:28 -#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:44 +#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:43 msgid "Date" msgstr "" #: plugins/attachments/templates/wiki/plugins/attachments/history.html:13 -#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:43 +#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:42 msgid "User" msgstr "" @@ -675,7 +668,7 @@ msgid "Use this!" msgstr "" #: plugins/attachments/templates/wiki/plugins/attachments/index.html:5 -#: plugins/attachments/wiki_plugin.py:21 +#: plugins/attachments/wiki_plugin.py:18 msgid "Attachments" msgstr "" @@ -837,67 +830,71 @@ msgstr "" msgid "Your search did not return any results" msgstr "" -#: plugins/attachments/views.py:54 +#: plugins/attachments/views.py:51 #, python-format msgid "Successfully added: %s" msgstr "" -#: plugins/attachments/views.py:60 +#: plugins/attachments/views.py:57 #, python-format msgid "%s was successfully added." msgstr "" -#: plugins/attachments/views.py:156 +#: plugins/attachments/views.py:153 #, python-format msgid "%s uploaded and replaces old attachment." msgstr "" -#: plugins/attachments/views.py:160 +#: plugins/attachments/views.py:157 #, python-format msgid "Your file could not be saved: %s" msgstr "" -#: plugins/attachments/views.py:189 +#: plugins/attachments/views.py:186 msgid "" "Your new file will automatically be renamed to match the file already " "present. Files with different extensions are not allowed." msgstr "" -#: plugins/attachments/views.py:279 +#: plugins/attachments/views.py:276 #, python-format msgid "Current revision changed for %s." msgstr "" -#: plugins/attachments/views.py:311 +#: plugins/attachments/views.py:308 #, python-format msgid "Added a reference to \"%(att)s\" from \"%(art)s\"." msgstr "" -#: plugins/attachments/views.py:316 +#: plugins/attachments/views.py:313 #, python-format msgid "\"%(att)s\" is already referenced." msgstr "" -#: plugins/attachments/views.py:349 +#: plugins/attachments/views.py:346 #, python-format msgid "The file %s was deleted." msgstr "" -#: plugins/attachments/views.py:354 +#: plugins/attachments/views.py:351 #, python-format msgid "This article is no longer related to the file %s." msgstr "" -#: plugins/attachments/wiki_plugin.py:29 +#: plugins/attachments/wiki_plugin.py:26 #, python-format msgid "A file was changed: %s" msgstr "" -#: plugins/attachments/wiki_plugin.py:32 +#: plugins/attachments/wiki_plugin.py:29 #, python-format msgid "A file was deleted: %s" msgstr "" +#: plugins/globalhistory/apps.py:7 +msgid "Wiki Global History" +msgstr "" + #: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:4 #: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:8 #: plugins/globalhistory/templates/wiki/plugins/globalhistory/menubaritem.html:7 @@ -917,66 +914,70 @@ msgid_plural "" msgstr[0] "" msgstr[1] "" -#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:26 +#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:25 msgid "Show all revisions of all articles" msgstr "" -#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:29 +#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:28 msgid "Show last revision of every article" msgstr "" -#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:40 +#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:39 msgid "Revision ID" msgstr "" -#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:41 +#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:40 msgid "Article" msgstr "" -#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:42 +#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:41 msgid "Message" msgstr "" -#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:66 +#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:65 #: templates/wiki/history.html:72 msgid "no log message" msgstr "" -#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:72 +#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:71 #: templates/wiki/includes/revision_info.html:18 msgid "restored" msgstr "" -#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:78 +#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:77 #: templates/wiki/includes/revision_info.html:24 msgid "unlocked" msgstr "" -#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:88 +#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:87 #: templates/wiki/includes/revision_info.html:10 msgid "anonymous (IP logged)" msgstr "" -#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:96 +#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:95 msgid "Go to article history" msgstr "" -#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:97 +#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:96 msgid "Go to article" msgstr "" -#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:106 +#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:105 msgid "No more changes to display !" msgstr "" -#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:107 +#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:106 msgid "Go back to previous page" msgstr "" -#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:109 +#: plugins/globalhistory/templates/wiki/plugins/globalhistory/globalhistory.html:108 msgid "No changes to display !" msgstr "" +#: plugins/help/apps.py:7 +msgid "Wiki help" +msgstr "" + #: plugins/help/templates/wiki/plugins/help/sidebar.html:1 msgid "Adding new articles" msgstr "" @@ -1013,53 +1014,57 @@ msgstr "" msgid "Tables" msgstr "" -#: plugins/help/wiki_plugin.py:12 +#: plugins/help/wiki_plugin.py:10 msgid "Help" msgstr "" -#: plugins/images/forms.py:20 +#: plugins/images/apps.py:10 +msgid "Wiki images" +msgstr "" + +#: plugins/images/forms.py:17 #, python-format msgid "" "New image %s was successfully uploaded. You can use it by selecting it from " "the list of available images." msgstr "" -#: plugins/images/forms.py:64 +#: plugins/images/forms.py:61 msgid "Are you sure?" msgstr "" -#: plugins/images/models.py:48 +#: plugins/images/models.py:38 msgid "image" msgstr "" -#: plugins/images/models.py:49 +#: plugins/images/models.py:39 msgid "images" msgstr "" -#: plugins/images/models.py:54 +#: plugins/images/models.py:44 #, python-format msgid "Image: %s" msgstr "" -#: plugins/images/models.py:56 +#: plugins/images/models.py:46 msgid "Current revision not set!!" msgstr "" -#: plugins/images/models.py:108 +#: plugins/images/models.py:97 msgid "image revision" msgstr "" -#: plugins/images/models.py:109 +#: plugins/images/models.py:98 msgid "image revisions" msgstr "" -#: plugins/images/models.py:115 +#: plugins/images/models.py:104 #, python-format msgid "Image Revision: %d" msgstr "" #: plugins/images/templates/wiki/plugins/images/index.html:5 -#: plugins/images/wiki_plugin.py:18 +#: plugins/images/wiki_plugin.py:15 msgid "Images" msgstr "" @@ -1205,31 +1210,35 @@ msgstr "" msgid "Cancel" msgstr "" -#: plugins/images/views.py:80 +#: plugins/images/views.py:78 #, python-format msgid "%s has been restored" msgstr "" -#: plugins/images/views.py:82 +#: plugins/images/views.py:80 #, python-format msgid "%s has been marked as deleted" msgstr "" -#: plugins/images/views.py:142 +#: plugins/images/views.py:140 #, python-format msgid "%(file)s has been changed to revision #%(revision)d" msgstr "" -#: plugins/images/views.py:187 +#: plugins/images/views.py:185 #, python-format msgid "%(file)s has been saved." msgstr "" -#: plugins/images/wiki_plugin.py:29 +#: plugins/images/wiki_plugin.py:26 #, python-format msgid "An image was added: %s" msgstr "" +#: plugins/links/apps.py:7 +msgid "Wiki links" +msgstr "" + #: plugins/links/templates/wiki/plugins/links/sidebar.html:3 msgid "Link to another wiki page" msgstr "" @@ -1246,35 +1255,39 @@ msgid "" "or http://example.com or by using the markdown syntax:" msgstr "" -#: plugins/links/wiki_plugin.py:23 +#: plugins/links/wiki_plugin.py:20 msgid "Links" msgstr "" -#: plugins/macros/mdx/macro.py:83 +#: plugins/macros/apps.py:7 +msgid "Wiki macros" +msgstr "" + +#: plugins/macros/mdx/macro.py:79 msgid "Article list" msgstr "" -#: plugins/macros/mdx/macro.py:84 +#: plugins/macros/mdx/macro.py:80 msgid "Insert a list of articles in this level." msgstr "" -#: plugins/macros/mdx/macro.py:86 +#: plugins/macros/mdx/macro.py:82 msgid "Maximum depth to show levels for." msgstr "" -#: plugins/macros/mdx/macro.py:92 +#: plugins/macros/mdx/macro.py:88 msgid "Table of contents" msgstr "" -#: plugins/macros/mdx/macro.py:93 +#: plugins/macros/mdx/macro.py:89 msgid "Insert a table of contents matching the headings." msgstr "" -#: plugins/macros/mdx/macro.py:101 +#: plugins/macros/mdx/macro.py:97 msgid "WikiLinks" msgstr "" -#: plugins/macros/mdx/macro.py:103 +#: plugins/macros/mdx/macro.py:99 msgid "Insert a link to another wiki page with a short notation." msgstr "" @@ -1286,86 +1299,90 @@ msgstr "" msgid "Nothing below this level" msgstr "" -#: plugins/macros/wiki_plugin.py:16 +#: plugins/macros/wiki_plugin.py:14 msgid "Macros" msgstr "" -#: plugins/notifications/forms.py:19 +#: plugins/notifications/apps.py:7 +msgid "Wiki notifications" +msgstr "" + +#: plugins/notifications/forms.py:16 #, python-format msgid "Receive notifications %(interval)s" msgstr "" -#: plugins/notifications/forms.py:29 +#: plugins/notifications/forms.py:26 #, python-format msgid "%(title)s - %(url)s" msgstr "" -#: plugins/notifications/forms.py:46 +#: plugins/notifications/forms.py:43 msgid "Remove subscriptions" msgstr "" -#: plugins/notifications/forms.py:48 +#: plugins/notifications/forms.py:45 msgid "Select article subscriptions to remove from notifications" msgstr "" -#: plugins/notifications/forms.py:52 +#: plugins/notifications/forms.py:49 msgid "Email digests" msgstr "" -#: plugins/notifications/forms.py:54 +#: plugins/notifications/forms.py:51 msgid "Unchanged (selected on each article)" msgstr "" -#: plugins/notifications/forms.py:55 +#: plugins/notifications/forms.py:52 msgid "No emails" msgstr "" -#: plugins/notifications/forms.py:56 +#: plugins/notifications/forms.py:53 msgid "Email on any change" msgstr "" -#: plugins/notifications/forms.py:108 +#: plugins/notifications/forms.py:102 #: plugins/notifications/templates/wiki/plugins/notifications/settings.html:5 msgid "Notifications" msgstr "" -#: plugins/notifications/forms.py:115 +#: plugins/notifications/forms.py:109 #: templates/wiki/includes/article_menu.html:9 templates/wiki/settings.html:5 msgid "Settings" msgstr "" -#: plugins/notifications/forms.py:119 +#: plugins/notifications/forms.py:113 msgid "When this article is edited" msgstr "" -#: plugins/notifications/forms.py:122 +#: plugins/notifications/forms.py:116 msgid "Also receive emails about article edits" msgstr "" -#: plugins/notifications/forms.py:164 +#: plugins/notifications/forms.py:158 msgid "Your notification settings were updated." msgstr "" -#: plugins/notifications/forms.py:167 +#: plugins/notifications/forms.py:161 msgid "Your notification settings were unchanged, so nothing saved." msgstr "" -#: plugins/notifications/models.py:25 +#: plugins/notifications/models.py:20 #, python-format msgid "%(user)s subscribing to %(article)s (%(type)s)" msgstr "" -#: plugins/notifications/models.py:51 +#: plugins/notifications/models.py:46 #, python-format msgid "Article deleted: %s" msgstr "" -#: plugins/notifications/models.py:59 +#: plugins/notifications/models.py:54 #, python-format msgid "Article modified: %s" msgstr "" -#: plugins/notifications/models.py:67 +#: plugins/notifications/models.py:62 #, python-format msgid "New article created: %s" msgstr "" @@ -1408,14 +1425,14 @@ msgstr "" msgid "Save changes" msgstr "" -#: plugins/notifications/views.py:27 +#: plugins/notifications/views.py:25 #, python-format msgid "You will receive notifications %(interval)s for %(articles)d articles" msgstr "" #: templates/wiki/accounts/account_settings.html:4 #: templates/wiki/accounts/account_settings.html:7 -#: templates/wiki/base_site.html:66 +#: templates/wiki/base_site.html:79 msgid "Account Settings" msgstr "" @@ -1423,7 +1440,7 @@ msgstr "" msgid "Update" msgstr "" -#: templates/wiki/accounts/login.html:4 templates/wiki/base_site.html:96 +#: templates/wiki/accounts/login.html:4 templates/wiki/base_site.html:109 msgid "Log in" msgstr "" @@ -1440,7 +1457,7 @@ msgid "Don't have an account?" msgstr "" #: templates/wiki/accounts/login.html:25 templates/wiki/accounts/signup.html:3 -#: templates/wiki/accounts/signup.html:6 templates/wiki/base_site.html:100 +#: templates/wiki/accounts/signup.html:6 templates/wiki/base_site.html:113 msgid "Sign up" msgstr "" @@ -1452,23 +1469,31 @@ msgstr "" msgid "This article was last modified:" msgstr "" -#: templates/wiki/base_site.html:73 +#: templates/wiki/base_site.html:53 +msgid "Search from current article..." +msgstr "" + +#: templates/wiki/base_site.html:55 +msgid "Search whole wiki..." +msgstr "" + +#: templates/wiki/base_site.html:86 msgid "Log out" msgstr "" -#: templates/wiki/base_site.html:80 +#: templates/wiki/base_site.html:93 msgid "Deleted articles" msgstr "" -#: templates/wiki/base_site.html:108 +#: templates/wiki/base_site.html:121 msgid "Home" msgstr "" -#: templates/wiki/base_site.html:109 +#: templates/wiki/base_site.html:122 msgid "About" msgstr "" -#: templates/wiki/base_site.html:134 +#: templates/wiki/base_site.html:147 msgid "" "Powered by <a href=\"http://www.django-wiki.org\">django-wiki</a>, an open " "source application under the <a href=\"http://www.gnu.org/licenses/quick-" @@ -1620,11 +1645,11 @@ msgid "" " " msgstr "" -#: templates/wiki/dir.html:50 templates/wiki/search.html:31 +#: templates/wiki/dir.html:50 templates/wiki/search.html:36 msgid "Last modified" msgstr "" -#: templates/wiki/dir.html:74 templates/wiki/search.html:40 +#: templates/wiki/dir.html:74 templates/wiki/search.html:45 msgid "There are no articles in this level" msgstr "" @@ -1775,11 +1800,13 @@ msgid "Browse articles in this level" msgstr "" #: templates/wiki/includes/breadcrumbs.html:48 -msgid "New article next to" +#, python-format +msgid "New article next to %(title)s" msgstr "" #: templates/wiki/includes/breadcrumbs.html:53 -msgid "New article below" +#, python-format +msgid "New article below %(title)s" msgstr "" #: templates/wiki/includes/revision_info.html:10 @@ -1835,7 +1862,7 @@ msgstr "" msgid "and" msgstr "" -#: templates/wiki/preview_inline.html:22 views/article.py:917 +#: templates/wiki/preview_inline.html:22 views/article.py:922 msgid "You cannot merge with a deleted revision" msgstr "" @@ -1880,7 +1907,15 @@ msgstr "" msgid "Search results for:" msgstr "" -#: templates/wiki/search.html:23 +#: templates/wiki/search.html:15 +msgid "Searching in" +msgstr "" + +#: templates/wiki/search.html:17 +msgid "Searching whole wiki" +msgstr "" + +#: templates/wiki/search.html:28 #, python-format msgid "Your search returned <strong>%(cnt)s</strong> results." msgstr "" @@ -1893,127 +1928,127 @@ msgstr "" msgid "This article is currently locked for editing." msgstr "" -#: views/accounts.py:45 +#: views/accounts.py:41 msgid "Account signup is only allowed for administrators." msgstr "" -#: views/accounts.py:59 +#: views/accounts.py:55 msgid "You are now signed up... and now you can sign in!" msgstr "" -#: views/accounts.py:72 +#: views/accounts.py:68 msgid "You are no longer logged in. Bye bye!" msgstr "" -#: views/accounts.py:105 +#: views/accounts.py:101 msgid "You are now logged in! Have fun!" msgstr "" -#: views/accounts.py:142 +#: views/accounts.py:138 msgid "Account info saved!" msgstr "" -#: views/article.py:93 +#: views/article.py:89 #, python-format msgid "New article '%s' created." msgstr "" -#: views/article.py:101 +#: views/article.py:97 #, python-format msgid "There was an error creating this article: %s" msgstr "" -#: views/article.py:104 +#: views/article.py:100 msgid "There was an error creating this article." msgstr "" -#: views/article.py:195 +#: views/article.py:190 msgid "" "This article cannot be deleted because it has children or is a root article." msgstr "" -#: views/article.py:205 +#: views/article.py:200 msgid "" "This article together with all its contents are now completely gone! Thanks!" msgstr "" -#: views/article.py:214 +#: views/article.py:209 #, python-format msgid "" "The article \"%s\" is now marked as deleted! Thanks for keeping the site " "free from unwanted material!" msgstr "" -#: views/article.py:326 +#: views/article.py:321 msgid "Your changes were saved." msgstr "" -#: views/article.py:340 +#: views/article.py:335 msgid "Please note that your article text has not yet been saved!" msgstr "" -#: views/article.py:371 +#: views/article.py:366 msgid "A new revision of the article was successfully added." msgstr "" -#: views/article.py:424 +#: views/article.py:415 msgid "This article cannot be moved because it is a root article." msgstr "" -#: views/article.py:438 +#: views/article.py:429 msgid "This article cannot be moved to a child of itself." msgstr "" -#: views/article.py:491 +#: views/article.py:482 #, python-brace-format msgid "Moved: {title}" msgstr "" -#: views/article.py:492 +#: views/article.py:483 #, python-brace-format msgid "Article moved to {link}" msgstr "" -#: views/article.py:493 +#: views/article.py:484 msgid "Created redirect (auto)" msgstr "" -#: views/article.py:501 +#: views/article.py:492 #, python-brace-format msgid "Article successfully moved! Created {n} redirect." msgid_plural "Article successfully moved! Created {n} redirects." msgstr[0] "" msgstr[1] "" -#: views/article.py:510 +#: views/article.py:501 msgid "Article successfully moved!" msgstr "" -#: views/article.py:552 +#: views/article.py:543 msgid "Restoring article" msgstr "" -#: views/article.py:556 +#: views/article.py:547 #, python-format msgid "The article \"%s\" and its children are now restored." msgstr "" -#: views/article.py:812 +#: views/article.py:815 #, python-format msgid "" "The article %(title)s is now set to display revision #%(revision_number)d" msgstr "" -#: views/article.py:883 +#: views/article.py:888 msgid "New title" msgstr "" -#: views/article.py:930 +#: views/article.py:935 #, python-format msgid "Merge between revision #%(r1)d and revision #%(r2)d" msgstr "" -#: views/article.py:941 +#: views/article.py:946 #, python-format msgid "" "A new revision was created: Merge between revision #%(r1)d and revision #"
cobbler__cobbler-3197
Packaging: Provide native packages for Debian & Ubuntu ### Is your feature request related to a problem? Currently we only provide packages for Debian and Ubuntu via Debbuild. This is good for test installations or users how know the OBS already and are familiar with it. ### The Behaviour you'd like `apt install cobbler` ### Alternatives you've considered Well the OBS is nice and all but in the end we will probably have more users when providing Distro-Native packages. Also we will have a simpler specfile. ### Additional context Current OBS project in my home: https://build.opensuse.org/project/show/home:SchoolGuy:cobbler
[ { "content": "#!/usr/bin/env python3\n\nimport os\nimport sys\nimport time\nimport glob as _glob\n\nfrom setuptools import setup\nfrom setuptools import Command\nfrom setuptools.command.install import install as _install\nfrom setuptools import Distribution as _Distribution\nfrom setuptools.command.build_py imp...
[ { "content": "#!/usr/bin/env python3\n\nimport os\nimport sys\nimport time\nimport glob as _glob\n\nfrom setuptools import setup\nfrom setuptools import Command\nfrom setuptools.command.install import install as _install\nfrom setuptools import Distribution as _Distribution\nfrom setuptools.command.build_py imp...
diff --git a/Makefile b/Makefile index f26007007c..09fc79f393 100644 --- a/Makefile +++ b/Makefile @@ -148,15 +148,11 @@ rpms: release ## Runs the target release and then creates via rpmbuild the rpms -ba cobbler.spec # Only build a binary package -debs: release ## Runs the target release and then creates via debbuild the debs in a directory called deb-build. - mkdir -p deb-build - mkdir -p deb-build/{BUILD,BUILDROOT,DEBS,SDEBS,SOURCES} - cp dist/*.gz deb-build/ - debbuild --define "_topdir %(pwd)/deb-build" \ - --define "_builddir %{_topdir}" \ - --define "_specdir %{_topdir}" \ - --define "_sourcedir %{_topdir}" \ - -vv -bb cobbler.spec +debs: authors ## Creates native debs in a directory called deb-build. The release target is called during the build process. + @source distro_build_configs.sh; \ + debuild -us -uc + @mkdir -p deb-build; \ + cp ../cobbler_* deb-build/ eraseconfig: ## Deletes the cobbler data jsons which are created when using the file provider. -rm /var/lib/cobbler/cobbler_collections/distros/* diff --git a/cobbler.spec b/cobbler.spec index 4b8adc8cd7..b2fe60fdf9 100644 --- a/cobbler.spec +++ b/cobbler.spec @@ -13,14 +13,10 @@ # published by the Open Source Initiative. # # Supported/tested build targets: -# - Fedora: 30, 31, Rawhide -# - CentOS + EPEL: 7, 8 +# - Fedora: 34 +# - CentOS + EPEL: 8 # - SLE: 15sp1 -# - openSUSE: Leap 15.1, Tumbleweed -# - Debian: 10 -# - Ubuntu: 18.04 -# -# If it doesn't build on the Open Build Service (OBS) it's a bug. +# - openSUSE: Leap 15.4, Tumbleweed # # Force bash instead of Debian dash @@ -87,27 +83,6 @@ # endif SUSE %endif -# UBUNTU -%if 0%{?debian} || 0%{?ubuntu} -%define apache_user www-data -%define apache_group www-data - -%define apache_webconfigdir /etc/apache2/conf-available - -%define tftpsrv_pkg tftpd-hpa -%define createrepo_pkg createrepo -%define grub2_x64_efi_pkg grub-efi-amd64 -%define grub2_ia32_efi_pkg grub-efi-ia32 -%define system_release_pkg base-files - -# Debian 11 moved to the C implementation of createrepo -%if 0%{?debian} == 11 -%define createrepo_pkg createrepo-c -%endif - -#endif UBUNTU -%endif - #FEDORA %if 0%{?fedora} || 0%{?rhel} %define apache_user apache @@ -141,22 +116,12 @@ # To ensure correct byte compilation %global __python %{__python3} -%if "%{_vendor}" == "debbuild" -%global devsuffix dev -%else -%global devsuffix devel -%endif - Name: cobbler Version: 3.4.0 Release: 1%{?dist} Summary: Boot server configurator URL: https://cobbler.github.io/ -%if "%{_vendor}" == "debbuild" -Packager: Cobbler Developers <cobbler@lists.fedorahosted.org> -Group: admin -%endif %if 0%{?suse_version} Group: Productivity/Networking/Boot/Servers %else @@ -169,14 +134,9 @@ BuildArch: noarch BuildRequires: git-core BuildRequires: %{system_release_pkg} -BuildRequires: python%{python3_pkgversion}-%{devsuffix} +BuildRequires: python%{python3_pkgversion}-devel %if 0%{?suse_version} BuildRequires: python-rpm-macros -%endif -%if "%{_vendor}" == "debbuild" -BuildRequires: python3-deb-macros -BuildRequires: apache2-deb-macros - %endif BuildRequires: %{py3_module_coverage} BuildRequires: python%{python3_pkgversion}-distro @@ -202,12 +162,6 @@ BuildRequires: systemd %if 0%{?fedora} >= 30 || 0%{?rhel} >= 9 || 0%{?suse_version} BuildRequires: systemd-rpm-macros %endif -%if "%{_vendor}" == "debbuild" -BuildRequires: systemd-deb-macros -Requires: systemd-sysv -Requires(post): python3-minimal -Requires(preun): python3-minimal -%endif Requires(post): systemd Requires(preun): systemd Requires(postun): systemd @@ -253,11 +207,7 @@ Recommends: logrotate Recommends: python%{python3_pkgversion}-librepo %endif # https://github.com/cobbler/cobbler/issues/1685 -%if "%{_vendor}" == "debbuild" -Requires: init-system-helpers -%else Requires: /sbin/service -%endif # No point in having this split out... Obsoletes: cobbler-nsupdate < 3.0.99 Provides: cobbler-nsupdate = %{version}-%{release} @@ -279,11 +229,6 @@ Unit test files from the Cobbler project %prep %setup -%if 0%{?suse_version} -# Set tftpboot location correctly for SUSE distributions -sed -e "s|/var/lib/tftpboot|%{tftpboot_dir}|g" -i config/cobbler/settings.yaml -%endif - %build . distro_build_configs.sh @@ -323,11 +268,7 @@ ln -sf service %{buildroot}%{_sbindir}/rccobblerd %pre -%if "%{_vendor}" == "debbuild" -if [ "$1" = "upgrade" ]; then -%else if [ $1 -ge 2 ]; then -%endif # package upgrade: backup configuration DATE=$(date "+%%Y%%m%%d-%%H%%M%%S") if [ ! -d "%{_sharedstatedir}/cobbler/backup/upgrade-${DATE}" ]; then @@ -343,25 +284,6 @@ if [ $1 -ge 2 ]; then fi fi -%if "%{_vendor}" == "debbuild" -%post -%{py3_bytecompile_post %{name}} -%{systemd_post cobblerd.service} -%{apache2_module_post proxy_http} -# Fixup permission for world readable settings files -chmod 640 %{_sysconfdir}/cobbler/settings.yaml -chmod 640 %{_sysconfdir}/cobbler/users.conf -chmod 640 %{_sysconfdir}/cobbler/users.digest -chgrp %{apache_group} %{_sysconfdir}/cobbler/settings.yaml - -%preun -%{py3_bytecompile_preun %{name}} -%{systemd_preun cobblerd.service} - -%postun -%{systemd_postun_with_restart cobblerd.service} - -%else %post %systemd_post cobblerd.service # Fixup permission for world readable settings files @@ -375,7 +297,6 @@ chgrp %{apache_group} %{_sysconfdir}/cobbler/settings.yaml %postun %systemd_postun_with_restart cobblerd.service -%endif %files %license COPYING @@ -410,17 +331,9 @@ chgrp %{apache_group} %{_sysconfdir}/cobbler/settings.yaml %config(noreplace) %{_sysconfdir}/cobbler/rsync.exclude %config(noreplace) %{_sysconfdir}/cobbler/rsync.template %config(noreplace) %{_sysconfdir}/cobbler/secondary.template -%if "%{_vendor}" == "debbuild" -# Work around broken attr support -# Cf. https://github.com/debbuild/debbuild/issues/160 -%attr(640, root, root) %config(noreplace) %{_sysconfdir}/cobbler/settings.yaml -%attr(640, root, root) %config(noreplace) %{_sysconfdir}/cobbler/users.conf -%attr(640, root, root) %config(noreplace) %{_sysconfdir}/cobbler/users.digest -%else %attr(640, root, %{apache_group}) %config(noreplace) %{_sysconfdir}/cobbler/settings.yaml %attr(640, root, root) %config(noreplace) %{_sysconfdir}/cobbler/users.conf %attr(640, root, root) %config(noreplace) %{_sysconfdir}/cobbler/users.digest -%endif %config(noreplace) %{_sysconfdir}/cobbler/version %config(noreplace) %{_sysconfdir}/cobbler/zone.template %dir %{_sysconfdir}/cobbler/zone_templates diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000000..d8b5bc19b5 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,73 @@ +cobbler (3.4.0) unstable; urgency=low + + * Main Upgrade to Cobbler 3.4.0 + + -- Enno Gotthold <enno@4seul.de> Wed, 21 Sep 2022 09:30:00 +0200 + +cobbler (2.8.2) unstable; urgency=low + + * Maintenance release in the Cobbler 2.8 series + + -- Jeremy Brown <jwbrown77@yahoo.com> Wed, 21 Sep 2017 09:30:00 -0700 + +cobbler (2.6.7-1) unstable; urgency=low + + * Maintenance release in the Cobbler 2.6 series + + -- Jorgen Maas <jorgen.maas@gmail.com> Wed, 31 Dec 2014 00:19:50 +0200 + +cobbler (2.6.6-1) unstable; urgency=low + + * Maintenance release in the Cobbler 2.6 series + + -- Jorgen Maas <jorgen.maas@gmail.com> Sun, 19 Oct 2014 00:19:50 +0200 + +cobbler (2.6.5-1) unstable; urgency=low + + * Maintenance release in the Cobbler 2.6 series + + -- Jorgen Maas <jorgen.maas@gmail.com> Fri, 15 Aug 2014 00:19:50 +0200 + +cobbler (2.6.4-1) unstable; urgency=low + + * Maintenance release in the Cobbler 2.6 series + + -- Jorgen Maas <jorgen.maas@gmail.com> Fri, 08 Aug 2014 00:19:50 +0200 + +cobbler (2.6.3-1) unstable; urgency=low + + * Maintenance release in the Cobbler 2.6 series + + -- Jorgen Maas <jorgen.maas@gmail.com> Fri, 18 Jul 2014 00:19:50 +0200 + +cobbler (2.6.2-1) unstable; urgency=low + + * Maintenance release in the Cobbler 2.6 series + + -- Jorgen Maas <jorgen.maas@gmail.com> Thu, 15 Jul 2014 00:19:50 +0200 + +cobbler (2.6.1-1) unstable; urgency=low + + * Maintenance release in the Cobbler 2.6 series + + -- Jorgen Maas <jorgen.maas@gmail.com> Thu, 22 May 2014 00:19:50 +0200 + +cobbler (2.6.0-1.2) unstable; urgency=low + + * Set proper paths in config files + + -- Adrian Brzezinski <adrbxx@gmail.com> Wed, 23 Apr 2014 00:19:50 +0200 + +cobbler (2.6.0-1.1) unstable; urgency=low + + * Fixed virt-install version check - support for non rpm based distributions + + -- Adrian Brzezinski <adrbxx@gmail.com> Fri, 18 Apr 2014 19:09:14 +0200 + +cobbler (2.6.0-1) unstable; urgency=low + + * Initial release. Orginal package splitted into two: cobbler and koan. + + -- Adrian Brzezinski <adrbxx@gmail.com> Fri, 18 Apr 2014 18:24:22 +0200 + + diff --git a/debian/cobbler.docs b/debian/cobbler.docs new file mode 100644 index 0000000000..42061c01a1 --- /dev/null +++ b/debian/cobbler.docs @@ -0,0 +1 @@ +README.md \ No newline at end of file diff --git a/debian/cobbler.postinst b/debian/cobbler.postinst new file mode 100644 index 0000000000..b5ced89fc2 --- /dev/null +++ b/debian/cobbler.postinst @@ -0,0 +1,9 @@ +#!/bin/sh + +# This directory is required because per default we log to it. +mkdir -p "/var/log/cobbler" + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000000..3cacc0b93c --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +12 \ No newline at end of file diff --git a/debian/control b/debian/control new file mode 100644 index 0000000000..f55209516a --- /dev/null +++ b/debian/control @@ -0,0 +1,45 @@ +Source: cobbler +Section: admin +Priority: optional +Maintainer: The Cobbler Authors <cobbler.project@gmail.com> +Build-Depends: + git-core, + python3 (>=3.6), + python3-distro, + python3-setuptools, + python3-netaddr, + python3-requests, + python3-schema, + python3-cheetah, + python3-dns, + python3-sphinx, + dh-python, + debhelper (>=12) +Standards-Version: 4.5.1 +Version: 3.4.0 +Homepage: https://cobbler.github.io/ + +Package: cobbler +Architecture: all +Depends: + systemd, + apache2 | httpd, + tftpd-hpa | atftpd, + fence-agents, + rsync, + xorriso, + python3, + ${python3:Depends}, + ${misc:Depends} +Suggests: + createrepo-c, + createrepo, + logrotate, + python3-librepo +Description: Install server + Cobbler is a PXE based network install server. + Cobbler's advanced features include importing distributions + from DVDs and rsync mirrors, automatic installation templating, + integrated yum mirroring, and built-in DHCP/DNS Management. + Cobbler has a Python and XMLRPC API for integration with other + applications. There is also a web interface available. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000000..84bc587ab4 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,10 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: cobbler +Upstream-Contact: Enno Gotthold <enno@4seul.de> +Source: https://github.com/cobbler/cobbler + +Files: * +Copyright: 2006-2022 The Cobbler Team +License: GPL-2+ + +# TODO: Add individual copyright of all files having explicit spdx headers diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000000..656c6e8cde --- /dev/null +++ b/debian/rules @@ -0,0 +1,27 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +export DH_OPTIONS + +# Verbose mode +#export DH_VERBOSE=1 +export PYBUILD_NAME=cobbler +export PYBUILD_OPTION_INTERPRETER="-B" + +# Use Bash so we can set the required environment variables +SHELL = /bin/bash + +%: + dh $@ --with python3 --buildsystem pybuild + +override_dh_auto_build: + @source ./distro_build_configs.sh; \ + dh_auto_build + +override_dh_auto_clean: + dh_auto_clean + rm -rf docs/_build + +override_dh_auto_install: + @source ./distro_build_configs.sh; \ + dh_auto_install diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000000..89ae9db8f8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/distro_build_configs.sh b/distro_build_configs.sh index 6c51bf11b2..60c30fc0ad 100644 --- a/distro_build_configs.sh +++ b/distro_build_configs.sh @@ -60,6 +60,8 @@ elif [ "$DISTRO" = "UBUNTU" ];then export MEMDISK_FOLDER="/usr/lib/syslinux/" export SYSLINUX_DIR="/usr/lib/syslinux/modules/bios/" export GRUB_MOD_FOLDER="/usr/lib/grub" + # This is required so that no byte code for Python is generated + export PYTHONDONTWRITEBYTECODE=1 elif [ "$DISTRO" = "FEDORA" ];then export APACHE_USER="apache" export HTTP_USER=$APACHE_USER # overrule setup.py diff --git a/docker/debs/Debian_10/Debian10.dockerfile b/docker/debs/Debian_10/Debian10.dockerfile index 511ac90f5e..935e87b418 100644 --- a/docker/debs/Debian_10/Debian10.dockerfile +++ b/docker/debs/Debian_10/Debian10.dockerfile @@ -12,13 +12,13 @@ ENV OSCODENAME buster # Add repo for debbuild and install all packages required # hadolint ignore=DL3008,DL3015,DL4006 RUN apt-get update -qq && \ - apt-get install -qqy gnupg curl && \ - /bin/sh -c "echo 'deb http://download.opensuse.org/repositories/Debian:/debbuild/Debian_10/ /' > /etc/apt/sources.list.d/debbuild.list" && \ - curl -sL http://download.opensuse.org/repositories/Debian:/debbuild/Debian_10/Release.key | apt-key add - && \ - apt-get update -qq && \ apt-get install -qqy \ - debbuild \ - debbuild-macros \ + build-essential \ + devscripts \ + dh-python \ + debhelper \ + gnupg \ + curl \ wget \ pycodestyle \ pyflakes3 \ @@ -36,6 +36,7 @@ RUN apt-get update -qq && \ python3-netaddr \ python3-pip \ python3-pycodestyle \ + python3-pymongo \ python3-pytest \ python3-setuptools \ python3-sphinx \ diff --git a/docker/debs/Debian_11/Debian11.dockerfile b/docker/debs/Debian_11/Debian11.dockerfile index 662dc388c3..6bd42dc1da 100644 --- a/docker/debs/Debian_11/Debian11.dockerfile +++ b/docker/debs/Debian_11/Debian11.dockerfile @@ -1,6 +1,6 @@ # vim: ft=dockerfile -FROM debian:11 +FROM docker.io/library/debian:11 ENV DEBIAN_FRONTEND noninteractive @@ -12,13 +12,13 @@ ENV OSCODENAME bullseye # Add repo for debbuild and install all packages required # hadolint ignore=DL3008,DL3015,DL4006 RUN apt-get update -qq && \ - apt-get install -qqy gnupg curl && \ - /bin/sh -c "echo 'deb http://download.opensuse.org/repositories/Debian:/debbuild/Debian_11/ /' > /etc/apt/sources.list.d/debbuild.list" && \ - curl -sL http://download.opensuse.org/repositories/Debian:/debbuild/Debian_11/Release.key | apt-key add - && \ - apt-get update -qq && \ apt-get install -qqy \ - debbuild \ - debbuild-macros \ + build-essential \ + devscripts \ + dh-python \ + debhelper \ + gnupg \ + curl \ wget \ pycodestyle \ pyflakes3 \ @@ -36,6 +36,7 @@ RUN apt-get update -qq && \ python3-netaddr \ python3-pip \ python3-pycodestyle \ + python3-pymongo \ python3-pytest \ python3-setuptools \ python3-simplejson \ diff --git a/docker/debs/build-and-install-debs.sh b/docker/debs/build-and-install-debs.sh index 3350b9636c..ad4dabb745 100755 --- a/docker/debs/build-and-install-debs.sh +++ b/docker/debs/build-and-install-debs.sh @@ -3,6 +3,7 @@ set -euo pipefail +SKIP_BUILD=true RUN_TESTS=false RUN_SYSTEM_TESTS=false EXECUTOR=docker @@ -22,6 +23,11 @@ if [ "${1}" == "--with-podman" ]; then shift fi +if [ "${1}" == "--skip-build" ]; then + SKIP_BUILD=false + shift +fi + TAG=$1 DOCKERFILE=$2 @@ -29,19 +35,27 @@ IMAGE=cobbler:$TAG # Build container echo "==> Build container ..." -$EXECUTOR build -t "$IMAGE" -f "$DOCKERFILE" . +if [[ "$EXECUTOR" == "podman" ]] +then + podman build --format docker -t "$IMAGE" -f "$DOCKERFILE" . +else + docker build -t "$IMAGE" -f "$DOCKERFILE" . +fi -# Build DEBs -echo "==> Build packages ..." -mkdir -p deb-build tmp -$EXECUTOR run -ti -v "$PWD/deb-build:/usr/src/cobbler/deb-build" -v "$PWD/tmp:/var/tmp" "$IMAGE" +if $SKIP_BUILD +then + # Build DEBs + echo "==> Build packages ..." + mkdir -p deb-build + $EXECUTOR run -ti -v "$PWD/deb-build:/usr/src/cobbler/deb-build" "$IMAGE" +fi # Launch container and install cobbler echo "==> Start container ..." $EXECUTOR run --cap-add=NET_ADMIN -t -d --name cobbler -v "$PWD/deb-build:/usr/src/cobbler/deb-build" "$IMAGE" /bin/bash echo "==> Install fresh packages ..." -$EXECUTOR exec -it cobbler bash -c 'dpkg -i deb-build/DEBS/all/cobbler*.deb' +$EXECUTOR exec -it cobbler bash -c 'dpkg -i deb-build/cobbler*.deb' echo "==> Restart Apache and Cobbler daemon ..." $EXECUTOR exec -it cobbler bash -c 'a2enmod proxy && a2enmod proxy_http' @@ -56,8 +70,8 @@ $EXECUTOR exec -it cobbler bash -c 'mkdir /var/www/cobbler' echo "==> Start Supervisor" $EXECUTOR exec -it cobbler bash -c 'supervisord -c /etc/supervisor/supervisord.conf' -echo "==> Wait 20 sec. and show Cobbler version ..." -$EXECUTOR exec -it cobbler bash -c 'sleep 20 && cobbler --version' +echo "==> Wait 10 sec. and show Cobbler version ..." +$EXECUTOR exec -it cobbler bash -c 'sleep 10 && cobbler --version' if $RUN_TESTS then @@ -84,4 +98,3 @@ echo "==> Stop Cobbler container ..." $EXECUTOR stop cobbler echo "==> Delete Cobbler container ..." $EXECUTOR rm cobbler -rm -rf ./tmp diff --git a/docker/debs/install-debs.sh b/docker/debs/install-debs.sh deleted file mode 100755 index 05dcf1fd7d..0000000000 --- a/docker/debs/install-debs.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/bash -# Utility script to run Docker container without building the DEBs, -# just install them. So make sure they are in deb-build dir! - -if [ "$1" == "--with-tests" ] -then - RUN_TESTS=true - shift -else - RUN_TESTS=false -fi - -TAG=$1 -IMAGE=cobbler:$TAG - -# Launch container and install cobbler -docker run -d --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro --name cobbler -v "$PWD/deb-build:/usr/src/cobbler/deb-build" "$IMAGE" /lib/systemd/systemd --system - -docker exec -it cobbler bash -c 'dpkg -i deb-build/DEBS/all/cobbler*.deb' -docker exec -it cobbler bash -c 'a2enmod proxy proxy_http && a2enconf cobbler' -docker exec -it cobbler bash -c 'systemctl daemon-reload && systemctl restart apache2 cobblerd' -docker exec -it cobbler bash -c 'sleep 3 && cobbler --version' - -if $RUN_TESTS -then - # Most of these requirement are already satisfied in the Dockerfiles! - docker exec -it cobbler bash -c 'pip3 install coverage distro future setuptools sphinx requests future' - docker exec -it cobbler bash -c 'pip3 install pyyaml netaddr Cheetah3 pymongo distro librepo' - docker exec -it cobbler bash -c 'pip3 install dnspython pyflakes pycodestyle pytest pytest-cov codecov' - docker exec -it cobbler bash -c 'pytest-3' -fi - -# Entering the running container -docker exec -ti cobbler bash diff --git a/docker/rpms/Fedora_34/Fedora34.dockerfile b/docker/rpms/Fedora_34/Fedora34.dockerfile index ac131baf64..f6a3e4a607 100644 --- a/docker/rpms/Fedora_34/Fedora34.dockerfile +++ b/docker/rpms/Fedora_34/Fedora34.dockerfile @@ -38,6 +38,7 @@ RUN yum install -y \ python3-ldap \ python3-librepo \ python3-pymongo \ + python3-gunicorn \ python3-schema \ createrepo_c \ dnf-plugins-core \ diff --git a/docker/rpms/build-and-install-rpms.sh b/docker/rpms/build-and-install-rpms.sh index ec6b702ec9..d9ae77cd40 100755 --- a/docker/rpms/build-and-install-rpms.sh +++ b/docker/rpms/build-and-install-rpms.sh @@ -3,6 +3,7 @@ set -eo pipefail +SKIP_BUILD=true RUN_TESTS=false RUN_SYSTEM_TESTS=false EXECUTOR=docker @@ -22,6 +23,10 @@ if [ "${1}" == "--with-podman" ]; then shift fi +if [ "${1}" == "--skip-build" ]; then + SKIP_BUILD=false + shift +fi TAG=$1 DOCKERFILE=$2 @@ -30,12 +35,20 @@ IMAGE=cobbler:$TAG # Build container echo "==> Build container ..." -$EXECUTOR build -t "$IMAGE" -f "$DOCKERFILE" . +if [[ "$EXECUTOR" == "podman" ]] +then + podman build --format docker -t "$IMAGE" -f "$DOCKERFILE" . +else + docker build -t "$IMAGE" -f "$DOCKERFILE" . +fi -# Build RPMs -echo "==> Build RPMs ..." -mkdir -p rpm-build -$EXECUTOR run -t -v "$PWD/rpm-build:/usr/src/cobbler/rpm-build" "$IMAGE" +if $SKIP_BUILD +then + # Build RPMs + echo "==> Build RPMs ..." + mkdir -p rpm-build + $EXECUTOR run -t -v "$PWD/rpm-build:/usr/src/cobbler/rpm-build" "$IMAGE" +fi # Launch container and install cobbler echo "==> Start container ..." diff --git a/docker/rpms/install-rpms.sh b/docker/rpms/install-rpms.sh deleted file mode 100755 index de8a0db66a..0000000000 --- a/docker/rpms/install-rpms.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -# Utility script to run Docker container without building the RPMs, -# just install them. So make sure they are in rpm-build dir! - -if [ "$1" == "--with-tests" ] -then - RUN_TESTS=true - shift -else - RUN_TESTS=false -fi - -TAG=$1 -IMAGE=cobbler:$TAG - -# Launch container and install cobbler -echo "==> Start privileged container with systemd ..." -docker run -d --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro --name cobbler -v "$PWD/rpm-build:/usr/src/cobbler/rpm-build" "$IMAGE" /usr/lib/systemd/systemd --system -echo "==> Install fresh RPMs ..." -docker exec -it cobbler bash -c 'rpm -Uvh rpm-build/cobbler-*.noarch.rpm' - -echo "==> Wait 3 sec. and show Cobbler version ..." -docker exec -it cobbler bash -c 'sleep 3 && cobbler version' - -if $RUN_TESTS -then - echo "==> Running tests ..." - docker exec -it cobbler bash -c 'pip3 install coverage distro future setuptools sphinx requests future' - docker exec -it cobbler bash -c 'pip3 install pyyaml netaddr Cheetah3 pymongo distro' - docker exec -it cobbler bash -c 'pip3 install dnspython pyflakes pycodestyle pytest pytest-cov codecov' - docker exec -it cobbler bash -c 'pytest' -fi - -# Clean up -echo "==> Stop Cobbler container ..." -docker stop cobbler -echo "==> Delete Cobbler container ..." -docker rm cobbler diff --git a/misc/anamon b/misc/anamon old mode 100644 new mode 100755 index 411abc4f1d..240030d6ec --- a/misc/anamon +++ b/misc/anamon @@ -30,6 +30,7 @@ import time import re import base64 import shlex + try: from xmlrpc.client import Server except ImportError: @@ -41,6 +42,7 @@ except ImportError: if not hasattr(shlex, "split"): shlex.split = lambda s: s.split(" ") + class WatchedFile: def __init__(self, fn, alias): self.fn = fn @@ -50,18 +52,18 @@ class WatchedFile: def reset(self): self.where = 0 self.last_size = 0 - self.lfrag='' - self.re_list={} - self.seen_line={} + self.lfrag = "" + self.re_list = {} + self.seen_line = {} def exists(self): return os.access(self.fn, os.F_OK) - def lookfor(self,pattern): - self.re_list[pattern] = re.compile(pattern,re.MULTILINE) + def lookfor(self, pattern): + self.re_list[pattern] = re.compile(pattern, re.MULTILINE) self.seen_line[pattern] = 0 - def seen(self,pattern): + def seen(self, pattern): if pattern in self.seen_line: return self.seen_line[pattern] else: @@ -77,7 +79,7 @@ class WatchedFile: else: return 0 - def uploadWrapper(self, blocksize = 262144): + def uploadWrapper(self, blocksize=262144): """upload a file in chunks using the uploadFile call""" retries = 3 fo = open(self.fn, "rb") @@ -97,7 +99,10 @@ class WatchedFile: del contents tries = 0 while tries <= retries: - debug("upload_log_data('%s', '%s', %s, %s, ...)\n" % (name, self.alias, sz, offset)) + debug( + "upload_log_data('%s', '%s', %s, %s, ...)\n" + % (name, self.alias, sz, offset) + ) if session.upload_log_data(name, self.alias, sz, offset, data.decode()): break else: @@ -117,20 +122,20 @@ class WatchedFile: except: raise -class MountWatcher: - def __init__(self,mp): +class MountWatcher: + def __init__(self, mp): self.mountpoint = mp self.zero() def zero(self): - self.line='' + self.line = "" self.time = time.time() def update(self): found = 0 - if os.path.exists('/proc/mounts'): - fd = open('/proc/mounts') + if os.path.exists("/proc/mounts"): + fd = open("/proc/mounts") while 1: line = fd.readline() if not line: @@ -153,6 +158,7 @@ class MountWatcher: else: return 0 + def anamon_loop(): alog = WatchedFile("/tmp/anaconda.log", "anaconda.log") alog.lookfor("step installpackages$") @@ -181,8 +187,12 @@ def anamon_loop(): # Monitor for bootloader configuration changes bootloader_cfgs = list() - bootloader_cfgs.append(WatchedFile("/mnt/sysimage/boot/grub/grub.conf", "grub.conf")) - bootloader_cfgs.append(WatchedFile("/mnt/sysimage/boot/efi/efi/redhat/elilo.conf", "elilo.conf")) + bootloader_cfgs.append( + WatchedFile("/mnt/sysimage/boot/grub/grub.conf", "grub.conf") + ) + bootloader_cfgs.append( + WatchedFile("/mnt/sysimage/boot/efi/efi/redhat/elilo.conf", "elilo.conf") + ) bootloader_cfgs.append(WatchedFile("/mnt/sysimage/etc/zipl.conf", "zipl.conf")) # Were we asked to watch specific files? @@ -200,7 +210,20 @@ def anamon_loop(): # Use the default watchlist and waitlist else: - watchlist = [alog, slog, dump, scrlog, mod, llog, kcfg, storage_log, prgm_log, vnc_log, xlog, kspre] + watchlist = [ + alog, + slog, + dump, + scrlog, + mod, + llog, + kcfg, + storage_log, + prgm_log, + vnc_log, + xlog, + kspre, + ] waitlist.extend(package_logs) waitlist.extend(bootloader_cfgs) @@ -211,7 +234,9 @@ def anamon_loop(): # Not all log files are available at the start, we'll loop through the # waitlist to determine when each file can be added to the watchlist for watch in waitlist: - if alog.seen("step installpackages$") or (sysimage.stable() and watch.exists()): + if alog.seen("step installpackages$") or ( + sysimage.stable() and watch.exists() + ): debug("Adding %s to watch list\n" % watch.alias) watchlist.append(watch) waitlist.remove(watch) @@ -224,12 +249,13 @@ def anamon_loop(): if exit: break + # Establish some defaults name = "" server = "" port = "80" daemon = 1 -debug = lambda x,**y: None +debug = lambda x, **y: None watchfiles = [] exit = False @@ -237,25 +263,25 @@ exit = False n = 0 while n < len(sys.argv): arg = sys.argv[n] - if arg == '--name': - n = n+1 + if arg == "--name": + n = n + 1 name = sys.argv[n] - elif arg == '--watchfile': - n = n+1 + elif arg == "--watchfile": + n = n + 1 watchfiles.extend(shlex.split(sys.argv[n])) - elif arg == '--exit': + elif arg == "--exit": exit = True - elif arg == '--server': - n = n+1 + elif arg == "--server": + n = n + 1 server = sys.argv[n] - elif arg == '--port': - n = n+1 + elif arg == "--port": + n = n + 1 port = sys.argv[n] - elif arg == '--debug': - debug = lambda x,**y: sys.stderr.write(x % y) - elif arg == '--fg': + elif arg == "--debug": + debug = lambda x, **y: sys.stderr.write(x % y) + elif arg == "--fg": daemon = 0 - n = n+1 + n = n + 1 # Create an xmlrpc session handle session = Server("http://%s:%s/cobbler_api" % (server, port)) @@ -265,9 +291,9 @@ if daemon: if not os.fork(): # Redirect the standard I/O file descriptors to the specified file. DEVNULL = getattr(os, "devnull", "/dev/null") - os.open(DEVNULL, os.O_RDWR) # standard input (0) - os.dup2(0, 1) # Duplicate standard input to standard output (1) - os.dup2(0, 2) # Duplicate standard input to standard error (2) + os.open(DEVNULL, os.O_RDWR) # standard input (0) + os.dup2(0, 1) # Duplicate standard input to standard output (1) + os.dup2(0, 2) # Duplicate standard input to standard error (2) anamon_loop() sys.exit(1) diff --git a/setup.py b/setup.py index a1d947a43f..6dd5a861f9 100644 --- a/setup.py +++ b/setup.py @@ -548,6 +548,7 @@ def run(self): "dnspython", "file-magic", "schema", + "gunicorn", ], extras_require={ "lint": ["pyflakes", "pycodestyle"],
comic__grand-challenge.org-2049
Incorrect values in Archive Item List The Archive Item list view displays the correct archive items, but for some reason, the `archive_item.values` are duplicated.
[ { "content": "from celery import chain, chord, group\nfrom django.contrib.auth.mixins import PermissionRequiredMixin\nfrom django.contrib.messages.views import SuccessMessageMixin\nfrom django.core.exceptions import (\n NON_FIELD_ERRORS,\n PermissionDenied,\n ValidationError,\n)\nfrom django.core.files...
[ { "content": "from celery import chain, chord, group\nfrom django.contrib.auth.mixins import PermissionRequiredMixin\nfrom django.contrib.messages.views import SuccessMessageMixin\nfrom django.core.exceptions import (\n NON_FIELD_ERRORS,\n PermissionDenied,\n ValidationError,\n)\nfrom django.core.files...
diff --git a/app/grandchallenge/archives/views.py b/app/grandchallenge/archives/views.py index 5e987c2769..aee105b4eb 100644 --- a/app/grandchallenge/archives/views.py +++ b/app/grandchallenge/archives/views.py @@ -498,7 +498,7 @@ class ArchiveItemsList( "values__file", ] columns = [ - Column(title="Values", sort_field="values"), + Column(title="Values", sort_field="created"), Column(title="Edit", sort_field="pk"), ]
ipython__ipython-2186
oct2py v >= 0.3.1 doesn't need h5py anymore The octave magic docs/examples should update this information.
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n===========\noctavemagic\n===========\n\nMagics for interacting with Octave via oct2py.\n\n.. note::\n\n The ``oct2py`` module needs to be installed separately, and in turn depends\n on ``h5py``. Both can be obtained using ``easy_install`` or ``pip``.\n\nUsage\n...
[ { "content": "# -*- coding: utf-8 -*-\n\"\"\"\n===========\noctavemagic\n===========\n\nMagics for interacting with Octave via oct2py.\n\n.. note::\n\n The ``oct2py`` module needs to be installed separately and\n can be obtained using ``easy_install`` or ``pip``.\n\nUsage\n=====\n\n``%octave``\n\n{OCTAVE_DOC}...
diff --git a/IPython/extensions/octavemagic.py b/IPython/extensions/octavemagic.py index f46e6e935d1..a0114bf6f9e 100644 --- a/IPython/extensions/octavemagic.py +++ b/IPython/extensions/octavemagic.py @@ -8,8 +8,8 @@ .. note:: - The ``oct2py`` module needs to be installed separately, and in turn depends - on ``h5py``. Both can be obtained using ``easy_install`` or ``pip``. + The ``oct2py`` module needs to be installed separately and + can be obtained using ``easy_install`` or ``pip``. Usage ===== diff --git a/docs/examples/notebooks/octavemagic_extension.ipynb b/docs/examples/notebooks/octavemagic_extension.ipynb index ece25c47a97..9779833dc66 100644 --- a/docs/examples/notebooks/octavemagic_extension.ipynb +++ b/docs/examples/notebooks/octavemagic_extension.ipynb @@ -27,7 +27,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "The `octavemagic` extension provides the ability to interact with Octave. It depends on the `oct2py` and `h5py` packages,\n", + "The `octavemagic` extension provides the ability to interact with Octave. It depends on the `oct2py` package,\n", "which may be installed using `easy_install`.\n", "\n", "To enable the extension, load it as follows:" diff --git a/docs/source/whatsnew/version0.13.txt b/docs/source/whatsnew/version0.13.txt index 896d6219360..32aa1bc2d7c 100644 --- a/docs/source/whatsnew/version0.13.txt +++ b/docs/source/whatsnew/version0.13.txt @@ -304,7 +304,7 @@ extremely useful. The following extensions are provided: or whole blocks of Octave code, capture both output and figures inline (just like matplotlib plots), and have variables automatically converted between the two languages. To use this extension, you must have Octave - installed as well as the oct2py_ and h5py_ packages. The examples + installed as well as the oct2py_ package. The examples directory in the source distribution ships with a full notebook demonstrating these capabilities: @@ -316,7 +316,6 @@ extremely useful. The following extensions are provided: .. _octave: http://www.gnu.org/software/octave .. _oct2py: http://pypi.python.org/pypi/oct2py -.. _h5py: http://code.google.com/p/h5py **R magics** (extension :ref:`rmagic <extensions_rmagic>`) This extension provides several magics that support calling code written in
open-telemetry__opentelemetry-python-3442
Allow use of "/" in Metrics Instrument Names, and with a 255 char limit As per the recent specs change : * Increase max instrument name length from 63 to 255: https://github.com/open-telemetry/opentelemetry-specification/pull/3648 * Instrument names can have "/" character: https://github.com/open-telemetry/opentelemetry-specification/pull/3684 Then update spec compliance matrix https://github.com/open-telemetry/opentelemetry-specification/blob/main/spec-compliance-matrix.md
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 50db7d0bd03..bf7db9c04ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ([#3423](https://github.com/open-telemetry/opentelemetry-python/pull/3423)) - Make `opentelemetry_metrics_exporter` entrypoint support pull exporters ([#3428](https://github.com/open-telemetry/opentelemetry-python/pull/3428)) +- Allow instrument names to have '/' and up to 255 characters + ([#3442](https://github.com/open-telemetry/opentelemetry-python/pull/3442)) ## Version 1.20.0/0.41b0 (2023-09-04) diff --git a/opentelemetry-api/src/opentelemetry/metrics/_internal/instrument.py b/opentelemetry-api/src/opentelemetry/metrics/_internal/instrument.py index fec2879ef6c..54b2fb7597e 100644 --- a/opentelemetry-api/src/opentelemetry/metrics/_internal/instrument.py +++ b/opentelemetry-api/src/opentelemetry/metrics/_internal/instrument.py @@ -38,7 +38,7 @@ _logger = getLogger(__name__) -_name_regex = re_compile(r"[a-zA-Z][-_.a-zA-Z0-9]{0,62}") +_name_regex = re_compile(r"[a-zA-Z][-_./a-zA-Z0-9]{0,254}") _unit_regex = re_compile(r"[\x00-\x7F]{0,63}") diff --git a/opentelemetry-api/tests/metrics/test_instruments.py b/opentelemetry-api/tests/metrics/test_instruments.py index 4a3d3d448b3..e66460de354 100644 --- a/opentelemetry-api/tests/metrics/test_instruments.py +++ b/opentelemetry-api/tests/metrics/test_instruments.py @@ -564,14 +564,13 @@ def test_observable_up_down_counter_callback(self): ) def test_name_check(self): - instrument = ChildInstrument("name") self.assertEqual( instrument._check_name_unit_description( - "a" * 63, "unit", "description" + "a" * 255, "unit", "description" )["name"], - "a" * 63, + "a" * 255, ) self.assertEqual( instrument._check_name_unit_description( @@ -591,12 +590,24 @@ def test_name_check(self): )["name"], "a_", ) + self.assertEqual( + instrument._check_name_unit_description( + "a/", "unit", "description" + )["name"], + "a/", + ) - self.assertIsNone( + # the old max length + self.assertIsNotNone( instrument._check_name_unit_description( "a" * 64, "unit", "description" )["name"] ) + self.assertIsNone( + instrument._check_name_unit_description( + "a" * 256, "unit", "description" + )["name"] + ) self.assertIsNone( instrument._check_name_unit_description( "Ñ", "unit", "description"
ivy-llc__ivy-18982
imag
[ { "content": "# local\nimport ivy\nfrom ivy.functional.frontends.jax.func_wrapper import (\n to_ivy_arrays_and_back,\n)\nfrom ivy.func_wrapper import with_unsupported_dtypes\nfrom ivy.functional.frontends.jax.numpy import promote_types_of_jax_inputs\nfrom ivy.functional.frontends.numpy.manipulation_routines ...
[ { "content": "# local\nimport ivy\nfrom ivy.functional.frontends.jax.func_wrapper import (\n to_ivy_arrays_and_back,\n)\nfrom ivy.func_wrapper import with_unsupported_dtypes\nfrom ivy.functional.frontends.jax.numpy import promote_types_of_jax_inputs\nfrom ivy.functional.frontends.numpy.manipulation_routines ...
diff --git a/ivy/functional/frontends/jax/numpy/mathematical_functions.py b/ivy/functional/frontends/jax/numpy/mathematical_functions.py index ff37565745cd0..62d588b079ea5 100644 --- a/ivy/functional/frontends/jax/numpy/mathematical_functions.py +++ b/ivy/functional/frontends/jax/numpy/mathematical_functions.py @@ -28,6 +28,11 @@ def add(x1, x2, /): return ivy.add(x1, x2) +@to_ivy_arrays_and_back +def imag(val, /): + return ivy.imag(val) + + @to_ivy_arrays_and_back def angle(z, deg=False): return ivy.angle(z, deg=deg) diff --git a/ivy_tests/test_ivy/test_frontends/test_jax/test_jax_numpy/test_math.py b/ivy_tests/test_ivy/test_frontends/test_jax/test_jax_numpy/test_math.py index bad3697419fa9..0b614963c55a7 100644 --- a/ivy_tests/test_ivy/test_frontends/test_jax/test_jax_numpy/test_math.py +++ b/ivy_tests/test_ivy/test_frontends/test_jax/test_jax_numpy/test_math.py @@ -2515,6 +2515,37 @@ def test_jax_conj( ) +# imag +@handle_frontend_test( + fn_tree="jax.numpy.imag", + dtype_and_x=helpers.dtype_and_values( + available_dtypes=helpers.get_dtypes("float_and_complex"), + min_value=-20, + max_value=20, + ), + test_with_out=st.just(False), +) +def test_jax_imag( + *, + dtype_and_x, + test_flags, + on_device, + fn_tree, + frontend, +): + input_dtype, x = dtype_and_x + helpers.test_frontend_function( + input_dtypes=input_dtype, + test_flags=test_flags, + frontend=frontend, + fn_tree=fn_tree, + on_device=on_device, + rtol=1e-5, + atol=1e-5, + val=x[0], + ) + + # subtract @handle_frontend_test( fn_tree="jax.numpy.subtract", @@ -2960,7 +2991,8 @@ def test_jax_signbit( # input_dtypes, x, axis, dtype, where = dtype_x_axis_dtype_where # if ivy.current_backend_str() == "torch": # assume(not test_flags.as_variable[0]) -# where, input_dtypes, test_flags = np_frontend_helpers.handle_where_and_array_bools( +# where, input_dtypes, test_flags = np_frontend_helpers. +# handle_where_and_array_bools( # where=where, # input_dtype=input_dtypes, # test_flags=test_flags,
mlcommons__GaNDLF-315
Add an easy way to verify installation **Is your feature request related to a problem? Please describe.** Currently, we are asking users to run specific commands to verify installation, which can be cumbursome. **Describe the solution you'd like** It would be great if this could put in a script (and extended/updated as needed). **Describe alternatives you've considered** N.A. **Additional context** N.A.
[ { "content": "#!/usr/bin/env python\n\n\"\"\"The setup script.\"\"\"\n\n\nimport os\nfrom setuptools import setup, find_packages\nfrom setuptools.command.install import install\nfrom setuptools.command.develop import develop\nfrom setuptools.command.egg_info import egg_info\n\nwith open(\"README.md\") as readme...
[ { "content": "#!/usr/bin/env python\n\n\"\"\"The setup script.\"\"\"\n\n\nimport os\nfrom setuptools import setup, find_packages\nfrom setuptools.command.install import install\nfrom setuptools.command.develop import develop\nfrom setuptools.command.egg_info import egg_info\n\nwith open(\"README.md\") as readme...
diff --git a/docs/faq.md b/docs/faq.md index 33379a03f..4ee02a1fd 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -8,6 +8,7 @@ This page contains answers to frequently asked questions about GaNDLF. - [Table of Contents](#table-of-contents) - [Why do I get the error `pkg_resources.DistributionNotFound: The 'GANDLF' distribution was not found`?](#why-do-i-get-the-error-pkg_resourcesdistributionnotfound-the-gandlf-distribution-was-not-found) - [Where do I start?](#where-do-i-start) + - [Why is GaNDLF not working?](#why-is-gandlf-not-working) - [Which parts of a GaNDLF configuration are customizable?](#which-parts-of-a-gandlf-configuration-are-customizable) - [Can I run GaNDLF on a high performance computing (HPC) cluster?](#can-i-run-gandlf-on-a-high-performance-computing-hpc-cluster) - [How can I track the per-epoch training performance?](#how-can-i-track-the-per-epoch-training-performance) @@ -25,6 +26,12 @@ The [usage](https://cbica.github.io/GaNDLF/usage) guide is fairly comprehensive [Back To Top &uarr;](#table-of-contents) +### Why is GaNDLF not working? + +Verify that [the installation](https://cbica.github.io/GaNDLF/setup) has been done correctly by running `python ./gandlf_verifyInstall` after activating the correct virtual environment. If you are still having issues, please feel free to [post a support request](https://github.com/CBICA/GaNDLF/issues/new?assignees=&labels=&template=--questions-help-support.md&title=), and we will do our best to address it ASAP. + +[Back To Top &uarr;](#table-of-contents) + ### Which parts of a GaNDLF configuration are customizable? Virtually all of it! For more details, please see the [usage](https://cbica.github.io/GaNDLF/usage) guide and our extensive [samples](https://github.com/CBICA/GaNDLF/tree/master/samples). All available options are documented in the [config_all_options.yaml file](https://github.com/CBICA/GaNDLF/blob/master/samples/config_all_options.yaml). diff --git a/docs/setup.md b/docs/setup.md index 05d3a5a76..c0de9e895 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -35,5 +35,5 @@ pip install -e . # conda install -c conda-forge gandlf -y ## verify installation -python -c "import GANDLF as gf;print(gf.__version__)" +python ./gandlf_verifyInstall ``` diff --git a/gandlf_verifyInstall b/gandlf_verifyInstall new file mode 100644 index 000000000..2f2abf8b0 --- /dev/null +++ b/gandlf_verifyInstall @@ -0,0 +1,46 @@ +#!usr/bin/env python +# -*- coding: utf-8 -*- + +import os, argparse +from datetime import date + + +# main function +if __name__ == "__main__": + copyrightMessage = ( + "Contact: software@cbica.upenn.edu\n\n" + + "This program is NOT FDA/CE approved and NOT intended for clinical use.\nCopyright (c) " + + str(date.today().year) + + " University of Pennsylvania. All rights reserved." + ) + + parser = argparse.ArgumentParser( + prog="GANDLF_VerifyInstall", + formatter_class=argparse.RawTextHelpFormatter, + description="Verify GaNDLF installation.\n\n" + copyrightMessage, + ) + + try: + import GANDLF as gf + + print("GaNDLF installed version:", gf.__version__) + except: + raise Exception( + "GaNDLF not properly installed, please see https://cbica.github.io/GaNDLF/setup" + ) + + try: + import GANDLF.anonymize.dicomanonymizer as anon + + if anon: + print("GANDLF's git submodules were successfully imported.") + except: + try: + os.system("git submodule update --init --recursive") + except: + print("Git was not found, please try again.") + os.system("pip install -e .") + + args = parser.parse_args() + + print("GaNDLF is ready. See https://cbica.github.io/GaNDLF/usage") diff --git a/setup.py b/setup.py index 2d8e8279b..41e13ad30 100644 --- a/setup.py +++ b/setup.py @@ -99,6 +99,7 @@ def run(self): "gandlf_patchMiner", "gandlf_preprocess", "gandlf_anonymizer", + "gandlf_verifyInstall", ], classifiers=[ "Development Status :: 3 - Alpha",
rasterio__rasterio-2093
WarpedVRT context exit doesn't not set the dataset as closed It's me again with a WarpedVRT bug (I'm sorry). Basically I wanted to know the state of the WarpedVRT dataset after I exited the context manager, and it seems that the WarpedVRT is not set to `closed` but if I try to to `vrt.read()` rasterio will error with `RasterioIOError: Dataset is closed: WarpedVRT(tests/fixtures/cog_gcps.tif)` ```python with rasterio.open("tests/fixtures/cog.tif") as src: with WarpedVRT(src) as vrt: assert not src.closed assert not vrt.closed # <open WarpedVRT name='WarpedVRT(tests/fixtures/cog.tif)' mode='r'> assert vrt.closed # <--- AssertionError | <open WarpedVRT name='WarpedVRT(tests/fixtures/cog.tif)' mode='r'> assert src.closed assert vrt.closed. # <-- still not closed here either ``` System: - Mac Os - rasterio: '1.2b4'`
[ { "content": "\"\"\"rasterio.vrt: a module concerned with GDAL VRTs\"\"\"\n\nimport xml.etree.ElementTree as ET\n\nimport rasterio\nfrom rasterio._warp import WarpedVRTReaderBase\nfrom rasterio.dtypes import _gdal_typename\nfrom rasterio.enums import MaskFlags\nfrom rasterio.env import env_ctx_if_needed\nfrom r...
[ { "content": "\"\"\"rasterio.vrt: a module concerned with GDAL VRTs\"\"\"\n\nimport xml.etree.ElementTree as ET\n\nimport rasterio\nfrom rasterio._warp import WarpedVRTReaderBase\nfrom rasterio.dtypes import _gdal_typename\nfrom rasterio.enums import MaskFlags\nfrom rasterio.env import env_ctx_if_needed\nfrom r...
diff --git a/rasterio/vrt.py b/rasterio/vrt.py index 3f3b65474..81b942cb3 100644 --- a/rasterio/vrt.py +++ b/rasterio/vrt.py @@ -122,9 +122,6 @@ def __exit__(self, *args, **kwargs): def __del__(self): self.close() - def close(self): - self.stop() - def _boundless_vrt_doc( src_dataset, nodata=None, background=None, hidenodata=False, diff --git a/tests/test_warpedvrt.py b/tests/test_warpedvrt.py index 9b98ebc23..28085c024 100644 --- a/tests/test_warpedvrt.py +++ b/tests/test_warpedvrt.py @@ -608,3 +608,11 @@ def test_vrt_mem_src_kept_alive(path_rgb_byte_tif): assert (vrt.read() != 0).any() vrt.close() + + +def test_warped_vrt_is_closed(path_rgb_byte_tif): + """A VirtualVRT should be set as closed on exit.""" + with rasterio.open(path_rgb_byte_tif) as src: + with WarpedVRT(src, crs=DST_CRS) as vrt: + assert not vrt.closed + assert vrt.closed
falconry__falcon-382
HTTP Range support is incomplete in the HTTP RFC 2616, a range header must be written with the format Range: bytes=0-1,3-4,6-7 I understand that falcon does not support multiple ranges (and I do not need it personally), but it currently does not even support stripping the "bytes=" from the header before trying a transformation. Here is the code of the range attribute: https://github.com/racker/falcon/blob/2fbe618d486c977df2bb7d7240386aa4a5f781c1/falcon/request.py#L340 A simple fix would be to strip the "bytes=" if present at the start of the header's value.
[ { "content": "# Copyright 2013 by Rackspace Hosting, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requir...
[ { "content": "# Copyright 2013 by Rackspace Hosting, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requir...
diff --git a/falcon/request.py b/falcon/request.py index 8be41c405..58ffb4755 100644 --- a/falcon/request.py +++ b/falcon/request.py @@ -340,6 +340,8 @@ def date(self): def range(self): try: value = self.env['HTTP_RANGE'] + if value.startswith('bytes='): + value = value[6:] except KeyError: return None diff --git a/tests/test_req_vars.py b/tests/test_req_vars.py index 7123eb631..904d622ce 100644 --- a/tests/test_req_vars.py +++ b/tests/test_req_vars.py @@ -380,6 +380,10 @@ def test_range(self): req = Request(testing.create_environ(headers=headers)) self.assertEqual(req.range, (-10240, -1)) + headers = {'Range': 'bytes=0-2'} + req = Request(testing.create_environ(headers=headers)) + self.assertEqual(req.range, (0, 2)) + headers = {'Range': ''} req = Request(testing.create_environ(headers=headers)) self.assertRaises(falcon.HTTPInvalidHeader, lambda: req.range)
feast-dev__feast-3954
No such option: -f for feast CLI ## Expected Behavior According to documentation: https://docs.feast.dev/how-to-guides/feast-snowflake-gcp-aws/structuring-repos ``` feast -f staging/feature_store.yaml apply ``` should work ## Current Behavior ``` Usage: feast [OPTIONS] COMMAND [ARGS]... Try 'feast --help' for help. Error: No such option: -f ``` ## Steps to reproduce ### Specifications - Version: 0.34.1 - Platform: Linux - Subsystem:
[ { "content": "# Copyright 2019 The Feast Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a...
[ { "content": "# Copyright 2019 The Feast Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a...
diff --git a/sdk/python/feast/cli.py b/sdk/python/feast/cli.py index 985c44b821f..7ce8aaef2bc 100644 --- a/sdk/python/feast/cli.py +++ b/sdk/python/feast/cli.py @@ -76,6 +76,7 @@ def format_options(self, ctx: click.Context, formatter: click.HelpFormatter): ) @click.option( "--feature-store-yaml", + "-f", help="Override the directory where the CLI should look for the feature_store.yaml file.", ) @click.pass_context
pytest-dev__pytest-django-216
Support settings DJANGO_SETTINGS_MODULE in pytest_configure See comment in #119, this should be possible: ``` python import os def pytest_configure(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myproject.settings') ```
[ { "content": "\"\"\"\nHelpers to load Django lazily when Django settings can't be configured.\n\"\"\"\n\nimport os\nimport sys\n\nimport pytest\n\n\ndef skip_if_no_django():\n \"\"\"Raises a skip exception when no Django settings are available\"\"\"\n if not django_settings_is_configured():\n pytes...
[ { "content": "\"\"\"\nHelpers to load Django lazily when Django settings can't be configured.\n\"\"\"\n\nimport os\nimport sys\n\nimport pytest\n\n\ndef skip_if_no_django():\n \"\"\"Raises a skip exception when no Django settings are available\"\"\"\n if not django_settings_is_configured():\n pytes...
diff --git a/pytest_django/lazy_django.py b/pytest_django/lazy_django.py index 845804099..4ba4d5aa7 100644 --- a/pytest_django/lazy_django.py +++ b/pytest_django/lazy_django.py @@ -22,8 +22,6 @@ def django_settings_is_configured(): # If DJANGO_SETTINGS_MODULE is defined at this point, Django is assumed to # always be loaded. - from django.conf import settings - assert settings.configured is True return True diff --git a/tests/test_django_settings_module.py b/tests/test_django_settings_module.py index a34448715..c3bfe4c3f 100644 --- a/tests/test_django_settings_module.py +++ b/tests/test_django_settings_module.py @@ -96,6 +96,25 @@ def test_ds_after_user_conftest(testdir, monkeypatch): result.stdout.fnmatch_lines(['*1 passed*']) +def test_ds_in_pytest_configure(testdir, monkeypatch): + monkeypatch.delenv('DJANGO_SETTINGS_MODULE') + pkg = testdir.mkpydir('tpkg') + settings = pkg.join('settings_ds.py') + settings.write(BARE_SETTINGS) + testdir.makeconftest(""" + import os + + from django.conf import settings + + def pytest_configure(): + if not settings.configured: + os.environ.setdefault('DJANGO_SETTINGS_MODULE', + 'tpkg.settings_ds') + """) + r = testdir.runpytest() + assert r.ret == 0 + + def test_django_settings_configure(testdir, monkeypatch): """ Make sure Django can be configured without setting
django-cms__django-cms-1016
2.2 Trove classifier is incorrect The current release added Development Status to the PyPI Trove categories, but it remains `'Development Status :: 4 - Beta'` which it had during the RCs - I suspect that it should now be `'Development Status :: 5 - Production/Stable'` I don't have a git clone in front of me, so I can't open a pull request for it directly, at the moment.
[ { "content": "from setuptools import setup, find_packages\nimport os\nimport cms\n\n \nCLASSIFIERS = [\n 'Development Status :: 4 - Beta',\n 'Environment :: Web Environment',\n 'Framework :: Django',\n 'Intended Audience :: Developers',\n 'License :: OSI Approved :: BSD License',\n 'Ope...
[ { "content": "from setuptools import setup, find_packages\nimport os\nimport cms\n\n \nCLASSIFIERS = [\n 'Development Status :: 5 - Production/Stable',\n 'Environment :: Web Environment',\n 'Framework :: Django',\n 'Intended Audience :: Developers',\n 'License :: OSI Approved :: BSD Licens...
diff --git a/setup.py b/setup.py index 8ca967a3250..65b6ffc1ed5 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ CLASSIFIERS = [ - 'Development Status :: 4 - Beta', + 'Development Status :: 5 - Production/Stable', 'Environment :: Web Environment', 'Framework :: Django', 'Intended Audience :: Developers',
open-telemetry__opentelemetry-python-3284
Reserved attribute seems to be out of sync for message https://github.com/open-telemetry/opentelemetry-python/blob/e00306206ea25cf8549eca289e39e0b6ba2fa560/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py#L290 seems to have getMessage whereas https://docs.python.org/3/library/logging.html#logrecord-attributes has message as reserved attribute. This causes "message" to appear in record having exact same data as msg
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ { "content": "# Copyright The OpenTelemetry Authors\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
diff --git a/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py b/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py index 83cef931491..eda9b093c93 100644 --- a/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py +++ b/opentelemetry-sdk/src/opentelemetry/sdk/_logs/_internal/__init__.py @@ -296,7 +296,7 @@ def force_flush(self, timeout_millis: int = 30000) -> bool: "exc_text", "filename", "funcName", - "getMessage", + "message", "levelname", "levelno", "lineno",
HypothesisWorks__hypothesis-1084
TypeError thrown when trying to import hypothesis in 3.44.21 hypothesis (3.44.21) In [4]: from hypothesis import given --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-4-4ce9639ca03b> in <module>() ----> 1 from hypothesis import given /usr/local/lib/python2.7/dist-packages/hypothesis/__init__.py in <module>() 29 from hypothesis.version import __version_info__, __version__ 30 from hypothesis.control import assume, note, reject, event ---> 31 from hypothesis.core import given, find, example, seed, reproduce_failure, \ 32 PrintSettings 33 from hypothesis.utils.conventions import infer /usr/local/lib/python2.7/dist-packages/hypothesis/core.py in <module>() 35 from coverage.collector import Collector 36 ---> 37 import hypothesis.strategies as st 38 from hypothesis import __version__ 39 from hypothesis.errors import Flaky, Timeout, NoSuchExample, \ /usr/local/lib/python2.7/dist-packages/hypothesis/strategies.py in <module>() 30 from hypothesis.control import assume 31 from hypothesis._settings import note_deprecation ---> 32 from hypothesis.internal.cache import LRUReusedCache 33 from hypothesis.searchstrategy import SearchStrategy 34 from hypothesis.internal.compat import gcd, ceil, floor, hrange, \ /usr/local/lib/python2.7/dist-packages/hypothesis/internal/cache.py in <module>() 21 22 ---> 23 @attr.s(slots=True) 24 class Entry(object): 25 key = attr.ib() TypeError: attributes() got an unexpected keyword argument 'slots'
[ { "content": "# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis-python\n#\n# Most of this work is copyright (C) 2013-2018 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a f...
[ { "content": "# coding=utf-8\n#\n# This file is part of Hypothesis, which may be found at\n# https://github.com/HypothesisWorks/hypothesis-python\n#\n# Most of this work is copyright (C) 2013-2018 David R. MacIver\n# (david@drmaciver.com), but it contains contributions by others. See\n# CONTRIBUTING.rst for a f...
diff --git a/RELEASE.rst b/RELEASE.rst new file mode 100644 index 0000000000..1832eb2a69 --- /dev/null +++ b/RELEASE.rst @@ -0,0 +1,8 @@ +RELEASE_TYPE: patch + +This release fixes a dependency problem. It was possible to install +Hypothesis with an old version of :pypi:`attrs`, which would throw a +``TypeError`` as soon as you tried to import hypothesis. Specifically, you +need attrs 16.0.0 or newer. + +Hypothesis will now require the correct version of attrs when installing. diff --git a/setup.py b/setup.py index bf106d66b4..a493544878 100644 --- a/setup.py +++ b/setup.py @@ -80,7 +80,7 @@ def local_file(name): extras[":python_version == '2.7'"] = ['enum34'] -install_requires = ['attrs', 'coverage'] +install_requires = ['attrs>=16.0.0', 'coverage'] if sys.version_info[0] < 3: install_requires.append('enum34')
sktime__sktime-5287
[BUG] Bug in the imputer class. Fit and transform ignore the parameter for y The `fit` and `transform` functions of the `Imputer` class in sktime ignore the input parameter for `y`. Upon debugging, it was found that `y` is always `None` and cannot be changed. **To Reproduce** ```python from sktime.datasets import load_airline from sktime.transformations.series.impute import Imputer model_reg = YfromX(lgb.LGBMRegressor()) model_reg.fit(x_train, y_train) x_train = load_airline() y_train = load_airline() transformer = Imputer(method="forecaster", forecaster=model_reg) transformer.fit(y_train, y=x_train) y_train_imputed = transformer.transform(y_train, y=x_train) ``` **Expected behavior** The `fit` and `transform` functions of the `Imputer` class should accept the input parameter for `y` and use it as exogenous regressors for the LGBMRegressor YfromX forecaster model. **Additional context** I am using the editable development version of sktime, and the issue persists in this version. ``` System: MacOS 12.5.1 Python dependencies: pandas 12.1 numpy 1.25.2 lightgbm 4.0.0 sklearn 1.3.0 ``` </details> <!-- Please run the following code snippet and paste the output here: from sktime import show_versions; show_versions() (ImportError: cannot import name 'show_versions' from 'sktime' (unknown location)) --> </details> <!-- Thanks for contributing! -->
[ { "content": "#!/usr/bin/env python3 -u\n# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)\n\"\"\"Transformer to impute missing values in series.\"\"\"\n\n__author__ = [\"aiwalter\"]\n__all__ = [\"Imputer\"]\n\nimport numpy as np\nimport pandas as pd\nfrom sklearn.utils import check_random...
[ { "content": "#!/usr/bin/env python3 -u\n# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)\n\"\"\"Transformer to impute missing values in series.\"\"\"\n\n__author__ = [\"aiwalter\"]\n__all__ = [\"Imputer\"]\n\nimport numpy as np\nimport pandas as pd\nfrom sklearn.utils import check_random...
diff --git a/sktime/transformations/series/impute.py b/sktime/transformations/series/impute.py index ce3a26bd73a..da623f0f81b 100644 --- a/sktime/transformations/series/impute.py +++ b/sktime/transformations/series/impute.py @@ -137,6 +137,9 @@ def __init__( } ) + if method in "forecaster": + self.set_tags(**{"y_inner_mtype": ["pd.DataFrame"]}) + def _fit(self, X, y=None): """Fit transformer to X and y. diff --git a/sktime/transformations/series/tests/test_imputer.py b/sktime/transformations/series/tests/test_imputer.py index 4f38c13201d..d0275454e02 100644 --- a/sktime/transformations/series/tests/test_imputer.py +++ b/sktime/transformations/series/tests/test_imputer.py @@ -54,3 +54,24 @@ def test_imputer(method, Z): t = Imputer(method=method, forecaster=forecaster, value=value) y_hat = t.fit_transform(Z) assert not y_hat.isnull().to_numpy().any() + + +def test_imputer_forecaster_y(): + """Test that forecaster imputer works with y. + + Failure case in bug #5284. + """ + from sklearn.linear_model import LinearRegression + + from sktime.datasets import load_airline + from sktime.forecasting.compose import YfromX + + X = load_airline() + y = load_airline() + + model_reg = YfromX(LinearRegression()) + model_reg.fit(X, y) + transformer = Imputer(method="forecaster", forecaster=model_reg) + + transformer.fit(X=X, y=y) + transformer.transform(X=X, y=y)
doccano__doccano-1531
TemplateDoesNotExist Error on start from README instructions How to reproduce the behaviour --------- I was following the instructions on the main README to install and start doccano with pip (copied here) ``` pip install doccano doccano init doccano createuser --username admin --password pass doccano webserver --port 8000 ``` and then in another terminal ``` doccano task ``` This all looks fine, until I try the next step (visiting in the browser). I get the following error (included the last line of the non-error log for reference) ``` [2021-06-10 09:56:42 -0700] [1046] [INFO] Handling signal: winch Internal Server Error: / Traceback (most recent call last): File "/projects/creisle_prj/git/doccano/venv_pipenv/lib/python3.7/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/projects/creisle_prj/git/doccano/venv_pipenv/lib/python3.7/site-packages/django/core/handlers/base.py", line 204, in _get_response response = response.render() File "/projects/creisle_prj/git/doccano/venv_pipenv/lib/python3.7/site-packages/django/template/response.py", line 105, in render self.content = self.rendered_content File "/projects/creisle_prj/git/doccano/venv_pipenv/lib/python3.7/site-packages/django/template/response.py", line 81, in rendered_content template = self.resolve_template(self.template_name) File "/projects/creisle_prj/git/doccano/venv_pipenv/lib/python3.7/site-packages/django/template/response.py", line 63, in resolve_template return select_template(template, using=self.using) File "/projects/creisle_prj/git/doccano/venv_pipenv/lib/python3.7/site-packages/django/template/loader.py", line 47, in select_template raise TemplateDoesNotExist(', '.join(template_name_list), chain=chain) django.template.exceptions.TemplateDoesNotExist: index.html Internal Server Error: /favicon.ico Traceback (most recent call last): File "/projects/creisle_prj/git/doccano/venv_pipenv/lib/python3.7/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/projects/creisle_prj/git/doccano/venv_pipenv/lib/python3.7/site-packages/django/core/handlers/base.py", line 204, in _get_response response = response.render() File "/projects/creisle_prj/git/doccano/venv_pipenv/lib/python3.7/site-packages/django/template/response.py", line 105, in render self.content = self.rendered_content File "/projects/creisle_prj/git/doccano/venv_pipenv/lib/python3.7/site-packages/django/template/response.py", line 81, in rendered_content template = self.resolve_template(self.template_name) File "/projects/creisle_prj/git/doccano/venv_pipenv/lib/python3.7/site-packages/django/template/response.py", line 63, in resolve_template return select_template(template, using=self.using) File "/projects/creisle_prj/git/doccano/venv_pipenv/lib/python3.7/site-packages/django/template/loader.py", line 47, in select_template raise TemplateDoesNotExist(', '.join(template_name_list), chain=chain) django.template.exceptions.TemplateDoesNotExist: index.html ``` Your Environment --------- * Operating System: centos07 * Python Version Used: 3.7.2 (virtual environment) * When you install doccano: 2021-Jun-10 (Today) * How did you install doccano (Heroku button etc): pip
[ { "content": "import argparse\nimport multiprocessing\nimport os\nimport platform\nimport subprocess\nimport sys\n\nfrom .app.celery import app\nbase = os.path.abspath(os.path.dirname(__file__))\nsys.path.append(base)\nmanage_path = os.path.join(base, 'manage.py')\nparser = argparse.ArgumentParser(description='...
[ { "content": "import argparse\nimport multiprocessing\nimport os\nimport platform\nimport subprocess\nimport sys\n\nfrom .app.celery import app\nos.environ['DEBUG'] = 'False'\nbase = os.path.abspath(os.path.dirname(__file__))\nsys.path.append(base)\nmanage_path = os.path.join(base, 'manage.py')\nparser = argpar...
diff --git a/backend/cli.py b/backend/cli.py index b6ada48835..90c23915b8 100644 --- a/backend/cli.py +++ b/backend/cli.py @@ -6,6 +6,7 @@ import sys from .app.celery import app +os.environ['DEBUG'] = 'False' base = os.path.abspath(os.path.dirname(__file__)) sys.path.append(base) manage_path = os.path.join(base, 'manage.py')
huggingface__optimum-425
AttributeError: type object 'ORTModelForCustomTasks' has no attribute 'export_feature' ### System Info ```shell Mac OS X Python 3.9.10 transformers 4.22.2 onnxruntime 1.12.1 onnx 1.12.0 torch 1.12.1 ``` ### Who can help? @lewtun, @michaelbenayoun @JingyaHuang, @echarlaix ### Information - [ ] The official example scripts - [X] My own modified scripts ### Tasks - [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...) - [ ] My own task or dataset (give details below) ### Reproduction ```python from optimum.onnxruntime import ORTModelForCustomTasks ort_model = ORTModelForCustomTasks.from_pretrained('microsoft/mdeberta-v3-base', from_transformers=True) ``` ### Expected behavior ### Possible solution It works if add `export_feature`: ```python from optimum.onnxruntime import ORTModelForCustomTasks class ORTModelFixed(ORTModelForCustomTasks): export_feature = 'default' def __init__(self, model=None, config=None, **kwargs): super().__init__(model=model, config=config, **kwargs) ort_model = ORTModelFixed.from_pretrained('microsoft/mdeberta-v3-base', from_transformers=True) ``` It will work w/o upper tittle-mentioned AttributeError
[ { "content": "# Copyright 2022 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2...
[ { "content": "# Copyright 2022 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2...
diff --git a/optimum/onnxruntime/modeling_ort.py b/optimum/onnxruntime/modeling_ort.py index d46a891ab6..2ba6b103a8 100644 --- a/optimum/onnxruntime/modeling_ort.py +++ b/optimum/onnxruntime/modeling_ort.py @@ -1051,6 +1051,7 @@ class ORTModelForCustomTasks(ORTModel): Onnx Model for any custom tasks. """ + export_feature = "default" auto_model_class = AutoModel def __init__(self, model=None, config=None, **kwargs):
sopel-irc__sopel-1774
db: get_uri() assumes SQLite @RustyBower This slipped by me completely in the whole DB-overhaul process. Obviously this function is useless for instances not using SQLite, in its current state. Not that there will be any of those among upgrade instances (at least, not immediately), but… https://github.com/sopel-irc/sopel/blob/b33173ca5f52905f9ca45c0890e9340779c0c06d/sopel/db.py#L189-L191 Honestly, is this function even still useful? Should we just deprecate it and move on?
[ { "content": "# coding=utf-8\nfrom __future__ import unicode_literals, absolute_import, print_function, division\n\nimport errno\nimport json\nimport os.path\nimport sys\n\nfrom sopel.tools import Identifier\n\nfrom sqlalchemy import create_engine, Column, ForeignKey, Integer, String\nfrom sqlalchemy.engine.url...
[ { "content": "# coding=utf-8\nfrom __future__ import unicode_literals, absolute_import, print_function, division\n\nimport errno\nimport json\nimport os.path\nimport sys\n\nfrom sopel.tools import Identifier\n\nfrom sqlalchemy import create_engine, Column, ForeignKey, Integer, String\nfrom sqlalchemy.engine.url...
diff --git a/sopel/db.py b/sopel/db.py index 471d035d8b..028fdc98cb 100644 --- a/sopel/db.py +++ b/sopel/db.py @@ -188,7 +188,7 @@ def execute(self, *args, **kwargs): def get_uri(self): """Returns a URL for the database, usable to connect with SQLAlchemy.""" - return 'sqlite:///{}'.format(self.filename) + return self.url # NICK FUNCTIONS
streamlink__streamlink-5926
plugins.mangomolo: error: No plugin can handle URL ### Checklist - [X] This is a [plugin issue](https://streamlink.github.io/plugins.html) and not [a different kind of issue](https://github.com/streamlink/streamlink/issues/new/choose) - [X] [I have read the contribution guidelines](https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#contributing-to-streamlink) - [X] [I have checked the list of open and recently closed plugin issues](https://github.com/streamlink/streamlink/issues?q=is%3Aissue+label%3A%22plugin+issue%22) - [X] [I have checked the commit log of the master branch](https://github.com/streamlink/streamlink/commits/master) ### Streamlink version [cli][info] Your Streamlink version (6.7.2) is up to date! ### Description Unable to get stream for Kuwaiti channels.. error message: "error: No plugin can handle URL:" sample URLs: https://www.media.gov.kw/LiveTV.aspx https://www.media.gov.kw/LiveTV.aspx?PanChannel=Drama ### Debug log ```text user@desktop:~ $ streamlink https://www.media.gov.kw/LiveTV.aspx --loglevel=debug [cli][debug] OS: Linux-6.1.21+-armv6l-with-glibc2.31 [cli][debug] Python: 3.9.2 [cli][debug] OpenSSL: OpenSSL 1.1.1w 11 Sep 2023 [cli][debug] Streamlink: 6.7.2 [cli][debug] Dependencies: [cli][debug] certifi: 2023.7.22 [cli][debug] exceptiongroup: 1.1.3 [cli][debug] isodate: 0.6.1 [cli][debug] lxml: 4.9.3 [cli][debug] pycountry: 20.7.3 [cli][debug] pycryptodome: 3.18.0 [cli][debug] PySocks: 1.7.1 [cli][debug] requests: 2.31.0 [cli][debug] trio: 0.22.2 [cli][debug] trio-websocket: 0.10.3 [cli][debug] typing-extensions: 4.7.1 [cli][debug] urllib3: 2.0.4 [cli][debug] websocket-client: 1.6.2 [cli][debug] Arguments: [cli][debug] url=https://www.media.gov.kw/LiveTV.aspx [cli][debug] --loglevel=debug error: No plugin can handle URL: https://www.media.gov.kw/LiveTV.aspx ```
[ { "content": "\"\"\"\n$description OTT video platform owned by Alpha Technology Group\n$url player.mangomolo.com\n$url media.gov.kw\n$type live\n\"\"\"\n\nimport logging\nimport re\n\nfrom streamlink.exceptions import NoStreamsError\nfrom streamlink.plugin import Plugin, pluginmatcher\nfrom streamlink.plugin.ap...
[ { "content": "\"\"\"\n$description OTT video platform owned by Alpha Technology Group\n$url player.mangomolo.com\n$url media.gov.kw\n$type live\n\"\"\"\n\nimport logging\nimport re\n\nfrom streamlink.exceptions import NoStreamsError\nfrom streamlink.plugin import Plugin, pluginmatcher\nfrom streamlink.plugin.ap...
diff --git a/src/streamlink/plugins/mangomolo.py b/src/streamlink/plugins/mangomolo.py index 186732b6c03..4f6e00dbfb7 100644 --- a/src/streamlink/plugins/mangomolo.py +++ b/src/streamlink/plugins/mangomolo.py @@ -24,7 +24,7 @@ ) @pluginmatcher( name="mediagovkw", - pattern=re.compile(r"https?://media\.gov\.kw/"), + pattern=re.compile(r"https?://(www\.)?media\.gov\.kw/"), ) class Mangomolo(Plugin): def _get_player_url(self): diff --git a/tests/plugins/test_mangomolo.py b/tests/plugins/test_mangomolo.py index d80e8f6f2a3..e34244d9e7e 100644 --- a/tests/plugins/test_mangomolo.py +++ b/tests/plugins/test_mangomolo.py @@ -15,8 +15,16 @@ class TestPluginCanHandleUrlMangomolo(PluginCanHandleUrl): "mediagovkw", "https://media.gov.kw/LiveTV.aspx?PanChannel=KTV1", ), + ( + "mediagovkw", + "https://www.media.gov.kw/LiveTV.aspx?PanChannel=KTV1", + ), ( "mediagovkw", "https://media.gov.kw/LiveTV.aspx?PanChannel=KTVSports", ), + ( + "mediagovkw", + "https://www.media.gov.kw/LiveTV.aspx?PanChannel=KTVSports", + ), ]
psychopy__psychopy-2333
Demos -> Hardware -> testSoundLatency.py not working in v3.0.6 Running Demo -> Hardware -> testSoundLatency.py results in the following error message: ``` ##### Running: C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\demos\coder\hardware\testSoundLatency.py ##### pygame 1.9.4 Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\demos\coder\hardware\testSoundLatency.py", line 16, in <module> from labjack import u3 ModuleNotFoundError: No module named 'labjack' ``` Windows 7, 64 bit, PsychoPy 3.0.6 64 bit standalone
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\nDemo for using labjack DAC devices\n\nSee also\n http: //labjack.com/support/labjackpython\nbut note that the version shipped with standalone PsychoPy\nhas u3 (and others below an umbrella called labjack) so the import\nline is slightly ...
[ { "content": "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\n\"\"\"\nDemo for using labjack DAC devices\n\nSee also\n http: //labjack.com/support/labjackpython\nbut note that the version shipped with standalone PsychoPy\nhas u3 (and others below an umbrella called labjack) so the import\nline is slightly ...
diff --git a/psychopy/demos/coder/hardware/labjack_u3.py b/psychopy/demos/coder/hardware/labjack_u3.py index abb4c1af90..9294b41436 100644 --- a/psychopy/demos/coder/hardware/labjack_u3.py +++ b/psychopy/demos/coder/hardware/labjack_u3.py @@ -15,7 +15,10 @@ from builtins import range from psychopy import visual, core, event, sound -from labjack import u3 +try: + from labjack import u3 +except ImportError: + import u3 # sound.setAudioAPI('pyaudio')
comic__grand-challenge.org-755
Handle NoneType comparison in _scores_to_ranks ``` TypeError: '<' not supported between instances of 'NoneType' and 'float' ```
[ { "content": "from collections import OrderedDict\nfrom typing import Tuple, NamedTuple, List, Callable, Iterable, Dict\n\nfrom grandchallenge.evaluation.models import Result\nfrom grandchallenge.evaluation.templatetags.evaluation_extras import (\n get_jsonpath\n)\n\n\nclass Metric(NamedTuple):\n path: st...
[ { "content": "from collections import OrderedDict\nfrom typing import Tuple, NamedTuple, List, Callable, Iterable, Dict\n\nfrom grandchallenge.evaluation.models import Result\nfrom grandchallenge.evaluation.templatetags.evaluation_extras import (\n get_jsonpath\n)\n\n\nclass Metric(NamedTuple):\n path: st...
diff --git a/app/grandchallenge/evaluation/utils.py b/app/grandchallenge/evaluation/utils.py index e76a7f87a4..1366b997b9 100644 --- a/app/grandchallenge/evaluation/utils.py +++ b/app/grandchallenge/evaluation/utils.py @@ -52,7 +52,10 @@ def _filter_valid_results( return [ res for res in results - if all(get_jsonpath(res.metrics, m.path) != "" for m in metrics) + if all( + get_jsonpath(res.metrics, m.path) not in ["", None] + for m in metrics + ) ] diff --git a/app/tests/evaluation_tests/test_utils.py b/app/tests/evaluation_tests/test_utils.py index 87245d0050..a9d7023b0a 100644 --- a/app/tests/evaluation_tests/test_utils.py +++ b/app/tests/evaluation_tests/test_utils.py @@ -231,6 +231,39 @@ def test_results_display(settings): assert_ranks(queryset, expected_ranks) +@pytest.mark.django_db +def test_null_results(settings): + # Override the celery settings + settings.task_eager_propagates = (True,) + settings.task_always_eager = (True,) + settings.broker_url = ("memory://",) + settings.backend = "memory" + + challenge = ChallengeFactory() + + with mute_signals(post_save): + user1 = UserFactory() + queryset = ( + ResultFactory( + job__submission__challenge=challenge, + metrics={"a": 0.6}, + job__submission__creator=user1, + ), + ResultFactory( + job__submission__challenge=challenge, + metrics={"a": None}, + job__submission__creator=user1, + ), + ) + + challenge.evaluation_config.score_jsonpath = "a" + challenge.evaluation_config.result_display_choice = Config.ALL + challenge.evaluation_config.save() + + expected_ranks = [1, 0] + assert_ranks(queryset, expected_ranks) + + def assert_ranks(queryset, expected_ranks, expected_rank_scores=None): for r in queryset: r.refresh_from_db()
ESMCI__cime-4035
cheyenne needs a module load python Now that we require python 3.5+, we need to do a module load python on cheyenne. The lack of this module load is responsible for a failure in `J_TestCreateNewcase.test_f_createnewcase_with_user_compset` if you run the whole `J_TestCreateNewcase` suite, and may cause other problems as well. I'll get a fix in shortly.
[ { "content": "\"\"\"\nEncapsulate the importing of python utils and logging setup, things\nthat every script should do.\n\"\"\"\n# pylint: disable=unused-import\n\nimport sys, os\nimport __main__ as main\n_CIMEROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), \"..\",\"..\")\n_LIB_DIR = os.path.joi...
[ { "content": "\"\"\"\nEncapsulate the importing of python utils and logging setup, things\nthat every script should do.\n\"\"\"\n# pylint: disable=unused-import\n\nimport sys, os\nimport __main__ as main\n_CIMEROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), \"..\",\"..\")\n_LIB_DIR = os.path.joi...
diff --git a/config/cesm/machines/config_machines.xml b/config/cesm/machines/config_machines.xml index da05b3f4a59..70d92bcd2f2 100644 --- a/config/cesm/machines/config_machines.xml +++ b/config/cesm/machines/config_machines.xml @@ -561,6 +561,7 @@ This allows using a different mpirun command to launch unit tests <modules> <command name="purge"/> <command name="load">ncarenv/1.3</command> + <command name="load">python/3.7.9</command> <command name="load">cmake</command> </modules> <modules compiler="intel"> diff --git a/scripts/Tools/standard_script_setup.py b/scripts/Tools/standard_script_setup.py index a3f4801faf0..46a48078cf5 100644 --- a/scripts/Tools/standard_script_setup.py +++ b/scripts/Tools/standard_script_setup.py @@ -14,6 +14,6 @@ os.environ["CIMEROOT"] = _CIMEROOT import CIME.utils -CIME.utils.check_minimum_python_version(2, 7) +CIME.utils.check_minimum_python_version(3, 6) CIME.utils.stop_buffering_output() import logging, argparse
python-poetry__poetry-277
Discrepancy regarding license between doc and poetry init <!-- Hi there! Thank you for discovering and submitting an issue. Before you submit this; let's make sure of a few things. Please make sure the following boxes are ticked if they are correct. If not, please try and fulfill these first. --> <!-- Checked checkbox should look like this: [x] --> - [x] I am on the [latest](https://github.com/sdispater/poetry/releases/latest) Poetry version. - [x] I have searched the [issues](https://github.com/sdispater/poetry/issues) of this repo and believe that this is not a duplicate. - [x] If an exception occurs when executing a command, I executed it again in debug mode (`-vvv` option). <!-- Once those are done, if you're able to fill in the following list with your information, it'd be very helpful to whoever handles the issue. --> - **OS version and name**: Manjaro Linux - **Poetry version**: 0.11.1 - **Link of a [Gist](https://gist.github.com/) with the contents of your pyproject.toml file**: ## Issue <!-- Now feel free to write your issue, but please be descriptive! Thanks again 🙌 ❤️ --> During the `license` prompt of `poetry init`, a valid license is required as input. Acording to the documentation, a license is highly recommended, but not actually required. This descrepancy should be removed by updating either the documentation or the code.
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nimport re\n\nfrom typing import List\nfrom typing import Tuple\n\nfrom .command import Command\nfrom .venv_command import VenvCommand\n\n\nclass InitCommand(Command):\n \"\"\"\n Creates a basic <comment>pyproject.toml</> fil...
[ { "content": "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals\n\nimport re\n\nfrom typing import List\nfrom typing import Tuple\n\nfrom .command import Command\nfrom .venv_command import VenvCommand\n\n\nclass InitCommand(Command):\n \"\"\"\n Creates a basic <comment>pyproject.toml</> fil...
diff --git a/poetry/console/commands/init.py b/poetry/console/commands/init.py index e3550d623b2..5bc12869eef 100644 --- a/poetry/console/commands/init.py +++ b/poetry/console/commands/init.py @@ -296,7 +296,8 @@ def _validate_author(self, author, default): def _validate_license(self, license): from poetry.spdx import license_by_id - license_by_id(license) + if license: + license_by_id(license) return license diff --git a/tests/console/commands/test_init.py b/tests/console/commands/test_init.py index 4bfd25c4bf6..6079d723051 100644 --- a/tests/console/commands/test_init.py +++ b/tests/console/commands/test_init.py @@ -113,3 +113,44 @@ def test_interactive_with_dependencies(app, repo, mocker, poetry): """ assert expected in output + + +def test_empty_license(app, mocker, poetry): + command = app.find("init") + command._pool = poetry.pool + + mocker.patch("poetry.utils._compat.Path.open") + p = mocker.patch("poetry.utils._compat.Path.cwd") + p.return_value = Path(__file__) + + tester = CommandTester(command) + tester.set_inputs( + [ + "my-package", # Package name + "1.2.3", # Version + "", # Description + "n", # Author + "", # License + "", # Python + "n", # Interactive packages + "n", # Interactive dev packages + "\n", # Generate + ] + ) + tester.execute([("command", command.name)]) + + output = tester.get_display(True) + expected = """\ +[tool.poetry] +name = "my-package" +version = "1.2.3" +description = "" +authors = ["Your Name <you@example.com>"] + +[tool.poetry.dependencies] +python = "*" + +[tool.poetry.dev-dependencies] +""" + + assert expected in output
sublimelsp__LSP-920
Empty initializationOptions is not sent # Problem If the `initializationOptions` is an empty dict, it won't be sent to the server. ```js // this is not sent "initializationOptions": {}, ``` Some servers (such as [vscode-css-languageserver](https://github.com/vscode-langservers/vscode-css-languageserver)) need `initializationOptions` to be set even if a empty one or a useless one (as a workaround) such as the following. ```js // this will be sent "initializationOptions": {"just_an_useless_key": 1}, ``` # Reference - https://github.com/sublimelsp/LSP-css/pull/2#discussion_r393881421
[ { "content": "from .logging import debug\nfrom .process import start_server\nfrom .protocol import completion_item_kinds, symbol_kinds, WorkspaceFolder, Request, Notification\nfrom .protocol import TextDocumentSyncKindNone\nfrom .rpc import Client, attach_stdio_client, Response\nfrom .settings import settings a...
[ { "content": "from .logging import debug\nfrom .process import start_server\nfrom .protocol import completion_item_kinds, symbol_kinds, WorkspaceFolder, Request, Notification\nfrom .protocol import TextDocumentSyncKindNone\nfrom .rpc import Client, attach_stdio_client, Response\nfrom .settings import settings a...
diff --git a/plugin/core/sessions.py b/plugin/core/sessions.py index 89a836dda..fae375fc6 100644 --- a/plugin/core/sessions.py +++ b/plugin/core/sessions.py @@ -85,7 +85,7 @@ def get_initialize_params(workspace_folders: List[WorkspaceFolder], designated_f } } } - if config.init_options: + if config.init_options is not None: initializeParams['initializationOptions'] = config.init_options return initializeParams diff --git a/tests/test_session.py b/tests/test_session.py index a5bfea29f..442b5cc23 100644 --- a/tests/test_session.py +++ b/tests/test_session.py @@ -1,6 +1,6 @@ from LSP.plugin.core.protocol import TextDocumentSyncKindFull, TextDocumentSyncKindNone, TextDocumentSyncKindIncremental from LSP.plugin.core.protocol import WorkspaceFolder -from LSP.plugin.core.sessions import create_session, Session, InitializeError +from LSP.plugin.core.sessions import create_session, Session, InitializeError, get_initialize_params from LSP.plugin.core.settings import settings as global_settings from LSP.plugin.core.types import ClientConfig from LSP.plugin.core.types import Settings @@ -44,6 +44,20 @@ def make_session(self, bootstrap_client, on_pre_initialize=None, on_post_initial on_post_initialize=on_post_initialize, on_post_exit=on_post_exit)) + def test_initialize_params(self) -> None: + wf = WorkspaceFolder.from_path("/foo/bar/baz") + params = get_initialize_params( + [wf], wf, ClientConfig(name="test", binary_args=[""], tcp_port=None, init_options=None)) + self.assertNotIn("initializationOptions", params) + params = get_initialize_params( + [wf], wf, ClientConfig(name="test", binary_args=[""], tcp_port=None, init_options={})) + self.assertIn("initializationOptions", params) + self.assertEqual(params["initializationOptions"], {}) + params = get_initialize_params( + [wf], wf, ClientConfig(name="test", binary_args=[""], tcp_port=None, init_options={"foo": "bar"})) + self.assertIn("initializationOptions", params) + self.assertEqual(params["initializationOptions"], {"foo": "bar"}) + # @unittest.skip("need an example config") def test_can_create_session(self): config = ClientConfig(
openfun__richie-290
Person plugin form list every pages, not only Person pages ## Bug Report **Expected behavior/code** Select box in PersonPlugin form should list only extended page with Person model. **Actual Behavior** Currently the select box is listing every CMS pages. **Steps to Reproduce** 1. Edit a page; 2. Try to add a Person plugin into a placeholder which allow it; 3. Click to open the select box from opened form for added Person plugin. **Environment** - Richie version: 0.1.0 (from my own branch synchronized from master 200c8a3) - Platform: Ubuntu 18.04 LTS **Possible Solution** Adding a filter inside plugin form machinery to retain only the extend page with Person.
[ { "content": "\"\"\"\nDeclare and configure the model for the person application\n\"\"\"\nfrom django.db import models\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom cms.api import Page\nfrom cms.extensions import PageExtension\nfrom cms.models.pluginmodel import CMSPlugin\nfrom parler.models ...
[ { "content": "\"\"\"\nDeclare and configure the model for the person application\n\"\"\"\nfrom django.db import models\nfrom django.utils.translation import ugettext_lazy as _\n\nfrom cms.api import Page\nfrom cms.extensions import PageExtension\nfrom cms.models.pluginmodel import CMSPlugin\nfrom parler.models ...
diff --git a/sandbox/static/css/main.css b/sandbox/static/css/main.css new file mode 100644 index 0000000000..615a3b59b5 --- /dev/null +++ b/sandbox/static/css/main.css @@ -0,0 +1,2593 @@ +/* local */ +/*! + * Bootstrap Reboot v4.1.1 (https://getbootstrap.com/) + * Copyright 2011-2018 The Bootstrap Authors + * Copyright 2011-2018 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md) + */ +*, +*::before, +*::after { + box-sizing: border-box; } + +html { + font-family: sans-serif; + line-height: 1.15; + -webkit-text-size-adjust: 100%; + -ms-text-size-adjust: 100%; + -ms-overflow-style: scrollbar; + -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } + +@-ms-viewport { + width: device-width; } + +article, aside, figcaption, figure, footer, header, hgroup, main, nav, section { + display: block; } + +body { + margin: 0; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; + font-size: 1rem; + font-weight: 400; + line-height: 1.5; + color: #212529; + text-align: left; + background-color: #f8f9fa; } + +[tabindex="-1"]:focus { + outline: 0 !important; } + +hr { + box-sizing: content-box; + height: 0; + overflow: visible; } + +h1, h2, h3, h4, h5, h6 { + margin-top: 0; + margin-bottom: 0.5rem; } + +p { + margin-top: 0; + margin-bottom: 1rem; } + +abbr[title], +abbr[data-original-title] { + text-decoration: underline; + text-decoration: underline dotted; + cursor: help; + border-bottom: 0; } + +address { + margin-bottom: 1rem; + font-style: normal; + line-height: inherit; } + +ol, +ul, +dl { + margin-top: 0; + margin-bottom: 1rem; } + +ol ol, +ul ul, +ol ul, +ul ol { + margin-bottom: 0; } + +dt { + font-weight: 700; } + +dd { + margin-bottom: .5rem; + margin-left: 0; } + +blockquote { + margin: 0 0 1rem; } + +dfn { + font-style: italic; } + +b, +strong { + font-weight: bolder; } + +small { + font-size: 80%; } + +sub, +sup { + position: relative; + font-size: 75%; + line-height: 0; + vertical-align: baseline; } + +sub { + bottom: -.25em; } + +sup { + top: -.5em; } + +a { + color: #007bff; + text-decoration: none; + background-color: transparent; + -webkit-text-decoration-skip: objects; } + a:hover { + color: #0056b3; + text-decoration: underline; } + +a:not([href]):not([tabindex]) { + color: inherit; + text-decoration: none; } + a:not([href]):not([tabindex]):hover, a:not([href]):not([tabindex]):focus { + color: inherit; + text-decoration: none; } + a:not([href]):not([tabindex]):focus { + outline: 0; } + +pre, +code, +kbd, +samp { + font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; + font-size: 1em; } + +pre { + margin-top: 0; + margin-bottom: 1rem; + overflow: auto; + -ms-overflow-style: scrollbar; } + +figure { + margin: 0 0 1rem; } + +img { + vertical-align: middle; + border-style: none; } + +svg:not(:root) { + overflow: hidden; } + +table { + border-collapse: collapse; } + +caption { + padding-top: 0.75rem; + padding-bottom: 0.75rem; + color: #6c757d; + text-align: left; + caption-side: bottom; } + +th { + text-align: inherit; } + +label { + display: inline-block; + margin-bottom: 0.5rem; } + +button { + border-radius: 0; } + +button:focus { + outline: 1px dotted; + outline: 5px auto -webkit-focus-ring-color; } + +input, +button, +select, +optgroup, +textarea { + margin: 0; + font-family: inherit; + font-size: inherit; + line-height: inherit; } + +button, +input { + overflow: visible; } + +button, +select { + text-transform: none; } + +button, +html [type="button"], +[type="reset"], +[type="submit"] { + -webkit-appearance: button; } + +button::-moz-focus-inner, +[type="button"]::-moz-focus-inner, +[type="reset"]::-moz-focus-inner, +[type="submit"]::-moz-focus-inner { + padding: 0; + border-style: none; } + +input[type="radio"], +input[type="checkbox"] { + box-sizing: border-box; + padding: 0; } + +input[type="date"], +input[type="time"], +input[type="datetime-local"], +input[type="month"] { + -webkit-appearance: listbox; } + +textarea { + overflow: auto; + resize: vertical; } + +fieldset { + min-width: 0; + padding: 0; + margin: 0; + border: 0; } + +legend { + display: block; + width: 100%; + max-width: 100%; + padding: 0; + margin-bottom: .5rem; + font-size: 1.5rem; + line-height: inherit; + color: inherit; + white-space: normal; } + +progress { + vertical-align: baseline; } + +[type="number"]::-webkit-inner-spin-button, +[type="number"]::-webkit-outer-spin-button { + height: auto; } + +[type="search"] { + outline-offset: -2px; + -webkit-appearance: none; } + +[type="search"]::-webkit-search-cancel-button, +[type="search"]::-webkit-search-decoration { + -webkit-appearance: none; } + +::-webkit-file-upload-button { + font: inherit; + -webkit-appearance: button; } + +output { + display: inline-block; } + +summary { + display: list-item; + cursor: pointer; } + +template { + display: none; } + +[hidden] { + display: none !important; } + +.badge, .search-filter__count { + display: inline-block; + padding: 0.25em 0.4em; + font-size: 75%; + font-weight: 700; + line-height: 1; + text-align: center; + white-space: nowrap; + vertical-align: baseline; + border-radius: 0.25rem; } + .badge:empty, .search-filter__count:empty { + display: none; } + +.btn .badge, .btn .search-filter__count { + position: relative; + top: -1px; } + +.badge-pill, .search-filter__count { + padding-right: 0.6em; + padding-left: 0.6em; + border-radius: 10rem; } + +.badge-primary, .search-filter__count { + color: #fff; + background-color: #007bff; } + .badge-primary[href]:hover, .search-filter__count[href]:hover, .badge-primary[href]:focus, .search-filter__count[href]:focus { + color: #fff; + text-decoration: none; + background-color: #0062cc; } + +.badge-secondary { + color: #fff; + background-color: #6c757d; } + .badge-secondary[href]:hover, .badge-secondary[href]:focus { + color: #fff; + text-decoration: none; + background-color: #545b62; } + +.badge-success { + color: #fff; + background-color: #28a745; } + .badge-success[href]:hover, .badge-success[href]:focus { + color: #fff; + text-decoration: none; + background-color: #1e7e34; } + +.badge-info { + color: #fff; + background-color: #17a2b8; } + .badge-info[href]:hover, .badge-info[href]:focus { + color: #fff; + text-decoration: none; + background-color: #117a8b; } + +.badge-warning { + color: #212529; + background-color: #ffc107; } + .badge-warning[href]:hover, .badge-warning[href]:focus { + color: #212529; + text-decoration: none; + background-color: #d39e00; } + +.badge-danger { + color: #fff; + background-color: #dc3545; } + .badge-danger[href]:hover, .badge-danger[href]:focus { + color: #fff; + text-decoration: none; + background-color: #bd2130; } + +.badge-light { + color: #212529; + background-color: #f8f9fa; } + .badge-light[href]:hover, .badge-light[href]:focus { + color: #212529; + text-decoration: none; + background-color: #dae0e5; } + +.badge-dark { + color: #fff; + background-color: #343a40; } + .badge-dark[href]:hover, .badge-dark[href]:focus { + color: #fff; + text-decoration: none; + background-color: #1d2124; } + +.card, .course-glimpse { + position: relative; + display: flex; + flex-direction: column; + min-width: 0; + word-wrap: break-word; + background-color: #fff; + background-clip: border-box; + border: 1px solid rgba(0, 0, 0, 0.125); + border-radius: 0.25rem; } + .card > hr, .course-glimpse > hr { + margin-right: 0; + margin-left: 0; } + .card > .list-group:first-child .list-group-item:first-child, .course-glimpse > .list-group:first-child .list-group-item:first-child, .card > .search-filter-group__list:first-child .list-group-item:first-child, .course-glimpse > .search-filter-group__list:first-child .list-group-item:first-child, .card > .list-group:first-child .search-filter:first-child, .course-glimpse > .list-group:first-child .search-filter:first-child, .card > .search-filter-group__list:first-child .search-filter:first-child, .course-glimpse > .search-filter-group__list:first-child .search-filter:first-child { + border-top-left-radius: 0.25rem; + border-top-right-radius: 0.25rem; } + .card > .list-group:last-child .list-group-item:last-child, .course-glimpse > .list-group:last-child .list-group-item:last-child, .card > .search-filter-group__list:last-child .list-group-item:last-child, .course-glimpse > .search-filter-group__list:last-child .list-group-item:last-child, .card > .list-group:last-child .search-filter:last-child, .course-glimpse > .list-group:last-child .search-filter:last-child, .card > .search-filter-group__list:last-child .search-filter:last-child, .course-glimpse > .search-filter-group__list:last-child .search-filter:last-child { + border-bottom-right-radius: 0.25rem; + border-bottom-left-radius: 0.25rem; } + +.card-body, .course-glimpse__body { + flex: 1 1 auto; + padding: 1.25rem; } + +.card-title, .course-glimpse__body__title { + margin-bottom: 0.75rem; } + +.card-subtitle { + margin-top: -0.375rem; + margin-bottom: 0; } + +.card-text:last-child { + margin-bottom: 0; } + +.card-link:hover { + text-decoration: none; } + +.card-link + .card-link { + margin-left: 1.25rem; } + +.card-header { + padding: 0.75rem 1.25rem; + margin-bottom: 0; + background-color: rgba(0, 0, 0, 0.03); + border-bottom: 1px solid rgba(0, 0, 0, 0.125); } + .card-header:first-child { + border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0; } + .card-header + .list-group .list-group-item:first-child, .card-header + .search-filter-group__list .list-group-item:first-child, .card-header + .list-group .search-filter:first-child, .card-header + .search-filter-group__list .search-filter:first-child { + border-top: 0; } + +.card-footer, .course-glimpse__date { + padding: 0.75rem 1.25rem; + background-color: rgba(0, 0, 0, 0.03); + border-top: 1px solid rgba(0, 0, 0, 0.125); } + .card-footer:last-child, .course-glimpse__date:last-child { + border-radius: 0 0 calc(0.25rem - 1px) calc(0.25rem - 1px); } + +.card-header-tabs { + margin-right: -0.625rem; + margin-bottom: -0.75rem; + margin-left: -0.625rem; + border-bottom: 0; } + +.card-header-pills { + margin-right: -0.625rem; + margin-left: -0.625rem; } + +.card-img-overlay { + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + padding: 1.25rem; } + +.card-img { + width: 100%; + border-radius: calc(0.25rem - 1px); } + +.card-img-top, .course-glimpse__image { + width: 100%; + border-top-left-radius: calc(0.25rem - 1px); + border-top-right-radius: calc(0.25rem - 1px); } + +.card-img-bottom { + width: 100%; + border-bottom-right-radius: calc(0.25rem - 1px); + border-bottom-left-radius: calc(0.25rem - 1px); } + +.card-deck { + display: flex; + flex-direction: column; } + .card-deck .card, .card-deck .course-glimpse { + margin-bottom: 15px; } + @media (min-width: 576px) { + .card-deck { + flex-flow: row wrap; + margin-right: -15px; + margin-left: -15px; } + .card-deck .card, .card-deck .course-glimpse { + display: flex; + flex: 1 0 0%; + flex-direction: column; + margin-right: 15px; + margin-bottom: 0; + margin-left: 15px; } } + +.card-group { + display: flex; + flex-direction: column; } + .card-group > .card, .card-group > .course-glimpse { + margin-bottom: 15px; } + @media (min-width: 576px) { + .card-group { + flex-flow: row wrap; } + .card-group > .card, .card-group > .course-glimpse { + flex: 1 0 0%; + margin-bottom: 0; } + .card-group > .card + .card, .card-group > .course-glimpse + .card, .card-group > .card + .course-glimpse, .card-group > .course-glimpse + .course-glimpse { + margin-left: 0; + border-left: 0; } + .card-group > .card:first-child, .card-group > .course-glimpse:first-child { + border-top-right-radius: 0; + border-bottom-right-radius: 0; } + .card-group > .card:first-child .card-img-top, .card-group > .course-glimpse:first-child .card-img-top, .card-group > .card:first-child .course-glimpse__image, .card-group > .course-glimpse:first-child .course-glimpse__image, + .card-group > .card:first-child .card-header, + .card-group > .course-glimpse:first-child .card-header { + border-top-right-radius: 0; } + .card-group > .card:first-child .card-img-bottom, .card-group > .course-glimpse:first-child .card-img-bottom, + .card-group > .card:first-child .card-footer, + .card-group > .course-glimpse:first-child .card-footer, + .card-group > .card:first-child .course-glimpse__date, + .card-group > .course-glimpse:first-child .course-glimpse__date { + border-bottom-right-radius: 0; } + .card-group > .card:last-child, .card-group > .course-glimpse:last-child { + border-top-left-radius: 0; + border-bottom-left-radius: 0; } + .card-group > .card:last-child .card-img-top, .card-group > .course-glimpse:last-child .card-img-top, .card-group > .card:last-child .course-glimpse__image, .card-group > .course-glimpse:last-child .course-glimpse__image, + .card-group > .card:last-child .card-header, + .card-group > .course-glimpse:last-child .card-header { + border-top-left-radius: 0; } + .card-group > .card:last-child .card-img-bottom, .card-group > .course-glimpse:last-child .card-img-bottom, + .card-group > .card:last-child .card-footer, + .card-group > .course-glimpse:last-child .card-footer, + .card-group > .card:last-child .course-glimpse__date, + .card-group > .course-glimpse:last-child .course-glimpse__date { + border-bottom-left-radius: 0; } + .card-group > .card:only-child, .card-group > .course-glimpse:only-child { + border-radius: 0.25rem; } + .card-group > .card:only-child .card-img-top, .card-group > .course-glimpse:only-child .card-img-top, .card-group > .card:only-child .course-glimpse__image, .card-group > .course-glimpse:only-child .course-glimpse__image, + .card-group > .card:only-child .card-header, + .card-group > .course-glimpse:only-child .card-header { + border-top-left-radius: 0.25rem; + border-top-right-radius: 0.25rem; } + .card-group > .card:only-child .card-img-bottom, .card-group > .course-glimpse:only-child .card-img-bottom, + .card-group > .card:only-child .card-footer, + .card-group > .course-glimpse:only-child .card-footer, + .card-group > .card:only-child .course-glimpse__date, + .card-group > .course-glimpse:only-child .course-glimpse__date { + border-bottom-right-radius: 0.25rem; + border-bottom-left-radius: 0.25rem; } + .card-group > .card:not(:first-child):not(:last-child):not(:only-child), .card-group > .course-glimpse:not(:first-child):not(:last-child):not(:only-child) { + border-radius: 0; } + .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-img-top, .card-group > .course-glimpse:not(:first-child):not(:last-child):not(:only-child) .card-img-top, .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .course-glimpse__image, .card-group > .course-glimpse:not(:first-child):not(:last-child):not(:only-child) .course-glimpse__image, + .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-img-bottom, + .card-group > .course-glimpse:not(:first-child):not(:last-child):not(:only-child) .card-img-bottom, + .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-header, + .card-group > .course-glimpse:not(:first-child):not(:last-child):not(:only-child) .card-header, + .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .card-footer, + .card-group > .course-glimpse:not(:first-child):not(:last-child):not(:only-child) .card-footer, + .card-group > .card:not(:first-child):not(:last-child):not(:only-child) .course-glimpse__date, + .card-group > .course-glimpse:not(:first-child):not(:last-child):not(:only-child) .course-glimpse__date { + border-radius: 0; } } + +.card-columns .card, .card-columns .course-glimpse { + margin-bottom: 0.75rem; } + +@media (min-width: 576px) { + .card-columns { + column-count: 3; + column-gap: 1.25rem; + orphans: 1; + widows: 1; } + .card-columns .card, .card-columns .course-glimpse { + display: inline-block; + width: 100%; } } + +.accordion .card:not(:first-of-type):not(:last-of-type), .accordion .course-glimpse:not(:first-of-type):not(:last-of-type) { + border-bottom: 0; + border-radius: 0; } + +.accordion .card:not(:first-of-type) .card-header:first-child, .accordion .course-glimpse:not(:first-of-type) .card-header:first-child { + border-radius: 0; } + +.accordion .card:first-of-type, .accordion .course-glimpse:first-of-type { + border-bottom: 0; + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; } + +.accordion .card:last-of-type, .accordion .course-glimpse:last-of-type { + border-top-left-radius: 0; + border-top-right-radius: 0; } + +.dropup, +.dropright, +.dropdown, +.dropleft { + position: relative; } + +.dropdown-toggle::after { + display: inline-block; + width: 0; + height: 0; + margin-left: 0.255em; + vertical-align: 0.255em; + content: ""; + border-top: 0.3em solid; + border-right: 0.3em solid transparent; + border-bottom: 0; + border-left: 0.3em solid transparent; } + +.dropdown-toggle:empty::after { + margin-left: 0; } + +.dropdown-menu, .react-autosuggest__suggestions-container { + position: absolute; + top: 100%; + left: 0; + z-index: 1000; + display: none; + float: left; + min-width: 10rem; + padding: 0.5rem 0; + margin: 0.125rem 0 0; + font-size: 1rem; + color: #212529; + text-align: left; + list-style: none; + background-color: #fff; + background-clip: padding-box; + border: 1px solid rgba(0, 0, 0, 0.15); + border-radius: 0.25rem; } + +.dropdown-menu-right { + right: 0; + left: auto; } + +.dropup .dropdown-menu, .dropup .react-autosuggest__suggestions-container { + top: auto; + bottom: 100%; + margin-top: 0; + margin-bottom: 0.125rem; } + +.dropup .dropdown-toggle::after { + display: inline-block; + width: 0; + height: 0; + margin-left: 0.255em; + vertical-align: 0.255em; + content: ""; + border-top: 0; + border-right: 0.3em solid transparent; + border-bottom: 0.3em solid; + border-left: 0.3em solid transparent; } + +.dropup .dropdown-toggle:empty::after { + margin-left: 0; } + +.dropright .dropdown-menu, .dropright .react-autosuggest__suggestions-container { + top: 0; + right: auto; + left: 100%; + margin-top: 0; + margin-left: 0.125rem; } + +.dropright .dropdown-toggle::after { + display: inline-block; + width: 0; + height: 0; + margin-left: 0.255em; + vertical-align: 0.255em; + content: ""; + border-top: 0.3em solid transparent; + border-right: 0; + border-bottom: 0.3em solid transparent; + border-left: 0.3em solid; } + +.dropright .dropdown-toggle:empty::after { + margin-left: 0; } + +.dropright .dropdown-toggle::after { + vertical-align: 0; } + +.dropleft .dropdown-menu, .dropleft .react-autosuggest__suggestions-container { + top: 0; + right: 100%; + left: auto; + margin-top: 0; + margin-right: 0.125rem; } + +.dropleft .dropdown-toggle::after { + display: inline-block; + width: 0; + height: 0; + margin-left: 0.255em; + vertical-align: 0.255em; + content: ""; } + +.dropleft .dropdown-toggle::after { + display: none; } + +.dropleft .dropdown-toggle::before { + display: inline-block; + width: 0; + height: 0; + margin-right: 0.255em; + vertical-align: 0.255em; + content: ""; + border-top: 0.3em solid transparent; + border-right: 0.3em solid; + border-bottom: 0.3em solid transparent; } + +.dropleft .dropdown-toggle:empty::after { + margin-left: 0; } + +.dropleft .dropdown-toggle::before { + vertical-align: 0; } + +.dropdown-menu[x-placement^="top"], .react-autosuggest__suggestions-container[x-placement^="top"], .dropdown-menu[x-placement^="right"], .react-autosuggest__suggestions-container[x-placement^="right"], .dropdown-menu[x-placement^="bottom"], .react-autosuggest__suggestions-container[x-placement^="bottom"], .dropdown-menu[x-placement^="left"], .react-autosuggest__suggestions-container[x-placement^="left"] { + right: auto; + bottom: auto; } + +.dropdown-divider { + height: 0; + margin: 0.5rem 0; + overflow: hidden; + border-top: 1px solid #e9ecef; } + +.dropdown-item, .react-autosuggest__suggestion { + display: block; + width: 100%; + padding: 0.25rem 1.5rem; + clear: both; + font-weight: 400; + color: #212529; + text-align: inherit; + white-space: nowrap; + background-color: transparent; + border: 0; } + .dropdown-item:hover, .react-autosuggest__suggestion:hover, .dropdown-item:focus, .react-autosuggest__suggestion:focus { + color: #16181b; + text-decoration: none; + background-color: #f8f9fa; } + .dropdown-item.active, .active.react-autosuggest__suggestion, .react-autosuggest__suggestion.react-autosuggest__suggestion--highlighted, .dropdown-item.react-autosuggest__suggestion--highlighted, .dropdown-item:active, .react-autosuggest__suggestion:active { + color: #fff; + text-decoration: none; + background-color: #007bff; } + .dropdown-item.disabled, .disabled.react-autosuggest__suggestion, .dropdown-item:disabled, .react-autosuggest__suggestion:disabled { + color: #6c757d; + background-color: transparent; } + +.dropdown-menu.show, .show.react-autosuggest__suggestions-container { + display: block; } + +.dropdown-header, .react-autosuggest__section-title { + display: block; + padding: 0.5rem 1.5rem; + margin-bottom: 0; + font-size: 0.875rem; + color: #6c757d; + white-space: nowrap; } + +.dropdown-item-text { + display: block; + padding: 0.25rem 1.5rem; + color: #212529; } + +.form-control, .react-autosuggest__input { + display: block; + width: 100%; + padding: 0.375rem 0.75rem; + font-size: 1rem; + line-height: 1.5; + color: #495057; + background-color: #fff; + background-clip: padding-box; + border: 1px solid #ced4da; + border-radius: 0.25rem; + transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out; } + @media screen and (prefers-reduced-motion: reduce) { + .form-control, .react-autosuggest__input { + transition: none; } } + .form-control::-ms-expand, .react-autosuggest__input::-ms-expand { + background-color: transparent; + border: 0; } + .form-control:focus, .react-autosuggest__input:focus { + color: #495057; + background-color: #fff; + border-color: #80bdff; + outline: 0; + box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25); } + .form-control::placeholder, .react-autosuggest__input::placeholder { + color: #6c757d; + opacity: 1; } + .form-control:disabled, .react-autosuggest__input:disabled, .form-control[readonly], .react-autosuggest__input[readonly] { + background-color: #e9ecef; + opacity: 1; } + +select.form-control:not([size]):not([multiple]), select.react-autosuggest__input:not([size]):not([multiple]) { + height: calc(2.25rem + 2px); } + +select.form-control:focus::-ms-value, select.react-autosuggest__input:focus::-ms-value { + color: #495057; + background-color: #fff; } + +.form-control-file, +.form-control-range { + display: block; + width: 100%; } + +.col-form-label { + padding-top: calc(0.375rem + 1px); + padding-bottom: calc(0.375rem + 1px); + margin-bottom: 0; + font-size: inherit; + line-height: 1.5; } + +.col-form-label-lg { + padding-top: calc(0.5rem + 1px); + padding-bottom: calc(0.5rem + 1px); + font-size: 1.25rem; + line-height: 1.5; } + +.col-form-label-sm { + padding-top: calc(0.25rem + 1px); + padding-bottom: calc(0.25rem + 1px); + font-size: 0.875rem; + line-height: 1.5; } + +.form-control-plaintext { + display: block; + width: 100%; + padding-top: 0.375rem; + padding-bottom: 0.375rem; + margin-bottom: 0; + line-height: 1.5; + color: #212529; + background-color: transparent; + border: solid transparent; + border-width: 1px 0; } + .form-control-plaintext.form-control-sm, .form-control-plaintext.form-control-lg { + padding-right: 0; + padding-left: 0; } + +.form-control-sm { + padding: 0.25rem 0.5rem; + font-size: 0.875rem; + line-height: 1.5; + border-radius: 0.2rem; } + +select.form-control-sm:not([size]):not([multiple]) { + height: calc(1.8125rem + 2px); } + +.form-control-lg { + padding: 0.5rem 1rem; + font-size: 1.25rem; + line-height: 1.5; + border-radius: 0.3rem; } + +select.form-control-lg:not([size]):not([multiple]) { + height: calc(2.875rem + 2px); } + +.form-group { + margin-bottom: 1rem; } + +.form-text { + display: block; + margin-top: 0.25rem; } + +.form-row { + display: flex; + flex-wrap: wrap; + margin-right: -5px; + margin-left: -5px; } + .form-row > .col, + .form-row > [class*="col-"] { + padding-right: 5px; + padding-left: 5px; } + +.form-check { + position: relative; + display: block; + padding-left: 1.25rem; } + +.form-check-input { + position: absolute; + margin-top: 0.3rem; + margin-left: -1.25rem; } + .form-check-input:disabled ~ .form-check-label { + color: #6c757d; } + +.form-check-label { + margin-bottom: 0; } + +.form-check-inline { + display: inline-flex; + align-items: center; + padding-left: 0; + margin-right: 0.75rem; } + .form-check-inline .form-check-input { + position: static; + margin-top: 0; + margin-right: 0.3125rem; + margin-left: 0; } + +.valid-feedback { + display: none; + width: 100%; + margin-top: 0.25rem; + font-size: 80%; + color: #28a745; } + +.valid-tooltip { + position: absolute; + top: 100%; + z-index: 5; + display: none; + max-width: 100%; + padding: .5rem; + margin-top: .1rem; + font-size: .875rem; + line-height: 1; + color: #fff; + background-color: rgba(40, 167, 69, 0.8); + border-radius: .2rem; } + +.was-validated .form-control:valid, .was-validated .react-autosuggest__input:valid, .form-control.is-valid, .is-valid.react-autosuggest__input, .was-validated +.custom-select:valid, +.custom-select.is-valid { + border-color: #28a745; } + .was-validated .form-control:valid:focus, .was-validated .react-autosuggest__input:valid:focus, .form-control.is-valid:focus, .is-valid.react-autosuggest__input:focus, .was-validated + .custom-select:valid:focus, + .custom-select.is-valid:focus { + border-color: #28a745; + box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25); } + .was-validated .form-control:valid ~ .valid-feedback, .was-validated .react-autosuggest__input:valid ~ .valid-feedback, + .was-validated .form-control:valid ~ .valid-tooltip, + .was-validated .react-autosuggest__input:valid ~ .valid-tooltip, .form-control.is-valid ~ .valid-feedback, .is-valid.react-autosuggest__input ~ .valid-feedback, + .form-control.is-valid ~ .valid-tooltip, + .is-valid.react-autosuggest__input ~ .valid-tooltip, .was-validated + .custom-select:valid ~ .valid-feedback, + .was-validated + .custom-select:valid ~ .valid-tooltip, + .custom-select.is-valid ~ .valid-feedback, + .custom-select.is-valid ~ .valid-tooltip { + display: block; } + +.was-validated .form-control-file:valid ~ .valid-feedback, +.was-validated .form-control-file:valid ~ .valid-tooltip, .form-control-file.is-valid ~ .valid-feedback, +.form-control-file.is-valid ~ .valid-tooltip { + display: block; } + +.was-validated .form-check-input:valid ~ .form-check-label, .form-check-input.is-valid ~ .form-check-label { + color: #28a745; } + +.was-validated .form-check-input:valid ~ .valid-feedback, +.was-validated .form-check-input:valid ~ .valid-tooltip, .form-check-input.is-valid ~ .valid-feedback, +.form-check-input.is-valid ~ .valid-tooltip { + display: block; } + +.was-validated .custom-control-input:valid ~ .custom-control-label, .custom-control-input.is-valid ~ .custom-control-label { + color: #28a745; } + .was-validated .custom-control-input:valid ~ .custom-control-label::before, .custom-control-input.is-valid ~ .custom-control-label::before { + background-color: #71dd8a; } + +.was-validated .custom-control-input:valid ~ .valid-feedback, +.was-validated .custom-control-input:valid ~ .valid-tooltip, .custom-control-input.is-valid ~ .valid-feedback, +.custom-control-input.is-valid ~ .valid-tooltip { + display: block; } + +.was-validated .custom-control-input:valid:checked ~ .custom-control-label::before, .custom-control-input.is-valid:checked ~ .custom-control-label::before { + background-color: #34ce57; } + +.was-validated .custom-control-input:valid:focus ~ .custom-control-label::before, .custom-control-input.is-valid:focus ~ .custom-control-label::before { + box-shadow: 0 0 0 1px #f8f9fa, 0 0 0 0.2rem rgba(40, 167, 69, 0.25); } + +.was-validated .custom-file-input:valid ~ .custom-file-label, .custom-file-input.is-valid ~ .custom-file-label { + border-color: #28a745; } + .was-validated .custom-file-input:valid ~ .custom-file-label::before, .custom-file-input.is-valid ~ .custom-file-label::before { + border-color: inherit; } + +.was-validated .custom-file-input:valid ~ .valid-feedback, +.was-validated .custom-file-input:valid ~ .valid-tooltip, .custom-file-input.is-valid ~ .valid-feedback, +.custom-file-input.is-valid ~ .valid-tooltip { + display: block; } + +.was-validated .custom-file-input:valid:focus ~ .custom-file-label, .custom-file-input.is-valid:focus ~ .custom-file-label { + box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25); } + +.invalid-feedback { + display: none; + width: 100%; + margin-top: 0.25rem; + font-size: 80%; + color: #dc3545; } + +.invalid-tooltip { + position: absolute; + top: 100%; + z-index: 5; + display: none; + max-width: 100%; + padding: .5rem; + margin-top: .1rem; + font-size: .875rem; + line-height: 1; + color: #fff; + background-color: rgba(220, 53, 69, 0.8); + border-radius: .2rem; } + +.was-validated .form-control:invalid, .was-validated .react-autosuggest__input:invalid, .form-control.is-invalid, .is-invalid.react-autosuggest__input, .was-validated +.custom-select:invalid, +.custom-select.is-invalid { + border-color: #dc3545; } + .was-validated .form-control:invalid:focus, .was-validated .react-autosuggest__input:invalid:focus, .form-control.is-invalid:focus, .is-invalid.react-autosuggest__input:focus, .was-validated + .custom-select:invalid:focus, + .custom-select.is-invalid:focus { + border-color: #dc3545; + box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); } + .was-validated .form-control:invalid ~ .invalid-feedback, .was-validated .react-autosuggest__input:invalid ~ .invalid-feedback, + .was-validated .form-control:invalid ~ .invalid-tooltip, + .was-validated .react-autosuggest__input:invalid ~ .invalid-tooltip, .form-control.is-invalid ~ .invalid-feedback, .is-invalid.react-autosuggest__input ~ .invalid-feedback, + .form-control.is-invalid ~ .invalid-tooltip, + .is-invalid.react-autosuggest__input ~ .invalid-tooltip, .was-validated + .custom-select:invalid ~ .invalid-feedback, + .was-validated + .custom-select:invalid ~ .invalid-tooltip, + .custom-select.is-invalid ~ .invalid-feedback, + .custom-select.is-invalid ~ .invalid-tooltip { + display: block; } + +.was-validated .form-control-file:invalid ~ .invalid-feedback, +.was-validated .form-control-file:invalid ~ .invalid-tooltip, .form-control-file.is-invalid ~ .invalid-feedback, +.form-control-file.is-invalid ~ .invalid-tooltip { + display: block; } + +.was-validated .form-check-input:invalid ~ .form-check-label, .form-check-input.is-invalid ~ .form-check-label { + color: #dc3545; } + +.was-validated .form-check-input:invalid ~ .invalid-feedback, +.was-validated .form-check-input:invalid ~ .invalid-tooltip, .form-check-input.is-invalid ~ .invalid-feedback, +.form-check-input.is-invalid ~ .invalid-tooltip { + display: block; } + +.was-validated .custom-control-input:invalid ~ .custom-control-label, .custom-control-input.is-invalid ~ .custom-control-label { + color: #dc3545; } + .was-validated .custom-control-input:invalid ~ .custom-control-label::before, .custom-control-input.is-invalid ~ .custom-control-label::before { + background-color: #efa2a9; } + +.was-validated .custom-control-input:invalid ~ .invalid-feedback, +.was-validated .custom-control-input:invalid ~ .invalid-tooltip, .custom-control-input.is-invalid ~ .invalid-feedback, +.custom-control-input.is-invalid ~ .invalid-tooltip { + display: block; } + +.was-validated .custom-control-input:invalid:checked ~ .custom-control-label::before, .custom-control-input.is-invalid:checked ~ .custom-control-label::before { + background-color: #e4606d; } + +.was-validated .custom-control-input:invalid:focus ~ .custom-control-label::before, .custom-control-input.is-invalid:focus ~ .custom-control-label::before { + box-shadow: 0 0 0 1px #f8f9fa, 0 0 0 0.2rem rgba(220, 53, 69, 0.25); } + +.was-validated .custom-file-input:invalid ~ .custom-file-label, .custom-file-input.is-invalid ~ .custom-file-label { + border-color: #dc3545; } + .was-validated .custom-file-input:invalid ~ .custom-file-label::before, .custom-file-input.is-invalid ~ .custom-file-label::before { + border-color: inherit; } + +.was-validated .custom-file-input:invalid ~ .invalid-feedback, +.was-validated .custom-file-input:invalid ~ .invalid-tooltip, .custom-file-input.is-invalid ~ .invalid-feedback, +.custom-file-input.is-invalid ~ .invalid-tooltip { + display: block; } + +.was-validated .custom-file-input:invalid:focus ~ .custom-file-label, .custom-file-input.is-invalid:focus ~ .custom-file-label { + box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25); } + +.form-inline { + display: flex; + flex-flow: row wrap; + align-items: center; } + .form-inline .form-check { + width: 100%; } + @media (min-width: 576px) { + .form-inline label { + display: flex; + align-items: center; + justify-content: center; + margin-bottom: 0; } + .form-inline .form-group { + display: flex; + flex: 0 0 auto; + flex-flow: row wrap; + align-items: center; + margin-bottom: 0; } + .form-inline .form-control, .form-inline .react-autosuggest__input { + display: inline-block; + width: auto; + vertical-align: middle; } + .form-inline .form-control-plaintext { + display: inline-block; } + .form-inline .input-group, + .form-inline .custom-select { + width: auto; } + .form-inline .form-check { + display: flex; + align-items: center; + justify-content: center; + width: auto; + padding-left: 0; } + .form-inline .form-check-input { + position: relative; + margin-top: 0; + margin-right: 0.25rem; + margin-left: 0; } + .form-inline .custom-control { + align-items: center; + justify-content: center; } + .form-inline .custom-control-label { + margin-bottom: 0; } } + +.list-group, .search-filter-group__list { + display: flex; + flex-direction: column; + padding-left: 0; + margin-bottom: 0; } + +.list-group-item-action, .search-filter { + width: 100%; + color: #495057; + text-align: inherit; } + .list-group-item-action:hover, .search-filter:hover, .list-group-item-action:focus, .search-filter:focus { + color: #495057; + text-decoration: none; + background-color: #f8f9fa; } + .list-group-item-action:active, .search-filter:active { + color: #212529; + background-color: #e9ecef; } + +.list-group-item, .search-filter { + position: relative; + display: block; + padding: 0.75rem 1.25rem; + margin-bottom: -1px; + background-color: #fff; + border: 1px solid rgba(0, 0, 0, 0.125); } + .list-group-item:first-child, .search-filter:first-child { + border-top-left-radius: 0.25rem; + border-top-right-radius: 0.25rem; } + .list-group-item:last-child, .search-filter:last-child { + margin-bottom: 0; + border-bottom-right-radius: 0.25rem; + border-bottom-left-radius: 0.25rem; } + .list-group-item:hover, .search-filter:hover, .list-group-item:focus, .search-filter:focus { + z-index: 1; + text-decoration: none; } + .list-group-item.disabled, .disabled.search-filter, .list-group-item:disabled, .search-filter:disabled { + color: #6c757d; + background-color: #fff; } + .list-group-item.active, .list-group-item.react-autosuggest__suggestion--highlighted, .react-autosuggest__suggestion--highlighted.search-filter, .active.search-filter { + z-index: 2; + color: #fff; + background-color: #007bff; + border-color: #007bff; } + +.list-group-flush .list-group-item, .search-filter-group__list .list-group-item, .list-group-flush .search-filter, .search-filter-group__list .search-filter { + border-right: 0; + border-left: 0; + border-radius: 0; } + +.list-group-flush:first-child .list-group-item:first-child, .search-filter-group__list:first-child .list-group-item:first-child, .list-group-flush:first-child .search-filter:first-child, .search-filter-group__list:first-child .search-filter:first-child { + border-top: 0; } + +.list-group-flush:last-child .list-group-item:last-child, .search-filter-group__list:last-child .list-group-item:last-child, .list-group-flush:last-child .search-filter:last-child, .search-filter-group__list:last-child .search-filter:last-child { + border-bottom: 0; } + +.list-group-item-primary { + color: #004085; + background-color: #b8daff; } + .list-group-item-primary.list-group-item-action:hover, .list-group-item-primary.search-filter:hover, .list-group-item-primary.list-group-item-action:focus, .list-group-item-primary.search-filter:focus { + color: #004085; + background-color: #9fcdff; } + .list-group-item-primary.list-group-item-action.active, .list-group-item-primary.list-group-item-action.react-autosuggest__suggestion--highlighted, .list-group-item-primary.react-autosuggest__suggestion--highlighted.search-filter, .list-group-item-primary.active.search-filter { + color: #fff; + background-color: #004085; + border-color: #004085; } + +.list-group-item-secondary { + color: #383d41; + background-color: #d6d8db; } + .list-group-item-secondary.list-group-item-action:hover, .list-group-item-secondary.search-filter:hover, .list-group-item-secondary.list-group-item-action:focus, .list-group-item-secondary.search-filter:focus { + color: #383d41; + background-color: #c8cbcf; } + .list-group-item-secondary.list-group-item-action.active, .list-group-item-secondary.list-group-item-action.react-autosuggest__suggestion--highlighted, .list-group-item-secondary.react-autosuggest__suggestion--highlighted.search-filter, .list-group-item-secondary.active.search-filter { + color: #fff; + background-color: #383d41; + border-color: #383d41; } + +.list-group-item-success { + color: #155724; + background-color: #c3e6cb; } + .list-group-item-success.list-group-item-action:hover, .list-group-item-success.search-filter:hover, .list-group-item-success.list-group-item-action:focus, .list-group-item-success.search-filter:focus { + color: #155724; + background-color: #b1dfbb; } + .list-group-item-success.list-group-item-action.active, .list-group-item-success.list-group-item-action.react-autosuggest__suggestion--highlighted, .list-group-item-success.react-autosuggest__suggestion--highlighted.search-filter, .list-group-item-success.active.search-filter { + color: #fff; + background-color: #155724; + border-color: #155724; } + +.list-group-item-info { + color: #0c5460; + background-color: #bee5eb; } + .list-group-item-info.list-group-item-action:hover, .list-group-item-info.search-filter:hover, .list-group-item-info.list-group-item-action:focus, .list-group-item-info.search-filter:focus { + color: #0c5460; + background-color: #abdde5; } + .list-group-item-info.list-group-item-action.active, .list-group-item-info.list-group-item-action.react-autosuggest__suggestion--highlighted, .list-group-item-info.react-autosuggest__suggestion--highlighted.search-filter, .list-group-item-info.active.search-filter { + color: #fff; + background-color: #0c5460; + border-color: #0c5460; } + +.list-group-item-warning { + color: #856404; + background-color: #ffeeba; } + .list-group-item-warning.list-group-item-action:hover, .list-group-item-warning.search-filter:hover, .list-group-item-warning.list-group-item-action:focus, .list-group-item-warning.search-filter:focus { + color: #856404; + background-color: #ffe8a1; } + .list-group-item-warning.list-group-item-action.active, .list-group-item-warning.list-group-item-action.react-autosuggest__suggestion--highlighted, .list-group-item-warning.react-autosuggest__suggestion--highlighted.search-filter, .list-group-item-warning.active.search-filter { + color: #fff; + background-color: #856404; + border-color: #856404; } + +.list-group-item-danger { + color: #721c24; + background-color: #f5c6cb; } + .list-group-item-danger.list-group-item-action:hover, .list-group-item-danger.search-filter:hover, .list-group-item-danger.list-group-item-action:focus, .list-group-item-danger.search-filter:focus { + color: #721c24; + background-color: #f1b0b7; } + .list-group-item-danger.list-group-item-action.active, .list-group-item-danger.list-group-item-action.react-autosuggest__suggestion--highlighted, .list-group-item-danger.react-autosuggest__suggestion--highlighted.search-filter, .list-group-item-danger.active.search-filter { + color: #fff; + background-color: #721c24; + border-color: #721c24; } + +.list-group-item-light { + color: #818182; + background-color: #fdfdfe; } + .list-group-item-light.list-group-item-action:hover, .list-group-item-light.search-filter:hover, .list-group-item-light.list-group-item-action:focus, .list-group-item-light.search-filter:focus { + color: #818182; + background-color: #ececf6; } + .list-group-item-light.list-group-item-action.active, .list-group-item-light.list-group-item-action.react-autosuggest__suggestion--highlighted, .list-group-item-light.react-autosuggest__suggestion--highlighted.search-filter, .list-group-item-light.active.search-filter { + color: #fff; + background-color: #818182; + border-color: #818182; } + +.list-group-item-dark { + color: #1b1e21; + background-color: #c6c8ca; } + .list-group-item-dark.list-group-item-action:hover, .list-group-item-dark.search-filter:hover, .list-group-item-dark.list-group-item-action:focus, .list-group-item-dark.search-filter:focus { + color: #1b1e21; + background-color: #b9bbbe; } + .list-group-item-dark.list-group-item-action.active, .list-group-item-dark.list-group-item-action.react-autosuggest__suggestion--highlighted, .list-group-item-dark.react-autosuggest__suggestion--highlighted.search-filter, .list-group-item-dark.active.search-filter { + color: #fff; + background-color: #1b1e21; + border-color: #1b1e21; } + +.nav { + display: flex; + flex-wrap: wrap; + padding-left: 0; + margin-bottom: 0; + list-style: none; } + +.nav-link, .main-menu__list__item { + display: block; + padding: 0.5rem 1rem; } + .nav-link:hover, .main-menu__list__item:hover, .nav-link:focus, .main-menu__list__item:focus { + text-decoration: none; } + .nav-link.disabled, .disabled.main-menu__list__item { + color: #6c757d; } + +.nav-tabs { + border-bottom: 1px solid #dee2e6; } + .nav-tabs .nav-item, .nav-tabs .main-menu__list__item { + margin-bottom: -1px; } + .nav-tabs .nav-link, .nav-tabs .main-menu__list__item { + border: 1px solid transparent; + border-top-left-radius: 0.25rem; + border-top-right-radius: 0.25rem; } + .nav-tabs .nav-link:hover, .nav-tabs .main-menu__list__item:hover, .nav-tabs .nav-link:focus, .nav-tabs .main-menu__list__item:focus { + border-color: #e9ecef #e9ecef #dee2e6; } + .nav-tabs .nav-link.disabled, .nav-tabs .disabled.main-menu__list__item { + color: #6c757d; + background-color: transparent; + border-color: transparent; } + .nav-tabs .nav-link.active, .nav-tabs .nav-link.react-autosuggest__suggestion--highlighted, .nav-tabs .react-autosuggest__suggestion--highlighted.main-menu__list__item, .nav-tabs .active.main-menu__list__item, + .nav-tabs .nav-item.show .nav-link, + .nav-tabs .show.main-menu__list__item .nav-link, + .nav-tabs .nav-item.show .main-menu__list__item, + .nav-tabs .show.main-menu__list__item .main-menu__list__item { + color: #495057; + background-color: #fff; + border-color: #dee2e6 #dee2e6 #fff; } + .nav-tabs .dropdown-menu, .nav-tabs .react-autosuggest__suggestions-container { + margin-top: -1px; + border-top-left-radius: 0; + border-top-right-radius: 0; } + +.nav-pills .nav-link, .nav-pills .main-menu__list__item { + border-radius: 0.25rem; } + +.nav-pills .nav-link.active, .nav-pills .nav-link.react-autosuggest__suggestion--highlighted, .nav-pills .react-autosuggest__suggestion--highlighted.main-menu__list__item, .nav-pills .active.main-menu__list__item, +.nav-pills .show > .nav-link, +.nav-pills .show > .main-menu__list__item { + color: #fff; + background-color: #007bff; } + +.nav-fill .nav-item, .nav-fill .main-menu__list__item { + flex: 1 1 auto; + text-align: center; } + +.nav-justified .nav-item, .nav-justified .main-menu__list__item { + flex-basis: 0; + flex-grow: 1; + text-align: center; } + +.tab-content > .tab-pane { + display: none; } + +.tab-content > .active, .tab-content > .react-autosuggest__suggestion--highlighted { + display: block; } + +.navbar, .main-menu { + position: relative; + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; + padding: 0.5rem 1rem; } + .navbar > .container, .main-menu > .container, + .navbar > .container-fluid, + .main-menu > .container-fluid { + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: space-between; } + +.navbar-brand { + display: inline-block; + padding-top: 0.3125rem; + padding-bottom: 0.3125rem; + margin-right: 1rem; + font-size: 1.25rem; + line-height: inherit; + white-space: nowrap; } + .navbar-brand:hover, .navbar-brand:focus { + text-decoration: none; } + +.navbar-nav, .main-menu__list { + display: flex; + flex-direction: column; + padding-left: 0; + margin-bottom: 0; + list-style: none; } + .navbar-nav .nav-link, .main-menu__list .nav-link, .navbar-nav .main-menu__list__item, .main-menu__list .main-menu__list__item { + padding-right: 0; + padding-left: 0; } + .navbar-nav .dropdown-menu, .main-menu__list .dropdown-menu, .navbar-nav .react-autosuggest__suggestions-container, .main-menu__list .react-autosuggest__suggestions-container { + position: static; + float: none; } + +.navbar-text { + display: inline-block; + padding-top: 0.5rem; + padding-bottom: 0.5rem; } + +.navbar-collapse { + flex-basis: 100%; + flex-grow: 1; + align-items: center; } + +.navbar-toggler { + padding: 0.25rem 0.75rem; + font-size: 1.25rem; + line-height: 1; + background-color: transparent; + border: 1px solid transparent; + border-radius: 0.25rem; } + .navbar-toggler:hover, .navbar-toggler:focus { + text-decoration: none; } + .navbar-toggler:not(:disabled):not(.disabled) { + cursor: pointer; } + +.navbar-toggler-icon { + display: inline-block; + width: 1.5em; + height: 1.5em; + vertical-align: middle; + content: ""; + background: no-repeat center center; + background-size: 100% 100%; } + +@media (max-width: 575.98px) { + .navbar-expand-sm > .container, + .navbar-expand-sm > .container-fluid { + padding-right: 0; + padding-left: 0; } } + +@media (min-width: 576px) { + .navbar-expand-sm { + flex-flow: row nowrap; + justify-content: flex-start; } + .navbar-expand-sm .navbar-nav, .navbar-expand-sm .main-menu__list { + flex-direction: row; } + .navbar-expand-sm .navbar-nav .dropdown-menu, .navbar-expand-sm .main-menu__list .dropdown-menu, .navbar-expand-sm .navbar-nav .react-autosuggest__suggestions-container, .navbar-expand-sm .main-menu__list .react-autosuggest__suggestions-container { + position: absolute; } + .navbar-expand-sm .navbar-nav .nav-link, .navbar-expand-sm .main-menu__list .nav-link, .navbar-expand-sm .navbar-nav .main-menu__list__item, .navbar-expand-sm .main-menu__list .main-menu__list__item { + padding-right: 0.5rem; + padding-left: 0.5rem; } + .navbar-expand-sm > .container, + .navbar-expand-sm > .container-fluid { + flex-wrap: nowrap; } + .navbar-expand-sm .navbar-collapse { + display: flex !important; + flex-basis: auto; } + .navbar-expand-sm .navbar-toggler { + display: none; } } + +@media (max-width: 767.98px) { + .navbar-expand-md > .container, .main-menu > .container, + .navbar-expand-md > .container-fluid, + .main-menu > .container-fluid { + padding-right: 0; + padding-left: 0; } } + +@media (min-width: 768px) { + .navbar-expand-md, .main-menu { + flex-flow: row nowrap; + justify-content: flex-start; } + .navbar-expand-md .navbar-nav, .main-menu .navbar-nav, .navbar-expand-md .main-menu__list, .main-menu .main-menu__list { + flex-direction: row; } + .navbar-expand-md .navbar-nav .dropdown-menu, .main-menu .navbar-nav .dropdown-menu, .navbar-expand-md .main-menu__list .dropdown-menu, .main-menu .main-menu__list .dropdown-menu, .navbar-expand-md .navbar-nav .react-autosuggest__suggestions-container, .main-menu .navbar-nav .react-autosuggest__suggestions-container, .navbar-expand-md .main-menu__list .react-autosuggest__suggestions-container, .main-menu .main-menu__list .react-autosuggest__suggestions-container { + position: absolute; } + .navbar-expand-md .navbar-nav .nav-link, .main-menu .navbar-nav .nav-link, .navbar-expand-md .main-menu__list .nav-link, .main-menu .main-menu__list .nav-link, .navbar-expand-md .navbar-nav .main-menu__list__item, .main-menu .navbar-nav .main-menu__list__item, .navbar-expand-md .main-menu__list .main-menu__list__item, .main-menu .main-menu__list .main-menu__list__item { + padding-right: 0.5rem; + padding-left: 0.5rem; } + .navbar-expand-md > .container, .main-menu > .container, + .navbar-expand-md > .container-fluid, + .main-menu > .container-fluid { + flex-wrap: nowrap; } + .navbar-expand-md .navbar-collapse, .main-menu .navbar-collapse { + display: flex !important; + flex-basis: auto; } + .navbar-expand-md .navbar-toggler, .main-menu .navbar-toggler { + display: none; } } + +@media (max-width: 991.98px) { + .navbar-expand-lg > .container, + .navbar-expand-lg > .container-fluid { + padding-right: 0; + padding-left: 0; } } + +@media (min-width: 992px) { + .navbar-expand-lg { + flex-flow: row nowrap; + justify-content: flex-start; } + .navbar-expand-lg .navbar-nav, .navbar-expand-lg .main-menu__list { + flex-direction: row; } + .navbar-expand-lg .navbar-nav .dropdown-menu, .navbar-expand-lg .main-menu__list .dropdown-menu, .navbar-expand-lg .navbar-nav .react-autosuggest__suggestions-container, .navbar-expand-lg .main-menu__list .react-autosuggest__suggestions-container { + position: absolute; } + .navbar-expand-lg .navbar-nav .nav-link, .navbar-expand-lg .main-menu__list .nav-link, .navbar-expand-lg .navbar-nav .main-menu__list__item, .navbar-expand-lg .main-menu__list .main-menu__list__item { + padding-right: 0.5rem; + padding-left: 0.5rem; } + .navbar-expand-lg > .container, + .navbar-expand-lg > .container-fluid { + flex-wrap: nowrap; } + .navbar-expand-lg .navbar-collapse { + display: flex !important; + flex-basis: auto; } + .navbar-expand-lg .navbar-toggler { + display: none; } } + +@media (max-width: 1199.98px) { + .navbar-expand-xl > .container, + .navbar-expand-xl > .container-fluid { + padding-right: 0; + padding-left: 0; } } + +@media (min-width: 1200px) { + .navbar-expand-xl { + flex-flow: row nowrap; + justify-content: flex-start; } + .navbar-expand-xl .navbar-nav, .navbar-expand-xl .main-menu__list { + flex-direction: row; } + .navbar-expand-xl .navbar-nav .dropdown-menu, .navbar-expand-xl .main-menu__list .dropdown-menu, .navbar-expand-xl .navbar-nav .react-autosuggest__suggestions-container, .navbar-expand-xl .main-menu__list .react-autosuggest__suggestions-container { + position: absolute; } + .navbar-expand-xl .navbar-nav .nav-link, .navbar-expand-xl .main-menu__list .nav-link, .navbar-expand-xl .navbar-nav .main-menu__list__item, .navbar-expand-xl .main-menu__list .main-menu__list__item { + padding-right: 0.5rem; + padding-left: 0.5rem; } + .navbar-expand-xl > .container, + .navbar-expand-xl > .container-fluid { + flex-wrap: nowrap; } + .navbar-expand-xl .navbar-collapse { + display: flex !important; + flex-basis: auto; } + .navbar-expand-xl .navbar-toggler { + display: none; } } + +.navbar-expand { + flex-flow: row nowrap; + justify-content: flex-start; } + .navbar-expand > .container, + .navbar-expand > .container-fluid { + padding-right: 0; + padding-left: 0; } + .navbar-expand .navbar-nav, .navbar-expand .main-menu__list { + flex-direction: row; } + .navbar-expand .navbar-nav .dropdown-menu, .navbar-expand .main-menu__list .dropdown-menu, .navbar-expand .navbar-nav .react-autosuggest__suggestions-container, .navbar-expand .main-menu__list .react-autosuggest__suggestions-container { + position: absolute; } + .navbar-expand .navbar-nav .nav-link, .navbar-expand .main-menu__list .nav-link, .navbar-expand .navbar-nav .main-menu__list__item, .navbar-expand .main-menu__list .main-menu__list__item { + padding-right: 0.5rem; + padding-left: 0.5rem; } + .navbar-expand > .container, + .navbar-expand > .container-fluid { + flex-wrap: nowrap; } + .navbar-expand .navbar-collapse { + display: flex !important; + flex-basis: auto; } + .navbar-expand .navbar-toggler { + display: none; } + +.navbar-light .navbar-brand { + color: rgba(0, 0, 0, 0.9); } + .navbar-light .navbar-brand:hover, .navbar-light .navbar-brand:focus { + color: rgba(0, 0, 0, 0.9); } + +.navbar-light .navbar-nav .nav-link, .navbar-light .main-menu__list .nav-link, .navbar-light .navbar-nav .main-menu__list__item, .navbar-light .main-menu__list .main-menu__list__item { + color: rgba(0, 0, 0, 0.5); } + .navbar-light .navbar-nav .nav-link:hover, .navbar-light .main-menu__list .nav-link:hover, .navbar-light .navbar-nav .main-menu__list__item:hover, .navbar-light .main-menu__list .main-menu__list__item:hover, .navbar-light .navbar-nav .nav-link:focus, .navbar-light .main-menu__list .nav-link:focus, .navbar-light .navbar-nav .main-menu__list__item:focus, .navbar-light .main-menu__list .main-menu__list__item:focus { + color: rgba(0, 0, 0, 0.7); } + .navbar-light .navbar-nav .nav-link.disabled, .navbar-light .main-menu__list .nav-link.disabled, .navbar-light .navbar-nav .disabled.main-menu__list__item, .navbar-light .main-menu__list .disabled.main-menu__list__item { + color: rgba(0, 0, 0, 0.3); } + +.navbar-light .navbar-nav .show > .nav-link, .navbar-light .main-menu__list .show > .nav-link, .navbar-light .navbar-nav .show > .main-menu__list__item, .navbar-light .main-menu__list .show > .main-menu__list__item, +.navbar-light .navbar-nav .active > .nav-link, +.navbar-light .main-menu__list .active > .nav-link, +.navbar-light .navbar-nav .react-autosuggest__suggestion--highlighted > .nav-link, +.navbar-light .main-menu__list .react-autosuggest__suggestion--highlighted > .nav-link, +.navbar-light .navbar-nav .active > .main-menu__list__item, +.navbar-light .main-menu__list .active > .main-menu__list__item, +.navbar-light .navbar-nav .react-autosuggest__suggestion--highlighted > .main-menu__list__item, +.navbar-light .main-menu__list .react-autosuggest__suggestion--highlighted > .main-menu__list__item, +.navbar-light .navbar-nav .nav-link.show, +.navbar-light .main-menu__list .nav-link.show, +.navbar-light .navbar-nav .show.main-menu__list__item, +.navbar-light .main-menu__list .show.main-menu__list__item, +.navbar-light .navbar-nav .nav-link.active, +.navbar-light .main-menu__list .nav-link.active, +.navbar-light .navbar-nav .nav-link.react-autosuggest__suggestion--highlighted, +.navbar-light .main-menu__list .nav-link.react-autosuggest__suggestion--highlighted, +.navbar-light .navbar-nav .react-autosuggest__suggestion--highlighted.main-menu__list__item, +.navbar-light .main-menu__list .react-autosuggest__suggestion--highlighted.main-menu__list__item, +.navbar-light .navbar-nav .active.main-menu__list__item, +.navbar-light .main-menu__list .active.main-menu__list__item { + color: rgba(0, 0, 0, 0.9); } + +.navbar-light .navbar-toggler { + color: rgba(0, 0, 0, 0.5); + border-color: rgba(0, 0, 0, 0.1); } + +.navbar-light .navbar-toggler-icon { + background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); } + +.navbar-light .navbar-text { + color: rgba(0, 0, 0, 0.5); } + .navbar-light .navbar-text a { + color: rgba(0, 0, 0, 0.9); } + .navbar-light .navbar-text a:hover, .navbar-light .navbar-text a:focus { + color: rgba(0, 0, 0, 0.9); } + +.navbar-dark .navbar-brand { + color: #fff; } + .navbar-dark .navbar-brand:hover, .navbar-dark .navbar-brand:focus { + color: #fff; } + +.navbar-dark .navbar-nav .nav-link, .navbar-dark .main-menu__list .nav-link, .navbar-dark .navbar-nav .main-menu__list__item, .navbar-dark .main-menu__list .main-menu__list__item { + color: rgba(255, 255, 255, 0.5); } + .navbar-dark .navbar-nav .nav-link:hover, .navbar-dark .main-menu__list .nav-link:hover, .navbar-dark .navbar-nav .main-menu__list__item:hover, .navbar-dark .main-menu__list .main-menu__list__item:hover, .navbar-dark .navbar-nav .nav-link:focus, .navbar-dark .main-menu__list .nav-link:focus, .navbar-dark .navbar-nav .main-menu__list__item:focus, .navbar-dark .main-menu__list .main-menu__list__item:focus { + color: rgba(255, 255, 255, 0.75); } + .navbar-dark .navbar-nav .nav-link.disabled, .navbar-dark .main-menu__list .nav-link.disabled, .navbar-dark .navbar-nav .disabled.main-menu__list__item, .navbar-dark .main-menu__list .disabled.main-menu__list__item { + color: rgba(255, 255, 255, 0.25); } + +.navbar-dark .navbar-nav .show > .nav-link, .navbar-dark .main-menu__list .show > .nav-link, .navbar-dark .navbar-nav .show > .main-menu__list__item, .navbar-dark .main-menu__list .show > .main-menu__list__item, +.navbar-dark .navbar-nav .active > .nav-link, +.navbar-dark .main-menu__list .active > .nav-link, +.navbar-dark .navbar-nav .react-autosuggest__suggestion--highlighted > .nav-link, +.navbar-dark .main-menu__list .react-autosuggest__suggestion--highlighted > .nav-link, +.navbar-dark .navbar-nav .active > .main-menu__list__item, +.navbar-dark .main-menu__list .active > .main-menu__list__item, +.navbar-dark .navbar-nav .react-autosuggest__suggestion--highlighted > .main-menu__list__item, +.navbar-dark .main-menu__list .react-autosuggest__suggestion--highlighted > .main-menu__list__item, +.navbar-dark .navbar-nav .nav-link.show, +.navbar-dark .main-menu__list .nav-link.show, +.navbar-dark .navbar-nav .show.main-menu__list__item, +.navbar-dark .main-menu__list .show.main-menu__list__item, +.navbar-dark .navbar-nav .nav-link.active, +.navbar-dark .main-menu__list .nav-link.active, +.navbar-dark .navbar-nav .nav-link.react-autosuggest__suggestion--highlighted, +.navbar-dark .main-menu__list .nav-link.react-autosuggest__suggestion--highlighted, +.navbar-dark .navbar-nav .react-autosuggest__suggestion--highlighted.main-menu__list__item, +.navbar-dark .main-menu__list .react-autosuggest__suggestion--highlighted.main-menu__list__item, +.navbar-dark .navbar-nav .active.main-menu__list__item, +.navbar-dark .main-menu__list .active.main-menu__list__item { + color: #fff; } + +.navbar-dark .navbar-toggler { + color: rgba(255, 255, 255, 0.5); + border-color: rgba(255, 255, 255, 0.1); } + +.navbar-dark .navbar-toggler-icon { + background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); } + +.navbar-dark .navbar-text { + color: rgba(255, 255, 255, 0.5); } + .navbar-dark .navbar-text a { + color: #fff; } + .navbar-dark .navbar-text a:hover, .navbar-dark .navbar-text a:focus { + color: #fff; } + +h1, h2, h3, h4, h5, h6, +.h1, .h2, .h3, .h4, .h5, .h6 { + margin-bottom: 0.5rem; + font-family: inherit; + font-weight: 500; + line-height: 1.2; + color: inherit; } + +h1, .h1 { + font-size: 2.5rem; } + +h2, .h2 { + font-size: 2rem; } + +h3, .h3 { + font-size: 1.75rem; } + +h4, .h4 { + font-size: 1.5rem; } + +h5, .h5 { + font-size: 1.25rem; } + +h6, .h6 { + font-size: 1rem; } + +.lead { + font-size: 1.25rem; + font-weight: 300; } + +.display-1 { + font-size: 6rem; + font-weight: 300; + line-height: 1.2; } + +.display-2 { + font-size: 5.5rem; + font-weight: 300; + line-height: 1.2; } + +.display-3 { + font-size: 4.5rem; + font-weight: 300; + line-height: 1.2; } + +.display-4 { + font-size: 3.5rem; + font-weight: 300; + line-height: 1.2; } + +hr { + margin-top: 1rem; + margin-bottom: 1rem; + border: 0; + border-top: 1px solid rgba(0, 0, 0, 0.1); } + +small, +.small { + font-size: 80%; + font-weight: 400; } + +mark, +.mark { + padding: 0.2em; + background-color: #fcf8e3; } + +.list-unstyled { + padding-left: 0; + list-style: none; } + +.list-inline { + padding-left: 0; + list-style: none; } + +.list-inline-item { + display: inline-block; } + .list-inline-item:not(:last-child) { + margin-right: 0.5rem; } + +.initialism { + font-size: 90%; + text-transform: uppercase; } + +.blockquote { + margin-bottom: 1rem; + font-size: 1.25rem; } + +.blockquote-footer { + display: block; + font-size: 80%; + color: #6c757d; } + .blockquote-footer::before { + content: "\2014 \00A0"; } + +.d-none { + display: none !important; } + +.d-inline { + display: inline !important; } + +.d-inline-block { + display: inline-block !important; } + +.d-block { + display: block !important; } + +.d-table { + display: table !important; } + +.d-table-row { + display: table-row !important; } + +.d-table-cell { + display: table-cell !important; } + +.d-flex, .search-filter { + display: flex !important; } + +.d-inline-flex { + display: inline-flex !important; } + +@media (min-width: 576px) { + .d-sm-none { + display: none !important; } + .d-sm-inline { + display: inline !important; } + .d-sm-inline-block { + display: inline-block !important; } + .d-sm-block { + display: block !important; } + .d-sm-table { + display: table !important; } + .d-sm-table-row { + display: table-row !important; } + .d-sm-table-cell { + display: table-cell !important; } + .d-sm-flex { + display: flex !important; } + .d-sm-inline-flex { + display: inline-flex !important; } } + +@media (min-width: 768px) { + .d-md-none { + display: none !important; } + .d-md-inline { + display: inline !important; } + .d-md-inline-block { + display: inline-block !important; } + .d-md-block { + display: block !important; } + .d-md-table { + display: table !important; } + .d-md-table-row { + display: table-row !important; } + .d-md-table-cell { + display: table-cell !important; } + .d-md-flex { + display: flex !important; } + .d-md-inline-flex { + display: inline-flex !important; } } + +@media (min-width: 992px) { + .d-lg-none { + display: none !important; } + .d-lg-inline { + display: inline !important; } + .d-lg-inline-block { + display: inline-block !important; } + .d-lg-block { + display: block !important; } + .d-lg-table { + display: table !important; } + .d-lg-table-row { + display: table-row !important; } + .d-lg-table-cell { + display: table-cell !important; } + .d-lg-flex { + display: flex !important; } + .d-lg-inline-flex { + display: inline-flex !important; } } + +@media (min-width: 1200px) { + .d-xl-none { + display: none !important; } + .d-xl-inline { + display: inline !important; } + .d-xl-inline-block { + display: inline-block !important; } + .d-xl-block { + display: block !important; } + .d-xl-table { + display: table !important; } + .d-xl-table-row { + display: table-row !important; } + .d-xl-table-cell { + display: table-cell !important; } + .d-xl-flex { + display: flex !important; } + .d-xl-inline-flex { + display: inline-flex !important; } } + +@media print { + .d-print-none { + display: none !important; } + .d-print-inline { + display: inline !important; } + .d-print-inline-block { + display: inline-block !important; } + .d-print-block { + display: block !important; } + .d-print-table { + display: table !important; } + .d-print-table-row { + display: table-row !important; } + .d-print-table-cell { + display: table-cell !important; } + .d-print-flex { + display: flex !important; } + .d-print-inline-flex { + display: inline-flex !important; } } + +.flex-row { + flex-direction: row !important; } + +.flex-column { + flex-direction: column !important; } + +.flex-row-reverse { + flex-direction: row-reverse !important; } + +.flex-column-reverse { + flex-direction: column-reverse !important; } + +.flex-wrap { + flex-wrap: wrap !important; } + +.flex-nowrap { + flex-wrap: nowrap !important; } + +.flex-wrap-reverse { + flex-wrap: wrap-reverse !important; } + +.flex-fill { + flex: 1 1 auto !important; } + +.flex-grow-0 { + flex-grow: 0 !important; } + +.flex-grow-1 { + flex-grow: 1 !important; } + +.flex-shrink-0 { + flex-shrink: 0 !important; } + +.flex-shrink-1 { + flex-shrink: 1 !important; } + +.justify-content-start { + justify-content: flex-start !important; } + +.justify-content-end { + justify-content: flex-end !important; } + +.justify-content-center { + justify-content: center !important; } + +.justify-content-between, .search-filter { + justify-content: space-between !important; } + +.justify-content-around { + justify-content: space-around !important; } + +.align-items-start { + align-items: flex-start !important; } + +.align-items-end { + align-items: flex-end !important; } + +.align-items-center, .search-filter { + align-items: center !important; } + +.align-items-baseline { + align-items: baseline !important; } + +.align-items-stretch { + align-items: stretch !important; } + +.align-content-start { + align-content: flex-start !important; } + +.align-content-end { + align-content: flex-end !important; } + +.align-content-center { + align-content: center !important; } + +.align-content-between { + align-content: space-between !important; } + +.align-content-around { + align-content: space-around !important; } + +.align-content-stretch { + align-content: stretch !important; } + +.align-self-auto { + align-self: auto !important; } + +.align-self-start { + align-self: flex-start !important; } + +.align-self-end { + align-self: flex-end !important; } + +.align-self-center { + align-self: center !important; } + +.align-self-baseline { + align-self: baseline !important; } + +.align-self-stretch { + align-self: stretch !important; } + +@media (min-width: 576px) { + .flex-sm-row { + flex-direction: row !important; } + .flex-sm-column { + flex-direction: column !important; } + .flex-sm-row-reverse { + flex-direction: row-reverse !important; } + .flex-sm-column-reverse { + flex-direction: column-reverse !important; } + .flex-sm-wrap { + flex-wrap: wrap !important; } + .flex-sm-nowrap { + flex-wrap: nowrap !important; } + .flex-sm-wrap-reverse { + flex-wrap: wrap-reverse !important; } + .flex-sm-fill { + flex: 1 1 auto !important; } + .flex-sm-grow-0 { + flex-grow: 0 !important; } + .flex-sm-grow-1 { + flex-grow: 1 !important; } + .flex-sm-shrink-0 { + flex-shrink: 0 !important; } + .flex-sm-shrink-1 { + flex-shrink: 1 !important; } + .justify-content-sm-start { + justify-content: flex-start !important; } + .justify-content-sm-end { + justify-content: flex-end !important; } + .justify-content-sm-center { + justify-content: center !important; } + .justify-content-sm-between { + justify-content: space-between !important; } + .justify-content-sm-around { + justify-content: space-around !important; } + .align-items-sm-start { + align-items: flex-start !important; } + .align-items-sm-end { + align-items: flex-end !important; } + .align-items-sm-center { + align-items: center !important; } + .align-items-sm-baseline { + align-items: baseline !important; } + .align-items-sm-stretch { + align-items: stretch !important; } + .align-content-sm-start { + align-content: flex-start !important; } + .align-content-sm-end { + align-content: flex-end !important; } + .align-content-sm-center { + align-content: center !important; } + .align-content-sm-between { + align-content: space-between !important; } + .align-content-sm-around { + align-content: space-around !important; } + .align-content-sm-stretch { + align-content: stretch !important; } + .align-self-sm-auto { + align-self: auto !important; } + .align-self-sm-start { + align-self: flex-start !important; } + .align-self-sm-end { + align-self: flex-end !important; } + .align-self-sm-center { + align-self: center !important; } + .align-self-sm-baseline { + align-self: baseline !important; } + .align-self-sm-stretch { + align-self: stretch !important; } } + +@media (min-width: 768px) { + .flex-md-row { + flex-direction: row !important; } + .flex-md-column { + flex-direction: column !important; } + .flex-md-row-reverse { + flex-direction: row-reverse !important; } + .flex-md-column-reverse { + flex-direction: column-reverse !important; } + .flex-md-wrap { + flex-wrap: wrap !important; } + .flex-md-nowrap { + flex-wrap: nowrap !important; } + .flex-md-wrap-reverse { + flex-wrap: wrap-reverse !important; } + .flex-md-fill { + flex: 1 1 auto !important; } + .flex-md-grow-0 { + flex-grow: 0 !important; } + .flex-md-grow-1 { + flex-grow: 1 !important; } + .flex-md-shrink-0 { + flex-shrink: 0 !important; } + .flex-md-shrink-1 { + flex-shrink: 1 !important; } + .justify-content-md-start { + justify-content: flex-start !important; } + .justify-content-md-end { + justify-content: flex-end !important; } + .justify-content-md-center { + justify-content: center !important; } + .justify-content-md-between { + justify-content: space-between !important; } + .justify-content-md-around { + justify-content: space-around !important; } + .align-items-md-start { + align-items: flex-start !important; } + .align-items-md-end { + align-items: flex-end !important; } + .align-items-md-center { + align-items: center !important; } + .align-items-md-baseline { + align-items: baseline !important; } + .align-items-md-stretch { + align-items: stretch !important; } + .align-content-md-start { + align-content: flex-start !important; } + .align-content-md-end { + align-content: flex-end !important; } + .align-content-md-center { + align-content: center !important; } + .align-content-md-between { + align-content: space-between !important; } + .align-content-md-around { + align-content: space-around !important; } + .align-content-md-stretch { + align-content: stretch !important; } + .align-self-md-auto { + align-self: auto !important; } + .align-self-md-start { + align-self: flex-start !important; } + .align-self-md-end { + align-self: flex-end !important; } + .align-self-md-center { + align-self: center !important; } + .align-self-md-baseline { + align-self: baseline !important; } + .align-self-md-stretch { + align-self: stretch !important; } } + +@media (min-width: 992px) { + .flex-lg-row { + flex-direction: row !important; } + .flex-lg-column { + flex-direction: column !important; } + .flex-lg-row-reverse { + flex-direction: row-reverse !important; } + .flex-lg-column-reverse { + flex-direction: column-reverse !important; } + .flex-lg-wrap { + flex-wrap: wrap !important; } + .flex-lg-nowrap { + flex-wrap: nowrap !important; } + .flex-lg-wrap-reverse { + flex-wrap: wrap-reverse !important; } + .flex-lg-fill { + flex: 1 1 auto !important; } + .flex-lg-grow-0 { + flex-grow: 0 !important; } + .flex-lg-grow-1 { + flex-grow: 1 !important; } + .flex-lg-shrink-0 { + flex-shrink: 0 !important; } + .flex-lg-shrink-1 { + flex-shrink: 1 !important; } + .justify-content-lg-start { + justify-content: flex-start !important; } + .justify-content-lg-end { + justify-content: flex-end !important; } + .justify-content-lg-center { + justify-content: center !important; } + .justify-content-lg-between { + justify-content: space-between !important; } + .justify-content-lg-around { + justify-content: space-around !important; } + .align-items-lg-start { + align-items: flex-start !important; } + .align-items-lg-end { + align-items: flex-end !important; } + .align-items-lg-center { + align-items: center !important; } + .align-items-lg-baseline { + align-items: baseline !important; } + .align-items-lg-stretch { + align-items: stretch !important; } + .align-content-lg-start { + align-content: flex-start !important; } + .align-content-lg-end { + align-content: flex-end !important; } + .align-content-lg-center { + align-content: center !important; } + .align-content-lg-between { + align-content: space-between !important; } + .align-content-lg-around { + align-content: space-around !important; } + .align-content-lg-stretch { + align-content: stretch !important; } + .align-self-lg-auto { + align-self: auto !important; } + .align-self-lg-start { + align-self: flex-start !important; } + .align-self-lg-end { + align-self: flex-end !important; } + .align-self-lg-center { + align-self: center !important; } + .align-self-lg-baseline { + align-self: baseline !important; } + .align-self-lg-stretch { + align-self: stretch !important; } } + +@media (min-width: 1200px) { + .flex-xl-row { + flex-direction: row !important; } + .flex-xl-column { + flex-direction: column !important; } + .flex-xl-row-reverse { + flex-direction: row-reverse !important; } + .flex-xl-column-reverse { + flex-direction: column-reverse !important; } + .flex-xl-wrap { + flex-wrap: wrap !important; } + .flex-xl-nowrap { + flex-wrap: nowrap !important; } + .flex-xl-wrap-reverse { + flex-wrap: wrap-reverse !important; } + .flex-xl-fill { + flex: 1 1 auto !important; } + .flex-xl-grow-0 { + flex-grow: 0 !important; } + .flex-xl-grow-1 { + flex-grow: 1 !important; } + .flex-xl-shrink-0 { + flex-shrink: 0 !important; } + .flex-xl-shrink-1 { + flex-shrink: 1 !important; } + .justify-content-xl-start { + justify-content: flex-start !important; } + .justify-content-xl-end { + justify-content: flex-end !important; } + .justify-content-xl-center { + justify-content: center !important; } + .justify-content-xl-between { + justify-content: space-between !important; } + .justify-content-xl-around { + justify-content: space-around !important; } + .align-items-xl-start { + align-items: flex-start !important; } + .align-items-xl-end { + align-items: flex-end !important; } + .align-items-xl-center { + align-items: center !important; } + .align-items-xl-baseline { + align-items: baseline !important; } + .align-items-xl-stretch { + align-items: stretch !important; } + .align-content-xl-start { + align-content: flex-start !important; } + .align-content-xl-end { + align-content: flex-end !important; } + .align-content-xl-center { + align-content: center !important; } + .align-content-xl-between { + align-content: space-between !important; } + .align-content-xl-around { + align-content: space-around !important; } + .align-content-xl-stretch { + align-content: stretch !important; } + .align-self-xl-auto { + align-self: auto !important; } + .align-self-xl-start { + align-self: flex-start !important; } + .align-self-xl-end { + align-self: flex-end !important; } + .align-self-xl-center { + align-self: center !important; } + .align-self-xl-baseline { + align-self: baseline !important; } + .align-self-xl-stretch { + align-self: stretch !important; } } + +.text-monospace { + font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; } + +.text-justify { + text-align: justify !important; } + +.text-nowrap { + white-space: nowrap !important; } + +.text-truncate { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } + +.text-left { + text-align: left !important; } + +.text-right { + text-align: right !important; } + +.text-center, .course-glimpse__body, .course-glimpse__date, .search-template__title { + text-align: center !important; } + +@media (min-width: 576px) { + .text-sm-left { + text-align: left !important; } + .text-sm-right { + text-align: right !important; } + .text-sm-center { + text-align: center !important; } } + +@media (min-width: 768px) { + .text-md-left { + text-align: left !important; } + .text-md-right { + text-align: right !important; } + .text-md-center { + text-align: center !important; } } + +@media (min-width: 992px) { + .text-lg-left { + text-align: left !important; } + .text-lg-right { + text-align: right !important; } + .text-lg-center { + text-align: center !important; } } + +@media (min-width: 1200px) { + .text-xl-left { + text-align: left !important; } + .text-xl-right { + text-align: right !important; } + .text-xl-center { + text-align: center !important; } } + +.text-lowercase { + text-transform: lowercase !important; } + +.text-uppercase { + text-transform: uppercase !important; } + +.text-capitalize { + text-transform: capitalize !important; } + +.font-weight-light { + font-weight: 300 !important; } + +.font-weight-normal { + font-weight: 400 !important; } + +.font-weight-bold { + font-weight: 700 !important; } + +.font-italic { + font-style: italic !important; } + +.text-white { + color: #fff !important; } + +.text-primary { + color: #007bff !important; } + +a.text-primary:hover, a.text-primary:focus { + color: #0062cc !important; } + +.text-secondary { + color: #6c757d !important; } + +a.text-secondary:hover, a.text-secondary:focus { + color: #545b62 !important; } + +.text-success { + color: #28a745 !important; } + +a.text-success:hover, a.text-success:focus { + color: #1e7e34 !important; } + +.text-info { + color: #17a2b8 !important; } + +a.text-info:hover, a.text-info:focus { + color: #117a8b !important; } + +.text-warning { + color: #ffc107 !important; } + +a.text-warning:hover, a.text-warning:focus { + color: #d39e00 !important; } + +.text-danger { + color: #dc3545 !important; } + +a.text-danger:hover, a.text-danger:focus { + color: #bd2130 !important; } + +.text-light { + color: #f8f9fa !important; } + +a.text-light:hover, a.text-light:focus { + color: #dae0e5 !important; } + +.text-dark { + color: #343a40 !important; } + +a.text-dark:hover, a.text-dark:focus { + color: #1d2124 !important; } + +.text-body { + color: #212529 !important; } + +.text-muted { + color: #6c757d !important; } + +.text-black-50 { + color: rgba(0, 0, 0, 0.5) !important; } + +.text-white-50 { + color: rgba(255, 255, 255, 0.5) !important; } + +.text-hide { + font: 0/0 a; + color: transparent; + text-shadow: none; + background-color: transparent; + border: 0; } + +.react-autosuggest__container { + position: relative; + margin-bottom: 20px; } + +.react-autosuggest__suggestions-container { + width: 100%; } + .react-autosuggest__suggestions-container--open { + display: block; } + +.react-autosuggest__suggestions-list { + display: block; } + +.react-autosuggest__suggestion:hover { + cursor: pointer; } + +.course-glimpse-container { + position: relative; + width: 100%; + min-height: 1px; + padding-right: 10px; + padding-left: 10px; } + @media (min-width: 576px) { + .course-glimpse-container { + flex: 0 0 50%; + max-width: 50%; } } + @media (min-width: 768px) { + .course-glimpse-container { + flex: 0 0 33.33333%; + max-width: 33.33333%; } } + @media (min-width: 992px) { + .course-glimpse-container { + flex: 0 0 25%; + max-width: 25%; } } + +.course-glimpse { + margin-bottom: 20px; } + .course-glimpse:hover { + border-color: #007bff; + cursor: pointer; } + .course-glimpse:hover .course-glimpse__body__title { + color: #007bff; } + .course-glimpse__body__title { + height: 4.5rem; + overflow: hidden; + font-size: .9em; } + .course-glimpse__body__org { + color: #6c757d; + height: 3rem; + overflow: hidden; } + +.course-glimpse-list { + display: flex; + flex-wrap: wrap; + margin-right: -10px; + margin-left: -10px; } + +.search { + display: flex; + flex-wrap: wrap; + margin-right: -10px; + margin-left: -10px; } + .search__filters { + position: relative; + width: 100%; + min-height: 1px; + padding-right: 10px; + padding-left: 10px; + flex: 0 0 25%; + max-width: 25%; } + .search__results { + position: relative; + width: 100%; + min-height: 1px; + padding-right: 10px; + padding-left: 10px; + flex: 0 0 75%; + max-width: 75%; } + +.search-filter { + padding: 0.375rem 1.25rem; + background: inherit; + border-color: rgba(255, 255, 255, 0.15); + color: rgba(255, 255, 255, 0.85); + cursor: pointer; } + .search-filter:first-child { + border-top-color: rgba(255, 255, 255, 0.3); } + .search-filter:hover, .search-filter:focus { + background: inherit; + color: white; } + .search-filter.active, .search-filter.react-autosuggest__suggestion--highlighted { + background: inherit; + color: white; + font-weight: 700; + border-color: white; } + +.search-filter-group { + margin: 2rem; } + .search-filter-group__title { + padding: 0 1.25rem; } + +.search-filters-pane { + width: 100%; + height: 100%; + background: #343a40; + color: white; + overflow: hidden; } + .search-filters-pane__title { + padding: 2rem 0; + text-align: center; } + +.organization-detail { + width: 100%; + padding-right: 10px; + padding-left: 10px; + margin-right: auto; + margin-left: auto; + background: white; } + @media (min-width: 576px) { + .organization-detail { + max-width: 540px; } } + @media (min-width: 768px) { + .organization-detail { + max-width: 720px; } } + @media (min-width: 992px) { + .organization-detail { + max-width: 960px; } } + @media (min-width: 1200px) { + .organization-detail { + max-width: 1140px; } } + .organization-detail__banner { + display: flex; + flex-wrap: wrap; + margin-right: -10px; + margin-left: -10px; + position: relative; + width: calc(100% + 20px); + height: 15rem; + overflow: hidden; } + @media (min-width: 768px) { + .organization-detail__banner { + height: 20rem; } } + @media (min-width: 1200px) { + .organization-detail__banner { + height: 25rem; } } + .organization-detail__banner img { + position: absolute; + top: -1000%; + right: -1000%; + bottom: -1000%; + left: -1000%; + min-width: 100%; + min-height: 100%; + margin: auto; } + .organization-detail__logo { + position: relative; + overflow: hidden; + border: 1px solid #bdc6d0; + width: 11.25rem; + height: 11.25rem; + margin: -5.625rem auto 20px; } + @media (min-width: 768px) { + .organization-detail__logo { + float: right; + width: 15rem; + height: 15rem; + margin: -10rem 3rem 20px; } } + @media (min-width: 1200px) { + .organization-detail__logo { + width: 18.75rem; + height: 18.75rem; + margin: -12.5rem 8rem 20px; } } + .organization-detail__logo img { + position: absolute; + top: -1000%; + right: -1000%; + bottom: -1000%; + left: -1000%; + width: 100%; + min-height: 100%; + margin: auto; } + @media (min-width: 768px) { + .organization-detail__title { + margin: 1rem 20px; } } + @media (min-width: 1200px) { + .organization-detail__title { + margin: 1.625rem 20px; } } + .organization-detail__content { + clear: both; + display: flex; + flex-wrap: wrap; + margin-right: -10px; + margin-left: -10px; + padding-left: 20px; + padding-right: 20px; } + .organization-detail__content__description, .organization-detail__content__courses { + position: relative; + width: 100%; + min-height: 1px; + padding-right: 10px; + padding-left: 10px; + flex: 0 0 100%; + max-width: 100%; } + +.search-template__content { + width: 100%; + padding-right: 10px; + padding-left: 10px; + margin-right: auto; + margin-left: auto; } + +.large-banner { + position: relative; + height: 18rem; + max-width: 100%; + overflow: hidden; + display: flex; + justify-content: center; + align-items: center; + background-color: #343a40; + color: white; + text-shadow: 0 0 3px #343a40; } + @media (min-width: 768px) { + .large-banner { + height: 20rem; } } + @media (min-width: 992px) { + .large-banner { + height: 22.5vw; } } + .large-banner__background { + position: absolute; + min-width: 100%; + min-height: 100%; } + .large-banner__title, .large-banner__logo { + position: relative; } + .large-banner__title { + margin: 0 0.5rem 0 0; + font-size: 1.5rem; + text-align: center; } + @media (min-width: 576px) { + .large-banner__title { + font-size: 2rem; } } + @media (min-width: 768px) { + .large-banner__title { + font-size: 2.5rem; } } + .large-banner__logo { + margin: 0 0 0 0.5rem; + max-width: 10rem; + max-height: 5rem; } + @media (min-width: 576px) { + .large-banner__logo { + max-width: 11.25rem; + max-height: 5.625rem; } } + @media (min-width: 768px) { + .large-banner__logo { + max-width: 12.5rem; + max-height: 6.25rem; } } diff --git a/src/richie/apps/persons/models.py b/src/richie/apps/persons/models.py index 34c24435e8..41d0e3fba3 100644 --- a/src/richie/apps/persons/models.py +++ b/src/richie/apps/persons/models.py @@ -86,7 +86,7 @@ class PersonPluginModel(CMSPlugin): to their Person instance """ - page = models.ForeignKey(Page) + page = models.ForeignKey(Page, limit_choices_to={"person__isnull": False}) class Meta: verbose_name = _("person plugin model") diff --git a/strings/src/richie-front/js/components/CourseGlimpse/CourseGlimpse.json b/strings/src/richie-front/js/components/CourseGlimpse/CourseGlimpse.json new file mode 100644 index 0000000000..a9f1d818db --- /dev/null +++ b/strings/src/richie-front/js/components/CourseGlimpse/CourseGlimpse.json @@ -0,0 +1,12 @@ +[ + { + "id": "components.CourseGlimpse.logoAltText", + "description": "Alternate text for the course logo in a course glimpse.", + "defaultMessage": "Logo for {courseTitle} course." + }, + { + "id": "components.CourseGlimpse.startsOn", + "description": "Shows the start date for a course in a course glimpse in a short format such as Sep 4, '1986'", + "defaultMessage": "Starts on {date}" + } +] \ No newline at end of file diff --git a/strings/src/richie-front/js/components/SearchSuggestField/SearchSuggestField.json b/strings/src/richie-front/js/components/SearchSuggestField/SearchSuggestField.json new file mode 100644 index 0000000000..f9249981e5 --- /dev/null +++ b/strings/src/richie-front/js/components/SearchSuggestField/SearchSuggestField.json @@ -0,0 +1,7 @@ +[ + { + "id": "components.SearchSuggestField.searchFieldPlaceholder", + "description": "Placeholder text displayed in the search field when it is empty.", + "defaultMessage": "Search for courses, organizations, subjects" + } +] \ No newline at end of file diff --git a/strings/src/richie-front/js/settings.json b/strings/src/richie-front/js/settings.json new file mode 100644 index 0000000000..f874150618 --- /dev/null +++ b/strings/src/richie-front/js/settings.json @@ -0,0 +1,52 @@ +[ + { + "id": "settings.filters.availability.title", + "description": "Title for the \"Availability\" section of course filters (eg. Coming soon / Current session etc.)", + "defaultMessage": "Availability" + }, + { + "id": "settings.filters.availability.values.coming_soon", + "description": "Possible value for the \"Availability\" filter for courses", + "defaultMessage": "Coming soon" + }, + { + "id": "settings.filters.availability.values.current", + "description": "Possible value for the \"Availability\" filter for courses", + "defaultMessage": "Current session" + }, + { + "id": "settings.filters.language.title", + "description": "Title for the \"Language\" section of course filters (eg. FR / EN etc.)", + "defaultMessage": "Language" + }, + { + "id": "settings.filters.language.en", + "description": "Language", + "defaultMessage": "English" + }, + { + "id": "settings.filters.language.fr", + "description": "Language", + "defaultMessage": "French" + }, + { + "id": "settings.filters.new.title", + "description": "Title for the \"New\" section of course filters", + "defaultMessage": "New courses" + }, + { + "id": "settings.filters.new.new", + "description": "Possible balue for the \"New\" filter for courses", + "defaultMessage": "First session" + }, + { + "id": "settings.filters.organizations.title", + "description": "Title for the \"Organizations\" section of course filters", + "defaultMessage": "Organizations" + }, + { + "id": "settings.filters.subjects.title", + "description": "Title for the \"Subjects\" section of course filters", + "defaultMessage": "Subjects" + } +] \ No newline at end of file diff --git a/strings/src/richie-front/js/utils/commonMessages.json b/strings/src/richie-front/js/utils/commonMessages.json new file mode 100644 index 0000000000..550cc7ff03 --- /dev/null +++ b/strings/src/richie-front/js/utils/commonMessages.json @@ -0,0 +1,17 @@ +[ + { + "id": "common.coursesHumanName", + "description": "Title/name to use when we display a list of courses", + "defaultMessage": "Courses" + }, + { + "id": "common.organizationsHumanName", + "description": "Title/name to use when we display a list of organizations", + "defaultMessage": "Organizations" + }, + { + "id": "common.subjectsHumanName", + "description": "Title/name to use when we display a list of subjects", + "defaultMessage": "Subjects" + } +] \ No newline at end of file diff --git a/src/richie/apps/persons/tests/test_person_plugin.py b/tests/apps/persons/test_person_plugin.py similarity index 80% rename from src/richie/apps/persons/tests/test_person_plugin.py rename to tests/apps/persons/test_person_plugin.py index 18acd59cbf..077243ba9b 100644 --- a/src/richie/apps/persons/tests/test_person_plugin.py +++ b/tests/apps/persons/test_person_plugin.py @@ -2,17 +2,19 @@ """ Unit tests for the Person plugin and its model """ +from django import forms +from django.conf import settings from django.test import TestCase -from cms.api import add_plugin +from cms.api import add_plugin, create_page from cmsplugin_plain_text.cms_plugins import PlaintextPlugin from djangocms_picture.cms_plugins import PicturePlugin from richie.apps.core.factories import FilerImageFactory, UserFactory from richie.apps.core.helpers import create_i18n_page - -from ..cms_plugins import PersonPlugin -from ..factories import PersonFactory +from richie.apps.persons.cms_plugins import PersonPlugin +from richie.apps.persons.factories import PersonFactory +from richie.apps.persons.models import PersonPluginModel class PersonPluginTestCase(TestCase): @@ -20,6 +22,24 @@ class PersonPluginTestCase(TestCase): Test that PersonPlugin correctly displays a Person's page placeholders content """ + def test_person_plugin_form_page_choices(self): + """ + The form to create a person plugin should only list person pages in the select box. + """ + + class PersonPluginModelForm(forms.ModelForm): + class Meta: + model = PersonPluginModel + exclude = () + + person = PersonFactory() + other_page_title = "other page" + create_page(other_page_title, "richie/fullwidth.html", settings.LANGUAGE_CODE) + plugin_form = PersonPluginModelForm() + print(plugin_form) + self.assertIn(person.get_full_name(), plugin_form.as_table()) + self.assertNotIn(other_page_title, plugin_form.as_table()) + def test_person_plugin_render(self): """ Test that a PersonPlugin correctly renders person's page specific information
wagtail__wagtail-8473
"Sort menu order" button even with missing permissions ### Issue Summary Currently, the "Sort menu order"-button in the "more buttons"-dropdown is shown to users, which aren't allowed to change the order. Normally that's not a big issue, because clicking the link, which appends `?ordering=ord`, doesn't allow the user to change the order (drag&drop). But it still triggers the adapted view where all pages are rendered in one listing, so that could be avoided. **Possible fix:** I think this line https://github.com/wagtail/wagtail/blob/d308d6930a728208281cbfa426fe066951ca6736/wagtail/admin/wagtail_hooks.py#L353 should be changed to `if is_parent and page_perms.can_reorder_children():` ### Steps to Reproduce 1. Start a new project with `wagtail start myproject` 2. Create a page structure with some subpages which could be sorted. 3. Create an user and assign him to the existing "Editors" group. This group is not allowed to re-order the pages, because they cannot publish pages. 4. Login with that user and find the "Sort menu order"-button ### Technical details * Wagtail version: 2.16.2
[ { "content": "from django.conf import settings\nfrom django.contrib.auth.models import Permission\nfrom django.urls import reverse\nfrom django.utils.http import urlencode\nfrom django.utils.translation import gettext\nfrom django.utils.translation import gettext_lazy as _\nfrom draftjs_exporter.dom import DOM\...
[ { "content": "from django.conf import settings\nfrom django.contrib.auth.models import Permission\nfrom django.urls import reverse\nfrom django.utils.http import urlencode\nfrom django.utils.translation import gettext\nfrom django.utils.translation import gettext_lazy as _\nfrom draftjs_exporter.dom import DOM\...
diff --git a/CHANGELOG.txt b/CHANGELOG.txt index ec819eb63d47..e65aee9ea34b 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -35,6 +35,7 @@ Changelog * Fix: Ensure that custom document or image models support custom tag models (Matt Westcott) * Fix: Ensure comments use translated values for their placeholder text (Stefan Hammer) * Fix: Ensure the upgrade notification, shown to admins on the dashboard if Wagtail is out of date, content is translatable (LB (Ben) Johnston) + * Fix: Show the re-ordering option to users that have permission to publish pages within the page listing (Stefan Hammer) 3.0 (16.05.2022) diff --git a/docs/releases/4.0.md b/docs/releases/4.0.md index d08feae02756..26189b8560dd 100644 --- a/docs/releases/4.0.md +++ b/docs/releases/4.0.md @@ -49,6 +49,7 @@ When using a queryset to render a list of images, you can now use the ``prefetch * Ensure that custom document or image models support custom tag models (Matt Westcott) * Ensure comments use translated values for their placeholder text (Stefan Hammer) * Ensure the upgrade notification, shown to admins on the dashboard if Wagtail is out of date, content is translatable (LB (Ben) Johnston) + * Only show the re-ordering option to users that have permission to publish pages within the page listing (Stefan Hammer) ## Upgrade considerations diff --git a/wagtail/admin/tests/test_buttons_hooks.py b/wagtail/admin/tests/test_buttons_hooks.py index 3fc48704ef91..1565866ae155 100644 --- a/wagtail/admin/tests/test_buttons_hooks.py +++ b/wagtail/admin/tests/test_buttons_hooks.py @@ -9,7 +9,7 @@ from wagtail.test.utils import WagtailTestUtils -class PagePerms: +class BasePagePerms: def can_move(self): return False @@ -17,7 +17,7 @@ def can_copy(self): return False def can_delete(self): - return True + return False def can_unpublish(self): return False @@ -25,6 +25,19 @@ def can_unpublish(self): def can_view_revisions(self): return False + def can_reorder_children(self): + return False + + +class DeleteOnlyPagePerms(BasePagePerms): + def can_delete(self): + return True + + +class ReorderOnlyPagePerms(BasePagePerms): + def can_reorder_children(self): + return True + class TestButtonsHooks(TestCase, WagtailTestUtils): def setUp(self): @@ -144,7 +157,7 @@ def page_header_buttons(page, page_perms, next_url=None): self.assertContains(response, "Another useless header button") def test_delete_button_next_url(self): - page_perms = PagePerms() + page_perms = DeleteOnlyPagePerms() page = self.root_page base_url = reverse("wagtailadmin_pages:delete", args=[page.id]) @@ -168,3 +181,19 @@ def test_delete_button_next_url(self): ) self.assertEqual(delete_button.url, base_url) + + def test_reorder_button_visibility(self): + page = self.root_page + page_perms = BasePagePerms() + + # no button returned + buttons = page_listing_more_buttons(page, page_perms, is_parent=True) + self.assertEqual(len(list(buttons)), 0) + + page_perms = ReorderOnlyPagePerms() + # page_listing_more_button generator yields only `Sort menu order button` + reorder_button = next( + page_listing_more_buttons(page, page_perms, is_parent=True) + ) + + self.assertEqual(reorder_button.url, "?ordering=ord") diff --git a/wagtail/admin/wagtail_hooks.py b/wagtail/admin/wagtail_hooks.py index 7066e09146e3..bd74ac3fbc56 100644 --- a/wagtail/admin/wagtail_hooks.py +++ b/wagtail/admin/wagtail_hooks.py @@ -350,7 +350,7 @@ def page_listing_more_buttons(page, page_perms, is_parent=False, next_url=None): priority=50, ) - if is_parent: + if is_parent and page_perms.can_reorder_children(): yield Button( _("Sort menu order"), "?ordering=ord",
gammapy__gammapy-5237
`plot_regions` fails when using linewidth with a `PointSpatialModel` and extended spatial model **Gammapy version** gammapy v1.2 **Bug description** When utilising `plot_regions` to plot different models, if a `PointSpatialModel` is included it somehow tries to include some of the `**kwargs` instead of only utilising `kwargs_point`. Trying to utilise `linewidth` specifically results in an error. This is not present when only non `PointSpatialModels` are used. **To Reproduce** To reproduce see the small code [here](https://gist.github.com/Astro-Kirsty/cfa975c9938043a37b6043a3ad968ee3). ``` models.plot_regions(ax=ax, kwargs_point=dict(marker="o", fillstyle='full'), edgecolor="deepskyblue", facecolor="deepskyblue", linewidth=2) ```
[ { "content": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\nimport logging as log\nimport numpy as np\nfrom scipy.interpolate import CubicSpline\nfrom scipy.optimize import curve_fit\nfrom scipy.stats import norm\nfrom astropy.visualization import make_lupton_rgb\nimport matplotlib.axes as ma...
[ { "content": "# Licensed under a 3-clause BSD style license - see LICENSE.rst\nimport logging as log\nimport numpy as np\nfrom scipy.interpolate import CubicSpline\nfrom scipy.optimize import curve_fit\nfrom scipy.stats import norm\nfrom astropy.visualization import make_lupton_rgb\nimport matplotlib.axes as ma...
diff --git a/gammapy/modeling/models/tests/test_core.py b/gammapy/modeling/models/tests/test_core.py index 94924686e8..682250c642 100644 --- a/gammapy/modeling/models/tests/test_core.py +++ b/gammapy/modeling/models/tests/test_core.py @@ -215,7 +215,7 @@ def test_plot_models(caplog): models = Models.read("$GAMMAPY_DATA/tests/models/gc_example_models.yaml") with mpl_plot_check(): - models.plot_positions() + models.plot_regions(linewidth=2) models.plot_regions() assert models.wcs_geom.data_shape == models.wcs_geom.wcs.array_shape diff --git a/gammapy/visualization/utils.py b/gammapy/visualization/utils.py index bb95def734..122dca4a8f 100644 --- a/gammapy/visualization/utils.py +++ b/gammapy/visualization/utils.py @@ -24,8 +24,8 @@ "ec": "markeredgecolor", "facecolor": "markerfacecolor", "fc": "markerfacecolor", - "linewidth": "markerwidth", - "lw": "markerwidth", + "linewidth": "markeredgewidth", + "lw": "markeredgewidth", }
microsoft__DeepSpeed-4160
[REQUEST] Handle SIGTERM Command deepspeed can catch SIGINT and stop the subprocess ([code](https://github.com/microsoft/DeepSpeed/blob/master/deepspeed/launcher/runner.py#L580)). In Kubernetes, kubelet sends process SIGTERM, which is not handled by deepspeed, before closing a container. If deepspeed can handle SIGTERM and transmit to training processes, it will be helpful.
[ { "content": "# Copyright (c) Microsoft Corporation.\n# SPDX-License-Identifier: Apache-2.0\n\n# DeepSpeed Team\n\"\"\"\nDeepSpeed runner is the main front-end to launching multi-worker\ntraining jobs with DeepSpeed. By default this uses pdsh to parallel\nssh into multiple worker nodes and launch all the necess...
[ { "content": "# Copyright (c) Microsoft Corporation.\n# SPDX-License-Identifier: Apache-2.0\n\n# DeepSpeed Team\n\"\"\"\nDeepSpeed runner is the main front-end to launching multi-worker\ntraining jobs with DeepSpeed. By default this uses pdsh to parallel\nssh into multiple worker nodes and launch all the necess...
diff --git a/deepspeed/launcher/runner.py b/deepspeed/launcher/runner.py index aa7714bfa0b7..60bce75aeebd 100755 --- a/deepspeed/launcher/runner.py +++ b/deepspeed/launcher/runner.py @@ -578,6 +578,7 @@ def sigkill_handler(signum, frame): if args.launcher == PDSH_LAUNCHER and multi_node_exec: signal.signal(signal.SIGINT, sigkill_handler) + signal.signal(signal.SIGTERM, sigkill_handler) result.wait()
comic__grand-challenge.org-954
Replace pipenv with poetry Pipenv development seems to have stalled and there are several bugs that I'm not convinced will be fixed anytime soon, we should migrate to poetry.
[ { "content": "import glob\nimport os\nimport re\nimport uuid\nfrom datetime import timedelta\nfrom distutils.util import strtobool as strtobool_i\n\nimport sentry_sdk\nfrom corsheaders.defaults import default_headers\nfrom django.contrib.messages import constants as messages\nfrom django.core.exceptions import ...
[ { "content": "import glob\nimport os\nimport re\nimport uuid\nfrom datetime import timedelta\nfrom distutils.util import strtobool as strtobool_i\n\nimport sentry_sdk\nfrom corsheaders.defaults import default_headers\nfrom django.contrib.messages import constants as messages\nfrom django.core.exceptions import ...
diff --git a/.python-version b/.python-version new file mode 100644 index 0000000000..aaf18d2948 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +3.7.5 diff --git a/Pipfile b/Pipfile deleted file mode 100644 index 3b9c659f50..0000000000 --- a/Pipfile +++ /dev/null @@ -1,63 +0,0 @@ -[[source]] -verify_ssl = true -url = "https://pypi.python.org/simple" -name = "pypi" - -[dev-packages] -pytest-django = "*" -pytest-cov = "*" -pytest-mock = "*" -factory-boy = "*" -django-debug-toolbar = "*" -black = "==19.3b0" -sphinx-autobuild = "*" -sphinx = "*" -pyupgrade = "*" -pytest-xdist = "*" -sphinx-autodoc-typehints = "*" -werkzeug = "*" -sphinx-rtd-theme = "*" - -[packages] -"beautifulsoup4" = "*" -celery = "*" -redis = "*" -django = "<2.3" -django-countries = "*" -django-crispy-forms = "*" -django-userena-ce = "*" -djangorestframework = "*" -docker = "*" -matplotlib = "*" -"oauth2" = "*" -python-magic = "*" -python-memcached = "*" -pytz = "*" -social-auth-app-django = "*" -gunicorn = "*" -django-celery-email = "*" -nbconvert = "*" -simpleitk = "*" -django-celery-beat = "*" -django-favicon-plus = "*" -"psycopg2" = "*" -"django-select2" = "*" -django-celery-results = "*" -django-summernote = "*" -bleach = "*" -jsonschema = "*" -tldextract = "*" -tifffile = "==2019.1.4" -sorl-thumbnail = "*" -django-autocomplete-light = "*" -django-storages = "*" -boto3 = "*" -whitenoise = "*" -brotli = "*" -djangorestframework-guardian = "*" -django-extensions = "*" -django-simple-history = "*" -sentry-sdk = "*" -django-cors-headers = "*" -pyvips = "*" -django-speedinfo = "*" diff --git a/Pipfile.lock b/Pipfile.lock deleted file mode 100644 index e1e1fbed91..0000000000 --- a/Pipfile.lock +++ /dev/null @@ -1,1480 +0,0 @@ -{ - "_meta": { - "hash": { - "sha256": "44a89c7014dde77e560d5cde46c888fffb6100eafd1bf2a9e3e0416d556430f8" - }, - "pipfile-spec": 6, - "requires": {}, - "sources": [ - { - "name": "pypi", - "url": "https://pypi.python.org/simple", - "verify_ssl": true - } - ] - }, - "default": { - "amqp": { - "hashes": [ - "sha256:19a917e260178b8d410122712bac69cb3e6db010d68f6101e7307508aded5e68", - "sha256:19d851b879a471fcfdcf01df9936cff924f422baa77653289f7095dedd5fb26a" - ], - "version": "==2.5.1" - }, - "attrs": { - "hashes": [ - "sha256:ec20e7a4825331c1b5ebf261d111e16fa9612c1f7a5e1f884f12bd53a664dfd2", - "sha256:f913492e1663d3c36f502e5e9ba6cd13cf19d7fab50aa13239e420fef95e1396" - ], - "version": "==19.2.0" - }, - "beautifulsoup4": { - "hashes": [ - "sha256:5279c36b4b2ec2cb4298d723791467e3000e5384a43ea0cdf5d45207c7e97169", - "sha256:dcdef580e18a76d54002088602eba453eec38ebbcafafeaabd8cab12b6155d57" - ], - "index": "pypi", - "version": "==4.8.1" - }, - "billiard": { - "hashes": [ - "sha256:01afcb4e7c4fd6480940cfbd4d9edc19d7a7509d6ada533984d0d0f49901ec82", - "sha256:b8809c74f648dfe69b973c8e660bcec00603758c9db8ba89d7719f88d5f01f26" - ], - "version": "==3.6.1.0" - }, - "bleach": { - "hashes": [ - "sha256:213336e49e102af26d9cde77dd2d0397afabc5a6bf2fed985dc35b5d1e285a16", - "sha256:3fdf7f77adcf649c9911387df51254b813185e32b2c6619f690b593a617e19fa" - ], - "index": "pypi", - "version": "==3.1.0" - }, - "boto3": { - "hashes": [ - "sha256:9b18eeb4f0943af80fc40cd480931e4900f7fb3850dfafe68903148fdd832e6b", - "sha256:a985ed608640f8f7be49f83f298172876b695cc2218e335334a9da3bf6b0a968" - ], - "index": "pypi", - "version": "==1.9.245" - }, - "botocore": { - "hashes": [ - "sha256:16a09307cef306312d4c3ea18ed3902ae1e084c905bda091db2689e9852753ef", - "sha256:b21b694a6bccbe12b64d3e452d081016b67172c92d0b1be2904f60cd4dd5598d" - ], - "version": "==1.12.245" - }, - "brotli": { - "hashes": [ - "sha256:0538dc1744fd17c314d2adc409ea7d1b779783b89fd95bcfb0c2acc93a6ea5a7", - "sha256:0970a47f471782912d7705160b2b0a9306e68e6fadf9cffcaeb42d8f0951e26c", - "sha256:113f51658e6fe548dce4b3749f6ef6c24de4184ba9c10a909cbee4261c2a5da0", - "sha256:1e1aa9c4d1558889f42749c8baf846007953bfd32c8209230cf1cd1f5ef33495", - "sha256:2f2f4f78f29ac4a45d15b3d9fc3fd9705e0ad313a44b129f6e1d0c6916bad0e2", - "sha256:3269f6de1dd150fd0cce1c158b61ff5ac06d627fd3ae9c6ea03aed26fbbff7ea", - "sha256:50dd9ad2a2bb12da4e9002a438672d182f98e546e99952de80280a1e1729664f", - "sha256:5519a4b01b1a4f965083cbfa2ef2b9774c5a5f352341c47b50776ad109423d72", - "sha256:5eb27722d320370315971c427eb8aa7cc0791f2a458840d357ac653bd0ad3a14", - "sha256:5f06b4d5b6f58e5b5c220c2f23cad034dc5efa51b01fde2351ced1605bd980e2", - "sha256:72848d25a5f9e736db4af4512e0c3feecc094d57d241f8f1ae959115a2c39756", - "sha256:743001bca75f4a6b4454be3510feca46f9d61a0c782a9bc2bc684bdb245e279e", - "sha256:9d1c2dd27a1083fefd05b1b2f8df4a6bc2aaa6c21dd82cd41c8ae5e7c23a87f8", - "sha256:a13ce9b419fe9f277c63f700efb0e444331509d1881b5610d2ba7e9080606967", - "sha256:a19ef0952b9d2803df88dff07f45a6c92d5676afb9b8d69cf32232d684036d11", - "sha256:ad766ca8b8c1419b71a22756b45264f45725c86133dc80a7cbe30b6b78c75620", - "sha256:ad7963f261988ee0883816b6b9f206f11461c9b3cb5cfbca0c9ab5adc406d395", - "sha256:c16201060c5a3f8742e3deae759014251ac92f382f82bc2a41dc079ff18c3f24", - "sha256:c43b202f65891861a9a336984a103de25de235f756de69e32db893156f767013", - "sha256:c675c6cce4295cb1a692f3de7416aacace7314e064b94bc86e93aceefce7fd3e", - "sha256:d17cec0b992b1434f5f9df9986563605a4d1b1acd5574c87fc2ac014bcbd3316", - "sha256:dc91f6129953861a73d9a65c52a8dd682b561a9ebaf65283541645cab6489917", - "sha256:e2f4cbd1760d2bf2f30e396c2301999aab0191aec031a6a8a04950b2f575a536", - "sha256:f192e6d3556714105c10486bbd6d045e38a0c04d9da3cef21e0a8dfd8e162df4", - "sha256:f775b07026af2b1b0b5a8b05e41571cdcf3a315a67df265d60af301656a5425b", - "sha256:f969ec7f56ba9636679e69ca07fba548312ccaca37412ee823c7f413541ad7e0", - "sha256:f9dc52cd70907aafb99a773b66b156f2f995c7a0d284397c487c8b71ddbef2f9", - "sha256:fc7212e36ebeb81aebf7949c92897b622490d7c0e333a479c0395591e7994600" - ], - "index": "pypi", - "version": "==1.0.7" - }, - "celery": { - "hashes": [ - "sha256:4c4532aa683f170f40bd76f928b70bc06ff171a959e06e71bf35f2f9d6031ef9", - "sha256:528e56767ae7e43a16cfef24ee1062491f5754368d38fcfffa861cdb9ef219be" - ], - "index": "pypi", - "version": "==4.3.0" - }, - "certifi": { - "hashes": [ - "sha256:e4f3620cfea4f83eedc95b24abd9cd56f3c4b146dd0177e83a21b4eb49e21e50", - "sha256:fd7c7c74727ddcf00e9acd26bba8da604ffec95bf1c2144e67aff7a8b50e6cef" - ], - "version": "==2019.9.11" - }, - "cffi": { - "hashes": [ - "sha256:041c81822e9f84b1d9c401182e174996f0bae9991f33725d059b771744290774", - "sha256:046ef9a22f5d3eed06334d01b1e836977eeef500d9b78e9ef693f9380ad0b83d", - "sha256:066bc4c7895c91812eff46f4b1c285220947d4aa46fa0a2651ff85f2afae9c90", - "sha256:066c7ff148ae33040c01058662d6752fd73fbc8e64787229ea8498c7d7f4041b", - "sha256:2444d0c61f03dcd26dbf7600cf64354376ee579acad77aef459e34efcb438c63", - "sha256:300832850b8f7967e278870c5d51e3819b9aad8f0a2c8dbe39ab11f119237f45", - "sha256:34c77afe85b6b9e967bd8154e3855e847b70ca42043db6ad17f26899a3df1b25", - "sha256:46de5fa00f7ac09f020729148ff632819649b3e05a007d286242c4882f7b1dc3", - "sha256:4aa8ee7ba27c472d429b980c51e714a24f47ca296d53f4d7868075b175866f4b", - "sha256:4d0004eb4351e35ed950c14c11e734182591465a33e960a4ab5e8d4f04d72647", - "sha256:4e3d3f31a1e202b0f5a35ba3bc4eb41e2fc2b11c1eff38b362de710bcffb5016", - "sha256:50bec6d35e6b1aaeb17f7c4e2b9374ebf95a8975d57863546fa83e8d31bdb8c4", - "sha256:55cad9a6df1e2a1d62063f79d0881a414a906a6962bc160ac968cc03ed3efcfb", - "sha256:5662ad4e4e84f1eaa8efce5da695c5d2e229c563f9d5ce5b0113f71321bcf753", - "sha256:59b4dc008f98fc6ee2bb4fd7fc786a8d70000d058c2bbe2698275bc53a8d3fa7", - "sha256:73e1ffefe05e4ccd7bcea61af76f36077b914f92b76f95ccf00b0c1b9186f3f9", - "sha256:a1f0fd46eba2d71ce1589f7e50a9e2ffaeb739fb2c11e8192aa2b45d5f6cc41f", - "sha256:a2e85dc204556657661051ff4bab75a84e968669765c8a2cd425918699c3d0e8", - "sha256:a5457d47dfff24882a21492e5815f891c0ca35fefae8aa742c6c263dac16ef1f", - "sha256:a8dccd61d52a8dae4a825cdbb7735da530179fea472903eb871a5513b5abbfdc", - "sha256:ae61af521ed676cf16ae94f30fe202781a38d7178b6b4ab622e4eec8cefaff42", - "sha256:b012a5edb48288f77a63dba0840c92d0504aa215612da4541b7b42d849bc83a3", - "sha256:d2c5cfa536227f57f97c92ac30c8109688ace8fa4ac086d19d0af47d134e2909", - "sha256:d42b5796e20aacc9d15e66befb7a345454eef794fdb0737d1af593447c6c8f45", - "sha256:dee54f5d30d775f525894d67b1495625dd9322945e7fee00731952e0368ff42d", - "sha256:e070535507bd6aa07124258171be2ee8dfc19119c28ca94c9dfb7efd23564512", - "sha256:e1ff2748c84d97b065cc95429814cdba39bcbd77c9c85c89344b317dc0d9cbff", - "sha256:ed851c75d1e0e043cbf5ca9a8e1b13c4c90f3fbd863dacb01c0808e2b5204201" - ], - "version": "==1.12.3" - }, - "chardet": { - "hashes": [ - "sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae", - "sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691" - ], - "version": "==3.0.4" - }, - "cycler": { - "hashes": [ - "sha256:1d8a5ae1ff6c5cf9b93e8811e581232ad8920aeec647c37316ceac982b08cb2d", - "sha256:cd7b2d1018258d7247a71425e9f26463dfb444d411c39569972f4ce586b0c9d8" - ], - "version": "==0.10.0" - }, - "decorator": { - "hashes": [ - "sha256:86156361c50488b84a3f148056ea716ca587df2f0de1d34750d35c21312725de", - "sha256:f069f3a01830ca754ba5258fde2278454a0b5b79e0d7f5c13b3b97e57d4acff6" - ], - "version": "==4.4.0" - }, - "defusedxml": { - "hashes": [ - "sha256:6687150770438374ab581bb7a1b327a847dd9c5749e396102de3fad4e8a3ef93", - "sha256:f684034d135af4c6cbb949b8a4d2ed61634515257a67299e5f940fbaa34377f5" - ], - "markers": "python_version >= '3.0'", - "version": "==0.6.0" - }, - "django": { - "hashes": [ - "sha256:4025317ca01f75fc79250ff7262a06d8ba97cd4f82e93394b2a0a6a4a925caeb", - "sha256:a8ca1033acac9f33995eb2209a6bf18a4681c3e5269a878e9a7e0b7384ed1ca3" - ], - "index": "pypi", - "version": "==2.2.6" - }, - "django-appconf": { - "hashes": [ - "sha256:35f13ca4d567f132b960e2cd4c832c2d03cb6543452d34e29b7ba10371ba80e3", - "sha256:c98a7af40062e996b921f5962a1c4f3f0c979fa7885f7be4710cceb90ebe13a6" - ], - "version": "==1.0.3" - }, - "django-autocomplete-light": { - "hashes": [ - "sha256:29ce2626a11eab2333e5aa9f95166a6d4400f11b5a05e8f23fa77017b1a9089a" - ], - "index": "pypi", - "version": "==3.4.1" - }, - "django-celery-beat": { - "hashes": [ - "sha256:61c92d4b600a9f24406ee0b8d01a9b192253e15d047e3325e1d81e2cacf7aba6", - "sha256:659b39232c454ac27022bf679939bce0471fd482f3ee9276f5199716cb4afad9" - ], - "index": "pypi", - "version": "==1.5.0" - }, - "django-celery-email": { - "hashes": [ - "sha256:02694114f8a4e4b363cfae48b960473396899cae08351e29b0c5e431d647ef9e", - "sha256:83ad3d4edfccbcdeb8319314ed8c36cf2d017bbb02cae8b459bf6678a804ea44" - ], - "index": "pypi", - "version": "==2.0.2" - }, - "django-celery-results": { - "hashes": [ - "sha256:932277e9382528f74778b30cf90e17941cba577b7d73cee09ed55e4972972c32", - "sha256:e735dc3e705a0e21afc3b6fa2918ec388258145fcbaad3727c493c5707d25034" - ], - "index": "pypi", - "version": "==1.1.2" - }, - "django-compat": { - "hashes": [ - "sha256:3ac9a3bedc56b9365d9eb241bc5157d0c193769bf995f9a78dc1bc24e7c2331b" - ], - "version": "==1.0.15" - }, - "django-cors-headers": { - "hashes": [ - "sha256:5762ec9c2d59f38c76828dc1d4308baca4bc0d3e1d6f217683e7a24a1c4611a3", - "sha256:ee02f4b699e9b6645602a46d0adb430ee940a1bf8df64f77e516f8d7711fee60" - ], - "index": "pypi", - "version": "==3.1.1" - }, - "django-countries": { - "hashes": [ - "sha256:1cefad9ec804d6a0318b91c5394b5aef00336755928f44d0a6420507719d65c8", - "sha256:22e96236101783cfe5222ef5174972242a7e8176336d119a4dc111aedce35897" - ], - "index": "pypi", - "version": "==5.5" - }, - "django-crispy-forms": { - "hashes": [ - "sha256:5952bab971110d0b86c278132dae0aa095beee8f723e625c3d3fa28888f1675f", - "sha256:705ededc554ad8736157c666681165fe22ead2dec0d5446d65fc9dd976a5a876" - ], - "index": "pypi", - "version": "==1.7.2" - }, - "django-extensions": { - "hashes": [ - "sha256:526d84b16ee180e45e2305f19d3e01ff3f9f513133839c0b4478b97310ade82a", - "sha256:a78105d5a5e1c3ef44fbe41bc5a19102bda64dbad05515bf791ac6d5d2499ebf" - ], - "index": "pypi", - "version": "==2.2.3" - }, - "django-favicon-plus": { - "hashes": [ - "sha256:3394a951d8dc611eb1ea027ad1181d7f650ca234506585b27e93d7ed06b981bf" - ], - "index": "pypi", - "version": "==0.0.8" - }, - "django-guardian": { - "hashes": [ - "sha256:8cf4efd67a863eb32beafd4335a38ffb083630f8ab2045212d27f8f9c3abe5a6", - "sha256:e638c9a23eeac534bb68b133975539ed8782f733ab6f35c0b23b4c39cd06b1bb" - ], - "version": "==2.1.0" - }, - "django-select2": { - "hashes": [ - "sha256:ad12132e764ce8099bc2746e6af2f33a952b49eb63f3b062eb4739cd4304ee2f", - "sha256:e4beb0e4af27f71e9e2e2f52441aecdb24d401942f18a0375031767cd0e2e5a0" - ], - "index": "pypi", - "version": "==7.1.1" - }, - "django-simple-history": { - "hashes": [ - "sha256:7273add61d3f89453c475531627f8c69cbfc41d6fb99d45278dddc3bafe39284", - "sha256:7f3044439e401fb02b12231b675590865a27a149f6bd99587e429cbe6a9dd6a6" - ], - "index": "pypi", - "version": "==2.7.3" - }, - "django-speedinfo": { - "hashes": [ - "sha256:1d50df3e43319b0169f9632c28b3da36c03e79c4de209a78ed9cdd75b78d13fc", - "sha256:b7bf6d3d1bf982a219e92f963f09fcda9c90a2b01e85b828bb5cd79fec02a32e" - ], - "index": "pypi", - "version": "==1.4.1" - }, - "django-storages": { - "hashes": [ - "sha256:87287b7ad2e789cd603373439994e1ac6f94d9dc2e5f8173d2a87aa3ed458bd9", - "sha256:f3b3def96493d3ccde37b864cea376472baf6e8a596504b209278801c510b807" - ], - "index": "pypi", - "version": "==1.7.2" - }, - "django-summernote": { - "hashes": [ - "sha256:7e2a7cfa806dba508aceee872a7a556b0f86ebcc176f9c3951d4ae56871de609" - ], - "index": "pypi", - "version": "==0.8.11.4" - }, - "django-timezone-field": { - "hashes": [ - "sha256:1a7bbcf984ae191c6dfe713994b4ff4062dc21e47a909356c93e76d027c87c8f", - "sha256:a25af66b86d13709aa8c69a361c1ea68322cda64b5bbf9141fb67b8b44aa4e43" - ], - "version": "==3.1" - }, - "django-userena-ce": { - "hashes": [ - "sha256:33eb5c5105f06cdf2635d7758b809fe2906981acba476ba08fda9cb2d2708c87", - "sha256:75486a0a6d9b9a79cceaccd204593391e513814fb1a9d01d762c600455f00293" - ], - "index": "pypi", - "version": "==4.1.1" - }, - "djangorestframework": { - "hashes": [ - "sha256:5488aed8f8df5ec1d70f04b2114abc52ae6729748a176c453313834a9ee179c8", - "sha256:dc81cbf9775c6898a580f6f1f387c4777d12bd87abf0f5406018d32ccae71090" - ], - "index": "pypi", - "version": "==3.10.3" - }, - "djangorestframework-guardian": { - "hashes": [ - "sha256:3bd3dd6ea58e1bceca5048faf6f8b1a93bb5dcff30ba5eb91b9a0e190a48a0c7" - ], - "index": "pypi", - "version": "==0.3.0" - }, - "docker": { - "hashes": [ - "sha256:6e06c5e70ba4fad73e35f00c55a895a448398f3ada7faae072e2bb01348bafc1", - "sha256:8f93775b8bdae3a2df6bc9a5312cce564cade58d6555f2c2570165a1270cd8a7" - ], - "index": "pypi", - "version": "==4.1.0" - }, - "docutils": { - "hashes": [ - "sha256:6c4f696463b79f1fb8ba0c594b63840ebd41f059e92b31957c46b74a4599b6d0", - "sha256:9e4d7ecfc600058e07ba661411a2b7de2fd0fafa17d1a7f7361cd47b1175c827", - "sha256:a2aeea129088da402665e92e0b25b04b073c04b2dce4ab65caaa38b7ce2e1a99" - ], - "version": "==0.15.2" - }, - "easy-thumbnails": { - "hashes": [ - "sha256:23fbe3415c93b2369ece8ebdfb5faa05540943bef8b941b3118ce769ba95e275" - ], - "version": "==2.6" - }, - "entrypoints": { - "hashes": [ - "sha256:589f874b313739ad35be6e0cd7efde2a4e9b6fea91edcc34e58ecbb8dbe56d19", - "sha256:c70dd71abe5a8c85e55e12c19bd91ccfeec11a6e99044204511f9ed547d48451" - ], - "version": "==0.3" - }, - "gunicorn": { - "hashes": [ - "sha256:aa8e0b40b4157b36a5df5e599f45c9c76d6af43845ba3b3b0efe2c70473c2471", - "sha256:fa2662097c66f920f53f70621c6c58ca4a3c4d3434205e608e121b5b3b71f4f3" - ], - "index": "pypi", - "version": "==19.9.0" - }, - "html2text": { - "hashes": [ - "sha256:55ce85704f244fc18890c5ded89fa22ff7333e41e9f3cad04d51f48d62ad8834", - "sha256:6f56057c5c2993b5cc5b347cb099bdf6d095828fef1b53ef4e2a2bf2a1be9b4f" - ], - "version": "==2019.9.26" - }, - "httplib2": { - "hashes": [ - "sha256:34537dcdd5e0f2386d29e0e2c6d4a1703a3b982d34c198a5102e6e5d6194b107", - "sha256:409fa5509298f739b34d5a652df762cb0042507dc93f6633e306b11289d6249d" - ], - "version": "==0.14.0" - }, - "idna": { - "hashes": [ - "sha256:c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407", - "sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c" - ], - "version": "==2.8" - }, - "importlib-metadata": { - "hashes": [ - "sha256:aa18d7378b00b40847790e7c27e11673d7fed219354109d0e7b9e5b25dc3ad26", - "sha256:d5f18a79777f3aa179c145737780282e27b508fc8fd688cb17c7a813e8bd39af" - ], - "version": "==0.23" - }, - "ipython-genutils": { - "hashes": [ - "sha256:72dd37233799e619666c9f639a9da83c34013a73e8bbc79a7a6348d93c61fab8", - "sha256:eb2e116e75ecef9d4d228fdc66af54269afa26ab4463042e33785b887c628ba8" - ], - "version": "==0.2.0" - }, - "jinja2": { - "hashes": [ - "sha256:74320bb91f31270f9551d46522e33af46a80c3d619f4a4bf42b3164d30b5911f", - "sha256:9fe95f19286cfefaa917656583d020be14e7859c6b0252588391e47db34527de" - ], - "version": "==2.10.3" - }, - "jmespath": { - "hashes": [ - "sha256:3720a4b1bd659dd2eecad0666459b9788813e032b83e7ba58578e48254e0a0e6", - "sha256:bde2aef6f44302dfb30320115b17d030798de8c4110e28d5cf6cf91a7a31074c" - ], - "version": "==0.9.4" - }, - "jsonschema": { - "hashes": [ - "sha256:5f9c0a719ca2ce14c5de2fd350a64fd2d13e8539db29836a86adc990bb1a068f", - "sha256:8d4a2b7b6c2237e0199c8ea1a6d3e05bf118e289ae2b9d7ba444182a2959560d" - ], - "index": "pypi", - "version": "==3.0.2" - }, - "jupyter-core": { - "hashes": [ - "sha256:1368a838bba378c3c99f54c2961489831ea929ec7689a1d59d9844e584bc27dc", - "sha256:85103cee6548992780912c1a0a9ec2583a4a18f1ef79a248ec0db4446500bce3" - ], - "version": "==4.6.0" - }, - "kiwisolver": { - "hashes": [ - "sha256:05b5b061e09f60f56244adc885c4a7867da25ca387376b02c1efc29cc16bcd0f", - "sha256:26f4fbd6f5e1dabff70a9ba0d2c4bd30761086454aa30dddc5b52764ee4852b7", - "sha256:3b2378ad387f49cbb328205bda569b9f87288d6bc1bf4cd683c34523a2341efe", - "sha256:400599c0fe58d21522cae0e8b22318e09d9729451b17ee61ba8e1e7c0346565c", - "sha256:47b8cb81a7d18dbaf4fed6a61c3cecdb5adec7b4ac292bddb0d016d57e8507d5", - "sha256:53eaed412477c836e1b9522c19858a8557d6e595077830146182225613b11a75", - "sha256:58e626e1f7dfbb620d08d457325a4cdac65d1809680009f46bf41eaf74ad0187", - "sha256:5a52e1b006bfa5be04fe4debbcdd2688432a9af4b207a3f429c74ad625022641", - "sha256:5c7ca4e449ac9f99b3b9d4693debb1d6d237d1542dd6a56b3305fe8a9620f883", - "sha256:682e54f0ce8f45981878756d7203fd01e188cc6c8b2c5e2cf03675390b4534d5", - "sha256:79bfb2f0bd7cbf9ea256612c9523367e5ec51d7cd616ae20ca2c90f575d839a2", - "sha256:7f4dd50874177d2bb060d74769210f3bce1af87a8c7cf5b37d032ebf94f0aca3", - "sha256:8944a16020c07b682df861207b7e0efcd2f46c7488619cb55f65882279119389", - "sha256:8aa7009437640beb2768bfd06da049bad0df85f47ff18426261acecd1cf00897", - "sha256:939f36f21a8c571686eb491acfffa9c7f1ac345087281b412d63ea39ca14ec4a", - "sha256:9733b7f64bd9f807832d673355f79703f81f0b3e52bfce420fc00d8cb28c6a6c", - "sha256:a02f6c3e229d0b7220bd74600e9351e18bc0c361b05f29adae0d10599ae0e326", - "sha256:a0c0a9f06872330d0dd31b45607197caab3c22777600e88031bfe66799e70bb0", - "sha256:acc4df99308111585121db217681f1ce0eecb48d3a828a2f9bbf9773f4937e9e", - "sha256:b64916959e4ae0ac78af7c3e8cef4becee0c0e9694ad477b4c6b3a536de6a544", - "sha256:d3fcf0819dc3fea58be1fd1ca390851bdb719a549850e708ed858503ff25d995", - "sha256:d52e3b1868a4e8fd18b5cb15055c76820df514e26aa84cc02f593d99fef6707f", - "sha256:db1a5d3cc4ae943d674718d6c47d2d82488ddd94b93b9e12d24aabdbfe48caee", - "sha256:e3a21a720791712ed721c7b95d433e036134de6f18c77dbe96119eaf7aa08004", - "sha256:e8bf074363ce2babeb4764d94f8e65efd22e6a7c74860a4f05a6947afc020ff2", - "sha256:f16814a4a96dc04bf1da7d53ee8d5b1d6decfc1a92a63349bb15d37b6a263dd9", - "sha256:f2b22153870ca5cf2ab9c940d7bc38e8e9089fa0f7e5856ea195e1cf4ff43d5a", - "sha256:f790f8b3dff3d53453de6a7b7ddd173d2e020fb160baff578d578065b108a05f" - ], - "version": "==1.1.0" - }, - "kombu": { - "hashes": [ - "sha256:31edb84947996fdda065b6560c128d5673bb913ff34aa19e7b84755217a24deb", - "sha256:c9078124ce2616b29cf6607f0ac3db894c59154252dee6392cdbbe15e5c4b566" - ], - "version": "==4.6.5" - }, - "markupsafe": { - "hashes": [ - "sha256:00bc623926325b26bb9605ae9eae8a215691f33cae5df11ca5424f06f2d1f473", - "sha256:09027a7803a62ca78792ad89403b1b7a73a01c8cb65909cd876f7fcebd79b161", - "sha256:09c4b7f37d6c648cb13f9230d847adf22f8171b1ccc4d5682398e77f40309235", - "sha256:1027c282dad077d0bae18be6794e6b6b8c91d58ed8a8d89a89d59693b9131db5", - "sha256:24982cc2533820871eba85ba648cd53d8623687ff11cbb805be4ff7b4c971aff", - "sha256:29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b", - "sha256:43a55c2930bbc139570ac2452adf3d70cdbb3cfe5912c71cdce1c2c6bbd9c5d1", - "sha256:46c99d2de99945ec5cb54f23c8cd5689f6d7177305ebff350a58ce5f8de1669e", - "sha256:500d4957e52ddc3351cabf489e79c91c17f6e0899158447047588650b5e69183", - "sha256:535f6fc4d397c1563d08b88e485c3496cf5784e927af890fb3c3aac7f933ec66", - "sha256:62fe6c95e3ec8a7fad637b7f3d372c15ec1caa01ab47926cfdf7a75b40e0eac1", - "sha256:6dd73240d2af64df90aa7c4e7481e23825ea70af4b4922f8ede5b9e35f78a3b1", - "sha256:717ba8fe3ae9cc0006d7c451f0bb265ee07739daf76355d06366154ee68d221e", - "sha256:79855e1c5b8da654cf486b830bd42c06e8780cea587384cf6545b7d9ac013a0b", - "sha256:7c1699dfe0cf8ff607dbdcc1e9b9af1755371f92a68f706051cc8c37d447c905", - "sha256:88e5fcfb52ee7b911e8bb6d6aa2fd21fbecc674eadd44118a9cc3863f938e735", - "sha256:8defac2f2ccd6805ebf65f5eeb132adcf2ab57aa11fdf4c0dd5169a004710e7d", - "sha256:98c7086708b163d425c67c7a91bad6e466bb99d797aa64f965e9d25c12111a5e", - "sha256:9add70b36c5666a2ed02b43b335fe19002ee5235efd4b8a89bfcf9005bebac0d", - "sha256:9bf40443012702a1d2070043cb6291650a0841ece432556f784f004937f0f32c", - "sha256:ade5e387d2ad0d7ebf59146cc00c8044acbd863725f887353a10df825fc8ae21", - "sha256:b00c1de48212e4cc9603895652c5c410df699856a2853135b3967591e4beebc2", - "sha256:b1282f8c00509d99fef04d8ba936b156d419be841854fe901d8ae224c59f0be5", - "sha256:b2051432115498d3562c084a49bba65d97cf251f5a331c64a12ee7e04dacc51b", - "sha256:ba59edeaa2fc6114428f1637ffff42da1e311e29382d81b339c1817d37ec93c6", - "sha256:c8716a48d94b06bb3b2524c2b77e055fb313aeb4ea620c8dd03a105574ba704f", - "sha256:cd5df75523866410809ca100dc9681e301e3c27567cf498077e8551b6d20e42f", - "sha256:e249096428b3ae81b08327a63a485ad0878de3fb939049038579ac0ef61e17e7" - ], - "version": "==1.1.1" - }, - "matplotlib": { - "hashes": [ - "sha256:1febd22afe1489b13c6749ea059d392c03261b2950d1d45c17e3aed812080c93", - "sha256:31a30d03f39528c79f3a592857be62a08595dec4ac034978ecd0f814fa0eec2d", - "sha256:4442ce720907f67a79d45de9ada47be81ce17e6c2f448b3c64765af93f6829c9", - "sha256:796edbd1182cbffa7e1e7a97f1e141f875a8501ba8dd834269ae3cd45a8c976f", - "sha256:934e6243df7165aad097572abf5b6003c77c9b6c480c3c4de6f2ef1b5fdd4ec0", - "sha256:bab9d848dbf1517bc58d1f486772e99919b19efef5dd8596d4b26f9f5ee08b6b", - "sha256:c1fe1e6cdaa53f11f088b7470c2056c0df7d80ee4858dadf6cbe433fcba4323b", - "sha256:e5b8aeca9276a3a988caebe9f08366ed519fff98f77c6df5b64d7603d0e42e36", - "sha256:ec6bd0a6a58df3628ff269978f4a4b924a0d371ad8ce1f8e2b635b99e482877a" - ], - "index": "pypi", - "version": "==3.1.1" - }, - "mistune": { - "hashes": [ - "sha256:59a3429db53c50b5c6bcc8a07f8848cb00d7dc8bdb431a4ab41920d201d4756e", - "sha256:88a1051873018da288eee8538d476dffe1262495144b33ecb586c4ab266bb8d4" - ], - "version": "==0.8.4" - }, - "more-itertools": { - "hashes": [ - "sha256:409cd48d4db7052af495b09dec721011634af3753ae1ef92d2b32f73a745f832", - "sha256:92b8c4b06dac4f0611c0729b2f2ede52b2e1bac1ab48f089c7ddc12e26bb60c4" - ], - "version": "==7.2.0" - }, - "nbconvert": { - "hashes": [ - "sha256:427a468ec26e7d68a529b95f578d5cbf018cb4c1f889e897681c2b6d11897695", - "sha256:48d3c342057a2cf21e8df820d49ff27ab9f25fc72b8f15606bd47967333b2709" - ], - "index": "pypi", - "version": "==5.6.0" - }, - "nbformat": { - "hashes": [ - "sha256:b9a0dbdbd45bb034f4f8893cafd6f652ea08c8c1674ba83f2dc55d3955743b0b", - "sha256:f7494ef0df60766b7cabe0a3651556345a963b74dbc16bc7c18479041170d402" - ], - "version": "==4.4.0" - }, - "numpy": { - "hashes": [ - "sha256:05dbfe72684cc14b92568de1bc1f41e5f62b00f714afc9adee42f6311738091f", - "sha256:0d82cb7271a577529d07bbb05cb58675f2deb09772175fab96dc8de025d8ac05", - "sha256:10132aa1fef99adc85a905d82e8497a580f83739837d7cbd234649f2e9b9dc58", - "sha256:12322df2e21f033a60c80319c25011194cd2a21294cc66fee0908aeae2c27832", - "sha256:16f19b3aa775dddc9814e02a46b8e6ae6a54ed8cf143962b4e53f0471dbd7b16", - "sha256:3d0b0989dd2d066db006158de7220802899a1e5c8cf622abe2d0bd158fd01c2c", - "sha256:438a3f0e7b681642898fd7993d38e2bf140a2d1eafaf3e89bb626db7f50db355", - "sha256:5fd214f482ab53f2cea57414c5fb3e58895b17df6e6f5bca5be6a0bb6aea23bb", - "sha256:73615d3edc84dd7c4aeb212fa3748fb83217e00d201875a47327f55363cef2df", - "sha256:7bd355ad7496f4ce1d235e9814ec81ee3d28308d591c067ce92e49f745ba2c2f", - "sha256:7d077f2976b8f3de08a0dcf5d72083f4af5411e8fddacd662aae27baa2601196", - "sha256:a4092682778dc48093e8bda8d26ee8360153e2047826f95a3f5eae09f0ae3abf", - "sha256:b458de8624c9f6034af492372eb2fee41a8e605f03f4732f43fc099e227858b2", - "sha256:e70fc8ff03a961f13363c2c95ef8285e0cf6a720f8271836f852cc0fa64e97c8", - "sha256:ee8e9d7cad5fe6dde50ede0d2e978d81eafeaa6233fb0b8719f60214cf226578", - "sha256:f4a4f6aba148858a5a5d546a99280f71f5ee6ec8182a7d195af1a914195b21a2" - ], - "version": "==1.17.2" - }, - "oauth2": { - "hashes": [ - "sha256:15b5c42301f46dd63113f1214b0d81a8b16254f65a86d3c32a1b52297f3266e6", - "sha256:c006a85e7c60107c7cc6da1b184b5c719f6dd7202098196dfa6e55df669b59bf" - ], - "index": "pypi", - "version": "==1.9.0.post1" - }, - "oauthlib": { - "hashes": [ - "sha256:bee41cc35fcca6e988463cacc3bcb8a96224f470ca547e697b604cc697b2f889", - "sha256:df884cd6cbe20e32633f1db1072e9356f53638e4361bef4e8b03c9127c9328ea" - ], - "version": "==3.1.0" - }, - "pandocfilters": { - "hashes": [ - "sha256:b3dd70e169bb5449e6bc6ff96aea89c5eea8c5f6ab5e207fc2f521a2cf4a0da9" - ], - "version": "==1.4.2" - }, - "pillow": { - "hashes": [ - "sha256:00fdeb23820f30e43bba78eb9abb00b7a937a655de7760b2e09101d63708b64e", - "sha256:01f948e8220c85eae1aa1a7f8edddcec193918f933fb07aaebe0bfbbcffefbf1", - "sha256:08abf39948d4b5017a137be58f1a52b7101700431f0777bec3d897c3949f74e6", - "sha256:099a61618b145ecb50c6f279666bbc398e189b8bc97544ae32b8fcb49ad6b830", - "sha256:2c1c61546e73de62747e65807d2cc4980c395d4c5600ecb1f47a650c6fa78c79", - "sha256:2ed9c4f694861642401f27dc3cb99772be67cd190e84845c749dae0a06c3bfae", - "sha256:338581b30b908e111be578f0297255f6b57a51358cd16fa0e6f664c9a1f88bff", - "sha256:38c7d48a21cd06fdeee93987147b9b1c55b73b4cfcbf83240568bfbd5adee447", - "sha256:43fd026f613c8e48a25eba1a92f4d2ad7f3903c95d8c33a11611a7717d2ab654", - "sha256:4548236844327a718ce3bb182ab32a16fa2050c61e334e959f554cac052fb0df", - "sha256:5090857876c58885cfa388dc649e5db30aae98a068c26f3fd0ac9d7d9a4d9572", - "sha256:5bbba34f97a26a93f5e8dec469ca4ddd712451418add43da946dbaed7f7a98d2", - "sha256:65a28969a025a0eb4594637b6103201dc4ed2a9508bdab56ac33e43e3081c404", - "sha256:892bb52b70bd5ea9dbbc3ac44f38e84f5a04e9d8b1bff48159d96cb795b81159", - "sha256:8a9becd5cbd5062f973bcd2e7bc79483af310222de112b6541f8af1f93a3cc42", - "sha256:972a7aaeb7c4a2795b52eef52ee991ef040b31009f36deca6207a986607b55f3", - "sha256:97b119c436bfa96a92ac2ca525f7025836d4d4e64b1c9f9eff8dbaf3ff1d86f3", - "sha256:9ba37698e242223f8053cc158f130aee046a96feacbeab65893dbe94f5530118", - "sha256:b1b0e1f626a0f079c0d3696db70132fb1f29aa87c66aecb6501a9b8be64ce9f7", - "sha256:c14c1224fd1a5be2733530d648a316974dbbb3c946913562c6005a76f21ca042", - "sha256:c79a8546c48ae6465189e54e3245a97ddf21161e33ff7eaa42787353417bb2b6", - "sha256:ceb76935ac4ebdf6d7bc845482a4450b284c6ccfb281e34da51d510658ab34d8", - "sha256:e22bffaad04b4d16e1c091baed7f2733fc1ebb91e0c602abf1b6834d17158b1f", - "sha256:ec883b8e44d877bda6f94a36313a1c6063f8b1997aa091628ae2f34c7f97c8d5", - "sha256:f1baa54d50ec031d1a9beb89974108f8f2c0706f49798f4777df879df0e1adb6", - "sha256:f53a5385932cda1e2c862d89460992911a89768c65d176ff8c50cddca4d29bed" - ], - "version": "==6.2.0" - }, - "psycopg2": { - "hashes": [ - "sha256:128d0fa910ada0157bba1cb74a9c5f92bb8a1dca77cf91a31eb274d1f889e001", - "sha256:227fd46cf9b7255f07687e5bde454d7d67ae39ca77e170097cdef8ebfc30c323", - "sha256:2315e7f104681d498ccf6fd70b0dba5bce65d60ac92171492bfe228e21dcc242", - "sha256:4b5417dcd2999db0f5a891d54717cfaee33acc64f4772c4bc574d4ff95ed9d80", - "sha256:640113ddc943522aaf71294e3f2d24013b0edd659b7820621492c9ebd3a2fb0b", - "sha256:897a6e838319b4bf648a574afb6cabcb17d0488f8c7195100d48d872419f4457", - "sha256:8dceca81409898c870e011c71179454962dec152a1a6b86a347f4be74b16d864", - "sha256:b1b8e41da09a0c3ef0b3d4bb72da0dde2abebe583c1e8462973233fd5ad0235f", - "sha256:cb407fccc12fc29dc331f2b934913405fa49b9b75af4f3a72d0f50f57ad2ca23", - "sha256:d3a27550a8185e53b244ad7e79e307594b92fede8617d80200a8cce1fba2c60f", - "sha256:f0e6b697a975d9d3ccd04135316c947dd82d841067c7800ccf622a8717e98df1" - ], - "index": "pypi", - "version": "==2.8.3" - }, - "pycparser": { - "hashes": [ - "sha256:a988718abfad80b6b157acce7bf130a30876d27603738ac39f140993246b25b3" - ], - "version": "==2.19" - }, - "pygments": { - "hashes": [ - "sha256:71e430bc85c88a430f000ac1d9b331d2407f681d6f6aec95e8bcfbc3df5b0127", - "sha256:881c4c157e45f30af185c1ffe8d549d48ac9127433f2c380c24b84572ad66297" - ], - "version": "==2.4.2" - }, - "pyjwt": { - "hashes": [ - "sha256:5c6eca3c2940464d106b99ba83b00c6add741c9becaec087fb7ccdefea71350e", - "sha256:8d59a976fb773f3e6a39c85636357c4f0e242707394cadadd9814f5cbaa20e96" - ], - "version": "==1.7.1" - }, - "pyparsing": { - "hashes": [ - "sha256:6f98a7b9397e206d78cc01df10131398f1c8b8510a2f4d97d9abd82e1aacdd80", - "sha256:d9338df12903bbf5d65a0e4e87c2161968b10d2e489652bb47001d82a9b028b4" - ], - "version": "==2.4.2" - }, - "pyrsistent": { - "hashes": [ - "sha256:34b47fa169d6006b32e99d4b3c4031f155e6e68ebcc107d6454852e8e0ee6533" - ], - "version": "==0.15.4" - }, - "python-crontab": { - "hashes": [ - "sha256:ef1eef66c75fa95a934e203e18721987e7824f9b40cad698edbcfaf2ace11d6c" - ], - "version": "==2.3.9" - }, - "python-dateutil": { - "hashes": [ - "sha256:7e6584c74aeed623791615e26efd690f29817a27c73085b78e4bad02493df2fb", - "sha256:c89805f6f4d64db21ed966fda138f8a5ed7a4fdbc1a8ee329ce1b74e3c74da9e" - ], - "markers": "python_version >= '2.7'", - "version": "==2.8.0" - }, - "python-magic": { - "hashes": [ - "sha256:f2674dcfad52ae6c49d4803fa027809540b130db1dec928cfbb9240316831375", - "sha256:f3765c0f582d2dfc72c15f3b5a82aecfae9498bd29ca840d72f37d7bd38bfcd5" - ], - "index": "pypi", - "version": "==0.4.15" - }, - "python-memcached": { - "hashes": [ - "sha256:4dac64916871bd3550263323fc2ce18e1e439080a2d5670c594cf3118d99b594", - "sha256:a2e28637be13ee0bf1a8b6843e7490f9456fd3f2a4cb60471733c7b5d5557e4f" - ], - "index": "pypi", - "version": "==1.59" - }, - "python3-openid": { - "hashes": [ - "sha256:0086da6b6ef3161cfe50fb1ee5cceaf2cda1700019fda03c2c5c440ca6abe4fa", - "sha256:628d365d687e12da12d02c6691170f4451db28d6d68d050007e4a40065868502" - ], - "markers": "python_version >= '3.0'", - "version": "==3.1.0" - }, - "pytz": { - "hashes": [ - "sha256:1c557d7d0e871de1f5ccd5833f60fb2550652da6be2693c1e02300743d21500d", - "sha256:b02c06db6cf09c12dd25137e563b31700d3b80fcc4ad23abb7a315f2789819be" - ], - "index": "pypi", - "version": "==2019.3" - }, - "pyvips": { - "hashes": [ - "sha256:8992acde85331c08bf4cd0b8213d99bc65c523fc67eade93820d600de138ad04" - ], - "index": "pypi", - "version": "==2.1.8" - }, - "redis": { - "hashes": [ - "sha256:98a22fb750c9b9bb46e75e945dc3f61d0ab30d06117cbb21ff9cd1d315fedd3b", - "sha256:c504251769031b0dd7dd5cf786050a6050197c6de0d37778c80c08cb04ae8275" - ], - "index": "pypi", - "version": "==3.3.8" - }, - "requests": { - "hashes": [ - "sha256:11e007a8a2aa0323f5a921e9e6a2d7e4e67d9877e85773fba9ba6419025cbeb4", - "sha256:9cf5292fcd0f598c671cfc1e0d7d1a7f13bb8085e9a590f48c010551dc6c4b31" - ], - "version": "==2.22.0" - }, - "requests-file": { - "hashes": [ - "sha256:75c175eed739270aec3c5279ffd74e6527dada275c5c0d76b5817e9c86bb7dea", - "sha256:8f04aa6201bacda0567e7ac7f677f1499b0fc76b22140c54bc06edf1ba92e2fa" - ], - "version": "==1.4.3" - }, - "requests-oauthlib": { - "hashes": [ - "sha256:bd6533330e8748e94bf0b214775fed487d309b8b8fe823dc45641ebcd9a32f57", - "sha256:d3ed0c8f2e3bbc6b344fa63d6f933745ab394469da38db16bdddb461c7e25140" - ], - "version": "==1.2.0" - }, - "s3transfer": { - "hashes": [ - "sha256:6efc926738a3cd576c2a79725fed9afde92378aa5c6a957e3af010cb019fac9d", - "sha256:b780f2411b824cb541dbcd2c713d0cb61c7d1bcadae204cdddda2b35cef493ba" - ], - "version": "==0.2.1" - }, - "sentry-sdk": { - "hashes": [ - "sha256:15e51e74b924180c98bcd636cb4634945b0a99a124d50b433c3a9dc6a582e8db", - "sha256:1d6a2ee908ec6d8f96c27d78bc39e203df4d586d287c233140af7d8d1aca108a" - ], - "index": "pypi", - "version": "==0.12.3" - }, - "simpleitk": { - "hashes": [ - "sha256:0e8ee33ac7ac8f584d974db8cae200590254375a18594c4843b286d6cb70f132", - "sha256:230208afeae8f9b63f36079abd175ed5e86d1beb763b0e33e07bb9e08d8067f4", - "sha256:29e2ffe31c72ab5da5eac004c8889c5f8d44885125caa16760cfe2a68c8b0ca8", - "sha256:3f02b3bf348c41fdb7b9e6862351e79c5d7a29c8505bcafa8fb33070512031fd", - "sha256:418c12278be6e6abb09d38a5e0f0a9018edbaf6ba12c2de3e5eb030a1ae7a864", - "sha256:4518192d2d58f871d232289410312522578cb3f042694ffa219edd5d2bf4521c", - "sha256:45e9c4317aee670dd9cfe301842ff5fd546076836d2e54954c0a8dfc58270e62", - "sha256:4a49b77dff0cad086bc66acb49e5dc4d956afd55abc473ef58ee0ee535807e81", - "sha256:4a4d2bf927fd93815fcf2d7b43c8f609bed72e02d6fe77a4fa0bb7c9b43210f2", - "sha256:6ee0a1da7475caa82b395ff3ecf88f6f3288ff3306d9615ec991f86da0606263", - "sha256:70e1a3c6c022a319b5936053a9d25c86954dbd0258a9631cf8e6822866af064a", - "sha256:789ca18ee88d84f4ec283f9b46ed50eb2bdb280da401b9904fbf3c7ece71194e", - "sha256:7db4959edb3c819c543d66f2cc0ff8f28b663c9a4d985d01cb458a8f55124b79", - "sha256:8476ff362fb2616251e6925bb01895d7d417c3c311b972830db9041bad9da7c5", - "sha256:8afd3094eaf8f465502def86d87428fbdb8d82b812e98fcc25e56a3913d51199", - "sha256:93fed3b379eb3393a164f52b2b6bb94fc07f93a1c46961d9e830e4e15de3e0ea", - "sha256:a5cd99aef18b88df95d3c7e396709ed7a650c66e945ac99b45899e71852b2ead", - "sha256:b96d58523bbe33e1feaddf85a0bd677942ffb71d40cb7c4e693e1dde6fa70d0c", - "sha256:bfffad9470749db91eccfb8db9626ab50b0c1bf2e940616c177e3c7a13e8b523", - "sha256:d524e4707ff53f6d22e95746d51eee88cb604ebbe1589f9b553c668a765877ae", - "sha256:d691c93aa1419f077b08d19ddbb602941dd60df0d4520221a606935a6b626bcb", - "sha256:e5351cbd1a23369d7c8fa24ff51ee11231b0b46e7912fbdc4cefd062713325ca", - "sha256:ea7d3599162b6b3c51bc5de4c8c401938720a17751d425575893b171ecf51b0a", - "sha256:ef765be04357cfd78e84fbdb43430a1b6c1f530ebbde793c101f5dadedd079c1" - ], - "index": "pypi", - "version": "==1.2.2" - }, - "six": { - "hashes": [ - "sha256:3350809f0555b11f552448330d0b52d5f24c91a322ea4a15ef22629740f3761c", - "sha256:d16a0141ec1a18405cd4ce8b4613101da75da0e9a7aec5bdd4fa804d0e0eba73" - ], - "version": "==1.12.0" - }, - "social-auth-app-django": { - "hashes": [ - "sha256:6d0dd18c2d9e71ca545097d57b44d26f59e624a12833078e8e52f91baf849778", - "sha256:9237e3d7b6f6f59494c3b02e0cce6efc69c9d33ad9d1a064e3b2318bcbe89ae3", - "sha256:f151396e5b16e2eee12cd2e211004257826ece24fc4ae97a147df386c1cd7082" - ], - "index": "pypi", - "version": "==3.1.0" - }, - "social-auth-core": { - "hashes": [ - "sha256:47cd2458c8fefd02466b0c514643e02ad8b61d8b4b69f7573e80882e3a97b0f0", - "sha256:8320666548a532eb158968eda542bbe1863682357c432d8c4e28034a7f1e3b58", - "sha256:d81ed681e3c0722300b61a0792c5db5d21206793f95ca810f010c1cc931c8d89" - ], - "version": "==3.2.0" - }, - "sorl-thumbnail": { - "hashes": [ - "sha256:8dfe5fda91a5047d1d35a0b9effe7b000764a01d648e15ca076f44e9c34b6dbd", - "sha256:d9e3f018d19293824803e4ffead96b19dfcd44fa7987cea392f50436817bef34" - ], - "index": "pypi", - "version": "==12.5.0" - }, - "soupsieve": { - "hashes": [ - "sha256:605f89ad5fdbfefe30cdc293303665eff2d188865d4dbe4eb510bba1edfbfce3", - "sha256:b91d676b330a0ebd5b21719cb6e9b57c57d433671f65b9c28dd3461d9a1ed0b6" - ], - "version": "==1.9.4" - }, - "sqlparse": { - "hashes": [ - "sha256:40afe6b8d4b1117e7dff5504d7a8ce07d9a1b15aeeade8a2d10f130a834f8177", - "sha256:7c3dca29c022744e95b547e867cee89f4fce4373f3549ccd8797d8eb52cdb873" - ], - "version": "==0.3.0" - }, - "testpath": { - "hashes": [ - "sha256:46c89ebb683f473ffe2aab0ed9f12581d4d078308a3cb3765d79c6b2317b0109", - "sha256:b694b3d9288dbd81685c5d2e7140b81365d46c29f5db4bc659de5aa6b98780f8" - ], - "version": "==0.4.2" - }, - "tifffile": { - "hashes": [ - "sha256:645e3a427743b9a892c835bcc363b043e732489621d2b6de12933c82b591398c", - "sha256:6b875c4342a55cbed8ef4af3aa9d7a06b02219089b9f5d7a457918dc73f61f9d" - ], - "index": "pypi", - "version": "==2019.1.4" - }, - "tldextract": { - "hashes": [ - "sha256:2c1c5d9d454f79734b4f3da0d603856dd9f820753410a3e9abf0a0c9fde33e97", - "sha256:b72bef6013de67c7fa181250bc2c2e089a994d259c09ca95a9771f2f97e29ed1" - ], - "index": "pypi", - "version": "==2.2.1" - }, - "traitlets": { - "hashes": [ - "sha256:70b4c6a1d9019d7b4f6846832288f86998aa3b9207c6821f3578a6a6a467fe44", - "sha256:d023ee369ddd2763310e4c3eae1ff649689440d4ae59d7485eb4cfbbe3e359f7" - ], - "version": "==4.3.3" - }, - "urllib3": { - "hashes": [ - "sha256:3de946ffbed6e6746608990594d08faac602528ac7015ac28d33cee6a45b7398", - "sha256:9a107b99a5393caf59c7aa3c1249c16e6879447533d0887f4336dde834c7be86" - ], - "markers": "python_version >= '3.4'", - "version": "==1.25.6" - }, - "vine": { - "hashes": [ - "sha256:133ee6d7a9016f177ddeaf191c1f58421a1dcc6ee9a42c58b34bed40e1d2cd87", - "sha256:ea4947cc56d1fd6f2095c8d543ee25dad966f78692528e68b4fada11ba3f98af" - ], - "version": "==1.3.0" - }, - "webencodings": { - "hashes": [ - "sha256:a0af1213f3c2226497a97e2b3aa01a7e4bee4f403f95be16fc9acd2947514a78", - "sha256:b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923" - ], - "version": "==0.5.1" - }, - "websocket-client": { - "hashes": [ - "sha256:1151d5fb3a62dc129164292e1227655e4bbc5dd5340a5165dfae61128ec50aa9", - "sha256:1fd5520878b68b84b5748bb30e592b10d0a91529d5383f74f4964e72b297fd3a" - ], - "version": "==0.56.0" - }, - "whitenoise": { - "hashes": [ - "sha256:22f79cf8f1f509639330f93886acaece8ec5ac5e9600c3b981d33c34e8a42dfd", - "sha256:6dfea214b7c12efd689007abf9afa87a426586e9dbc051873ad2c8e535e2a1ac" - ], - "index": "pypi", - "version": "==4.1.4" - }, - "zipp": { - "hashes": [ - "sha256:3718b1cbcd963c7d4c5511a8240812904164b7f381b647143a89d3b98f9bcd8e", - "sha256:f06903e9f1f43b12d371004b4ac7b06ab39a44adc747266928ae6debfa7b3335" - ], - "version": "==0.6.0" - } - }, - "develop": { - "alabaster": { - "hashes": [ - "sha256:446438bdcca0e05bd45ea2de1668c1d9b032e1a9154c2c259092d77031ddd359", - "sha256:a661d72d58e6ea8a57f7a86e37d86716863ee5e92788398526d58b26a4e4dc02" - ], - "version": "==0.7.12" - }, - "apipkg": { - "hashes": [ - "sha256:37228cda29411948b422fae072f57e31d3396d2ee1c9783775980ee9c9990af6", - "sha256:58587dd4dc3daefad0487f6d9ae32b4542b185e1c36db6993290e7c41ca2b47c" - ], - "version": "==1.5" - }, - "appdirs": { - "hashes": [ - "sha256:9e5896d1372858f8dd3344faf4e5014d21849c756c8d5701f78f8a103b372d92", - "sha256:d8b24664561d0d34ddfaec54636d502d7cea6e29c3eaf68f3df6180863e2166e" - ], - "version": "==1.4.3" - }, - "argh": { - "hashes": [ - "sha256:a9b3aaa1904eeb78e32394cd46c6f37ac0fb4af6dc488daa58971bdc7d7fcaf3", - "sha256:e9535b8c84dc9571a48999094fda7f33e63c3f1b74f3e5f3ac0105a58405bb65" - ], - "version": "==0.26.2" - }, - "atomicwrites": { - "hashes": [ - "sha256:03472c30eb2c5d1ba9227e4c2ca66ab8287fbfbbda3888aa93dc2e28fc6811b4", - "sha256:75a9445bac02d8d058d5e1fe689654ba5a6556a1dfd8ce6ec55a0ed79866cfa6" - ], - "version": "==1.3.0" - }, - "attrs": { - "hashes": [ - "sha256:ec20e7a4825331c1b5ebf261d111e16fa9612c1f7a5e1f884f12bd53a664dfd2", - "sha256:f913492e1663d3c36f502e5e9ba6cd13cf19d7fab50aa13239e420fef95e1396" - ], - "version": "==19.2.0" - }, - "babel": { - "hashes": [ - "sha256:af92e6106cb7c55286b25b38ad7695f8b4efb36a90ba483d7f7a6628c46158ab", - "sha256:e86135ae101e31e2c8ec20a4e0c5220f4eed12487d5cf3f78be7e98d3a57fc28" - ], - "version": "==2.7.0" - }, - "black": { - "hashes": [ - "sha256:09a9dcb7c46ed496a9850b76e4e825d6049ecd38b611f1224857a79bd985a8cf", - "sha256:68950ffd4d9169716bcb8719a56c07a2f4485354fec061cdd5910aa07369731c" - ], - "index": "pypi", - "version": "==19.3b0" - }, - "certifi": { - "hashes": [ - "sha256:e4f3620cfea4f83eedc95b24abd9cd56f3c4b146dd0177e83a21b4eb49e21e50", - "sha256:fd7c7c74727ddcf00e9acd26bba8da604ffec95bf1c2144e67aff7a8b50e6cef" - ], - "version": "==2019.9.11" - }, - "chardet": { - "hashes": [ - "sha256:84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae", - "sha256:fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691" - ], - "version": "==3.0.4" - }, - "click": { - "hashes": [ - "sha256:2335065e6395b9e67ca716de5f7526736bfa6ceead690adf616d925bdc622b13", - "sha256:5b94b49521f6456670fdb30cd82a4eca9412788a93fa6dd6df72c94d5a8ff2d7" - ], - "version": "==7.0" - }, - "coverage": { - "hashes": [ - "sha256:08907593569fe59baca0bf152c43f3863201efb6113ecb38ce7e97ce339805a6", - "sha256:0be0f1ed45fc0c185cfd4ecc19a1d6532d72f86a2bac9de7e24541febad72650", - "sha256:141f08ed3c4b1847015e2cd62ec06d35e67a3ac185c26f7635f4406b90afa9c5", - "sha256:19e4df788a0581238e9390c85a7a09af39c7b539b29f25c89209e6c3e371270d", - "sha256:23cc09ed395b03424d1ae30dcc292615c1372bfba7141eb85e11e50efaa6b351", - "sha256:245388cda02af78276b479f299bbf3783ef0a6a6273037d7c60dc73b8d8d7755", - "sha256:331cb5115673a20fb131dadd22f5bcaf7677ef758741312bee4937d71a14b2ef", - "sha256:386e2e4090f0bc5df274e720105c342263423e77ee8826002dcffe0c9533dbca", - "sha256:3a794ce50daee01c74a494919d5ebdc23d58873747fa0e288318728533a3e1ca", - "sha256:60851187677b24c6085248f0a0b9b98d49cba7ecc7ec60ba6b9d2e5574ac1ee9", - "sha256:63a9a5fc43b58735f65ed63d2cf43508f462dc49857da70b8980ad78d41d52fc", - "sha256:6b62544bb68106e3f00b21c8930e83e584fdca005d4fffd29bb39fb3ffa03cb5", - "sha256:6ba744056423ef8d450cf627289166da65903885272055fb4b5e113137cfa14f", - "sha256:7494b0b0274c5072bddbfd5b4a6c6f18fbbe1ab1d22a41e99cd2d00c8f96ecfe", - "sha256:826f32b9547c8091679ff292a82aca9c7b9650f9fda3e2ca6bf2ac905b7ce888", - "sha256:93715dffbcd0678057f947f496484e906bf9509f5c1c38fc9ba3922893cda5f5", - "sha256:9a334d6c83dfeadae576b4d633a71620d40d1c379129d587faa42ee3e2a85cce", - "sha256:af7ed8a8aa6957aac47b4268631fa1df984643f07ef00acd374e456364b373f5", - "sha256:bf0a7aed7f5521c7ca67febd57db473af4762b9622254291fbcbb8cd0ba5e33e", - "sha256:bf1ef9eb901113a9805287e090452c05547578eaab1b62e4ad456fcc049a9b7e", - "sha256:c0afd27bc0e307a1ffc04ca5ec010a290e49e3afbe841c5cafc5c5a80ecd81c9", - "sha256:dd579709a87092c6dbee09d1b7cfa81831040705ffa12a1b248935274aee0437", - "sha256:df6712284b2e44a065097846488f66840445eb987eb81b3cc6e4149e7b6982e1", - "sha256:e07d9f1a23e9e93ab5c62902833bf3e4b1f65502927379148b6622686223125c", - "sha256:e2ede7c1d45e65e209d6093b762e98e8318ddeff95317d07a27a2140b80cfd24", - "sha256:e4ef9c164eb55123c62411f5936b5c2e521b12356037b6e1c2617cef45523d47", - "sha256:eca2b7343524e7ba246cab8ff00cab47a2d6d54ada3b02772e908a45675722e2", - "sha256:eee64c616adeff7db37cc37da4180a3a5b6177f5c46b187894e633f088fb5b28", - "sha256:ef824cad1f980d27f26166f86856efe11eff9912c4fed97d3804820d43fa550c", - "sha256:efc89291bd5a08855829a3c522df16d856455297cf35ae827a37edac45f466a7", - "sha256:fa964bae817babece5aa2e8c1af841bebb6d0b9add8e637548809d040443fee0", - "sha256:ff37757e068ae606659c28c3bd0d923f9d29a85de79bf25b2b34b148473b5025" - ], - "version": "==4.5.4" - }, - "django": { - "hashes": [ - "sha256:4025317ca01f75fc79250ff7262a06d8ba97cd4f82e93394b2a0a6a4a925caeb", - "sha256:a8ca1033acac9f33995eb2209a6bf18a4681c3e5269a878e9a7e0b7384ed1ca3" - ], - "index": "pypi", - "version": "==2.2.6" - }, - "django-debug-toolbar": { - "hashes": [ - "sha256:17c53cd6bf4e7d69902aedf9a1d26c5d3b7369b54c5718744704f27b5a72f35d", - "sha256:9a23ada2e43cd989195db3c18710b5d7451134a0d48127ab64c1d2ad81700342" - ], - "index": "pypi", - "version": "==2.0" - }, - "docutils": { - "hashes": [ - "sha256:6c4f696463b79f1fb8ba0c594b63840ebd41f059e92b31957c46b74a4599b6d0", - "sha256:9e4d7ecfc600058e07ba661411a2b7de2fd0fafa17d1a7f7361cd47b1175c827", - "sha256:a2aeea129088da402665e92e0b25b04b073c04b2dce4ab65caaa38b7ce2e1a99" - ], - "version": "==0.15.2" - }, - "execnet": { - "hashes": [ - "sha256:cacb9df31c9680ec5f95553976c4da484d407e85e41c83cb812aa014f0eddc50", - "sha256:d4efd397930c46415f62f8a31388d6be4f27a91d7550eb79bc64a756e0056547" - ], - "version": "==1.7.1" - }, - "factory-boy": { - "hashes": [ - "sha256:728df59b372c9588b83153facf26d3d28947fc750e8e3c95cefa9bed0e6394ee", - "sha256:faf48d608a1735f0d0a3c9cbf536d64f9132b547dae7ba452c4d99a79e84a370" - ], - "index": "pypi", - "version": "==2.12.0" - }, - "faker": { - "hashes": [ - "sha256:45cc9cca3de8beba5a2da3bd82a6e5544f53da1a702645c8485f682366c15026", - "sha256:a6459ff518d1fc6ee2238a7209e6c899517872c7e1115510279033ffe6fe8ef3" - ], - "version": "==2.0.2" - }, - "idna": { - "hashes": [ - "sha256:c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407", - "sha256:ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c" - ], - "version": "==2.8" - }, - "imagesize": { - "hashes": [ - "sha256:3f349de3eb99145973fefb7dbe38554414e5c30abd0c8e4b970a7c9d09f3a1d8", - "sha256:f3832918bc3c66617f92e35f5d70729187676313caa60c187eb0f28b8fe5e3b5" - ], - "version": "==1.1.0" - }, - "importlib-metadata": { - "hashes": [ - "sha256:aa18d7378b00b40847790e7c27e11673d7fed219354109d0e7b9e5b25dc3ad26", - "sha256:d5f18a79777f3aa179c145737780282e27b508fc8fd688cb17c7a813e8bd39af" - ], - "version": "==0.23" - }, - "jinja2": { - "hashes": [ - "sha256:74320bb91f31270f9551d46522e33af46a80c3d619f4a4bf42b3164d30b5911f", - "sha256:9fe95f19286cfefaa917656583d020be14e7859c6b0252588391e47db34527de" - ], - "version": "==2.10.3" - }, - "livereload": { - "hashes": [ - "sha256:78d55f2c268a8823ba499305dcac64e28ddeb9a92571e12d543cd304faf5817b", - "sha256:89254f78d7529d7ea0a3417d224c34287ebfe266b05e67e51facaf82c27f0f66" - ], - "version": "==2.6.1" - }, - "markupsafe": { - "hashes": [ - "sha256:00bc623926325b26bb9605ae9eae8a215691f33cae5df11ca5424f06f2d1f473", - "sha256:09027a7803a62ca78792ad89403b1b7a73a01c8cb65909cd876f7fcebd79b161", - "sha256:09c4b7f37d6c648cb13f9230d847adf22f8171b1ccc4d5682398e77f40309235", - "sha256:1027c282dad077d0bae18be6794e6b6b8c91d58ed8a8d89a89d59693b9131db5", - "sha256:24982cc2533820871eba85ba648cd53d8623687ff11cbb805be4ff7b4c971aff", - "sha256:29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b", - "sha256:43a55c2930bbc139570ac2452adf3d70cdbb3cfe5912c71cdce1c2c6bbd9c5d1", - "sha256:46c99d2de99945ec5cb54f23c8cd5689f6d7177305ebff350a58ce5f8de1669e", - "sha256:500d4957e52ddc3351cabf489e79c91c17f6e0899158447047588650b5e69183", - "sha256:535f6fc4d397c1563d08b88e485c3496cf5784e927af890fb3c3aac7f933ec66", - "sha256:62fe6c95e3ec8a7fad637b7f3d372c15ec1caa01ab47926cfdf7a75b40e0eac1", - "sha256:6dd73240d2af64df90aa7c4e7481e23825ea70af4b4922f8ede5b9e35f78a3b1", - "sha256:717ba8fe3ae9cc0006d7c451f0bb265ee07739daf76355d06366154ee68d221e", - "sha256:79855e1c5b8da654cf486b830bd42c06e8780cea587384cf6545b7d9ac013a0b", - "sha256:7c1699dfe0cf8ff607dbdcc1e9b9af1755371f92a68f706051cc8c37d447c905", - "sha256:88e5fcfb52ee7b911e8bb6d6aa2fd21fbecc674eadd44118a9cc3863f938e735", - "sha256:8defac2f2ccd6805ebf65f5eeb132adcf2ab57aa11fdf4c0dd5169a004710e7d", - "sha256:98c7086708b163d425c67c7a91bad6e466bb99d797aa64f965e9d25c12111a5e", - "sha256:9add70b36c5666a2ed02b43b335fe19002ee5235efd4b8a89bfcf9005bebac0d", - "sha256:9bf40443012702a1d2070043cb6291650a0841ece432556f784f004937f0f32c", - "sha256:ade5e387d2ad0d7ebf59146cc00c8044acbd863725f887353a10df825fc8ae21", - "sha256:b00c1de48212e4cc9603895652c5c410df699856a2853135b3967591e4beebc2", - "sha256:b1282f8c00509d99fef04d8ba936b156d419be841854fe901d8ae224c59f0be5", - "sha256:b2051432115498d3562c084a49bba65d97cf251f5a331c64a12ee7e04dacc51b", - "sha256:ba59edeaa2fc6114428f1637ffff42da1e311e29382d81b339c1817d37ec93c6", - "sha256:c8716a48d94b06bb3b2524c2b77e055fb313aeb4ea620c8dd03a105574ba704f", - "sha256:cd5df75523866410809ca100dc9681e301e3c27567cf498077e8551b6d20e42f", - "sha256:e249096428b3ae81b08327a63a485ad0878de3fb939049038579ac0ef61e17e7" - ], - "version": "==1.1.1" - }, - "more-itertools": { - "hashes": [ - "sha256:409cd48d4db7052af495b09dec721011634af3753ae1ef92d2b32f73a745f832", - "sha256:92b8c4b06dac4f0611c0729b2f2ede52b2e1bac1ab48f089c7ddc12e26bb60c4" - ], - "version": "==7.2.0" - }, - "packaging": { - "hashes": [ - "sha256:28b924174df7a2fa32c1953825ff29c61e2f5e082343165438812f00d3a7fc47", - "sha256:d9551545c6d761f3def1677baf08ab2a3ca17c56879e70fecba2fc4dde4ed108" - ], - "version": "==19.2" - }, - "pathtools": { - "hashes": [ - "sha256:7c35c5421a39bb82e58018febd90e3b6e5db34c5443aaaf742b3f33d4655f1c0" - ], - "version": "==0.1.2" - }, - "pluggy": { - "hashes": [ - "sha256:0db4b7601aae1d35b4a033282da476845aa19185c1e6964b25cf324b5e4ec3e6", - "sha256:fa5fa1622fa6dd5c030e9cad086fa19ef6a0cf6d7a2d12318e10cb49d6d68f34" - ], - "version": "==0.13.0" - }, - "port-for": { - "hashes": [ - "sha256:b16a84bb29c2954db44c29be38b17c659c9c27e33918dec16b90d375cc596f1c" - ], - "version": "==0.3.1" - }, - "py": { - "hashes": [ - "sha256:64f65755aee5b381cea27766a3a147c3f15b9b6b9ac88676de66ba2ae36793fa", - "sha256:dc639b046a6e2cff5bbe40194ad65936d6ba360b52b3c3fe1d08a82dd50b5e53" - ], - "version": "==1.8.0" - }, - "pygments": { - "hashes": [ - "sha256:71e430bc85c88a430f000ac1d9b331d2407f681d6f6aec95e8bcfbc3df5b0127", - "sha256:881c4c157e45f30af185c1ffe8d549d48ac9127433f2c380c24b84572ad66297" - ], - "version": "==2.4.2" - }, - "pyparsing": { - "hashes": [ - "sha256:6f98a7b9397e206d78cc01df10131398f1c8b8510a2f4d97d9abd82e1aacdd80", - "sha256:d9338df12903bbf5d65a0e4e87c2161968b10d2e489652bb47001d82a9b028b4" - ], - "version": "==2.4.2" - }, - "pytest": { - "hashes": [ - "sha256:7e4800063ccfc306a53c461442526c5571e1462f61583506ce97e4da6a1d88c8", - "sha256:ca563435f4941d0cb34767301c27bc65c510cb82e90b9ecf9cb52dc2c63caaa0" - ], - "version": "==5.2.1" - }, - "pytest-cov": { - "hashes": [ - "sha256:cc6742d8bac45070217169f5f72ceee1e0e55b0221f54bcf24845972d3a47f2b", - "sha256:cdbdef4f870408ebdbfeb44e63e07eb18bb4619fae852f6e760645fa36172626" - ], - "index": "pypi", - "version": "==2.8.1" - }, - "pytest-django": { - "hashes": [ - "sha256:264fb4c506db5d48a6364c311a0b00b7b48a52715bad8839b2d8bee9b99ed6bb", - "sha256:4adfe5fb3ed47f0ba55506dd3daf688b1f74d5e69148c10ad2dd2f79f40c0d62" - ], - "index": "pypi", - "version": "==3.5.1" - }, - "pytest-forked": { - "hashes": [ - "sha256:5fe33fbd07d7b1302c95310803a5e5726a4ff7f19d5a542b7ce57c76fed8135f", - "sha256:d352aaced2ebd54d42a65825722cb433004b4446ab5d2044851d9cc7a00c9e38" - ], - "version": "==1.0.2" - }, - "pytest-mock": { - "hashes": [ - "sha256:34520283d459cdf1d0dbb58a132df804697f1b966ecedf808bbf3d255af8f659", - "sha256:f1ab8aefe795204efe7a015900296d1719e7bf0f4a0558d71e8599da1d1309d0" - ], - "index": "pypi", - "version": "==1.11.1" - }, - "pytest-xdist": { - "hashes": [ - "sha256:5d1b1d4461518a6023d56dab62fb63670d6f7537f23e2708459a557329accf48", - "sha256:a8569b027db70112b290911ce2ed732121876632fb3f40b1d39cd2f72f58b147" - ], - "index": "pypi", - "version": "==1.30.0" - }, - "python-dateutil": { - "hashes": [ - "sha256:7e6584c74aeed623791615e26efd690f29817a27c73085b78e4bad02493df2fb", - "sha256:c89805f6f4d64db21ed966fda138f8a5ed7a4fdbc1a8ee329ce1b74e3c74da9e" - ], - "markers": "python_version >= '2.7'", - "version": "==2.8.0" - }, - "pytz": { - "hashes": [ - "sha256:1c557d7d0e871de1f5ccd5833f60fb2550652da6be2693c1e02300743d21500d", - "sha256:b02c06db6cf09c12dd25137e563b31700d3b80fcc4ad23abb7a315f2789819be" - ], - "index": "pypi", - "version": "==2019.3" - }, - "pyupgrade": { - "hashes": [ - "sha256:016ca25d9233c0abc09577981580a5f96a15f34b9d955d6dd40f709f5065c946", - "sha256:e8984d5c5b4c509b111720d73d85caa5fc75c90b37609b037d19b25b5b3c9eb5" - ], - "index": "pypi", - "version": "==1.24.1" - }, - "pyyaml": { - "hashes": [ - "sha256:0113bc0ec2ad727182326b61326afa3d1d8280ae1122493553fd6f4397f33df9", - "sha256:01adf0b6c6f61bd11af6e10ca52b7d4057dd0be0343eb9283c878cf3af56aee4", - "sha256:5124373960b0b3f4aa7df1707e63e9f109b5263eca5976c66e08b1c552d4eaf8", - "sha256:5ca4f10adbddae56d824b2c09668e91219bb178a1eee1faa56af6f99f11bf696", - "sha256:7907be34ffa3c5a32b60b95f4d95ea25361c951383a894fec31be7252b2b6f34", - "sha256:7ec9b2a4ed5cad025c2278a1e6a19c011c80a3caaac804fd2d329e9cc2c287c9", - "sha256:87ae4c829bb25b9fe99cf71fbb2140c448f534e24c998cc60f39ae4f94396a73", - "sha256:9de9919becc9cc2ff03637872a440195ac4241c80536632fffeb6a1e25a74299", - "sha256:a5a85b10e450c66b49f98846937e8cfca1db3127a9d5d1e31ca45c3d0bef4c5b", - "sha256:b0997827b4f6a7c286c01c5f60384d218dca4ed7d9efa945c3e1aa623d5709ae", - "sha256:b631ef96d3222e62861443cc89d6563ba3eeb816eeb96b2629345ab795e53681", - "sha256:bf47c0607522fdbca6c9e817a6e81b08491de50f3766a7a0e6a5be7905961b41", - "sha256:f81025eddd0327c7d4cfe9b62cf33190e1e736cc6e97502b3ec425f574b3e7a8" - ], - "version": "==5.1.2" - }, - "requests": { - "hashes": [ - "sha256:11e007a8a2aa0323f5a921e9e6a2d7e4e67d9877e85773fba9ba6419025cbeb4", - "sha256:9cf5292fcd0f598c671cfc1e0d7d1a7f13bb8085e9a590f48c010551dc6c4b31" - ], - "version": "==2.22.0" - }, - "six": { - "hashes": [ - "sha256:3350809f0555b11f552448330d0b52d5f24c91a322ea4a15ef22629740f3761c", - "sha256:d16a0141ec1a18405cd4ce8b4613101da75da0e9a7aec5bdd4fa804d0e0eba73" - ], - "version": "==1.12.0" - }, - "snowballstemmer": { - "hashes": [ - "sha256:209f257d7533fdb3cb73bdbd24f436239ca3b2fa67d56f6ff88e86be08cc5ef0", - "sha256:df3bac3df4c2c01363f3dd2cfa78cce2840a79b9f1c2d2de9ce8d31683992f52" - ], - "version": "==2.0.0" - }, - "sphinx": { - "hashes": [ - "sha256:0d586b0f8c2fc3cc6559c5e8fd6124628110514fda0e5d7c82e682d749d2e845", - "sha256:839a3ed6f6b092bb60f492024489cc9e6991360fb9f52ed6361acd510d261069" - ], - "index": "pypi", - "version": "==2.2.0" - }, - "sphinx-autobuild": { - "hashes": [ - "sha256:66388f81884666e3821edbe05dd53a0cfb68093873d17320d0610de8db28c74e", - "sha256:e60aea0789cab02fa32ee63c7acae5ef41c06f1434d9fd0a74250a61f5994692" - ], - "index": "pypi", - "version": "==0.7.1" - }, - "sphinx-autodoc-typehints": { - "hashes": [ - "sha256:0d968ec3ee4f7fe7695ab6facf5cd2d74d3cea67584277458ad9b2788ebbcc3b", - "sha256:8edca714fd3de8e43467d7e51dd3812fe999f8874408a639f7c38a9e1a5a4eb3" - ], - "index": "pypi", - "version": "==1.8.0" - }, - "sphinx-rtd-theme": { - "hashes": [ - "sha256:00cf895504a7895ee433807c62094cf1e95f065843bf3acd17037c3e9a2becd4", - "sha256:728607e34d60456d736cc7991fd236afb828b21b82f956c5ea75f94c8414040a" - ], - "index": "pypi", - "version": "==0.4.3" - }, - "sphinxcontrib-applehelp": { - "hashes": [ - "sha256:edaa0ab2b2bc74403149cb0209d6775c96de797dfd5b5e2a71981309efab3897", - "sha256:fb8dee85af95e5c30c91f10e7eb3c8967308518e0f7488a2828ef7bc191d0d5d" - ], - "version": "==1.0.1" - }, - "sphinxcontrib-devhelp": { - "hashes": [ - "sha256:6c64b077937330a9128a4da74586e8c2130262f014689b4b89e2d08ee7294a34", - "sha256:9512ecb00a2b0821a146736b39f7aeb90759834b07e81e8cc23a9c70bacb9981" - ], - "version": "==1.0.1" - }, - "sphinxcontrib-htmlhelp": { - "hashes": [ - "sha256:4670f99f8951bd78cd4ad2ab962f798f5618b17675c35c5ac3b2132a14ea8422", - "sha256:d4fd39a65a625c9df86d7fa8a2d9f3cd8299a3a4b15db63b50aac9e161d8eff7" - ], - "version": "==1.0.2" - }, - "sphinxcontrib-jsmath": { - "hashes": [ - "sha256:2ec2eaebfb78f3f2078e73666b1415417a116cc848b72e5172e596c871103178", - "sha256:a9925e4a4587247ed2191a22df5f6970656cb8ca2bd6284309578f2153e0c4b8" - ], - "version": "==1.0.1" - }, - "sphinxcontrib-qthelp": { - "hashes": [ - "sha256:513049b93031beb1f57d4daea74068a4feb77aa5630f856fcff2e50de14e9a20", - "sha256:79465ce11ae5694ff165becda529a600c754f4bc459778778c7017374d4d406f" - ], - "version": "==1.0.2" - }, - "sphinxcontrib-serializinghtml": { - "hashes": [ - "sha256:c0efb33f8052c04fd7a26c0a07f1678e8512e0faec19f4aa8f2473a8b81d5227", - "sha256:db6615af393650bf1151a6cd39120c29abaf93cc60db8c48eb2dddbfdc3a9768" - ], - "version": "==1.1.3" - }, - "sqlparse": { - "hashes": [ - "sha256:40afe6b8d4b1117e7dff5504d7a8ce07d9a1b15aeeade8a2d10f130a834f8177", - "sha256:7c3dca29c022744e95b547e867cee89f4fce4373f3549ccd8797d8eb52cdb873" - ], - "version": "==0.3.0" - }, - "text-unidecode": { - "hashes": [ - "sha256:1311f10e8b895935241623731c2ba64f4c455287888b18189350b67134a822e8", - "sha256:bad6603bb14d279193107714b288be206cac565dfa49aa5b105294dd5c4aab93" - ], - "version": "==1.3" - }, - "tokenize-rt": { - "hashes": [ - "sha256:2f44eee8f620102f8a03c50142795121faf86e020d208896ea7a7047bbe933cf", - "sha256:53f5c22d36e5c6f8e3fdbc6cb4dd151d1b3d38cea1b85b5fef6268f153733899" - ], - "version": "==3.2.0" - }, - "toml": { - "hashes": [ - "sha256:229f81c57791a41d65e399fc06bf0848bab550a9dfd5ed66df18ce5f05e73d5c", - "sha256:235682dd292d5899d361a811df37e04a8828a5b1da3115886b73cf81ebc9100e" - ], - "version": "==0.10.0" - }, - "tornado": { - "hashes": [ - "sha256:349884248c36801afa19e342a77cc4458caca694b0eda633f5878e458a44cb2c", - "sha256:398e0d35e086ba38a0427c3b37f4337327231942e731edaa6e9fd1865bbd6f60", - "sha256:4e73ef678b1a859f0cb29e1d895526a20ea64b5ffd510a2307b5998c7df24281", - "sha256:559bce3d31484b665259f50cd94c5c28b961b09315ccd838f284687245f416e5", - "sha256:abbe53a39734ef4aba061fca54e30c6b4639d3e1f59653f0da37a0003de148c7", - "sha256:c845db36ba616912074c5b1ee897f8e0124df269468f25e4fe21fe72f6edd7a9", - "sha256:c9399267c926a4e7c418baa5cbe91c7d1cf362d505a1ef898fde44a07c9dd8a5" - ], - "version": "==6.0.3" - }, - "urllib3": { - "hashes": [ - "sha256:3de946ffbed6e6746608990594d08faac602528ac7015ac28d33cee6a45b7398", - "sha256:9a107b99a5393caf59c7aa3c1249c16e6879447533d0887f4336dde834c7be86" - ], - "markers": "python_version >= '3.4'", - "version": "==1.25.6" - }, - "watchdog": { - "hashes": [ - "sha256:965f658d0732de3188211932aeb0bb457587f04f63ab4c1e33eab878e9de961d" - ], - "version": "==0.9.0" - }, - "wcwidth": { - "hashes": [ - "sha256:3df37372226d6e63e1b1e1eda15c594bca98a22d33a23832a90998faa96bc65e", - "sha256:f4ebe71925af7b40a864553f761ed559b43544f8f71746c2d756c7fe788ade7c" - ], - "version": "==0.1.7" - }, - "werkzeug": { - "hashes": [ - "sha256:7280924747b5733b246fe23972186c6b348f9ae29724135a6dfc1e53cea433e7", - "sha256:e5f4a1f98b52b18a93da705a7458e55afb26f32bff83ff5d19189f92462d65c4" - ], - "index": "pypi", - "version": "==0.16.0" - }, - "zipp": { - "hashes": [ - "sha256:3718b1cbcd963c7d4c5511a8240812904164b7f381b647143a89d3b98f9bcd8e", - "sha256:f06903e9f1f43b12d371004b4ac7b06ab39a44adc747266928ae6debfa7b3335" - ], - "version": "==0.6.0" - } - } -} diff --git a/app/config/settings.py b/app/config/settings.py index 6ceb780d86..0399b00015 100644 --- a/app/config/settings.py +++ b/app/config/settings.py @@ -184,6 +184,7 @@ def strtobool(val) -> bool: "LOCATION": "memcached:11211", } } +SPEEDINFO_STORAGE = "speedinfo.storage.cache.storage.CacheStorage" ROOT_URLCONF = "config.urls" SUBDOMAIN_URL_CONF = "grandchallenge.subdomains.urls" diff --git a/app/tests/core_tests/test_formatting.py b/app/tests/core_tests/test_formatting.py index 58499649d0..61befe9f9c 100644 --- a/app/tests/core_tests/test_formatting.py +++ b/app/tests/core_tests/test_formatting.py @@ -2,5 +2,7 @@ def test_code_is_black(): - res = call(["black", "--check", "--config", "/tmp/pyproject.toml", "/app"]) + res = call( + ["black", "--check", "--config", "/opt/poetry/pyproject.toml", "/app"] + ) assert res == 0 diff --git a/dockerfiles/web/Dockerfile b/dockerfiles/web/Dockerfile index 7a7e441db0..afa80e8764 100644 --- a/dockerfiles/web/Dockerfile +++ b/dockerfiles/web/Dockerfile @@ -18,19 +18,20 @@ RUN apt-get update && \ ENV PYTHONUNBUFFERED 1 -RUN mkdir -p /opt/pipenv /app /static /opt/static /dbox/Dropbox/media +RUN mkdir -p /opt/poetry /app /static /opt/static /dbox/Dropbox/media RUN python -m pip install -U pip -RUN python -m pip install -U pipenv +RUN python -m pip install -U poetry -# Install base python packages -WORKDIR /opt/pipenv -COPY Pipfile /opt/pipenv -COPY Pipfile.lock /opt/pipenv -RUN pipenv install --system - -RUN groupadd -g 2001 -r django && useradd -u 2001 -r -g django django +RUN groupadd -g 2001 -r django && useradd -m -u 2001 -r -g django django +RUN chown django:django /opt/poetry /app /static /opt/static /dbox/Dropbox/media +USER django:django -RUN chown django:django /app /static /opt/static /dbox/Dropbox/media +# Install base python packages +WORKDIR /opt/poetry +COPY pyproject.toml /opt/poetry +COPY poetry.lock /opt/poetry +RUN poetry install --no-dev +ENV PATH="/home/django/.cache/pypoetry/virtualenvs/grand-challenge.org-py3.7/bin:$PATH" ################### # Webpack # @@ -47,22 +48,18 @@ RUN npm install && npm run build ################### FROM base as test -WORKDIR /opt/pipenv -RUN pipenv install --system --dev +RUN poetry install -USER django:django WORKDIR /app COPY --chown=django:django ./app/ /app/ COPY --from=npm --chown=django:django /src/dist/ /opt/static/vendor/ RUN python manage.py collectstatic --noinput -COPY --chown=django:django pyproject.toml /tmp/pyproject.toml ################## # Dist Container # ################## FROM base as dist -USER django:django WORKDIR /app COPY --chown=django:django ./app/ /app/ COPY --from=npm --chown=django:django /src/dist/ /opt/static/vendor/ diff --git a/docs/getting-started.rst b/docs/getting-started.rst index 041db7c433..146bbc6d28 100644 --- a/docs/getting-started.rst +++ b/docs/getting-started.rst @@ -157,9 +157,9 @@ with the service running in the docker container. $ ./cycle_docker_compose.sh -2. Make sure you have ``pipenv`` installed. -3. In a new terminal, create a new virtual python environment using ``pipenv install --dev`` in this repository's root folder. -4. Activate the virtual env: ``pipenv shell``. +2. Make sure you have ``poetry`` installed. +3. In a new terminal, create a new virtual python environment using ``poetry install`` in this repository's root folder. +4. Activate the virtual env: ``poetry shell``. 5. Load the environmental variables contained in ``.env.local`` .. code-block:: console @@ -179,7 +179,7 @@ with the service running in the docker container. 8. To setup PyCharm: - 1. ``File`` -> ``Settings`` -> ``Project: grand-challenge.org`` -> ``Project Interpreter`` -> Select your created pipenv environment + 1. ``File`` -> ``Settings`` -> ``Project: grand-challenge.org`` -> ``Project Interpreter`` -> Select your created virtual environment 2. For each run/debug configuration, make sure the environmental variables are loaded, the easiest is to use `this plugin <https://plugins.jetbrains.com/plugin/7861-envfile>`_. Or they can be pasted after pressing the folder icon in the ``Environmental variables`` field. @@ -223,53 +223,27 @@ Having built the web container with ``cycle_docker_compose.sh`` you can use this This will create the docs in the ``docs/_build/html`` directory. -Using pipenv -~~~~~~~~~~~~ - -Alternatively, to build the docs locally you need to install the environment on your local machine, we use pipenv for this. - -1. Install pipenv - -.. code-block:: console - - $ pip install pipenv - -2. Install the environment from the root of the ``grand-challenge.org`` repo with - -.. code-block:: console - - $ pipenv install - -3. You can then launch a shell in this newly created environment to build the docs - -.. code-block:: console - - $ pipenv shell - $ cd docs - $ make html - - Adding new dependencies ----------------------- -Pipenv is used to manage the dependencies of the platform. +Poetry is used to manage the dependencies of the platform. To add a new dependency use .. code-block:: console - $ pipenv install <whatever> + $ poetry add <whatever> -and then commit the ``Pipfile`` and ``Pipfile.lock``. -If this is a development dependency then use the ``--dev`` flag, see the ``pipenv`` documentation for more details. +and then commit the ``pyproject.toml`` and ``poetry.lock``. +If this is a development dependency then use the ``--dev`` flag, see the ``poetry`` documentation for more details. -Versions are unpinned in the ``Pipfile``, to update the resolved dependencies use +Versions are unpinned in the ``pyproject.toml`` file, to update the resolved dependencies use .. code-block:: console - $ pipenv update + $ poetry lock -and commit the update ``Pipfile.lock``. +and commit the update ``poetry.lock``. The containers will need to be rebuilt after running these steps, so stop the ``cycle_docker_compose.sh`` process with ``CTRL+C`` and restart. Going to Production diff --git a/poetry.lock b/poetry.lock new file mode 100644 index 0000000000..c185163f4b --- /dev/null +++ b/poetry.lock @@ -0,0 +1,1742 @@ +[[package]] +category = "dev" +description = "A configurable sidebar-enabled Sphinx theme" +name = "alabaster" +optional = false +python-versions = "*" +version = "0.7.12" + +[[package]] +category = "main" +description = "Low-level AMQP client for Python (fork of amqplib)." +name = "amqp" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +version = "2.5.1" + +[package.dependencies] +vine = ">=1.1.3,<5.0.0a1" + +[[package]] +category = "dev" +description = "apipkg: namespace control and lazy-import mechanism" +name = "apipkg" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "1.5" + +[[package]] +category = "dev" +description = "A small Python module for determining appropriate platform-specific dirs, e.g. a \"user data dir\"." +name = "appdirs" +optional = false +python-versions = "*" +version = "1.4.3" + +[[package]] +category = "dev" +description = "An unobtrusive argparse wrapper with natural syntax" +name = "argh" +optional = false +python-versions = "*" +version = "0.26.2" + +[[package]] +category = "dev" +description = "Atomic file writes." +name = "atomicwrites" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "1.3.0" + +[[package]] +category = "main" +description = "Classes Without Boilerplate" +name = "attrs" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "19.3.0" + +[[package]] +category = "dev" +description = "Internationalization utilities" +name = "babel" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "2.7.0" + +[package.dependencies] +pytz = ">=2015.7" + +[[package]] +category = "main" +description = "Screen-scraping library" +name = "beautifulsoup4" +optional = false +python-versions = "*" +version = "4.8.1" + +[package.dependencies] +soupsieve = ">=1.2" + +[[package]] +category = "main" +description = "Python multiprocessing fork with improvements and bugfixes" +name = "billiard" +optional = false +python-versions = "*" +version = "3.6.1.0" + +[[package]] +category = "dev" +description = "The uncompromising code formatter." +name = "black" +optional = false +python-versions = ">=3.6" +version = "19.3b0" + +[package.dependencies] +appdirs = "*" +attrs = ">=18.1.0" +click = ">=6.5" +toml = ">=0.9.4" + +[[package]] +category = "main" +description = "An easy safelist-based HTML-sanitizing tool." +name = "bleach" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "3.1.0" + +[package.dependencies] +six = ">=1.9.0" +webencodings = "*" + +[[package]] +category = "main" +description = "The AWS SDK for Python" +name = "boto3" +optional = false +python-versions = "*" +version = "1.10.1" + +[package.dependencies] +botocore = ">=1.13.1,<1.14.0" +jmespath = ">=0.7.1,<1.0.0" +s3transfer = ">=0.2.0,<0.3.0" + +[[package]] +category = "main" +description = "Low-level, data-driven core of boto 3." +name = "botocore" +optional = false +python-versions = "*" +version = "1.13.1" + +[package.dependencies] +docutils = ">=0.10,<0.16" +jmespath = ">=0.7.1,<1.0.0" + +[package.dependencies.python-dateutil] +python = ">=2.7" +version = ">=2.1,<3.0.0" + +[package.dependencies.urllib3] +python = ">=3.4" +version = ">=1.20,<1.26" + +[[package]] +category = "main" +description = "Python bindings for the Brotli compression library" +name = "brotli" +optional = false +python-versions = "*" +version = "1.0.7" + +[[package]] +category = "main" +description = "Distributed Task Queue." +name = "celery" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "4.3.0" + +[package.dependencies] +billiard = ">=3.6.0,<4.0" +kombu = ">=4.4.0,<5.0" +pytz = ">0.0-dev" +vine = ">=1.3.0" + +[[package]] +category = "main" +description = "Python package for providing Mozilla's CA Bundle." +name = "certifi" +optional = false +python-versions = "*" +version = "2019.9.11" + +[[package]] +category = "main" +description = "Foreign Function Interface for Python calling C code." +name = "cffi" +optional = false +python-versions = "*" +version = "1.13.1" + +[package.dependencies] +pycparser = "*" + +[[package]] +category = "main" +description = "Universal encoding detector for Python 2 and 3" +name = "chardet" +optional = false +python-versions = "*" +version = "3.0.4" + +[[package]] +category = "dev" +description = "Composable command line interface toolkit" +name = "click" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "7.0" + +[[package]] +category = "dev" +description = "Cross-platform colored terminal text." +marker = "sys_platform == \"win32\"" +name = "colorama" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "0.4.1" + +[[package]] +category = "dev" +description = "Code coverage measurement for Python" +name = "coverage" +optional = false +python-versions = "*" +version = "4.4.2" + +[[package]] +category = "main" +description = "Composable style cycles" +name = "cycler" +optional = false +python-versions = "*" +version = "0.10.0" + +[package.dependencies] +six = "*" + +[[package]] +category = "main" +description = "Better living through Python with decorators" +name = "decorator" +optional = false +python-versions = ">=2.6, !=3.0.*, !=3.1.*" +version = "4.4.0" + +[[package]] +category = "main" +description = "XML bomb protection for Python stdlib modules" +name = "defusedxml" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +version = "0.6.0" + +[[package]] +category = "main" +description = "A high-level Python Web framework that encourages rapid development and clean, pragmatic design." +name = "django" +optional = false +python-versions = ">=3.5" +version = "2.2.6" + +[package.dependencies] +pytz = "*" +sqlparse = "*" + +[[package]] +category = "main" +description = "A helper class for handling configuration defaults of packaged apps gracefully." +name = "django-appconf" +optional = false +python-versions = "*" +version = "1.0.3" + +[package.dependencies] +django = "*" +six = "*" + +[[package]] +category = "main" +description = "Fresh autocompletes for Django" +name = "django-autocomplete-light" +optional = false +python-versions = "*" +version = "3.4.1" + +[[package]] +category = "main" +description = "Database-backed Periodic Tasks." +name = "django-celery-beat" +optional = false +python-versions = "*" +version = "1.5.0" + +[package.dependencies] +django-timezone-field = ">=2.0" +python-crontab = ">=2.3.4" + +[[package]] +category = "main" +description = "An async Django email backend using celery" +name = "django-celery-email" +optional = false +python-versions = "*" +version = "2.0.2" + +[package.dependencies] +celery = ">=4.0" +django = ">=1.8" +django-appconf = "*" + +[[package]] +category = "main" +description = "Celery result backends for Django." +name = "django-celery-results" +optional = false +python-versions = "*" +version = "1.1.2" + +[package.dependencies] +celery = ">=4.3,<5.0" + +[[package]] +category = "main" +description = "For- and backwards compatibility layer for Django 1.4, 1.7, 1.8, 1.9, 1.10, and 1.11" +name = "django-compat" +optional = false +python-versions = "*" +version = "1.0.15" + +[package.dependencies] +six = ">=1.10.0" + +[[package]] +category = "main" +description = "django-cors-headers is a Django application for handling the server headers required for Cross-Origin Resource Sharing (CORS)." +name = "django-cors-headers" +optional = false +python-versions = ">=3.5" +version = "3.1.1" + +[package.dependencies] +Django = ">=1.11" + +[[package]] +category = "main" +description = "Provides a country field for Django models." +name = "django-countries" +optional = false +python-versions = "*" +version = "5.5" + +[package.dependencies] +six = "*" + +[[package]] +category = "main" +description = "Best way to have Django DRY forms" +name = "django-crispy-forms" +optional = false +python-versions = "*" +version = "1.8.0" + +[[package]] +category = "dev" +description = "A configurable set of panels that display various debug information about the current request/response." +name = "django-debug-toolbar" +optional = false +python-versions = ">=3.5" +version = "2.0" + +[package.dependencies] +Django = ">=1.11" +sqlparse = ">=0.2.0" + +[[package]] +category = "main" +description = "Extensions for Django" +name = "django-extensions" +optional = false +python-versions = "*" +version = "2.2.5" + +[package.dependencies] +six = ">=1.2" + +[[package]] +category = "main" +description = "Favicon app for django" +name = "django-favicon-plus" +optional = false +python-versions = "*" +version = "0.0.8" + +[package.dependencies] +django = "*" +django-compat = "*" +pillow = "*" + +[[package]] +category = "main" +description = "Implementation of per object permissions for Django." +name = "django-guardian" +optional = false +python-versions = ">=3.5" +version = "2.1.0" + +[[package]] +category = "main" +description = "Select2 option fields for Django" +name = "django-select2" +optional = false +python-versions = "*" +version = "7.1.1" + +[package.dependencies] +django = ">=2.0" +django-appconf = ">=0.6.0" + +[[package]] +category = "main" +description = "Store model history and view/revert changes from admin site." +name = "django-simple-history" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "2.7.3" + +[package.dependencies] +six = "*" + +[[package]] +category = "main" +description = "Live profiling tool for Django framework to measure views performance" +name = "django-speedinfo" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "2.0.0" + +[[package]] +category = "main" +description = "Support for many storage backends in Django" +name = "django-storages" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "1.7.2" + +[package.dependencies] +Django = ">=1.11" + +[[package]] +category = "main" +description = "Summernote plugin for Django" +name = "django-summernote" +optional = false +python-versions = "*" +version = "0.8.11.4" + +[package.dependencies] +django = "*" + +[[package]] +category = "main" +description = "A Django app providing database and form fields for pytz timezone objects." +name = "django-timezone-field" +optional = false +python-versions = "*" +version = "3.1" + +[package.dependencies] +django = ">=1.11" +pytz = "*" + +[[package]] +category = "main" +description = "Complete user management application for Django" +name = "django-userena-ce" +optional = false +python-versions = "*" +version = "4.1.1" + +[package.dependencies] +Django = ">=1.11" +django-guardian = ">=1.4.2" +easy-thumbnails = "*" +html2text = "*" + +[[package]] +category = "main" +description = "Web APIs for Django, made easy." +name = "djangorestframework" +optional = false +python-versions = ">=3.5" +version = "3.10.3" + +[[package]] +category = "main" +description = "django-guardian support for Django REST Framework" +name = "djangorestframework-guardian" +optional = false +python-versions = "*" +version = "0.3.0" + +[package.dependencies] +django = "*" +django-guardian = "*" +djangorestframework = "*" + +[[package]] +category = "main" +description = "A Python library for the Docker Engine API." +name = "docker" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +version = "4.1.0" + +[package.dependencies] +requests = ">=2.14.2,<2.18.0 || >2.18.0" +six = ">=1.4.0" +websocket-client = ">=0.32.0" + +[package.dependencies.pypiwin32] +python = ">=3.6" +version = "223" + +[[package]] +category = "main" +description = "Docutils -- Python Documentation Utilities" +name = "docutils" +optional = false +python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" +version = "0.15.2" + +[[package]] +category = "main" +description = "Easy thumbnails for Django" +name = "easy-thumbnails" +optional = false +python-versions = "*" +version = "2.6" + +[package.dependencies] +[package.dependencies.django] +python = ">=3" +version = ">=1.8" + +[package.dependencies.pillow] +python = ">=2.7" +version = "*" + +[[package]] +category = "main" +description = "Discover and load entry points from installed packages." +name = "entrypoints" +optional = false +python-versions = ">=2.7" +version = "0.3" + +[[package]] +category = "dev" +description = "execnet: rapid multi-Python deployment" +name = "execnet" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "1.7.1" + +[package.dependencies] +apipkg = ">=1.4" + +[[package]] +category = "dev" +description = "A versatile test fixtures replacement based on thoughtbot's factory_bot for Ruby." +name = "factory-boy" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "2.12.0" + +[package.dependencies] +Faker = ">=0.7.0" + +[[package]] +category = "dev" +description = "Faker is a Python package that generates fake data for you." +name = "faker" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "2.0.3" + +[package.dependencies] +python-dateutil = ">=2.4" +six = ">=1.10" +text-unidecode = "1.3" + +[[package]] +category = "main" +description = "WSGI HTTP Server for UNIX" +name = "gunicorn" +optional = false +python-versions = ">=2.6, !=3.0.*, !=3.1.*" +version = "19.9.0" + +[[package]] +category = "main" +description = "Turn HTML into equivalent Markdown-structured text." +name = "html2text" +optional = false +python-versions = ">=3.5" +version = "2019.9.26" + +[[package]] +category = "main" +description = "A comprehensive HTTP client library." +name = "httplib2" +optional = false +python-versions = "*" +version = "0.14.0" + +[[package]] +category = "main" +description = "Internationalized Domain Names in Applications (IDNA)" +name = "idna" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "2.8" + +[[package]] +category = "main" +description = "Image transformation, compression, and decompression codecs" +marker = "platform_system == \"Windows\"" +name = "imagecodecs" +optional = false +python-versions = ">=2.7" +version = "2019.5.22" + +[package.dependencies] +numpy = ">=1.11.3" + +[[package]] +category = "dev" +description = "Getting image size from png/jpeg/jpeg2000/gif file" +name = "imagesize" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "1.1.0" + +[[package]] +category = "main" +description = "Read metadata from Python packages" +name = "importlib-metadata" +optional = false +python-versions = ">=2.7,!=3.0,!=3.1,!=3.2,!=3.3" +version = "0.23" + +[package.dependencies] +zipp = ">=0.5" + +[[package]] +category = "main" +description = "Vestigial utilities from IPython" +name = "ipython-genutils" +optional = false +python-versions = "*" +version = "0.2.0" + +[[package]] +category = "main" +description = "A very fast and expressive template engine." +name = "jinja2" +optional = false +python-versions = "*" +version = "2.10.3" + +[package.dependencies] +MarkupSafe = ">=0.23" + +[[package]] +category = "main" +description = "JSON Matching Expressions" +name = "jmespath" +optional = false +python-versions = "*" +version = "0.9.4" + +[[package]] +category = "main" +description = "An implementation of JSON Schema validation for Python" +name = "jsonschema" +optional = false +python-versions = "*" +version = "3.1.1" + +[package.dependencies] +attrs = ">=17.4.0" +importlib-metadata = "*" +pyrsistent = ">=0.14.0" +setuptools = "*" +six = ">=1.11.0" + +[[package]] +category = "main" +description = "Jupyter core package. A base package on which Jupyter projects rely." +name = "jupyter-core" +optional = false +python-versions = ">=2.7, !=3.0, !=3.1, !=3.2" +version = "4.6.1" + +[package.dependencies] +pywin32 = ">=1.0" +traitlets = "*" + +[[package]] +category = "main" +description = "A fast implementation of the Cassowary constraint solver" +name = "kiwisolver" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "1.1.0" + +[package.dependencies] +setuptools = "*" + +[[package]] +category = "main" +description = "Messaging library for Python." +name = "kombu" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +version = "4.6.5" + +[package.dependencies] +amqp = "2.5.1" +importlib-metadata = ">=0.18" + +[[package]] +category = "dev" +description = "Python LiveReload is an awesome tool for web developers" +name = "livereload" +optional = false +python-versions = "*" +version = "2.6.1" + +[package.dependencies] +six = "*" +tornado = "*" + +[[package]] +category = "main" +description = "Safely add untrusted strings to HTML/XML markup." +name = "markupsafe" +optional = false +python-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*" +version = "1.1.1" + +[[package]] +category = "main" +description = "Python plotting package" +name = "matplotlib" +optional = false +python-versions = ">=3.6" +version = "3.1.1" + +[package.dependencies] +cycler = ">=0.10" +kiwisolver = ">=1.0.1" +numpy = ">=1.11" +pyparsing = ">=2.0.1,<2.0.4 || >2.0.4,<2.1.2 || >2.1.2,<2.1.6 || >2.1.6" +python-dateutil = ">=2.1" + +[[package]] +category = "main" +description = "The fastest markdown parser in pure Python" +name = "mistune" +optional = false +python-versions = "*" +version = "0.8.4" + +[[package]] +category = "main" +description = "More routines for operating on iterables, beyond itertools" +name = "more-itertools" +optional = false +python-versions = ">=3.4" +version = "7.2.0" + +[[package]] +category = "main" +description = "Converting Jupyter Notebooks" +name = "nbconvert" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +version = "5.6.0" + +[package.dependencies] +bleach = "*" +defusedxml = "*" +entrypoints = ">=0.2.2" +jinja2 = ">=2.4" +jupyter-core = "*" +mistune = ">=0.8.1,<2" +nbformat = ">=4.4" +pandocfilters = ">=1.4.1" +pygments = "*" +testpath = "*" +traitlets = ">=4.2" + +[[package]] +category = "main" +description = "The Jupyter Notebook format" +name = "nbformat" +optional = false +python-versions = "*" +version = "4.4.0" + +[package.dependencies] +ipython-genutils = "*" +jsonschema = ">=2.4,<2.5.0 || >2.5.0" +jupyter-core = "*" +traitlets = ">=4.1" + +[[package]] +category = "main" +description = "NumPy is the fundamental package for array computing with Python." +name = "numpy" +optional = false +python-versions = ">=3.5" +version = "1.17.3" + +[[package]] +category = "main" +description = "library for OAuth version 1.9" +name = "oauth2" +optional = false +python-versions = "*" +version = "1.9.0.post1" + +[package.dependencies] +httplib2 = "*" + +[[package]] +category = "main" +description = "A generic, spec-compliant, thorough implementation of the OAuth request-signing logic" +name = "oauthlib" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "3.1.0" + +[[package]] +category = "dev" +description = "Core utilities for Python packages" +name = "packaging" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "19.2" + +[package.dependencies] +pyparsing = ">=2.0.2" +six = "*" + +[[package]] +category = "main" +description = "Utilities for writing pandoc filters in python" +name = "pandocfilters" +optional = false +python-versions = "*" +version = "1.4.2" + +[[package]] +category = "dev" +description = "File system general utilities" +name = "pathtools" +optional = false +python-versions = "*" +version = "0.1.2" + +[[package]] +category = "main" +description = "Python Imaging Library (Fork)" +name = "pillow" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +version = "6.2.1" + +[[package]] +category = "main" +description = "Interface Python with pkg-config" +name = "pkgconfig" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" +version = "1.5.1" + +[[package]] +category = "dev" +description = "plugin and hook calling mechanisms for python" +name = "pluggy" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "0.13.0" + +[package.dependencies] +[package.dependencies.importlib-metadata] +python = "<3.8" +version = ">=0.12" + +[[package]] +category = "dev" +description = "Utility that helps with local TCP ports managment. It can find an unused TCP localhost port and remember the association." +name = "port-for" +optional = false +python-versions = "*" +version = "0.3.1" + +[[package]] +category = "main" +description = "psycopg2 - Python-PostgreSQL Database Adapter" +name = "psycopg2" +optional = false +python-versions = ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*" +version = "2.8.4" + +[[package]] +category = "dev" +description = "library with cross-python path, ini-parsing, io, code, log facilities" +name = "py" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "1.8.0" + +[[package]] +category = "main" +description = "C parser in Python" +name = "pycparser" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "2.19" + +[[package]] +category = "main" +description = "Pygments is a syntax highlighting package written in Python." +name = "pygments" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +version = "2.4.2" + +[[package]] +category = "main" +description = "JSON Web Token implementation in Python" +name = "pyjwt" +optional = false +python-versions = "*" +version = "1.7.1" + +[[package]] +category = "main" +description = "Python parsing module" +name = "pyparsing" +optional = false +python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" +version = "2.4.2" + +[[package]] +category = "main" +description = "" +marker = "sys_platform == \"win32\" and python_version >= \"3.6\"" +name = "pypiwin32" +optional = false +python-versions = "*" +version = "223" + +[package.dependencies] +pywin32 = ">=223" + +[[package]] +category = "main" +description = "Persistent/Functional/Immutable data structures" +name = "pyrsistent" +optional = false +python-versions = "*" +version = "0.15.4" + +[package.dependencies] +six = "*" + +[[package]] +category = "dev" +description = "pytest: simple powerful testing with Python" +name = "pytest" +optional = false +python-versions = ">=3.5" +version = "5.2.1" + +[package.dependencies] +atomicwrites = ">=1.0" +attrs = ">=17.4.0" +colorama = "*" +more-itertools = ">=4.0.0" +packaging = "*" +pluggy = ">=0.12,<1.0" +py = ">=1.5.0" +wcwidth = "*" + +[package.dependencies.importlib-metadata] +python = "<3.8" +version = ">=0.12" + +[[package]] +category = "dev" +description = "Pytest plugin for measuring coverage." +name = "pytest-cov" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "2.8.1" + +[package.dependencies] +coverage = ">=4.4" +pytest = ">=3.6" + +[[package]] +category = "dev" +description = "A Django plugin for pytest." +name = "pytest-django" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "3.6.0" + +[package.dependencies] +pytest = ">=3.6" + +[[package]] +category = "dev" +description = "run tests in isolated forked subprocesses" +name = "pytest-forked" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "1.1.3" + +[package.dependencies] +pytest = ">=3.1.0" + +[[package]] +category = "dev" +description = "Thin-wrapper around the mock package for easier use with py.test" +name = "pytest-mock" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "1.11.2" + +[package.dependencies] +pytest = ">=2.7" + +[[package]] +category = "dev" +description = "pytest xdist plugin for distributed testing and loop-on-failing modes" +name = "pytest-xdist" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "1.30.0" + +[package.dependencies] +execnet = ">=1.1" +pytest = ">=4.4.0" +pytest-forked = "*" +six = "*" + +[[package]] +category = "main" +description = "Python Crontab API" +name = "python-crontab" +optional = false +python-versions = "*" +version = "2.4.0" + +[package.dependencies] +python-dateutil = "*" + +[[package]] +category = "main" +description = "Extensions to the standard Python datetime module" +name = "python-dateutil" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" +version = "2.8.0" + +[package.dependencies] +six = ">=1.5" + +[[package]] +category = "main" +description = "File type identification using libmagic" +name = "python-magic" +optional = false +python-versions = "*" +version = "0.4.15" + +[[package]] +category = "main" +description = "Pure python memcached client" +name = "python-memcached" +optional = false +python-versions = "*" +version = "1.59" + +[package.dependencies] +six = ">=1.4.0" + +[[package]] +category = "main" +description = "OpenID support for modern servers and consumers." +marker = "python_version >= \"3.0\"" +name = "python3-openid" +optional = false +python-versions = "*" +version = "3.1.0" + +[package.dependencies] +defusedxml = "*" + +[[package]] +category = "main" +description = "World timezone definitions, modern and historical" +name = "pytz" +optional = false +python-versions = "*" +version = "2019.3" + +[[package]] +category = "dev" +description = "A tool to automatically upgrade syntax for newer versions." +name = "pyupgrade" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +version = "1.25.1" + +[package.dependencies] +tokenize-rt = ">=3.2.0" + +[[package]] +category = "main" +description = "binding for the libvips image processing library, API mode" +name = "pyvips" +optional = false +python-versions = "*" +version = "2.1.8" + +[package.dependencies] +cffi = ">=1.0.0" +pkgconfig = "*" + +[[package]] +category = "main" +description = "Python for Window Extensions" +marker = "sys_platform == \"win32\" and python_version >= \"3.6\" or sys_platform == \"win32\"" +name = "pywin32" +optional = false +python-versions = "*" +version = "225" + +[[package]] +category = "dev" +description = "YAML parser and emitter for Python" +name = "pyyaml" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "5.1.2" + +[[package]] +category = "main" +description = "Python client for Redis key-value store" +name = "redis" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "3.3.11" + +[[package]] +category = "main" +description = "Python HTTP for Humans." +name = "requests" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +version = "2.22.0" + +[package.dependencies] +certifi = ">=2017.4.17" +chardet = ">=3.0.2,<3.1.0" +idna = ">=2.5,<2.9" +urllib3 = ">=1.21.1,<1.25.0 || >1.25.0,<1.25.1 || >1.25.1,<1.26" + +[[package]] +category = "main" +description = "File transport adapter for Requests" +name = "requests-file" +optional = false +python-versions = "*" +version = "1.4.3" + +[package.dependencies] +requests = ">=1.0.0" +six = "*" + +[[package]] +category = "main" +description = "OAuthlib authentication support for Requests." +name = "requests-oauthlib" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "1.2.0" + +[package.dependencies] +oauthlib = ">=3.0.0" +requests = ">=2.0.0" + +[[package]] +category = "main" +description = "An Amazon S3 Transfer Manager" +name = "s3transfer" +optional = false +python-versions = "*" +version = "0.2.1" + +[package.dependencies] +botocore = ">=1.12.36,<2.0.0" + +[[package]] +category = "main" +description = "Python client for Sentry (https://getsentry.com)" +name = "sentry-sdk" +optional = false +python-versions = "*" +version = "0.13.0" + +[package.dependencies] +certifi = "*" +urllib3 = ">=1.9" + +[[package]] +category = "main" +description = "SimpleITK is a simplified interface to the Insight Toolkit (ITK) for image registration and segmentation" +name = "simpleitk" +optional = false +python-versions = "*" +version = "1.2.3" + +[[package]] +category = "main" +description = "Python 2 and 3 compatibility utilities" +name = "six" +optional = false +python-versions = ">=2.6, !=3.0.*, !=3.1.*" +version = "1.12.0" + +[[package]] +category = "dev" +description = "This package provides 26 stemmers for 25 languages generated from Snowball algorithms." +name = "snowballstemmer" +optional = false +python-versions = "*" +version = "2.0.0" + +[[package]] +category = "main" +description = "Python Social Authentication, Django integration." +name = "social-auth-app-django" +optional = false +python-versions = "*" +version = "3.1.0" + +[package.dependencies] +six = "*" +social-auth-core = ">=1.2.0" + +[[package]] +category = "main" +description = "Python social authentication made simple." +name = "social-auth-core" +optional = false +python-versions = "*" +version = "3.2.0" + +[package.dependencies] +PyJWT = ">=1.4.0" +oauthlib = ">=1.0.3" +requests = ">=2.9.1" +requests-oauthlib = ">=0.6.1" +six = ">=1.10.0" + +[package.dependencies.defusedxml] +python = ">=3.0" +version = ">=0.5.0rc1" + +[package.dependencies.python3-openid] +python = ">=3.0" +version = ">=3.0.10" + +[[package]] +category = "main" +description = "Thumbnails for Django" +name = "sorl-thumbnail" +optional = false +python-versions = "*" +version = "12.5.0" + +[[package]] +category = "main" +description = "A modern CSS selector implementation for Beautiful Soup." +name = "soupsieve" +optional = false +python-versions = "*" +version = "1.9.4" + +[[package]] +category = "dev" +description = "Python documentation generator" +name = "sphinx" +optional = false +python-versions = ">=3.5" +version = "2.2.0" + +[package.dependencies] +Jinja2 = ">=2.3" +Pygments = ">=2.0" +alabaster = ">=0.7,<0.8" +babel = ">=1.3,<2.0 || >2.0" +colorama = ">=0.3.5" +docutils = ">=0.12" +imagesize = "*" +packaging = "*" +requests = ">=2.5.0" +setuptools = "*" +snowballstemmer = ">=1.1" +sphinxcontrib-applehelp = "*" +sphinxcontrib-devhelp = "*" +sphinxcontrib-htmlhelp = "*" +sphinxcontrib-jsmath = "*" +sphinxcontrib-qthelp = "*" +sphinxcontrib-serializinghtml = "*" + +[[package]] +category = "dev" +description = "Watch a Sphinx directory and rebuild the documentation when a change is detected. Also includes a livereload enabled web server." +name = "sphinx-autobuild" +optional = false +python-versions = "*" +version = "0.7.1" + +[package.dependencies] +PyYAML = ">=3.10" +argh = ">=0.24.1" +livereload = ">=2.3.0" +pathtools = ">=0.1.2" +port-for = "0.3.1" +tornado = ">=3.2" +watchdog = ">=0.7.1" + +[[package]] +category = "dev" +description = "Type hints (PEP 484) support for the Sphinx autodoc extension" +name = "sphinx-autodoc-typehints" +optional = false +python-versions = ">=3.5.2" +version = "1.8.0" + +[package.dependencies] +Sphinx = ">=2.1" + +[[package]] +category = "dev" +description = "Read the Docs theme for Sphinx" +name = "sphinx-rtd-theme" +optional = false +python-versions = "*" +version = "0.4.3" + +[package.dependencies] +sphinx = "*" + +[[package]] +category = "dev" +description = "" +name = "sphinxcontrib-applehelp" +optional = false +python-versions = "*" +version = "1.0.1" + +[[package]] +category = "dev" +description = "" +name = "sphinxcontrib-devhelp" +optional = false +python-versions = "*" +version = "1.0.1" + +[[package]] +category = "dev" +description = "" +name = "sphinxcontrib-htmlhelp" +optional = false +python-versions = "*" +version = "1.0.2" + +[[package]] +category = "dev" +description = "A sphinx extension which renders display math in HTML via JavaScript" +name = "sphinxcontrib-jsmath" +optional = false +python-versions = ">=3.5" +version = "1.0.1" + +[[package]] +category = "dev" +description = "" +name = "sphinxcontrib-qthelp" +optional = false +python-versions = "*" +version = "1.0.2" + +[[package]] +category = "dev" +description = "" +name = "sphinxcontrib-serializinghtml" +optional = false +python-versions = "*" +version = "1.1.3" + +[[package]] +category = "main" +description = "Non-validating SQL parser" +name = "sqlparse" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "0.3.0" + +[[package]] +category = "main" +description = "Test utilities for code working with files and commands" +name = "testpath" +optional = false +python-versions = "*" +version = "0.4.2" + +[[package]] +category = "dev" +description = "The most basic Text::Unidecode port" +name = "text-unidecode" +optional = false +python-versions = "*" +version = "1.3" + +[[package]] +category = "main" +description = "Read and write TIFF(r) files" +name = "tifffile" +optional = false +python-versions = ">=2.7" +version = "2019.1.4" + +[package.dependencies] +imagecodecs = ">=2019.1.1" +numpy = ">=1.11.3" + +[[package]] +category = "main" +description = "Accurately separate the TLD from the registered domain and subdomains of a URL, using the Public Suffix List. By default, this includes the public ICANN TLDs and their exceptions. You can optionally support the Public Suffix List's private domains as well." +name = "tldextract" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "2.2.2" + +[package.dependencies] +idna = "*" +requests = ">=2.1.0" +requests-file = ">=1.4" +setuptools = "*" + +[[package]] +category = "dev" +description = "A wrapper around the stdlib `tokenize` which roundtrips." +name = "tokenize-rt" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" +version = "3.2.0" + +[[package]] +category = "dev" +description = "Python Library for Tom's Obvious, Minimal Language" +name = "toml" +optional = false +python-versions = "*" +version = "0.10.0" + +[[package]] +category = "dev" +description = "Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed." +name = "tornado" +optional = false +python-versions = ">= 3.5" +version = "6.0.3" + +[[package]] +category = "main" +description = "Traitlets Python config system" +name = "traitlets" +optional = false +python-versions = "*" +version = "4.3.3" + +[package.dependencies] +decorator = "*" +ipython-genutils = "*" +six = "*" + +[[package]] +category = "main" +description = "HTTP library with thread-safe connection pooling, file post, and more." +name = "urllib3" +optional = false +python-versions = "*" +version = "1.22" + +[[package]] +category = "main" +description = "Promises, promises, promises." +name = "vine" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "1.3.0" + +[[package]] +category = "dev" +description = "Filesystem events monitoring" +name = "watchdog" +optional = false +python-versions = "*" +version = "0.9.0" + +[package.dependencies] +PyYAML = ">=3.10" +argh = ">=0.24.1" +pathtools = ">=0.1.1" + +[[package]] +category = "dev" +description = "Measures number of Terminal column cells of wide-character codes" +name = "wcwidth" +optional = false +python-versions = "*" +version = "0.1.7" + +[[package]] +category = "main" +description = "Character encoding aliases for legacy web content" +name = "webencodings" +optional = false +python-versions = "*" +version = "0.5.1" + +[[package]] +category = "main" +description = "WebSocket client for Python. hybi13 is supported." +name = "websocket-client" +optional = false +python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "0.56.0" + +[package.dependencies] +six = "*" + +[[package]] +category = "dev" +description = "The comprehensive WSGI web application library." +name = "werkzeug" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +version = "0.16.0" + +[[package]] +category = "main" +description = "Radically simplified static file serving for WSGI applications" +name = "whitenoise" +optional = false +python-versions = "*" +version = "4.1.4" + +[[package]] +category = "main" +description = "Backport of pathlib-compatible object wrapper for zip files" +name = "zipp" +optional = false +python-versions = ">=2.7" +version = "0.6.0" + +[package.dependencies] +more-itertools = "*" + +[metadata] +content-hash = "54122c835ab71dd5f2622914812254dcb7281ed3806b3a1f99c4a0d851f9cd0f" +python-versions = ">=3.7" + +[metadata.hashes] +alabaster = ["446438bdcca0e05bd45ea2de1668c1d9b032e1a9154c2c259092d77031ddd359", "a661d72d58e6ea8a57f7a86e37d86716863ee5e92788398526d58b26a4e4dc02"] +amqp = ["19a917e260178b8d410122712bac69cb3e6db010d68f6101e7307508aded5e68", "19d851b879a471fcfdcf01df9936cff924f422baa77653289f7095dedd5fb26a"] +apipkg = ["37228cda29411948b422fae072f57e31d3396d2ee1c9783775980ee9c9990af6", "58587dd4dc3daefad0487f6d9ae32b4542b185e1c36db6993290e7c41ca2b47c"] +appdirs = ["9e5896d1372858f8dd3344faf4e5014d21849c756c8d5701f78f8a103b372d92", "d8b24664561d0d34ddfaec54636d502d7cea6e29c3eaf68f3df6180863e2166e"] +argh = ["a9b3aaa1904eeb78e32394cd46c6f37ac0fb4af6dc488daa58971bdc7d7fcaf3", "e9535b8c84dc9571a48999094fda7f33e63c3f1b74f3e5f3ac0105a58405bb65"] +atomicwrites = ["03472c30eb2c5d1ba9227e4c2ca66ab8287fbfbbda3888aa93dc2e28fc6811b4", "75a9445bac02d8d058d5e1fe689654ba5a6556a1dfd8ce6ec55a0ed79866cfa6"] +attrs = ["08a96c641c3a74e44eb59afb61a24f2cb9f4d7188748e76ba4bb5edfa3cb7d1c", "f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72"] +babel = ["af92e6106cb7c55286b25b38ad7695f8b4efb36a90ba483d7f7a6628c46158ab", "e86135ae101e31e2c8ec20a4e0c5220f4eed12487d5cf3f78be7e98d3a57fc28"] +beautifulsoup4 = ["5279c36b4b2ec2cb4298d723791467e3000e5384a43ea0cdf5d45207c7e97169", "6135db2ba678168c07950f9a16c4031822c6f4aec75a65e0a97bc5ca09789931", "dcdef580e18a76d54002088602eba453eec38ebbcafafeaabd8cab12b6155d57"] +billiard = ["01afcb4e7c4fd6480940cfbd4d9edc19d7a7509d6ada533984d0d0f49901ec82", "b8809c74f648dfe69b973c8e660bcec00603758c9db8ba89d7719f88d5f01f26"] +black = ["09a9dcb7c46ed496a9850b76e4e825d6049ecd38b611f1224857a79bd985a8cf", "68950ffd4d9169716bcb8719a56c07a2f4485354fec061cdd5910aa07369731c"] +bleach = ["213336e49e102af26d9cde77dd2d0397afabc5a6bf2fed985dc35b5d1e285a16", "3fdf7f77adcf649c9911387df51254b813185e32b2c6619f690b593a617e19fa"] +boto3 = ["2904bfb928116fea3a83247de6c3687eb9bf942d764e361f5574d5ac11be2ad3", "77806f23320554b5d3175f4ef864e4ca6eb04d97a95ad6d2b3e3ef7736472c35"] +botocore = ["05d42876001fe6513742edcdb550f0aeabff2b123678a6b661cfeb6c26066b8e", "acceec0b79df7e5f8b15eab3033f6a7c7f69d0bc27aa01d65aa5ba4d90742787"] +brotli = ["0538dc1744fd17c314d2adc409ea7d1b779783b89fd95bcfb0c2acc93a6ea5a7", "0970a47f471782912d7705160b2b0a9306e68e6fadf9cffcaeb42d8f0951e26c", "113f51658e6fe548dce4b3749f6ef6c24de4184ba9c10a909cbee4261c2a5da0", "1e1aa9c4d1558889f42749c8baf846007953bfd32c8209230cf1cd1f5ef33495", "2f2f4f78f29ac4a45d15b3d9fc3fd9705e0ad313a44b129f6e1d0c6916bad0e2", "3269f6de1dd150fd0cce1c158b61ff5ac06d627fd3ae9c6ea03aed26fbbff7ea", "50dd9ad2a2bb12da4e9002a438672d182f98e546e99952de80280a1e1729664f", "5519a4b01b1a4f965083cbfa2ef2b9774c5a5f352341c47b50776ad109423d72", "5eb27722d320370315971c427eb8aa7cc0791f2a458840d357ac653bd0ad3a14", "5f06b4d5b6f58e5b5c220c2f23cad034dc5efa51b01fde2351ced1605bd980e2", "72848d25a5f9e736db4af4512e0c3feecc094d57d241f8f1ae959115a2c39756", "743001bca75f4a6b4454be3510feca46f9d61a0c782a9bc2bc684bdb245e279e", "9d1c2dd27a1083fefd05b1b2f8df4a6bc2aaa6c21dd82cd41c8ae5e7c23a87f8", "a13ce9b419fe9f277c63f700efb0e444331509d1881b5610d2ba7e9080606967", "a19ef0952b9d2803df88dff07f45a6c92d5676afb9b8d69cf32232d684036d11", "ad766ca8b8c1419b71a22756b45264f45725c86133dc80a7cbe30b6b78c75620", "ad7963f261988ee0883816b6b9f206f11461c9b3cb5cfbca0c9ab5adc406d395", "c16201060c5a3f8742e3deae759014251ac92f382f82bc2a41dc079ff18c3f24", "c43b202f65891861a9a336984a103de25de235f756de69e32db893156f767013", "c675c6cce4295cb1a692f3de7416aacace7314e064b94bc86e93aceefce7fd3e", "d17cec0b992b1434f5f9df9986563605a4d1b1acd5574c87fc2ac014bcbd3316", "dc91f6129953861a73d9a65c52a8dd682b561a9ebaf65283541645cab6489917", "e2f4cbd1760d2bf2f30e396c2301999aab0191aec031a6a8a04950b2f575a536", "f192e6d3556714105c10486bbd6d045e38a0c04d9da3cef21e0a8dfd8e162df4", "f775b07026af2b1b0b5a8b05e41571cdcf3a315a67df265d60af301656a5425b", "f969ec7f56ba9636679e69ca07fba548312ccaca37412ee823c7f413541ad7e0", "f9dc52cd70907aafb99a773b66b156f2f995c7a0d284397c487c8b71ddbef2f9", "fc7212e36ebeb81aebf7949c92897b622490d7c0e333a479c0395591e7994600"] +celery = ["4c4532aa683f170f40bd76f928b70bc06ff171a959e06e71bf35f2f9d6031ef9", "528e56767ae7e43a16cfef24ee1062491f5754368d38fcfffa861cdb9ef219be"] +certifi = ["e4f3620cfea4f83eedc95b24abd9cd56f3c4b146dd0177e83a21b4eb49e21e50", "fd7c7c74727ddcf00e9acd26bba8da604ffec95bf1c2144e67aff7a8b50e6cef"] +cffi = ["00d890313797d9fe4420506613384b43099ad7d2b905c0752dbcc3a6f14d80fa", "0cf9e550ac6c5e57b713437e2f4ac2d7fd0cd10336525a27224f5fc1ec2ee59a", "0ea23c9c0cdd6778146a50d867d6405693ac3b80a68829966c98dd5e1bbae400", "193697c2918ecdb3865acf6557cddf5076bb39f1f654975e087b67efdff83365", "1ae14b542bf3b35e5229439c35653d2ef7d8316c1fffb980f9b7647e544baa98", "1e389e069450609c6ffa37f21f40cce36f9be7643bbe5051ab1de99d5a779526", "263242b6ace7f9cd4ea401428d2d45066b49a700852334fd55311bde36dcda14", "33142ae9807665fa6511cfa9857132b2c3ee6ddffb012b3f0933fc11e1e830d5", "364f8404034ae1b232335d8c7f7b57deac566f148f7222cef78cf8ae28ef764e", "47368f69fe6529f8f49a5d146ddee713fc9057e31d61e8b6dc86a6a5e38cecc1", "4895640844f17bec32943995dc8c96989226974dfeb9dd121cc45d36e0d0c434", "558b3afef987cf4b17abd849e7bedf64ee12b28175d564d05b628a0f9355599b", "5ba86e1d80d458b338bda676fd9f9d68cb4e7a03819632969cf6d46b01a26730", "63424daa6955e6b4c70dc2755897f5be1d719eabe71b2625948b222775ed5c43", "6381a7d8b1ebd0bc27c3bc85bc1bfadbb6e6f756b4d4db0aa1425c3719ba26b4", "6381ab708158c4e1639da1f2a7679a9bbe3e5a776fc6d1fd808076f0e3145331", "6fd58366747debfa5e6163ada468a90788411f10c92597d3b0a912d07e580c36", "728ec653964655d65408949b07f9b2219df78badd601d6c49e28d604efe40599", "7cfcfda59ef1f95b9f729c56fe8a4041899f96b72685d36ef16a3440a0f85da8", "819f8d5197c2684524637f940445c06e003c4a541f9983fd30d6deaa2a5487d8", "825ecffd9574557590e3225560a8a9d751f6ffe4a49e3c40918c9969b93395fa", "9009e917d8f5ef780c2626e29b6bc126f4cb2a4d43ca67aa2b40f2a5d6385e78", "9c77564a51d4d914ed5af096cd9843d90c45b784b511723bd46a8a9d09cf16fc", "a19089fa74ed19c4fe96502a291cfdb89223a9705b1d73b3005df4256976142e", "a40ed527bffa2b7ebe07acc5a3f782da072e262ca994b4f2085100b5a444bbb2", "bb75ba21d5716abc41af16eac1145ab2e471deedde1f22c6f99bd9f995504df0", "e22a00c0c81ffcecaf07c2bfb3672fa372c50e2bd1024ffee0da191c1b27fc71", "e55b5a746fb77f10c83e8af081979351722f6ea48facea79d470b3731c7b2891", "ec2fa3ee81707a5232bf2dfbd6623fdb278e070d596effc7e2d788f2ada71a05", "fd82eb4694be712fcae03c717ca2e0fc720657ac226b80bbb597e971fc6928c2"] +chardet = ["84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae", "fc323ffcaeaed0e0a02bf4d117757b98aed530d9ed4531e3e15460124c106691"] +click = ["2335065e6395b9e67ca716de5f7526736bfa6ceead690adf616d925bdc622b13", "5b94b49521f6456670fdb30cd82a4eca9412788a93fa6dd6df72c94d5a8ff2d7"] +colorama = ["05eed71e2e327246ad6b38c540c4a3117230b19679b875190486ddd2d721422d", "f8ac84de7840f5b9c4e3347b3c1eaa50f7e49c2b07596221daec5edaabbd7c48"] +coverage = ["007eeef7e23f9473622f7d94a3e029a45d55a92a1f083f0f3512f5ab9a669b05", "0388c12539372bb92d6dde68b4627f0300d948965bbb7fc104924d715fdc0965", "079248312838c4c8f3494934ab7382a42d42d5f365f0cf7516f938dbb3f53f3f", "17307429935f96c986a1b1674f78079528833410750321d22b5fb35d1883828e", "1afccd7e27cac1b9617be8c769f6d8a6d363699c9b86820f40c74cfb3328921c", "2ad357d12971e77360034c1596011a03f50c0f9e1ecd12e081342b8d1aee2236", "2b4d7f03a8a6632598cbc5df15bbca9f778c43db7cf1a838f4fa2c8599a8691a", "2e1a5c6adebb93c3b175103c2f855eda957283c10cf937d791d81bef8872d6ca", "309d91bd7a35063ec7a0e4d75645488bfab3f0b66373e7722f23da7f5b0f34cc", "358d635b1fc22a425444d52f26287ae5aea9e96e254ff3c59c407426f44574f4", "3f4d0b3403d3e110d2588c275540649b1841725f5a11a7162620224155d00ba2", "43a155eb76025c61fc20c3d03b89ca28efa6f5be572ab6110b2fb68eda96bfea", "493082f104b5ca920e97a485913de254cbe351900deed72d4264571c73464cd0", "4c4f368ffe1c2e7602359c2c50233269f3abe1c48ca6b288dcd0fb1d1c679733", "5ff16548492e8a12e65ff3d55857ccd818584ed587a6c2898a9ebbe09a880674", "66f393e10dd866be267deb3feca39babba08ae13763e0fc7a1063cbe1f8e49f6", "700d7579995044dc724847560b78ac786f0ca292867447afda7727a6fbaa082e", "81912cfe276e0069dca99e1e4e6be7b06b5fc8342641c6b472cb2fed7de7ae18", "82cbd3317320aa63c65555aa4894bf33a13fb3a77f079059eb5935eea415938d", "845fddf89dca1e94abe168760a38271abfc2e31863fbb4ada7f9a99337d7c3dc", "87d942863fe74b1c3be83a045996addf1639218c2cb89c5da18c06c0fe3917ea", "9721f1b7275d3112dc7ccf63f0553c769f09b5c25a26ee45872c7f5c09edf6c1", "a4497faa4f1c0fc365ba05eaecfb6b5d24e3c8c72e95938f9524e29dadb15e76", "a7cfaebd8f24c2b537fa6a271229b051cdac9c1734bb6f939ccfc7c055689baa", "ab3508df9a92c1d3362343d235420d08e2662969b83134f8a97dc1451cbe5e84", "b0059630ca5c6b297690a6bf57bf2fdac1395c24b7935fd73ee64190276b743b", "b6cebae1502ce5b87d7c6f532fa90ab345cfbda62b95aeea4e431e164d498a3d", "bd4800e32b4c8d99c3a2c943f1ac430cbf80658d884123d19639bcde90dad44a", "cdd92dd9471e624cd1d8c1a2703d25f114b59b736b0f1f659a98414e535ffb3d", "d00e29b78ff610d300b2c37049a41234d48ea4f2d2581759ebcf67caaf731c31", "d1ee76f560c3c3e8faada866a07a32485445e16ed2206ac8378bd90dadffb9f0", "dd707a21332615108b736ef0b8513d3edaf12d2a7d5fc26cd04a169a8ae9b526", "e3ba9b14607c23623cf38f90b23f5bed4a3be87cbfa96e2e9f4eabb975d1e98b", "e9a0e1caed2a52f15c96507ab78a48f346c05681a49c5b003172f8073da6aa6b", "eea9135432428d3ca7ee9be86af27cb8e56243f73764a9b6c3e0bda1394916be", "f29841e865590af72c4b90d7b5b8e93fd560f5dea436c1d5ee8053788f9285de", "f3a5c6d054c531536a83521c00e5d4004f1e126e2e2556ce399bef4180fbe540", "f87f522bde5540d8a4b11df80058281ac38c44b13ce29ced1e294963dd51a8f8", "f8c55dd0f56d3d618dfacf129e010cbe5d5f94b6951c1b2f13ab1a2f79c284da", "f98b461cb59f117887aa634a66022c0bd394278245ed51189f63a036516e32de"] +cycler = ["1d8a5ae1ff6c5cf9b93e8811e581232ad8920aeec647c37316ceac982b08cb2d", "cd7b2d1018258d7247a71425e9f26463dfb444d411c39569972f4ce586b0c9d8"] +decorator = ["86156361c50488b84a3f148056ea716ca587df2f0de1d34750d35c21312725de", "f069f3a01830ca754ba5258fde2278454a0b5b79e0d7f5c13b3b97e57d4acff6"] +defusedxml = ["6687150770438374ab581bb7a1b327a847dd9c5749e396102de3fad4e8a3ef93", "f684034d135af4c6cbb949b8a4d2ed61634515257a67299e5f940fbaa34377f5"] +django = ["4025317ca01f75fc79250ff7262a06d8ba97cd4f82e93394b2a0a6a4a925caeb", "a8ca1033acac9f33995eb2209a6bf18a4681c3e5269a878e9a7e0b7384ed1ca3"] +django-appconf = ["35f13ca4d567f132b960e2cd4c832c2d03cb6543452d34e29b7ba10371ba80e3", "c98a7af40062e996b921f5962a1c4f3f0c979fa7885f7be4710cceb90ebe13a6"] +django-autocomplete-light = ["29ce2626a11eab2333e5aa9f95166a6d4400f11b5a05e8f23fa77017b1a9089a"] +django-celery-beat = ["61c92d4b600a9f24406ee0b8d01a9b192253e15d047e3325e1d81e2cacf7aba6", "659b39232c454ac27022bf679939bce0471fd482f3ee9276f5199716cb4afad9"] +django-celery-email = ["02694114f8a4e4b363cfae48b960473396899cae08351e29b0c5e431d647ef9e", "83ad3d4edfccbcdeb8319314ed8c36cf2d017bbb02cae8b459bf6678a804ea44"] +django-celery-results = ["932277e9382528f74778b30cf90e17941cba577b7d73cee09ed55e4972972c32", "e735dc3e705a0e21afc3b6fa2918ec388258145fcbaad3727c493c5707d25034"] +django-compat = ["3ac9a3bedc56b9365d9eb241bc5157d0c193769bf995f9a78dc1bc24e7c2331b"] +django-cors-headers = ["5762ec9c2d59f38c76828dc1d4308baca4bc0d3e1d6f217683e7a24a1c4611a3", "ee02f4b699e9b6645602a46d0adb430ee940a1bf8df64f77e516f8d7711fee60"] +django-countries = ["1cefad9ec804d6a0318b91c5394b5aef00336755928f44d0a6420507719d65c8", "22e96236101783cfe5222ef5174972242a7e8176336d119a4dc111aedce35897"] +django-crispy-forms = ["0320b303420fec9ce94e045321dfd180ca0e31e0336211c5d30ad0bda5ebbb5d", "22b6634e3a6316623e4eb062527fe5be5f97ea8b83020c65bcd8fac4747807b5"] +django-debug-toolbar = ["17c53cd6bf4e7d69902aedf9a1d26c5d3b7369b54c5718744704f27b5a72f35d", "9a23ada2e43cd989195db3c18710b5d7451134a0d48127ab64c1d2ad81700342"] +django-extensions = ["a9db7c56a556d244184f589f2437b4228de86ee45e5ebb837fb20c6d54e95ea5", "b58320d3fe3d6ae7d1d8e38959713fa92272f4921e662d689058d942a5b444f7"] +django-favicon-plus = ["3394a951d8dc611eb1ea027ad1181d7f650ca234506585b27e93d7ed06b981bf"] +django-guardian = ["8cf4efd67a863eb32beafd4335a38ffb083630f8ab2045212d27f8f9c3abe5a6", "e638c9a23eeac534bb68b133975539ed8782f733ab6f35c0b23b4c39cd06b1bb"] +django-select2 = ["ad12132e764ce8099bc2746e6af2f33a952b49eb63f3b062eb4739cd4304ee2f", "e4beb0e4af27f71e9e2e2f52441aecdb24d401942f18a0375031767cd0e2e5a0"] +django-simple-history = ["7273add61d3f89453c475531627f8c69cbfc41d6fb99d45278dddc3bafe39284", "7f3044439e401fb02b12231b675590865a27a149f6bd99587e429cbe6a9dd6a6"] +django-speedinfo = ["9a4fe0e5709a7017a13371a1f73cce1fe3b3d1425c5887337e938567bd5db0e0", "c515d3eadee2c3249a7abbf51fed7f80bf517c5029a89a0737a508b98030b7c2"] +django-storages = ["87287b7ad2e789cd603373439994e1ac6f94d9dc2e5f8173d2a87aa3ed458bd9", "f3b3def96493d3ccde37b864cea376472baf6e8a596504b209278801c510b807"] +django-summernote = ["7e2a7cfa806dba508aceee872a7a556b0f86ebcc176f9c3951d4ae56871de609"] +django-timezone-field = ["1a7bbcf984ae191c6dfe713994b4ff4062dc21e47a909356c93e76d027c87c8f", "a25af66b86d13709aa8c69a361c1ea68322cda64b5bbf9141fb67b8b44aa4e43"] +django-userena-ce = ["33eb5c5105f06cdf2635d7758b809fe2906981acba476ba08fda9cb2d2708c87", "75486a0a6d9b9a79cceaccd204593391e513814fb1a9d01d762c600455f00293"] +djangorestframework = ["5488aed8f8df5ec1d70f04b2114abc52ae6729748a176c453313834a9ee179c8", "dc81cbf9775c6898a580f6f1f387c4777d12bd87abf0f5406018d32ccae71090"] +djangorestframework-guardian = ["1883756452d9bfcc2a51fb4e039a6837a8f6697c756447aa83af085749b59330", "3bd3dd6ea58e1bceca5048faf6f8b1a93bb5dcff30ba5eb91b9a0e190a48a0c7"] +docker = ["6e06c5e70ba4fad73e35f00c55a895a448398f3ada7faae072e2bb01348bafc1", "8f93775b8bdae3a2df6bc9a5312cce564cade58d6555f2c2570165a1270cd8a7"] +docutils = ["6c4f696463b79f1fb8ba0c594b63840ebd41f059e92b31957c46b74a4599b6d0", "9e4d7ecfc600058e07ba661411a2b7de2fd0fafa17d1a7f7361cd47b1175c827", "a2aeea129088da402665e92e0b25b04b073c04b2dce4ab65caaa38b7ce2e1a99"] +easy-thumbnails = ["23fbe3415c93b2369ece8ebdfb5faa05540943bef8b941b3118ce769ba95e275"] +entrypoints = ["589f874b313739ad35be6e0cd7efde2a4e9b6fea91edcc34e58ecbb8dbe56d19", "c70dd71abe5a8c85e55e12c19bd91ccfeec11a6e99044204511f9ed547d48451"] +execnet = ["cacb9df31c9680ec5f95553976c4da484d407e85e41c83cb812aa014f0eddc50", "d4efd397930c46415f62f8a31388d6be4f27a91d7550eb79bc64a756e0056547"] +factory-boy = ["728df59b372c9588b83153facf26d3d28947fc750e8e3c95cefa9bed0e6394ee", "faf48d608a1735f0d0a3c9cbf536d64f9132b547dae7ba452c4d99a79e84a370"] +faker = ["5902379d8df308a204fc11c4f621590ee83975805a6c7b2228203b9defa45250", "5e8c755c619f332d5ec28b7586389665f136bcf528e165eb925e87c06a63eda7"] +gunicorn = ["aa8e0b40b4157b36a5df5e599f45c9c76d6af43845ba3b3b0efe2c70473c2471", "fa2662097c66f920f53f70621c6c58ca4a3c4d3434205e608e121b5b3b71f4f3"] +html2text = ["55ce85704f244fc18890c5ded89fa22ff7333e41e9f3cad04d51f48d62ad8834", "6f56057c5c2993b5cc5b347cb099bdf6d095828fef1b53ef4e2a2bf2a1be9b4f"] +httplib2 = ["34537dcdd5e0f2386d29e0e2c6d4a1703a3b982d34c198a5102e6e5d6194b107", "409fa5509298f739b34d5a652df762cb0042507dc93f6633e306b11289d6249d"] +idna = ["c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407", "ea8b7f6188e6fa117537c3df7da9fc686d485087abf6ac197f9c46432f7e4a3c"] +imagecodecs = ["11c3df3a8e83a69222b2c5a43f7e55d18de418ffe59a82722de887111b77f958", "1d8eb81829bf68b8621967f81bf0a268f8dd9d1d0c6f3db3f6ead89b6900fae4", "23283b7d8697a5af707812a1752a8eb6f3a9c3af2a2ffb0da70af4bfd9a4fc2a", "2709035dd4c0b81a0981919396edcbd864a0d6aeb4974fd2b55b5a464aaf8a2c", "2f53f39a68814e631fad9aadb44db09dd41c382523be7379ede5ea1e47823eac", "5a5a6e6ec552e8f0d57a6821ab64c82b05da8724376d9691829524bc58a67dbf", "5bbb6d87bdf8a24298436f0fa343f40f6a0f342d6883fe0b3c772572bcde4a7c", "7cd689549b41dc979fed1a26e668a080e67b276b029d179ae3a9eb27a0187719", "b658b6d40c03e7056e61ecf6127a4fe2316e40601a47b11dc8c62c6d88d027cb", "b9ba45bad9417e0a9e2e0b26c894624baee56110a2a8d3305b0a411946d7732b", "dcef710e9585b8914082c7e3d1de501ac4af5e46e6523638698e4b7095f1f18d", "e3f62a77e0332cb58b5799730ced1f807df14d5a49ec8ed665d17d9a5a2473c1", "e6cfd730f3a07fa5cc72a24df080bdc581f9d5118745db6b60270364cb4b22dd"] +imagesize = ["3f349de3eb99145973fefb7dbe38554414e5c30abd0c8e4b970a7c9d09f3a1d8", "f3832918bc3c66617f92e35f5d70729187676313caa60c187eb0f28b8fe5e3b5"] +importlib-metadata = ["aa18d7378b00b40847790e7c27e11673d7fed219354109d0e7b9e5b25dc3ad26", "d5f18a79777f3aa179c145737780282e27b508fc8fd688cb17c7a813e8bd39af"] +ipython-genutils = ["72dd37233799e619666c9f639a9da83c34013a73e8bbc79a7a6348d93c61fab8", "eb2e116e75ecef9d4d228fdc66af54269afa26ab4463042e33785b887c628ba8"] +jinja2 = ["74320bb91f31270f9551d46522e33af46a80c3d619f4a4bf42b3164d30b5911f", "9fe95f19286cfefaa917656583d020be14e7859c6b0252588391e47db34527de"] +jmespath = ["3720a4b1bd659dd2eecad0666459b9788813e032b83e7ba58578e48254e0a0e6", "bde2aef6f44302dfb30320115b17d030798de8c4110e28d5cf6cf91a7a31074c"] +jsonschema = ["2fa0684276b6333ff3c0b1b27081f4b2305f0a36cf702a23db50edb141893c3f", "94c0a13b4a0616458b42529091624e66700a17f847453e52279e35509a5b7631"] +jupyter-core = ["464769f7387d7a62a2403d067f1ddc616655b7f77f5d810c0dd62cb54bfd0fb9", "a183e0ec2e8f6adddf62b0a3fc6a2237e3e0056d381e536d3e7c7ecc3067e244"] +kiwisolver = ["05b5b061e09f60f56244adc885c4a7867da25ca387376b02c1efc29cc16bcd0f", "26f4fbd6f5e1dabff70a9ba0d2c4bd30761086454aa30dddc5b52764ee4852b7", "3b2378ad387f49cbb328205bda569b9f87288d6bc1bf4cd683c34523a2341efe", "400599c0fe58d21522cae0e8b22318e09d9729451b17ee61ba8e1e7c0346565c", "47b8cb81a7d18dbaf4fed6a61c3cecdb5adec7b4ac292bddb0d016d57e8507d5", "53eaed412477c836e1b9522c19858a8557d6e595077830146182225613b11a75", "58e626e1f7dfbb620d08d457325a4cdac65d1809680009f46bf41eaf74ad0187", "5a52e1b006bfa5be04fe4debbcdd2688432a9af4b207a3f429c74ad625022641", "5c7ca4e449ac9f99b3b9d4693debb1d6d237d1542dd6a56b3305fe8a9620f883", "682e54f0ce8f45981878756d7203fd01e188cc6c8b2c5e2cf03675390b4534d5", "79bfb2f0bd7cbf9ea256612c9523367e5ec51d7cd616ae20ca2c90f575d839a2", "7f4dd50874177d2bb060d74769210f3bce1af87a8c7cf5b37d032ebf94f0aca3", "8944a16020c07b682df861207b7e0efcd2f46c7488619cb55f65882279119389", "8aa7009437640beb2768bfd06da049bad0df85f47ff18426261acecd1cf00897", "939f36f21a8c571686eb491acfffa9c7f1ac345087281b412d63ea39ca14ec4a", "9733b7f64bd9f807832d673355f79703f81f0b3e52bfce420fc00d8cb28c6a6c", "a02f6c3e229d0b7220bd74600e9351e18bc0c361b05f29adae0d10599ae0e326", "a0c0a9f06872330d0dd31b45607197caab3c22777600e88031bfe66799e70bb0", "acc4df99308111585121db217681f1ce0eecb48d3a828a2f9bbf9773f4937e9e", "b64916959e4ae0ac78af7c3e8cef4becee0c0e9694ad477b4c6b3a536de6a544", "d3fcf0819dc3fea58be1fd1ca390851bdb719a549850e708ed858503ff25d995", "d52e3b1868a4e8fd18b5cb15055c76820df514e26aa84cc02f593d99fef6707f", "db1a5d3cc4ae943d674718d6c47d2d82488ddd94b93b9e12d24aabdbfe48caee", "e3a21a720791712ed721c7b95d433e036134de6f18c77dbe96119eaf7aa08004", "e8bf074363ce2babeb4764d94f8e65efd22e6a7c74860a4f05a6947afc020ff2", "f16814a4a96dc04bf1da7d53ee8d5b1d6decfc1a92a63349bb15d37b6a263dd9", "f2b22153870ca5cf2ab9c940d7bc38e8e9089fa0f7e5856ea195e1cf4ff43d5a", "f790f8b3dff3d53453de6a7b7ddd173d2e020fb160baff578d578065b108a05f"] +kombu = ["31edb84947996fdda065b6560c128d5673bb913ff34aa19e7b84755217a24deb", "c9078124ce2616b29cf6607f0ac3db894c59154252dee6392cdbbe15e5c4b566"] +livereload = ["78d55f2c268a8823ba499305dcac64e28ddeb9a92571e12d543cd304faf5817b", "89254f78d7529d7ea0a3417d224c34287ebfe266b05e67e51facaf82c27f0f66"] +markupsafe = ["00bc623926325b26bb9605ae9eae8a215691f33cae5df11ca5424f06f2d1f473", "09027a7803a62ca78792ad89403b1b7a73a01c8cb65909cd876f7fcebd79b161", "09c4b7f37d6c648cb13f9230d847adf22f8171b1ccc4d5682398e77f40309235", "1027c282dad077d0bae18be6794e6b6b8c91d58ed8a8d89a89d59693b9131db5", "24982cc2533820871eba85ba648cd53d8623687ff11cbb805be4ff7b4c971aff", "29872e92839765e546828bb7754a68c418d927cd064fd4708fab9fe9c8bb116b", "43a55c2930bbc139570ac2452adf3d70cdbb3cfe5912c71cdce1c2c6bbd9c5d1", "46c99d2de99945ec5cb54f23c8cd5689f6d7177305ebff350a58ce5f8de1669e", "500d4957e52ddc3351cabf489e79c91c17f6e0899158447047588650b5e69183", "535f6fc4d397c1563d08b88e485c3496cf5784e927af890fb3c3aac7f933ec66", "62fe6c95e3ec8a7fad637b7f3d372c15ec1caa01ab47926cfdf7a75b40e0eac1", "6dd73240d2af64df90aa7c4e7481e23825ea70af4b4922f8ede5b9e35f78a3b1", "717ba8fe3ae9cc0006d7c451f0bb265ee07739daf76355d06366154ee68d221e", "79855e1c5b8da654cf486b830bd42c06e8780cea587384cf6545b7d9ac013a0b", "7c1699dfe0cf8ff607dbdcc1e9b9af1755371f92a68f706051cc8c37d447c905", "88e5fcfb52ee7b911e8bb6d6aa2fd21fbecc674eadd44118a9cc3863f938e735", "8defac2f2ccd6805ebf65f5eeb132adcf2ab57aa11fdf4c0dd5169a004710e7d", "98c7086708b163d425c67c7a91bad6e466bb99d797aa64f965e9d25c12111a5e", "9add70b36c5666a2ed02b43b335fe19002ee5235efd4b8a89bfcf9005bebac0d", "9bf40443012702a1d2070043cb6291650a0841ece432556f784f004937f0f32c", "ade5e387d2ad0d7ebf59146cc00c8044acbd863725f887353a10df825fc8ae21", "b00c1de48212e4cc9603895652c5c410df699856a2853135b3967591e4beebc2", "b1282f8c00509d99fef04d8ba936b156d419be841854fe901d8ae224c59f0be5", "b2051432115498d3562c084a49bba65d97cf251f5a331c64a12ee7e04dacc51b", "ba59edeaa2fc6114428f1637ffff42da1e311e29382d81b339c1817d37ec93c6", "c8716a48d94b06bb3b2524c2b77e055fb313aeb4ea620c8dd03a105574ba704f", "cd5df75523866410809ca100dc9681e301e3c27567cf498077e8551b6d20e42f", "e249096428b3ae81b08327a63a485ad0878de3fb939049038579ac0ef61e17e7"] +matplotlib = ["1febd22afe1489b13c6749ea059d392c03261b2950d1d45c17e3aed812080c93", "31a30d03f39528c79f3a592857be62a08595dec4ac034978ecd0f814fa0eec2d", "4442ce720907f67a79d45de9ada47be81ce17e6c2f448b3c64765af93f6829c9", "796edbd1182cbffa7e1e7a97f1e141f875a8501ba8dd834269ae3cd45a8c976f", "934e6243df7165aad097572abf5b6003c77c9b6c480c3c4de6f2ef1b5fdd4ec0", "bab9d848dbf1517bc58d1f486772e99919b19efef5dd8596d4b26f9f5ee08b6b", "c1fe1e6cdaa53f11f088b7470c2056c0df7d80ee4858dadf6cbe433fcba4323b", "e5b8aeca9276a3a988caebe9f08366ed519fff98f77c6df5b64d7603d0e42e36", "ec6bd0a6a58df3628ff269978f4a4b924a0d371ad8ce1f8e2b635b99e482877a"] +mistune = ["59a3429db53c50b5c6bcc8a07f8848cb00d7dc8bdb431a4ab41920d201d4756e", "88a1051873018da288eee8538d476dffe1262495144b33ecb586c4ab266bb8d4"] +more-itertools = ["409cd48d4db7052af495b09dec721011634af3753ae1ef92d2b32f73a745f832", "92b8c4b06dac4f0611c0729b2f2ede52b2e1bac1ab48f089c7ddc12e26bb60c4"] +nbconvert = ["427a468ec26e7d68a529b95f578d5cbf018cb4c1f889e897681c2b6d11897695", "48d3c342057a2cf21e8df820d49ff27ab9f25fc72b8f15606bd47967333b2709"] +nbformat = ["b9a0dbdbd45bb034f4f8893cafd6f652ea08c8c1674ba83f2dc55d3955743b0b", "f7494ef0df60766b7cabe0a3651556345a963b74dbc16bc7c18479041170d402"] +numpy = ["0b0dd8f47fb177d00fa6ef2d58783c4f41ad3126b139c91dd2f7c4b3fdf5e9a5", "25ffe71f96878e1da7e014467e19e7db90ae7d4e12affbc73101bcf61785214e", "26efd7f7d755e6ca966a5c0ac5a930a87dbbaab1c51716ac26a38f42ecc9bc4b", "28b1180c758abf34a5c3fea76fcee66a87def1656724c42bb14a6f9717a5bdf7", "2e418f0a59473dac424f888dd57e85f77502a593b207809211c76e5396ae4f5c", "30c84e3a62cfcb9e3066f25226e131451312a044f1fe2040e69ce792cb7de418", "4650d94bb9c947151737ee022b934b7d9a845a7c76e476f3e460f09a0c8c6f39", "4dd830a11e8724c9c9379feed1d1be43113f8bcce55f47ea7186d3946769ce26", "4f2a2b279efde194877aff1f76cf61c68e840db242a5c7169f1ff0fd59a2b1e2", "62d22566b3e3428dfc9ec972014c38ed9a4db4f8969c78f5414012ccd80a149e", "669795516d62f38845c7033679c648903200980d68935baaa17ac5c7ae03ae0c", "75fcd60d682db3e1f8fbe2b8b0c6761937ad56d01c1dc73edf4ef2748d5b6bc4", "9395b0a41e8b7e9a284e3be7060db9d14ad80273841c952c83a5afc241d2bd98", "9e37c35fc4e9410093b04a77d11a34c64bf658565e30df7cbe882056088a91c1", "a0678793096205a4d784bd99f32803ba8100f639cf3b932dc63b21621390ea7e", "b46554ad4dafb2927f88de5a1d207398c5385edbb5c84d30b3ef187c4a3894d8", "c867eeccd934920a800f65c6068acdd6b87e80d45cd8c8beefff783b23cdc462", "dd0667f5be56fb1b570154c2c0516a528e02d50da121bbbb2cbb0b6f87f59bc2", "de2b1c20494bdf47f0160bd88ed05f5e48ae5dc336b8de7cfade71abcc95c0b9", "f1df7b2b7740dd777571c732f98adb5aad5450aee32772f1b39249c8a50386f6", "ffca69e29079f7880c5392bf675eb8b4146479d976ae1924d01cd92b04cccbcc"] +oauth2 = ["15b5c42301f46dd63113f1214b0d81a8b16254f65a86d3c32a1b52297f3266e6", "c006a85e7c60107c7cc6da1b184b5c719f6dd7202098196dfa6e55df669b59bf"] +oauthlib = ["bee41cc35fcca6e988463cacc3bcb8a96224f470ca547e697b604cc697b2f889", "df884cd6cbe20e32633f1db1072e9356f53638e4361bef4e8b03c9127c9328ea"] +packaging = ["28b924174df7a2fa32c1953825ff29c61e2f5e082343165438812f00d3a7fc47", "d9551545c6d761f3def1677baf08ab2a3ca17c56879e70fecba2fc4dde4ed108"] +pandocfilters = ["b3dd70e169bb5449e6bc6ff96aea89c5eea8c5f6ab5e207fc2f521a2cf4a0da9"] +pathtools = ["7c35c5421a39bb82e58018febd90e3b6e5db34c5443aaaf742b3f33d4655f1c0"] +pillow = ["047d9473cf68af50ac85f8ee5d5f21a60f849bc17d348da7fc85711287a75031", "0f66dc6c8a3cc319561a633b6aa82c44107f12594643efa37210d8c924fc1c71", "12c9169c4e8fe0a7329e8658c7e488001f6b4c8e88740e76292c2b857af2e94c", "248cffc168896982f125f5c13e9317c059f74fffdb4152893339f3be62a01340", "27faf0552bf8c260a5cee21a76e031acaea68babb64daf7e8f2e2540745082aa", "285edafad9bc60d96978ed24d77cdc0b91dace88e5da8c548ba5937c425bca8b", "384b12c9aa8ef95558abdcb50aada56d74bc7cc131dd62d28c2d0e4d3aadd573", "38950b3a707f6cef09cd3cbb142474357ad1a985ceb44d921bdf7b4647b3e13e", "4aad1b88933fd6dc2846552b89ad0c74ddbba2f0884e2c162aa368374bf5abab", "4ac6148008c169603070c092e81f88738f1a0c511e07bd2bb0f9ef542d375da9", "4deb1d2a45861ae6f0b12ea0a786a03d19d29edcc7e05775b85ec2877cb54c5e", "59aa2c124df72cc75ed72c8d6005c442d4685691a30c55321e00ed915ad1a291", "5a47d2123a9ec86660fe0e8d0ebf0aa6bc6a17edc63f338b73ea20ba11713f12", "5cc901c2ab9409b4b7ac7b5bcc3e86ac14548627062463da0af3b6b7c555a871", "6c1db03e8dff7b9f955a0fb9907eb9ca5da75b5ce056c0c93d33100a35050281", "7ce80c0a65a6ea90ef9c1f63c8593fcd2929448613fc8da0adf3e6bfad669d08", "809c19241c14433c5d6135e1b6c72da4e3b56d5c865ad5736ab99af8896b8f41", "83792cb4e0b5af480588601467c0764242b9a483caea71ef12d22a0d0d6bdce2", "846fa202bd7ee0f6215c897a1d33238ef071b50766339186687bd9b7a6d26ac5", "9f5529fc02009f96ba95bea48870173426879dc19eec49ca8e08cd63ecd82ddb", "a423c2ea001c6265ed28700df056f75e26215fd28c001e93ef4380b0f05f9547", "ac4428094b42907aba5879c7c000d01c8278d451a3b7cccd2103e21f6397ea75", "b1ae48d87f10d1384e5beecd169c77502fcc04a2c00a4c02b85f0a94b419e5f9", "bf4e972a88f8841d8fdc6db1a75e0f8d763e66e3754b03006cbc3854d89f1cb1", "c6414f6aad598364aaf81068cabb077894eb88fed99c6a65e6e8217bab62ae7a", "c710fcb7ee32f67baf25aa9ffede4795fd5d93b163ce95fdc724383e38c9df96", "c7be4b8a09852291c3c48d3c25d1b876d2494a0a674980089ac9d5e0d78bd132", "c9e5ffb910b14f090ac9c38599063e354887a5f6d7e6d26795e916b4514f2c1a", "e0697b826da6c2472bb6488db4c0a7fa8af0d52fa08833ceb3681358914b14e5", "e9a3edd5f714229d41057d56ac0f39ad9bdba6767e8c888c951869f0bdd129b0"] +pkgconfig = ["97bfe3d981bab675d5ea3ef259045d7919c93897db7d3b59d4e8593cba8d354f", "cddf2d7ecadb272178a942eb852a9dee46bda2adcc36c3416b0fef47a4ed9f38"] +pluggy = ["0db4b7601aae1d35b4a033282da476845aa19185c1e6964b25cf324b5e4ec3e6", "fa5fa1622fa6dd5c030e9cad086fa19ef6a0cf6d7a2d12318e10cb49d6d68f34"] +port-for = ["b16a84bb29c2954db44c29be38b17c659c9c27e33918dec16b90d375cc596f1c"] +psycopg2 = ["47fc642bf6f427805daf52d6e52619fe0637648fe27017062d898f3bf891419d", "72772181d9bad1fa349792a1e7384dde56742c14af2b9986013eb94a240f005b", "8396be6e5ff844282d4d49b81631772f80dabae5658d432202faf101f5283b7c", "893c11064b347b24ecdd277a094413e1954f8a4e8cdaf7ffbe7ca3db87c103f0", "965c4c93e33e6984d8031f74e51227bd755376a9df6993774fd5b6fb3288b1f4", "9ab75e0b2820880ae24b7136c4d230383e07db014456a476d096591172569c38", "b0845e3bdd4aa18dc2f9b6fb78fbd3d9d371ad167fd6d1b7ad01c0a6cdad4fc6", "dca2d7203f0dfce8ea4b3efd668f8ea65cd2b35112638e488a4c12594015f67b", "ed686e5926929887e2c7ae0a700e32c6129abb798b4ad2b846e933de21508151", "ef6df7e14698e79c59c7ee7cf94cd62e5b869db369ed4b1b8f7b729ea825712a", "f898e5cc0a662a9e12bde6f931263a1bbd350cfb18e1d5336a12927851825bb6"] +py = ["64f65755aee5b381cea27766a3a147c3f15b9b6b9ac88676de66ba2ae36793fa", "dc639b046a6e2cff5bbe40194ad65936d6ba360b52b3c3fe1d08a82dd50b5e53"] +pycparser = ["a988718abfad80b6b157acce7bf130a30876d27603738ac39f140993246b25b3"] +pygments = ["71e430bc85c88a430f000ac1d9b331d2407f681d6f6aec95e8bcfbc3df5b0127", "881c4c157e45f30af185c1ffe8d549d48ac9127433f2c380c24b84572ad66297"] +pyjwt = ["5c6eca3c2940464d106b99ba83b00c6add741c9becaec087fb7ccdefea71350e", "8d59a976fb773f3e6a39c85636357c4f0e242707394cadadd9814f5cbaa20e96"] +pyparsing = ["6f98a7b9397e206d78cc01df10131398f1c8b8510a2f4d97d9abd82e1aacdd80", "d9338df12903bbf5d65a0e4e87c2161968b10d2e489652bb47001d82a9b028b4"] +pypiwin32 = ["67adf399debc1d5d14dffc1ab5acacb800da569754fafdc576b2a039485aa775", "71be40c1fbd28594214ecaecb58e7aa8b708eabfa0125c8a109ebd51edbd776a"] +pyrsistent = ["34b47fa169d6006b32e99d4b3c4031f155e6e68ebcc107d6454852e8e0ee6533"] +pytest = ["7e4800063ccfc306a53c461442526c5571e1462f61583506ce97e4da6a1d88c8", "ca563435f4941d0cb34767301c27bc65c510cb82e90b9ecf9cb52dc2c63caaa0"] +pytest-cov = ["cc6742d8bac45070217169f5f72ceee1e0e55b0221f54bcf24845972d3a47f2b", "cdbdef4f870408ebdbfeb44e63e07eb18bb4619fae852f6e760645fa36172626"] +pytest-django = ["497e8d967d2ec82b3388267b2f1f037761ff34c10ebb13c534d8c5804846e4eb", "b6c900461a6a7c450dcf11736cabc289a90f5d6f28ef74c46e32e86ffd16a4bd"] +pytest-forked = ["1805699ed9c9e60cb7a8179b8d4fa2b8898098e82d229b0825d8095f0f261100", "1ae25dba8ee2e56fb47311c9638f9e58552691da87e82d25b0ce0e4bf52b7d87"] +pytest-mock = ["b3514caac35fe3f05555923eabd9546abce11571cc2ddf7d8615959d04f2c89e", "ea502c3891599c26243a3a847ccf0b1d20556678c528f86c98e3cd6d40c5cf11"] +pytest-xdist = ["5d1b1d4461518a6023d56dab62fb63670d6f7537f23e2708459a557329accf48", "a8569b027db70112b290911ce2ed732121876632fb3f40b1d39cd2f72f58b147"] +python-crontab = ["3ac1608ff76032e6fc6e16b5fbf83b51557e0e066bf78e9f88571571e7bd7ae6"] +python-dateutil = ["7e6584c74aeed623791615e26efd690f29817a27c73085b78e4bad02493df2fb", "c89805f6f4d64db21ed966fda138f8a5ed7a4fdbc1a8ee329ce1b74e3c74da9e"] +python-magic = ["f2674dcfad52ae6c49d4803fa027809540b130db1dec928cfbb9240316831375", "f3765c0f582d2dfc72c15f3b5a82aecfae9498bd29ca840d72f37d7bd38bfcd5"] +python-memcached = ["4dac64916871bd3550263323fc2ce18e1e439080a2d5670c594cf3118d99b594", "a2e28637be13ee0bf1a8b6843e7490f9456fd3f2a4cb60471733c7b5d5557e4f"] +python3-openid = ["0086da6b6ef3161cfe50fb1ee5cceaf2cda1700019fda03c2c5c440ca6abe4fa", "628d365d687e12da12d02c6691170f4451db28d6d68d050007e4a40065868502"] +pytz = ["1c557d7d0e871de1f5ccd5833f60fb2550652da6be2693c1e02300743d21500d", "b02c06db6cf09c12dd25137e563b31700d3b80fcc4ad23abb7a315f2789819be"] +pyupgrade = ["a0db809531fafa686d3eb567d8bf7f5119f8d1bfa076d2a2ffa87e20d5aafd4e", "ddf33de4ab2d9b7f7eb9aae540a9cf0e576b2bbb82eb24db5be7eb610bbcbad9"] +pyvips = ["8992acde85331c08bf4cd0b8213d99bc65c523fc67eade93820d600de138ad04"] +pywin32 = ["0443e9bb196e72480f50cbddc2cf98fbb858a77d02e281ba79489ea3287b36e9", "09bbe7cdb29eb40ab2e83f7a232eeeedde864be7a0622b70a90f456aad07a234", "0d8e0f47808798d320c983574c36c49db642678902933a210edd40157d206fd0", "0db7c9f4b93528afd080d35912a60be2f86a1d6c49c0a9cf9cedd106eed81ea3", "749e590875051661ecefbd9dfa957a485016de0f25e43f5e70f888ef1e29587b", "779d3e9d4b934f2445d2920c3941416d99af72eb7f7fd57a63576cc8aa540ad6", "7c89d2c11a31c7aaa16dc4d25054d7e0e99d6f6b24193cf62c83850484658c87", "81f7732b662c46274d7d8c411c905d53e71999cba95457a0686467c3ebc745ca", "9db1fb8830bfa99c5bfd335d4482c14db5c6f5028db3b006787ef4200206242b", "bd8d04835db28646d9e07fd0ab7c7b18bd90e89dfdc559e60389179495ef30da", "fc6822a68afd79e97b015985dd455767c72009b81bcd18957068626c43f11e75", "fe6cfc2045931866417740b575231c7e12d69d481643be1493487ad53b089959"] +pyyaml = ["0113bc0ec2ad727182326b61326afa3d1d8280ae1122493553fd6f4397f33df9", "01adf0b6c6f61bd11af6e10ca52b7d4057dd0be0343eb9283c878cf3af56aee4", "5124373960b0b3f4aa7df1707e63e9f109b5263eca5976c66e08b1c552d4eaf8", "5ca4f10adbddae56d824b2c09668e91219bb178a1eee1faa56af6f99f11bf696", "7907be34ffa3c5a32b60b95f4d95ea25361c951383a894fec31be7252b2b6f34", "7ec9b2a4ed5cad025c2278a1e6a19c011c80a3caaac804fd2d329e9cc2c287c9", "87ae4c829bb25b9fe99cf71fbb2140c448f534e24c998cc60f39ae4f94396a73", "9de9919becc9cc2ff03637872a440195ac4241c80536632fffeb6a1e25a74299", "a5a85b10e450c66b49f98846937e8cfca1db3127a9d5d1e31ca45c3d0bef4c5b", "b0997827b4f6a7c286c01c5f60384d218dca4ed7d9efa945c3e1aa623d5709ae", "b631ef96d3222e62861443cc89d6563ba3eeb816eeb96b2629345ab795e53681", "bf47c0607522fdbca6c9e817a6e81b08491de50f3766a7a0e6a5be7905961b41", "f81025eddd0327c7d4cfe9b62cf33190e1e736cc6e97502b3ec425f574b3e7a8"] +redis = ["3613daad9ce5951e426f460deddd5caf469e08a3af633e9578fc77d362becf62", "8d0fc278d3f5e1249967cba2eb4a5632d19e45ce5c09442b8422d15ee2c22cc2"] +requests = ["11e007a8a2aa0323f5a921e9e6a2d7e4e67d9877e85773fba9ba6419025cbeb4", "9cf5292fcd0f598c671cfc1e0d7d1a7f13bb8085e9a590f48c010551dc6c4b31"] +requests-file = ["75c175eed739270aec3c5279ffd74e6527dada275c5c0d76b5817e9c86bb7dea", "8f04aa6201bacda0567e7ac7f677f1499b0fc76b22140c54bc06edf1ba92e2fa"] +requests-oauthlib = ["bd6533330e8748e94bf0b214775fed487d309b8b8fe823dc45641ebcd9a32f57", "d3ed0c8f2e3bbc6b344fa63d6f933745ab394469da38db16bdddb461c7e25140", "dd5a0499abfefd087c6dd96693cbd5bfd28aa009719a7f85ab3fabe3956ef19a"] +s3transfer = ["6efc926738a3cd576c2a79725fed9afde92378aa5c6a957e3af010cb019fac9d", "b780f2411b824cb541dbcd2c713d0cb61c7d1bcadae204cdddda2b35cef493ba"] +sentry-sdk = ["7d8668f082cb1eb9bf1e0d3f8f9bd5796d05d927c1197af226d044ed32b9815f", "ff14935cc3053de0650128f124c36f34a4be120b8cc522c149f5cba342c1fd05"] +simpleitk = ["145f3f3c9444e0bd1b93d0941114744fab856c13c76749cad0f6dcc884b391da", "1fa1a0b05ef66bb4fd2d83bc41950271f62aad906050359303bfdf9efdcedb7a", "21e7418c325f8a2e26bda293323376783bcb77ec67e8c58a523468c08d6cf2ad", "2334392e4aaefbaf7190fd9ce9387133d1a17a716e686b1011d5bd2f2b707c81", "26c9064d2faba621788eebc8369cb7056439b82c1f5ed040b3b46adfacc9965c", "2c2a2cc75342ffd5e87be649b5ea8c0b9aa0e2ef9e875b6cce884409aae32335", "3125ffb75aab69106e6989267319ac9bb4d10d204c89b154c0bf15f8647ef55e", "34bf2a2e95f9dea5e1479ffb829c353987c8abc08c63c1bc8967d492b7e437ca", "495de11bb8430ab3c9ad1e437fc3f41c465daa4bf52ef57656b31b76f46a176e", "580dce0d1405a0d66751c552d64210a276752c6ab852251d8adb098deb5b4484", "5a7835a033a73a26c61837a9a37d8905a28863a9da8c9e9dc1bef114f57e69c9", "662bde72be9011851875ea0ba6cb60803ba133b47ac8e2921a044570ba68f9c4", "755374b6f185ffb580933eacf419d173561bb20c2c5f684352ec907cefac856b", "8658061ef6ba09301bbf9323b5e17fff38ece95546761688403612f0b3ecfb2a", "89d1ff555363585a6049ae495b781f2d41af997417c68289c1e18d8c24796460", "8f357e16c99c3badec21a67cec05de7620873c49c57551e1aedec6afa469b3f6", "97ffaca00d104119cff5f200b27e3f28977d52ae077fcd2b51d09fe34b251a8f", "9ec92ad09c420ab9fee50ca2cff3bdf959aa33244aba9116f9156d64468adc2f", "b87c0d7abbb13b65bd4f65755a964bcdd618ee5c1913526faa0bd7ed1837e9df", "ba8435e0371533a60d4db52a2d8233cd29ff54d78bb08140fcef117d7d77210b", "bae18c99e83052ba668ccbcdc9d601d03329d0989bf2316872bd289a4f88aac3", "c9b03918e4cc82bbedebedd310d873ea383b99f1d5e3b8e1ab46ae18cd9d8c65", "cdc7bcc94acb7d1ea9ff760dac6bb4d67ab986dfda13d1c002cb5ac13eefe419", "d397c7585c5ce437aa3383c75f7d816aac2215be92b9c562d53c85d344199ed5", "d6d23b5d97e85d5bae57eb8d6cc252714cd3a785021589fdcd1e3371c6016f14", "f4c5ef5219d04f49e7ba9b00c6f5d1316f9b287c9fec839e2a614a8e43d08992"] +six = ["3350809f0555b11f552448330d0b52d5f24c91a322ea4a15ef22629740f3761c", "d16a0141ec1a18405cd4ce8b4613101da75da0e9a7aec5bdd4fa804d0e0eba73"] +snowballstemmer = ["209f257d7533fdb3cb73bdbd24f436239ca3b2fa67d56f6ff88e86be08cc5ef0", "df3bac3df4c2c01363f3dd2cfa78cce2840a79b9f1c2d2de9ce8d31683992f52"] +social-auth-app-django = ["6d0dd18c2d9e71ca545097d57b44d26f59e624a12833078e8e52f91baf849778", "9237e3d7b6f6f59494c3b02e0cce6efc69c9d33ad9d1a064e3b2318bcbe89ae3", "f151396e5b16e2eee12cd2e211004257826ece24fc4ae97a147df386c1cd7082"] +social-auth-core = ["47cd2458c8fefd02466b0c514643e02ad8b61d8b4b69f7573e80882e3a97b0f0", "8320666548a532eb158968eda542bbe1863682357c432d8c4e28034a7f1e3b58", "d81ed681e3c0722300b61a0792c5db5d21206793f95ca810f010c1cc931c8d89"] +sorl-thumbnail = ["8dfe5fda91a5047d1d35a0b9effe7b000764a01d648e15ca076f44e9c34b6dbd", "d9e3f018d19293824803e4ffead96b19dfcd44fa7987cea392f50436817bef34"] +soupsieve = ["605f89ad5fdbfefe30cdc293303665eff2d188865d4dbe4eb510bba1edfbfce3", "b91d676b330a0ebd5b21719cb6e9b57c57d433671f65b9c28dd3461d9a1ed0b6"] +sphinx = ["0d586b0f8c2fc3cc6559c5e8fd6124628110514fda0e5d7c82e682d749d2e845", "839a3ed6f6b092bb60f492024489cc9e6991360fb9f52ed6361acd510d261069"] +sphinx-autobuild = ["66388f81884666e3821edbe05dd53a0cfb68093873d17320d0610de8db28c74e", "e60aea0789cab02fa32ee63c7acae5ef41c06f1434d9fd0a74250a61f5994692"] +sphinx-autodoc-typehints = ["0d968ec3ee4f7fe7695ab6facf5cd2d74d3cea67584277458ad9b2788ebbcc3b", "8edca714fd3de8e43467d7e51dd3812fe999f8874408a639f7c38a9e1a5a4eb3"] +sphinx-rtd-theme = ["00cf895504a7895ee433807c62094cf1e95f065843bf3acd17037c3e9a2becd4", "728607e34d60456d736cc7991fd236afb828b21b82f956c5ea75f94c8414040a"] +sphinxcontrib-applehelp = ["edaa0ab2b2bc74403149cb0209d6775c96de797dfd5b5e2a71981309efab3897", "fb8dee85af95e5c30c91f10e7eb3c8967308518e0f7488a2828ef7bc191d0d5d"] +sphinxcontrib-devhelp = ["6c64b077937330a9128a4da74586e8c2130262f014689b4b89e2d08ee7294a34", "9512ecb00a2b0821a146736b39f7aeb90759834b07e81e8cc23a9c70bacb9981"] +sphinxcontrib-htmlhelp = ["4670f99f8951bd78cd4ad2ab962f798f5618b17675c35c5ac3b2132a14ea8422", "d4fd39a65a625c9df86d7fa8a2d9f3cd8299a3a4b15db63b50aac9e161d8eff7"] +sphinxcontrib-jsmath = ["2ec2eaebfb78f3f2078e73666b1415417a116cc848b72e5172e596c871103178", "a9925e4a4587247ed2191a22df5f6970656cb8ca2bd6284309578f2153e0c4b8"] +sphinxcontrib-qthelp = ["513049b93031beb1f57d4daea74068a4feb77aa5630f856fcff2e50de14e9a20", "79465ce11ae5694ff165becda529a600c754f4bc459778778c7017374d4d406f"] +sphinxcontrib-serializinghtml = ["c0efb33f8052c04fd7a26c0a07f1678e8512e0faec19f4aa8f2473a8b81d5227", "db6615af393650bf1151a6cd39120c29abaf93cc60db8c48eb2dddbfdc3a9768"] +sqlparse = ["40afe6b8d4b1117e7dff5504d7a8ce07d9a1b15aeeade8a2d10f130a834f8177", "7c3dca29c022744e95b547e867cee89f4fce4373f3549ccd8797d8eb52cdb873"] +testpath = ["46c89ebb683f473ffe2aab0ed9f12581d4d078308a3cb3765d79c6b2317b0109", "b694b3d9288dbd81685c5d2e7140b81365d46c29f5db4bc659de5aa6b98780f8"] +text-unidecode = ["1311f10e8b895935241623731c2ba64f4c455287888b18189350b67134a822e8", "bad6603bb14d279193107714b288be206cac565dfa49aa5b105294dd5c4aab93"] +tifffile = ["645e3a427743b9a892c835bcc363b043e732489621d2b6de12933c82b591398c", "6b875c4342a55cbed8ef4af3aa9d7a06b02219089b9f5d7a457918dc73f61f9d"] +tldextract = ["16b2f7e81d89c2a5a914d25bdbddd3932c31a6b510db886c3ce0764a195c0ee7", "9aa21a1f7827df4209e242ec4fc2293af5940ec730cde46ea80f66ed97bfc808"] +tokenize-rt = ["2f44eee8f620102f8a03c50142795121faf86e020d208896ea7a7047bbe933cf", "53f5c22d36e5c6f8e3fdbc6cb4dd151d1b3d38cea1b85b5fef6268f153733899"] +toml = ["229f81c57791a41d65e399fc06bf0848bab550a9dfd5ed66df18ce5f05e73d5c", "235682dd292d5899d361a811df37e04a8828a5b1da3115886b73cf81ebc9100e", "f1db651f9657708513243e61e6cc67d101a39bad662eaa9b5546f789338e07a3"] +tornado = ["349884248c36801afa19e342a77cc4458caca694b0eda633f5878e458a44cb2c", "398e0d35e086ba38a0427c3b37f4337327231942e731edaa6e9fd1865bbd6f60", "4e73ef678b1a859f0cb29e1d895526a20ea64b5ffd510a2307b5998c7df24281", "559bce3d31484b665259f50cd94c5c28b961b09315ccd838f284687245f416e5", "abbe53a39734ef4aba061fca54e30c6b4639d3e1f59653f0da37a0003de148c7", "c845db36ba616912074c5b1ee897f8e0124df269468f25e4fe21fe72f6edd7a9", "c9399267c926a4e7c418baa5cbe91c7d1cf362d505a1ef898fde44a07c9dd8a5"] +traitlets = ["70b4c6a1d9019d7b4f6846832288f86998aa3b9207c6821f3578a6a6a467fe44", "d023ee369ddd2763310e4c3eae1ff649689440d4ae59d7485eb4cfbbe3e359f7"] +urllib3 = ["06330f386d6e4b195fbfc736b297f58c5a892e4440e54d294d7004e3a9bbea1b", "cc44da8e1145637334317feebd728bd869a35285b93cbb4cca2577da7e62db4f"] +vine = ["133ee6d7a9016f177ddeaf191c1f58421a1dcc6ee9a42c58b34bed40e1d2cd87", "ea4947cc56d1fd6f2095c8d543ee25dad966f78692528e68b4fada11ba3f98af"] +watchdog = ["965f658d0732de3188211932aeb0bb457587f04f63ab4c1e33eab878e9de961d"] +wcwidth = ["3df37372226d6e63e1b1e1eda15c594bca98a22d33a23832a90998faa96bc65e", "f4ebe71925af7b40a864553f761ed559b43544f8f71746c2d756c7fe788ade7c"] +webencodings = ["a0af1213f3c2226497a97e2b3aa01a7e4bee4f403f95be16fc9acd2947514a78", "b36a1c245f2d304965eb4e0a82848379241dc04b865afcc4aab16748587e1923"] +websocket-client = ["1151d5fb3a62dc129164292e1227655e4bbc5dd5340a5165dfae61128ec50aa9", "1fd5520878b68b84b5748bb30e592b10d0a91529d5383f74f4964e72b297fd3a"] +werkzeug = ["7280924747b5733b246fe23972186c6b348f9ae29724135a6dfc1e53cea433e7", "e5f4a1f98b52b18a93da705a7458e55afb26f32bff83ff5d19189f92462d65c4"] +whitenoise = ["22f79cf8f1f509639330f93886acaece8ec5ac5e9600c3b981d33c34e8a42dfd", "6dfea214b7c12efd689007abf9afa87a426586e9dbc051873ad2c8e535e2a1ac"] +zipp = ["3718b1cbcd963c7d4c5511a8240812904164b7f381b647143a89d3b98f9bcd8e", "f06903e9f1f43b12d371004b4ac7b06ab39a44adc747266928ae6debfa7b3335"] diff --git a/pyproject.toml b/pyproject.toml index 7795d0bf61..26c1ad70ff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,73 @@ +[build-system] +requires = ["poetry>=0.12"] +build-backend = "poetry.masonry.api" + [tool.black] line-length = 79 target-version = ['py37'] + +[tool.poetry] +name = "grand-challenge.org" +version = "0.1.0" +description = "" +authors = ["James Meakin <code@jmsmkn.com>"] + +[tool.poetry.dependencies] +python = ">=3.7" +"beautifulsoup4" = "*" +celery = "*" +redis = "*" +django = "<2.3" +django-countries = "*" +django-crispy-forms = "*" +django-userena-ce = "*" +djangorestframework = "*" +docker = "*" +matplotlib = "*" +"oauth2" = "*" +python-magic = "*" +python-memcached = "*" +pytz = "*" +social-auth-app-django = "*" +gunicorn = "*" +django-celery-email = "*" +nbconvert = "*" +simpleitk = "*" +django-celery-beat = "*" +django-favicon-plus = "*" +"psycopg2" = "*" +"django-select2" = "*" +django-celery-results = "*" +django-summernote = "*" +bleach = "*" +jsonschema = "*" +tldextract = "*" +tifffile = "==2019.1.4" +sorl-thumbnail = "*" +django-autocomplete-light = "*" +django-storages = "*" +boto3 = "*" +whitenoise = "*" +brotli = "*" +djangorestframework-guardian = "*" +django-extensions = "*" +django-simple-history = "*" +sentry-sdk = "*" +django-cors-headers = "*" +pyvips = "*" +django-speedinfo = "*" + +[tool.poetry.dev-dependencies] +pytest-django = "*" +pytest-cov = "*" +pytest-mock = "*" +factory-boy = "*" +django-debug-toolbar = "*" +black = "==19.3b0" +sphinx-autobuild = "*" +sphinx = "*" +pyupgrade = "*" +pytest-xdist = "*" +sphinx-autodoc-typehints = "*" +werkzeug = "*" +sphinx-rtd-theme = "*"
pre-commit__pre-commit-1254
Running `pre-commit` 1.20.0 on Guix gives server certificate verification failed. CAfile: none CRLfile: none Running `pre-commit` 1.20.0 on Guix gives ``` An unexpected error has occurred: CalledProcessError: Command: ('/home/igankevich/.guix-profile/bin/git', 'fetch', 'origin', '--tags') Return code: 128 Expected return code: 0 Output: (none) Errors: fatal: unable to access 'https://github.com/pre-commit/pre-commit-hooks/': server certificate verification failed. CAfile: none CRLfile: none Traceback (most recent call last): File "/gnu/store/35ppc0zpffbzc6zsw9xnks1hxmr7wh19-python-pre-commit-1.20.0/lib/python3.7/site-packages/pre_commit/store.py", line 168, in clone_strategy self._shallow_clone(ref, _git_cmd) File "/gnu/store/35ppc0zpffbzc6zsw9xnks1hxmr7wh19-python-pre-commit-1.20.0/lib/python3.7/site-packages/pre_commit/store.py", line 150, in _shallow_clone git_cmd('-c', git_config, 'fetch', 'origin', ref, '--depth=1') File "/gnu/store/35ppc0zpffbzc6zsw9xnks1hxmr7wh19-python-pre-commit-1.20.0/lib/python3.7/site-packages/pre_commit/store.py", line 165, in _git_cmd cmd_output_b('git', *args, cwd=directory, env=env) File "/gnu/store/35ppc0zpffbzc6zsw9xnks1hxmr7wh19-python-pre-commit-1.20.0/lib/python3.7/site-packages/pre_commit/util.py", line 147, in cmd_output_b returncode, cmd, retcode, output=(stdout_b, stderr_b), pre_commit.util.CalledProcessError: Command: ('/home/igankevich/.guix-profile/bin/git', '-c', 'protocol.version=2', 'fetch', 'origin', 'v2.4.0', '--depth=1') Return code: 128 Expected return code: 0 Output: (none) Errors: fatal: unable to access 'https://github.com/pre-commit/pre-commit-hooks/': server certificate verification failed. CAfile: none CRLfile: none ``` It looks like pre-commit sanitises GIT_SSL_CAINFO environment variable. Guix uses this variable to specify the path to the certificates. I fixed this bug by _whitelisting_ GIT_SSL_CAINFO in `no_git_env` in `pre_commit/git.py`.
[ { "content": "from __future__ import unicode_literals\n\nimport logging\nimport os.path\nimport sys\n\nfrom pre_commit.util import cmd_output\nfrom pre_commit.util import cmd_output_b\n\n\nlogger = logging.getLogger(__name__)\n\n\ndef zsplit(s):\n s = s.strip('\\0')\n if s:\n return s.split('\\0')\...
[ { "content": "from __future__ import unicode_literals\n\nimport logging\nimport os.path\nimport sys\n\nfrom pre_commit.util import cmd_output\nfrom pre_commit.util import cmd_output_b\n\n\nlogger = logging.getLogger(__name__)\n\n\ndef zsplit(s):\n s = s.strip('\\0')\n if s:\n return s.split('\\0')\...
diff --git a/pre_commit/git.py b/pre_commit/git.py index 3ee9ca3af..c8faf60f7 100644 --- a/pre_commit/git.py +++ b/pre_commit/git.py @@ -32,7 +32,7 @@ def no_git_env(_env=None): return { k: v for k, v in _env.items() if not k.startswith('GIT_') or - k in {'GIT_EXEC_PATH', 'GIT_SSH', 'GIT_SSH_COMMAND'} + k in {'GIT_EXEC_PATH', 'GIT_SSH', 'GIT_SSH_COMMAND', 'GIT_SSL_CAINFO'} }
Pylons__pyramid-2226
Update to Sphinx 1.3.4 when released There is a [bug in Sphinx 1.3.3 and 1.3.1](https://github.com/sphinx-doc/sphinx/issues/2189) (I haven't tried 1.3.2) where next and previous links in Sphinx documentation are broken when going into children and across sibling directories. When 1.3.4 is released, we need to pin sphinx to 1.3.4, which will include the commit made 8 days after the 1.3.3 release.
[ { "content": "##############################################################################\n#\n# Copyright (c) 2008-2013 Agendaless Consulting and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the BSD-like license at\n# http://www.repoze.org/LICENSE.txt. A copy of ...
[ { "content": "##############################################################################\n#\n# Copyright (c) 2008-2013 Agendaless Consulting and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the BSD-like license at\n# http://www.repoze.org/LICENSE.txt. A copy of ...
diff --git a/setup.py b/setup.py index 60502548e1..87e8ed0f05 100644 --- a/setup.py +++ b/setup.py @@ -56,7 +56,7 @@ tests_require.append('zope.component>=3.11.0') docs_extras = [ - 'Sphinx >= 1.3.1', + 'Sphinx >= 1.3.4', 'docutils', 'repoze.sphinx.autointerface', 'pylons_sphinx_latesturl',
blaze__blaze-872
Truncate column name is too verbose Do we have to have a unique name for the result of such operations? How about having it renamed to the unit, i.e. instead of `when_datetimetruncate` we use `when_day` or `when_week`, etc?
[ { "content": "from __future__ import absolute_import, division, print_function\n\nfrom .expressions import Expr, ElemWise\nfrom datashape import dshape, Record, DataShape, Unit, Option, date_, datetime_\nimport datashape\n\n__all__ = ['DateTime', 'Date', 'date', 'Year', 'year', 'Month', 'month', 'Day',\n ...
[ { "content": "from __future__ import absolute_import, division, print_function\n\nfrom .expressions import Expr, ElemWise\nfrom datashape import dshape, Record, DataShape, Unit, Option, date_, datetime_\nimport datashape\n\n__all__ = ['DateTime', 'Date', 'date', 'Year', 'year', 'Month', 'month', 'Day',\n ...
diff --git a/blaze/expr/datetime.py b/blaze/expr/datetime.py index 7864688bc..0a0399df0 100644 --- a/blaze/expr/datetime.py +++ b/blaze/expr/datetime.py @@ -135,6 +135,10 @@ def _dtype(self): else: return datashape.datetime_ + @property + def _name(self): + return self._child._name + def truncate(expr, *args, **kwargs): """ Truncate datetime expression diff --git a/blaze/expr/tests/test_datetime.py b/blaze/expr/tests/test_datetime.py index d9e9f7e0f..f3a55d281 100644 --- a/blaze/expr/tests/test_datetime.py +++ b/blaze/expr/tests/test_datetime.py @@ -44,3 +44,8 @@ def test_isdatelike(): assert not isdatelike('int32') assert isdatelike('?date') assert not isdatelike('{is_outdated: bool}') + + +def test_truncate_names(): + t = symbol('t', '5 * {name: string, when: datetime}') + assert t.when.truncate(days=2)._name == 'when'
aio-libs__aiohttp-1989
Deprecate app.on_loop_available signal From my understanding on `app.on_startup` the loop is already present. Why do we need additional signal? `app.on_loop_available` is not documented BTW @fafhrd91 ?
[ { "content": "import asyncio\nimport os\nimport signal\nimport socket\nimport stat\nimport sys\nimport warnings\nfrom argparse import ArgumentParser\nfrom collections import Iterable, MutableMapping\nfrom importlib import import_module\n\nfrom yarl import URL\n\nfrom . import (hdrs, web_exceptions, web_fileresp...
[ { "content": "import asyncio\nimport os\nimport signal\nimport socket\nimport stat\nimport sys\nimport warnings\nfrom argparse import ArgumentParser\nfrom collections import Iterable, MutableMapping\nfrom importlib import import_module\n\nfrom yarl import URL\n\nfrom . import (hdrs, web_exceptions, web_fileresp...
diff --git a/CHANGES.rst b/CHANGES.rst index 71c8722c22c..2225241cb55 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -36,6 +36,14 @@ Changes - Fix BadStatusLine caused by extra `CRLF` after `POST` data #1792 +- + +- Deprecate undocumented app.on_loop_available signal #1978 + +- + +- + 2.1.0 (2017-05-26) ------------------ diff --git a/aiohttp/web.py b/aiohttp/web.py index 1dac37d7cb4..c4afe4620c8 100644 --- a/aiohttp/web.py +++ b/aiohttp/web.py @@ -199,6 +199,8 @@ def add_subapp(self, prefix, subapp): @property def on_loop_available(self): + warnings.warn("on_loop_available is deprecated and will be removed", + DeprecationWarning, stacklevel=2) return self._on_loop_available @property diff --git a/tests/test_web_application.py b/tests/test_web_application.py index 1633bfe1b50..daa19ef5df4 100644 --- a/tests/test_web_application.py +++ b/tests/test_web_application.py @@ -50,7 +50,8 @@ def test_on_loop_available(loop): app = web.Application() cb = mock.Mock() - app.on_loop_available.append(cb) + with pytest.warns(DeprecationWarning): + app.on_loop_available.append(cb) app._set_loop(loop) cb.assert_called_with(app)
saulpw__visidata-1310
[v2.9dev] Disable adding new row in DirSheet **Small description** Unless used, `add-row` should probably be disabled on DirSheet as it creates an error **Expected result** A warning to be shown to the user that a new row/file cannot be created. **Actual result with screenshot** ![image](https://user-images.githubusercontent.com/11225502/155373843-aeef6d8e-cc96-4559-b3e6-dc9690aab25f.png) **Steps to reproduce with sample data and a .vd** Open vd directory with vd (`vd .`) and press `a`
[ { "content": "import os\nimport shutil\nimport stat\nimport subprocess\nimport contextlib\ntry:\n import pwd\n import grp\nexcept ImportError:\n pass # pwd,grp modules not available on Windows\n\nfrom visidata import Column, Sheet, LazyComputeRow, asynccache, BaseSheet, vd\nfrom visidata import Path, E...
[ { "content": "import os\nimport shutil\nimport stat\nimport subprocess\nimport contextlib\ntry:\n import pwd\n import grp\nexcept ImportError:\n pass # pwd,grp modules not available on Windows\n\nfrom visidata import Column, Sheet, LazyComputeRow, asynccache, BaseSheet, vd\nfrom visidata import Path, E...
diff --git a/visidata/shell.py b/visidata/shell.py index b60be51d1..ce43a6d55 100644 --- a/visidata/shell.py +++ b/visidata/shell.py @@ -151,6 +151,9 @@ def removeFile(self, path): def deleteSourceRow(self, r): self.removeFile(r) + def newRow(self): + vd.fail('new file not supported') + def iterload(self): hidden_files = self.options.dir_hidden
holoviz__panel-1775
Pyvista tests breaking Looks like latest pyvista 0.27.2 changed some internal APIs: ```python def pyvista_render_window(): """ Allow to download and create a more complex example easily """ from pyvista import examples sphere = pv.Sphere() #test actor globe = examples.load_globe() #test texture head = examples.download_head() #test volume uniform = examples.load_uniform() #test structured grid scalars=sphere.points[:, 2] > sphere._add_point_array(scalars, 'test', set_active=True) #allow to test scalars E AttributeError: 'PolyData' object has no attribute '_add_point_array' ``` Cc @xavArtley
[ { "content": "#!/usr/bin/env python\n\nimport os\nimport shutil\nimport sys\nimport json\n\nfrom setuptools import setup, find_packages\nfrom setuptools.command.develop import develop\nfrom setuptools.command.install import install\nfrom setuptools.command.sdist import sdist\n\nimport pyct.build\n\n\ndef get_se...
[ { "content": "#!/usr/bin/env python\n\nimport os\nimport shutil\nimport sys\nimport json\n\nfrom setuptools import setup, find_packages\nfrom setuptools.command.develop import develop\nfrom setuptools.command.install import install\nfrom setuptools.command.sdist import sdist\n\nimport pyct.build\n\n\ndef get_se...
diff --git a/panel/tests/pane/test_vtk.py b/panel/tests/pane/test_vtk.py index 6b65da9fdf..0fffbfd495 100644 --- a/panel/tests/pane/test_vtk.py +++ b/panel/tests/pane/test_vtk.py @@ -68,7 +68,8 @@ def pyvista_render_window(): uniform = examples.load_uniform() #test structured grid scalars=sphere.points[:, 2] - sphere._add_point_array(scalars, 'test', set_active=True) #allow to test scalars + sphere.point_arrays['test'] = scalars #allow to test scalars + sphere.set_active_scalars('test') uniform.set_active_scalars("Spatial Cell Data") diff --git a/setup.py b/setup.py index d2710b496d..cef4cf8f46 100644 --- a/setup.py +++ b/setup.py @@ -137,7 +137,7 @@ def run(self): 'jupyter_bokeh', 'django', 'channels', - 'pyvista <0.27', # temporary fix for tests + 'pyvista', 'ipywidgets', 'ipywidgets_bokeh', 'ipyvolume',
cloud-custodian__cloud-custodian-5544
aws - add usgs additional partitions iso and isob are currently missing, its unclear if boto3 has support for them out of the box, golang and nodejs sdks do.
[ { "content": "# Copyright 2015-2017 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requi...
[ { "content": "# Copyright 2015-2017 Capital One Services, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requi...
diff --git a/c7n/utils.py b/c7n/utils.py index f52edc195db..c2a324d87d2 100644 --- a/c7n/utils.py +++ b/c7n/utils.py @@ -327,7 +327,9 @@ def parse_s3(s3_path): 'us-gov-east-1': 'aws-us-gov', 'us-gov-west-1': 'aws-us-gov', 'cn-north-1': 'aws-cn', - 'cn-northwest-1': 'aws-cn' + 'cn-northwest-1': 'aws-cn', + 'us-isob-east-1': 'aws-iso-b', + 'us-iso-east-1': 'aws-iso' }
flairNLP__flair-435
Cannot install allennlp due to matplotlib dependency conflict Hello, thanks for the great package. I want to play with ELMoEmbeddings, which requires package allennlp, not installed by default with Flair. However, installing latest allennlp fails because it requires matplotlib==2.2.3, while Flair requires >=3.0.0. When I install allennlp==0.7.0 (without the matplotlib requirement), it still fails because of PyTorch conflicts. Makes me wonder what versions I should use that are actually compatible?
[ { "content": "from setuptools import setup, find_packages\n\nsetup(\n name='flair',\n version='0.4.0',\n description='A very simple framework for state-of-the-art NLP',\n long_description=open(\"README.md\", encoding='utf-8').read(),\n long_description_content_type=\"text/markdown\",\n author=...
[ { "content": "from setuptools import setup, find_packages\n\nsetup(\n name='flair',\n version='0.4.0',\n description='A very simple framework for state-of-the-art NLP',\n long_description=open(\"README.md\", encoding='utf-8').read(),\n long_description_content_type=\"text/markdown\",\n author=...
diff --git a/requirements.txt b/requirements.txt index 2329957afb..9cee3472c7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ gensim>=3.4.0 pytest>=3.6.4 tqdm>=4.26.0 segtok>=1.5.7 -matplotlib>=3.0.0 +matplotlib>=2.2.3 mpld3==0.3 sklearn sqlitedict>=1.6.0 diff --git a/setup.py b/setup.py index 055627dbd8..98a4e9b483 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ 'gensim>=3.4.0', 'tqdm>=4.26.0', 'segtok>=1.5.7', - 'matplotlib>=3.0.0', + 'matplotlib>=2.2.3', 'mpld3>=0.3', 'sklearn', 'sqlitedict>=1.6.0',
dask__distributed-3910
Variables leak virtual clients **What happened**: ```python def _get_number_of_clients(dask_scheduler: Optional[Scheduler] = None) -> Optional[int]: if dask_scheduler is None: return None else: return len(dask_scheduler.clients) n_clients1 = client.run_on_scheduler(_get_number_of_clients) assert n_clients1 is not None for i in range(100): future = create_some_dummy_future() var = Variable(f"var-{i}", client) var.set(future) future.cancel(force=True) var.delete() n_clients2 = client.run_on_scheduler(_get_number_of_clients) assert n_clients2 is not None assert n_client1 == n_clients2 ``` This fails, because here: https://github.com/dask/distributed/blob/1d7640b0172febf9ceef37c2c31241c66ac165eb/distributed/scheduler.py#L2333-L2347 a new virtual client for each and every variable is created but here: https://github.com/dask/distributed/blob/1d7640b0172febf9ceef37c2c31241c66ac165eb/distributed/scheduler.py#L2349-L2361 we never clean up / prune these clients again. **What you expected to happen**: Scheduler-side state is not leaky. **Environment**: - Dask version: 2.17.2 - Distributed version: 2.17.0 - Python version: 3.6 - Operating System: Linux - Install method (conda, pip, source): pip
[ { "content": "import asyncio\nfrom collections import defaultdict\nfrom contextlib import suppress\nimport logging\nimport uuid\n\nfrom tlz import merge\n\nfrom .client import Future, Client\nfrom .utils import tokey, log_errors, TimeoutError, parse_timedelta\nfrom .worker import get_client\n\nlogger = logging....
[ { "content": "import asyncio\nfrom collections import defaultdict\nfrom contextlib import suppress\nimport logging\nimport uuid\n\nfrom tlz import merge\n\nfrom .client import Future, Client\nfrom .utils import tokey, log_errors, TimeoutError, parse_timedelta\nfrom .worker import get_client\n\nlogger = logging....
diff --git a/distributed/tests/test_variable.py b/distributed/tests/test_variable.py index 1e707626235..5d9ece6ee54 100644 --- a/distributed/tests/test_variable.py +++ b/distributed/tests/test_variable.py @@ -263,3 +263,22 @@ def test_future_erred_sync(client): with pytest.raises(ZeroDivisionError): future2.result() + + +@gen_cluster(client=True) +async def test_variables_do_not_leak_client(c, s, a, b): + # https://github.com/dask/distributed/issues/3899 + clients_pre = set(s.clients) + + # setup variable with future + x = Variable("x") + future = c.submit(inc, 1) + await x.set(future) + + # complete teardown + x.delete() + + start = time() + while set(s.clients) != clients_pre: + await asyncio.sleep(0.01) + assert time() < start + 5 diff --git a/distributed/variable.py b/distributed/variable.py index 82c407a494f..b20273031ab 100644 --- a/distributed/variable.py +++ b/distributed/variable.py @@ -119,6 +119,8 @@ async def delete(self, comm=None, name=None, client=None): with suppress(KeyError): del self.variables[name] + self.scheduler.remove_client("variable-%s" % name) + class Variable: """ Distributed Global Variable
weni-ai__bothub-engine-226
Training with no sentences Reported by @johncordeiro in https://github.com/Ilhasoft/bothub/issues/36
[ { "content": "import uuid\nimport base64\nimport requests\n\nfrom functools import reduce\nfrom django.db import models\nfrom django.utils.translation import gettext as _\nfrom django.utils import timezone\nfrom django.conf import settings\nfrom django.core.validators import RegexValidator, _lazy_re_compile\nfr...
[ { "content": "import uuid\nimport base64\nimport requests\n\nfrom functools import reduce\nfrom django.db import models\nfrom django.utils.translation import gettext as _\nfrom django.utils import timezone\nfrom django.conf import settings\nfrom django.core.validators import RegexValidator, _lazy_re_compile\nfr...
diff --git a/bothub/common/models.py b/bothub/common/models.py index ac4eab27..74711b74 100644 --- a/bothub/common/models.py +++ b/bothub/common/models.py @@ -481,6 +481,9 @@ def ready_for_train(self): not self.deleted.exists(): return False + if self.examples.count() == 0: + return False + return len(self.requirements_to_train) is 0 @property diff --git a/bothub/common/tests.py b/bothub/common/tests.py index d6b666cb..441e2aa1 100644 --- a/bothub/common/tests.py +++ b/bothub/common/tests.py @@ -871,6 +871,15 @@ def test_entity_dont_have_min_examples(self): entity='hi') self.assertTrue(self.repository.current_update().ready_for_train) + def test_no_examples(self): + example = RepositoryExample.objects.create( + repository_update=self.repository.current_update(), + text='hi', + intent='greet') + self.repository.current_update().start_training(self.owner) + example.delete() + self.assertFalse(self.repository.current_update().ready_for_train) + class RequestRepositoryAuthorizationTestCase(TestCase): def setUp(self):
fail2ban__fail2ban-2057
badips.py should use https Hi, What about asking `badips.py` to use https ? I think the following : `_badips = "http://www.badips.com"` Would just have to be changed to : `_badips = "https://www.badips.com"` Thank you 👍 Ben
[ { "content": "# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-\n# vi: set ft=python sts=4 ts=4 sw=4 noet :\n\n# This file is part of Fail2Ban.\n#\n# Fail2Ban is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# ...
[ { "content": "# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: t -*-\n# vi: set ft=python sts=4 ts=4 sw=4 noet :\n\n# This file is part of Fail2Ban.\n#\n# Fail2Ban is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# ...
diff --git a/ChangeLog b/ChangeLog index 4bee628855..b16827a2e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -44,6 +44,7 @@ ver. 0.10.3-dev-1 (20??/??/??) - development edition * possibility to specify own regex-pattern to match epoch date-time, e. g. `^\[{EPOCH}\]` or `^\[{LEPOCH}\]` (gh-2038); the epoch-pattern similar to `{DATE}` patterns does the capture and cuts out the match of whole pattern from the log-line, e. g. date-pattern `^\[{LEPOCH}\]\s+:` will match and cut out `[1516469849551000] :` from begin of the log-line. +* badips.py now uses https instead of plain http when requesting badips.com (gh-2057); ver. 0.10.2 (2018/01/18) - nothing-burns-like-the-cold diff --git a/config/action.d/badips.py b/config/action.d/badips.py index 473fbf335f..03fe7856ee 100644 --- a/config/action.d/badips.py +++ b/config/action.d/badips.py @@ -81,7 +81,7 @@ class BadIPsAction(ActionBase): # pragma: no cover - may be unavailable """ TIMEOUT = 10 - _badips = "http://www.badips.com" + _badips = "https://www.badips.com" def _Request(self, url, **argv): return Request(url, headers={'User-Agent': self.agent}, **argv)
Pylons__pyramid-2225
Update to Sphinx 1.3.4 when released There is a [bug in Sphinx 1.3.3 and 1.3.1](https://github.com/sphinx-doc/sphinx/issues/2189) (I haven't tried 1.3.2) where next and previous links in Sphinx documentation are broken when going into children and across sibling directories. When 1.3.4 is released, we need to pin sphinx to 1.3.4, which will include the commit made 8 days after the 1.3.3 release.
[ { "content": "##############################################################################\n#\n# Copyright (c) 2008-2013 Agendaless Consulting and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the BSD-like license at\n# http://www.repoze.org/LICENSE.txt. A copy of ...
[ { "content": "##############################################################################\n#\n# Copyright (c) 2008-2013 Agendaless Consulting and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the BSD-like license at\n# http://www.repoze.org/LICENSE.txt. A copy of ...
diff --git a/setup.py b/setup.py index b1624291b8..7d308f35d6 100644 --- a/setup.py +++ b/setup.py @@ -56,7 +56,7 @@ tests_require.append('zope.component>=3.11.0') docs_extras = [ - 'Sphinx >= 1.3.1', + 'Sphinx >= 1.3.4', 'docutils', 'repoze.sphinx.autointerface', 'pylons_sphinx_latesturl',
Pylons__pyramid-2224
Update to Sphinx 1.3.4 when released There is a [bug in Sphinx 1.3.3 and 1.3.1](https://github.com/sphinx-doc/sphinx/issues/2189) (I haven't tried 1.3.2) where next and previous links in Sphinx documentation are broken when going into children and across sibling directories. When 1.3.4 is released, we need to pin sphinx to 1.3.4, which will include the commit made 8 days after the 1.3.3 release.
[ { "content": "##############################################################################\n#\n# Copyright (c) 2008-2013 Agendaless Consulting and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the BSD-like license at\n# http://www.repoze.org/LICENSE.txt. A copy of ...
[ { "content": "##############################################################################\n#\n# Copyright (c) 2008-2013 Agendaless Consulting and Contributors.\n# All Rights Reserved.\n#\n# This software is subject to the provisions of the BSD-like license at\n# http://www.repoze.org/LICENSE.txt. A copy of ...
diff --git a/setup.py b/setup.py index 9bdfcd90ed..daccd32587 100644 --- a/setup.py +++ b/setup.py @@ -56,7 +56,7 @@ tests_require.append('zope.component>=3.11.0') docs_extras = [ - 'Sphinx >= 1.3.1', + 'Sphinx >= 1.3.4', 'docutils', 'repoze.sphinx.autointerface', 'pylons_sphinx_latesturl',
google__openhtf-870
'module' object has no attribute 'MIMETYPE_MAP' - station_server.py I have openHTF installed in two locations but I only get this error on one of them (The newer one I installed today. I installed from source). I try running `frontend_example.py`, and this is the error I get: ``` Traceback (most recent call last): File "frontend_example.py", line 21, in <module> from openhtf.output.servers import station_server File "/home/lab_machine_2/anaconda2/lib/python2.7/site-packages/openhtf-1.3.0-py2.7.egg/openhtf/output/servers/station_server.py", line 36, in <module> v: k for k, v in six.iteritems(mfg_inspector.MIMETYPE_MAP) AttributeError: 'module' object has no attribute 'MIMETYPE_MAP' ``` I am working on a project that also crashes on the new installation but works on a previously installed version. 'module' object has no attribute 'MIMETYPE_MAP' - station_server.py I have openHTF installed in two locations but I only get this error on one of them (The newer one I installed today. I installed from source). I try running `frontend_example.py`, and this is the error I get: ``` Traceback (most recent call last): File "frontend_example.py", line 21, in <module> from openhtf.output.servers import station_server File "/home/lab_machine_2/anaconda2/lib/python2.7/site-packages/openhtf-1.3.0-py2.7.egg/openhtf/output/servers/station_server.py", line 36, in <module> v: k for k, v in six.iteritems(mfg_inspector.MIMETYPE_MAP) AttributeError: 'module' object has no attribute 'MIMETYPE_MAP' ``` I am working on a project that also crashes on the new installation but works on a previously installed version.
[ { "content": "\"\"\"Serves an Angular frontend and information about a running OpenHTF test.\n\nThis server does not currently support more than one test running in the same\nprocess. However, the dashboard server (dashboard_server.py) can be used to\naggregate info from multiple station servers with a single f...
[ { "content": "\"\"\"Serves an Angular frontend and information about a running OpenHTF test.\n\nThis server does not currently support more than one test running in the same\nprocess. However, the dashboard server (dashboard_server.py) can be used to\naggregate info from multiple station servers with a single f...
diff --git a/openhtf/output/servers/station_server.py b/openhtf/output/servers/station_server.py index 1554a5e56..fe20bb2bb 100644 --- a/openhtf/output/servers/station_server.py +++ b/openhtf/output/servers/station_server.py @@ -32,9 +32,6 @@ STATION_SERVER_TYPE = 'station' -MIMETYPE_REVERSE_MAP = { - v: k for k, v in six.iteritems(mfg_inspector.MIMETYPE_MAP) -} MULTICAST_QUERY = 'OPENHTF_DISCOVERY' TEST_STATUS_COMPLETED = 'COMPLETED'
scikit-hep__pyhf-895
Docs build broken with Sphinx v3.1.0 # Description Today (2020-06-08) [Sphinx `v3.1.0`](https://github.com/sphinx-doc/sphinx/releases/tag/v3.1.0) was released which now classifies pyhf's particular usages of the "autoclass" directive as an Error in the docs generated for [`interpolators/code0.py`](https://github.com/scikit-hep/pyhf/blob/62becc2e469f89babf75534a2decfb3ace6ff179/src/pyhf/interpolators/code0.py) ``` Warning, treated as error: /home/runner/work/pyhf/pyhf/docs/_generated/pyhf.interpolators.code0.rst:8:Error in "autoclass" directive: 1 argument(s) required, 0 supplied. .. autoclass:: :show-inheritance: .. rubric:: Methods .. automethod:: .__init__ ##[error]Process completed with exit code 1. ```
[ { "content": "from setuptools import setup\n\nextras_require = {\n 'tensorflow': ['tensorflow~=2.0', 'tensorflow-probability~=0.8'],\n 'torch': ['torch~=1.2'],\n 'jax': ['jax~=0.1,>0.1.51', 'jaxlib~=0.1,>0.1.33'],\n 'xmlio': ['uproot'],\n 'minuit': ['iminuit'],\n}\nextras_require['backends'] = so...
[ { "content": "from setuptools import setup\n\nextras_require = {\n 'tensorflow': ['tensorflow~=2.0', 'tensorflow-probability~=0.8'],\n 'torch': ['torch~=1.2'],\n 'jax': ['jax~=0.1,>0.1.51', 'jaxlib~=0.1,>0.1.33'],\n 'xmlio': ['uproot'],\n 'minuit': ['iminuit'],\n}\nextras_require['backends'] = so...
diff --git a/setup.py b/setup.py index 78b99aa700..1302abb3c2 100644 --- a/setup.py +++ b/setup.py @@ -46,7 +46,7 @@ extras_require['docs'] = sorted( set( [ - 'sphinx', + 'sphinx!=3.1.0', 'sphinxcontrib-bibtex', 'sphinx-click', 'sphinx_rtd_theme',
psf__black-2665
py310 match: one-line case breaks **Describe the bug** In `python3.10` the `case` black can be written in the same line as the `case` keyword. However, this breaks `black`. **To Reproduce** Take this example code ```python # example.py x = 5 match x: case 5: print("it works") ``` It runs under `python3.10`: ```sh python example.py it works ``` However, `black` crashes: ``` black --target-version py310 example.py error: cannot format example.py: INTERNAL ERROR: Black produced invalid code on pass 1: expected an indented block after 'case' statement on line 3 (<unknown>, line 4). Please report a bug on https://github.com/psf/black/issues. This invalid output might be helpful: /var/folders/cz/v1lxwy5579502ksd81z14_t40000gp/T/blk_inxhkvdg.log Oh no! 💥 💔 💥 1 file failed to reformat. ``` After manually reformatting the example as follows ```python x = 5 match x: case 5: print("it works") ``` `black` stops crashing. **Expected behavior** `black` should not crash. **Environment** * macOS Big Sur 11.6 * `python 3.10.0` * `black --version`: `black, 21.11b1 (compiled: no)`
[ { "content": "\"\"\"\nblib2to3 Node/Leaf transformation-related utility functions.\n\"\"\"\n\nimport sys\nfrom typing import (\n Collection,\n Generic,\n Iterator,\n List,\n Optional,\n Set,\n Tuple,\n TypeVar,\n Union,\n)\n\nif sys.version_info >= (3, 8):\n from typing import Fina...
[ { "content": "\"\"\"\nblib2to3 Node/Leaf transformation-related utility functions.\n\"\"\"\n\nimport sys\nfrom typing import (\n Collection,\n Generic,\n Iterator,\n List,\n Optional,\n Set,\n Tuple,\n TypeVar,\n Union,\n)\n\nif sys.version_info >= (3, 8):\n from typing import Fina...
diff --git a/CHANGES.md b/CHANGES.md index 59042914174..c9a4f09a72a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -13,6 +13,7 @@ `match a, *b:` (#2639) (#2659) - Fix `match`/`case` statements that contain `match`/`case` soft keywords multiple times, like `match re.match()` (#2661) +- Fix `case` statements with an inline body (#2665) - Fix assignment to environment variables in Jupyter Notebooks (#2642) - Add `flake8-simplify` and `flake8-comprehensions` plugins (#2653) - Fix determination of f-string expression spans (#2654) diff --git a/src/black/nodes.py b/src/black/nodes.py index 36dd1890511..437051d3f6d 100644 --- a/src/black/nodes.py +++ b/src/black/nodes.py @@ -52,6 +52,8 @@ syms.with_stmt, syms.funcdef, syms.classdef, + syms.match_stmt, + syms.case_block, } STANDALONE_COMMENT: Final = 153 token.tok_name[STANDALONE_COMMENT] = "STANDALONE_COMMENT" diff --git a/tests/data/pattern_matching_style.py b/tests/data/pattern_matching_style.py new file mode 100644 index 00000000000..c1c0aeedb70 --- /dev/null +++ b/tests/data/pattern_matching_style.py @@ -0,0 +1,27 @@ +match something: + case b(): print(1+1) + case c( + very_complex=True, + perhaps_even_loooooooooooooooooooooooooooooooooooooong=- 1 + ): print(1) + case c( + very_complex=True, + perhaps_even_loooooooooooooooooooooooooooooooooooooong=-1 + ): print(2) + case a: pass + +# output + +match something: + case b(): + print(1 + 1) + case c( + very_complex=True, perhaps_even_loooooooooooooooooooooooooooooooooooooong=-1 + ): + print(1) + case c( + very_complex=True, perhaps_even_loooooooooooooooooooooooooooooooooooooong=-1 + ): + print(2) + case a: + pass diff --git a/tests/test_format.py b/tests/test_format.py index f97d7165b1a..d44be1e8712 100644 --- a/tests/test_format.py +++ b/tests/test_format.py @@ -74,6 +74,7 @@ "pattern_matching_simple", "pattern_matching_complex", "pattern_matching_extras", + "pattern_matching_style", "parenthesized_context_managers", ]
pypa__pipenv-505
Allow file:// uris as pipenv paths - Any reason not to? - PR incoming
[ { "content": "# -*- coding: utf-8 -*-\nimport os\nimport hashlib\nimport tempfile\n\nfrom piptools.resolver import Resolver\nfrom piptools.repositories.pypi import PyPIRepository\nfrom piptools.scripts.compile import get_pip_command\nfrom piptools import logging\n\nimport requests\nimport parse\nimport pip\nimp...
[ { "content": "# -*- coding: utf-8 -*-\nimport os\nimport hashlib\nimport tempfile\n\nfrom piptools.resolver import Resolver\nfrom piptools.repositories.pypi import PyPIRepository\nfrom piptools.scripts.compile import get_pip_command\nfrom piptools import logging\n\nimport requests\nimport parse\nimport pip\nimp...
diff --git a/pipenv/utils.py b/pipenv/utils.py index b81e35d0a4..59423a3a03 100644 --- a/pipenv/utils.py +++ b/pipenv/utils.py @@ -15,7 +15,7 @@ # List of version control systems we support. VCS_LIST = ('git', 'svn', 'hg', 'bzr') -FILE_LIST = ('http://', 'https://', 'ftp://') +FILE_LIST = ('http://', 'https://', 'ftp://', 'file:///') requests = requests.session()
Gallopsled__pwntools-244
`pwnlib.tubes.tube.recvrepeat()` and `pwnlib.tubes.tube.recvall()` should never raise `EOFError` If the connection is closed while calling these functions, we should simply return the received data.
[ { "content": "# -*- coding: utf-8 -*-\nfrom .buffer import Buffer\nfrom .timeout import Timeout\nfrom .. import context, term, atexit\nfrom ..util import misc, fiddling\nfrom ..context import context\nimport re, threading, sys, time, subprocess, logging, string\n\nlog = logging.getLogger(__name__)\n\nclass tube...
[ { "content": "# -*- coding: utf-8 -*-\nfrom .buffer import Buffer\nfrom .timeout import Timeout\nfrom .. import context, term, atexit\nfrom ..util import misc, fiddling\nfrom ..context import context\nimport re, threading, sys, time, subprocess, logging, string\n\nlog = logging.getLogger(__name__)\n\nclass tube...
diff --git a/pwnlib/tubes/tube.py b/pwnlib/tubes/tube.py index c5b597049..9affd498a 100644 --- a/pwnlib/tubes/tube.py +++ b/pwnlib/tubes/tube.py @@ -594,7 +594,10 @@ def recvrepeat(self, timeout = None): 'd' """ - while self._fillbuffer(timeout=timeout): + try: + while self._fillbuffer(timeout=timeout): + pass + except EOFError: pass return self.buffer.get()
conan-io__conan-6333
[bug] New warning in python 3.8 makes some tests fail (line buffering isn't supported in binary mode) <!-- Please don't forget to update the issue title. Include all applicable information to help us reproduce your problem. To help us debug your issue please explain: --> ### Environment Details (include every applicable attribute) * Operating System+version: Arch Linux * Compiler+version: - * Conan version: develop * Python version: python 3.8 ### Steps to reproduce (Include if Applicable) Run some unit tests, for example: ``` nosetests conans.test.functional.settings ``` ### Logs (Executed commands with output) (Include/Attach if Applicable) ``` $ nosetests conans.test.functional.settings ............F............F.F............. ====================================================================== FAIL: test_only_cppstd (conan.conans.test.functional.settings.cppstd.compiler_cppstd_test.UseCompilerCppStdSettingTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/siu/src/extern/conan/conans/test/functional/settings/cppstd/compiler_cppstd_test.py", line 140, in test_only_cppstd self.t.run("info . -s cppstd=14") File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__ next(self.gen) File "/home/siu/src/extern/conan/conans/test/utils/deprecation.py", line 13, in catch_deprecation_warning test_suite.assertEqual(len(w), n) AssertionError: 2 != 1 ====================================================================== FAIL: gcc_8_std_20_test (conan.conans.test.functional.settings.cppstd_test.StdCppTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/siu/src/extern/conan/conans/test/functional/settings/cppstd_test.py", line 47, in gcc_8_std_20_test client.run('create . user/testing -s compiler="gcc" ' File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__ next(self.gen) File "/home/siu/src/extern/conan/conans/test/utils/deprecation.py", line 13, in catch_deprecation_warning test_suite.assertEqual(len(w), n) AssertionError: 2 != 1 ====================================================================== FAIL: use_wrong_setting_for_compiler_test (conan.conans.test.functional.settings.cppstd_test.StdCppTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/siu/src/extern/conan/conans/test/functional/settings/cppstd_test.py", line 23, in use_wrong_setting_for_compiler_test client.run('create . user/testing -s compiler="gcc" ' File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__ next(self.gen) File "/home/siu/src/extern/conan/conans/test/utils/deprecation.py", line 13, in catch_deprecation_warning test_suite.assertEqual(len(w), n) AssertionError: 2 != 1 ---------------------------------------------------------------------- Ran 41 tests in 4.690s FAILED (failures=3) ``` <!-- Your log content should be related to the bug description, it can be: - Conan command output - Server output (Artifactory, conan_server) -->
[ { "content": "import os\nimport platform\nimport re\nfrom subprocess import PIPE, Popen, STDOUT\n\nfrom conans.client.output import Color\nfrom conans.client.tools import detected_os, OSInfo\nfrom conans.client.tools.win import latest_visual_studio_version_installed\nfrom conans.model.version import Version\n\n...
[ { "content": "import os\nimport platform\nimport re\nfrom subprocess import PIPE, Popen, STDOUT\n\nfrom conans.client.output import Color\nfrom conans.client.tools import detected_os, OSInfo\nfrom conans.client.tools.win import latest_visual_studio_version_installed\nfrom conans.model.version import Version\n\n...
diff --git a/conans/client/conf/detect.py b/conans/client/conf/detect.py index 1b3310d6e2f..de0b8601f72 100644 --- a/conans/client/conf/detect.py +++ b/conans/client/conf/detect.py @@ -10,7 +10,8 @@ def _execute(command): - proc = Popen(command, shell=True, bufsize=1, stdout=PIPE, stderr=STDOUT) + proc = Popen(command, shell=True, bufsize=1, universal_newlines=True, stdout=PIPE, + stderr=STDOUT) output_buffer = [] while True:
dotkom__onlineweb4-973
Add appKom to list of committees in dashboard view AppKom is missing as a committee in the dashboard view. Users can't add a position in that committee. ![screen shot 2014-09-30 at 02 33 48](https://cloud.githubusercontent.com/assets/582580/4451680/c20b1420-4839-11e4-8dfc-b52969d8481c.png)
[ { "content": "# -*- coding: utf-8 -*-\n\nimport datetime\nimport socket\nimport urllib\nimport hashlib\n\nfrom django.conf import settings\nfrom django.contrib.auth.models import AbstractUser\nfrom django.db import models\nfrom django.utils.translation import ugettext as _\nfrom django.utils import timezone\nfr...
[ { "content": "# -*- coding: utf-8 -*-\n\nimport datetime\nimport socket\nimport urllib\nimport hashlib\n\nfrom django.conf import settings\nfrom django.contrib.auth.models import AbstractUser\nfrom django.db import models\nfrom django.utils.translation import ugettext as _\nfrom django.utils import timezone\nfr...
diff --git a/apps/authentication/models.py b/apps/authentication/models.py index 101fa474f..f407da014 100644 --- a/apps/authentication/models.py +++ b/apps/authentication/models.py @@ -51,6 +51,7 @@ ('prokom', _(u'Profil-og aviskomiteen')), ('trikom', _(u'Trivselskomiteen')), ('velkom', _(u'Velkomstkomiteen')), + ('appkom', _(u'Applikasjonskomiteen')), ] POSITIONS = [ diff --git a/templates/frontpage.html b/templates/frontpage.html index 11dbf0e04..1dc1f4def 100755 --- a/templates/frontpage.html +++ b/templates/frontpage.html @@ -274,6 +274,11 @@ <h2 id="about-heading">OM ONLINE</h2> <div class="tab-pane" id="trikom"> {% filter markdown %} {% chunk 'om_trikom' %} +{% endfilter %} + </div> + <div class="tab-pane" id="appkom"> +{% filter markdown %} +{% chunk 'om_appkom' %} {% endfilter %} </div> <div class="tab-pane" id="ekskom"> @@ -324,6 +329,7 @@ <h2 id="about-heading">OM ONLINE</h2> <li><a href="#prokom">ProKom</a></li> <li><a href="#trikom">TriKom</a></li> <li class="nav-header">Nodekomiteer</li> + <li><a href="#appkom">AppKom</a></li> <li><a href="#ekskom">EksKom</a></li> <li><a href="#jubkom">JubKom</a></li> <li><a href="#velkom">VelKom</a></li>
getmoto__moto-431
SQS MD5 Hashing Issues I've started using Moto as a standalone server to aid testing a PHP stack. I've discovered that once I create a message which contains encapsulated (escaped) JSON - it starts to fail with the AWS PHP SDK, although it works fine with Boto2. The issue appears to be in and around the calculation of the MD5 sum. I suspect Boto must be ignoring the MD5, otherwise I'd think it would be reporting the same problem. The exception I get from PHP SDK: ``` PHP Warning: Uncaught Aws\Sqs\Exception\SqsException: AWS Error Code: , Status Code: , AWS Request ID: , AWS Error Type: , AWS Error Message: Body MD5 mismatch for array ( 'MessageId' => '97f171c9-b7a5-b764-f3e0-4234555f509f', 'ReceiptHandle' => 'nntoxkpevzvvbvbvylufszndstdeplilaxnckhsceeztjvmdqtzpxptfoeyndfgscncydyntjilbppbgsrwlldsjpksxklybpayijnoewirfexullvcdtmbvuablunaykrqomudptfmnznriseoegwopnaxidtwwsmoikjndpaxilaicgcbpisdpt', 'MD5OfBody' => '08ab38f810e137a6cce4990c3952be77', 'Body' => '{ ``` Trying to reproduce that MD5 of the body using the same body contents from a json file: PHP: ``` php > $body = file_get_contents(__DIR__ . '/test.json'); php > echo md5($body); 6d8dc937d72f4cdfad4b76be545dda6b ``` Python: ``` >>> import hashlib >>> with open('git_src/api/data/sqs/ses/temp_bounce.json') as myfile: ... data=myfile.read() >>> hashlib.md5(data).hexdigest() '6d8dc937d72f4cdfad4b76be545dda6b' >>> from xml.sax.saxutils import escape >>> hashlib.md5(escape(data).encode('utf-8')).hexdigest() '08ab38f810e137a6cce4990c3952be77' ``` So it seems the XML escaping is causing the problem. Before I put together a PR I'll confirm how the real AWS SQS service calculates this MD5.
[ { "content": "from __future__ import unicode_literals\n\nimport hashlib\nimport time\nimport re\nfrom xml.sax.saxutils import escape\n\nimport boto.sqs\n\nfrom moto.core import BaseBackend\nfrom moto.core.utils import camelcase_to_underscores, get_random_message_id\nfrom .utils import generate_receipt_handle, u...
[ { "content": "from __future__ import unicode_literals\n\nimport hashlib\nimport time\nimport re\nfrom xml.sax.saxutils import escape\n\nimport boto.sqs\n\nfrom moto.core import BaseBackend\nfrom moto.core.utils import camelcase_to_underscores, get_random_message_id\nfrom .utils import generate_receipt_handle, u...
diff --git a/moto/sqs/models.py b/moto/sqs/models.py index bc0a5a4c610c..efb75dd9c40e 100644 --- a/moto/sqs/models.py +++ b/moto/sqs/models.py @@ -34,7 +34,7 @@ def __init__(self, message_id, body): @property def md5(self): body_md5 = hashlib.md5() - body_md5.update(self.body.encode('utf-8')) + body_md5.update(self._body.encode('utf-8')) return body_md5.hexdigest() @property
incuna__django-pgcrypto-fields-78
EmailPGPPublicKeyField does not use the correct mixin As defined in https://github.com/incuna/django-pgcrypto-fields/blob/master/pgcrypto/fields.py#L41 `EmailPGPPublicKeyField` uses the `PGPSymmetricKeyFieldMixin` mixin instead of the `PGPPublicKeyFieldMixin` one.
[ { "content": "from django.db import models\n\nfrom pgcrypto import (\n DIGEST_SQL,\n HMAC_SQL,\n PGP_PUB_ENCRYPT_SQL_WITH_NULLIF,\n PGP_SYM_ENCRYPT_SQL_WITH_NULLIF,\n)\nfrom pgcrypto.lookups import (\n HashLookup,\n)\nfrom pgcrypto.mixins import (\n DecimalPGPFieldMixin,\n get_setting,\n ...
[ { "content": "from django.db import models\n\nfrom pgcrypto import (\n DIGEST_SQL,\n HMAC_SQL,\n PGP_PUB_ENCRYPT_SQL_WITH_NULLIF,\n PGP_SYM_ENCRYPT_SQL_WITH_NULLIF,\n)\nfrom pgcrypto.lookups import (\n HashLookup,\n)\nfrom pgcrypto.mixins import (\n DecimalPGPFieldMixin,\n get_setting,\n ...
diff --git a/pgcrypto/fields.py b/pgcrypto/fields.py index af9f201..a05d553 100644 --- a/pgcrypto/fields.py +++ b/pgcrypto/fields.py @@ -38,7 +38,7 @@ class TextHMACField(HashMixin, models.TextField): TextHMACField.register_lookup(HashLookup) -class EmailPGPPublicKeyField(PGPSymmetricKeyFieldMixin, models.EmailField): +class EmailPGPPublicKeyField(PGPPublicKeyFieldMixin, models.EmailField): """Email PGP public key encrypted field."""
Kinto__kinto-885
Crash when querystring contains null character ``` python Python 2.7.12 (default, Jul 1 2016, 15:12:24) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import requests >>> requests.get(u"http://localhost:8888/v1/buckets?_since=\u0000", auth=("user","pass")) <Response [500]> >>> ``` ``` File "/home/mathieu/Code/Mozilla/kinto/.venv/local/lib/python2.7/site-packages/pyramid/viewderivers.py", line 442, in rendered_view result = view(context, request) File "/home/mathieu/Code/Mozilla/kinto/.venv/local/lib/python2.7/site-packages/pyramid/viewderivers.py", line 147, in _requestonly_view response = view(request) File "/home/mathieu/Code/Mozilla/kinto/.venv/local/lib/python2.7/site-packages/cornice/service.py", line 489, in wrapper response = view_() File "/home/mathieu/Code/Mozilla/kinto/kinto/core/resource/__init__.py", line 254, in collection_get File "/home/mathieu/Code/Mozilla/kinto/kinto/core/resource/__init__.py", line 1123, in _extract_filters # In base resource, PATCH only hit storage if no data has changed. File "/home/mathieu/Code/Mozilla/kinto/kinto/core/resource/__init__.py", line 913, in _extract_filters 'location': 'querystring', File "/home/mathieu/Code/Mozilla/kinto/kinto/core/utils.py", line 149, in native_value try: File "/usr/lib/python2.7/ast.py", line 49, in literal_eval node_or_string = parse(node_or_string, mode='eval') File "/usr/lib/python2.7/ast.py", line 37, in parse return compile(source, filename, mode, PyCF_ONLY_AST) TypeError: compile() expected string without null bytes lang=None uid=35e9c5ff6b7d9d89e0c52f8d1da20e2965747ddc812d01b895592a1e98dc1aad ``` Catching `TypeError` in `core.utils.native_value()` should be enough Crash when querystring contains null character ``` python Python 2.7.12 (default, Jul 1 2016, 15:12:24) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import requests >>> requests.get(u"http://localhost:8888/v1/buckets?_since=\u0000", auth=("user","pass")) <Response [500]> >>> ``` ``` File "/home/mathieu/Code/Mozilla/kinto/.venv/local/lib/python2.7/site-packages/pyramid/viewderivers.py", line 442, in rendered_view result = view(context, request) File "/home/mathieu/Code/Mozilla/kinto/.venv/local/lib/python2.7/site-packages/pyramid/viewderivers.py", line 147, in _requestonly_view response = view(request) File "/home/mathieu/Code/Mozilla/kinto/.venv/local/lib/python2.7/site-packages/cornice/service.py", line 489, in wrapper response = view_() File "/home/mathieu/Code/Mozilla/kinto/kinto/core/resource/__init__.py", line 254, in collection_get File "/home/mathieu/Code/Mozilla/kinto/kinto/core/resource/__init__.py", line 1123, in _extract_filters # In base resource, PATCH only hit storage if no data has changed. File "/home/mathieu/Code/Mozilla/kinto/kinto/core/resource/__init__.py", line 913, in _extract_filters 'location': 'querystring', File "/home/mathieu/Code/Mozilla/kinto/kinto/core/utils.py", line 149, in native_value try: File "/usr/lib/python2.7/ast.py", line 49, in literal_eval node_or_string = parse(node_or_string, mode='eval') File "/usr/lib/python2.7/ast.py", line 37, in parse return compile(source, filename, mode, PyCF_ONLY_AST) TypeError: compile() expected string without null bytes lang=None uid=35e9c5ff6b7d9d89e0c52f8d1da20e2965747ddc812d01b895592a1e98dc1aad ``` Catching `TypeError` in `core.utils.native_value()` should be enough
[ { "content": "import ast\nimport hashlib\nimport hmac\nimport jsonpatch\nimport os\nimport re\nimport six\nimport threading\nimport time\nfrom base64 import b64decode, b64encode\nfrom binascii import hexlify\nfrom six.moves.urllib import parse as urlparse\nfrom enum import Enum\n\n# ujson is not installable wit...
[ { "content": "import ast\nimport hashlib\nimport hmac\nimport jsonpatch\nimport os\nimport re\nimport six\nimport threading\nimport time\nfrom base64 import b64decode, b64encode\nfrom binascii import hexlify\nfrom six.moves.urllib import parse as urlparse\nfrom enum import Enum\n\n# ujson is not installable wit...
diff --git a/CHANGELOG.rst b/CHANGELOG.rst index c8234d0f4..c2c39f8b0 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -19,6 +19,7 @@ This document describes changes between each past release. **Bug fixes** - Fixed showing of backend type twice in StatsD backend keys (fixes #857) +- Fix crash when querystring parameter contains null string (fixes #882) **Internal changes** diff --git a/kinto/core/utils.py b/kinto/core/utils.py index 26e664294..b87670111 100644 --- a/kinto/core/utils.py +++ b/kinto/core/utils.py @@ -148,7 +148,7 @@ def native_value(value): value = False try: return ast.literal_eval(value) - except (ValueError, SyntaxError): + except (TypeError, ValueError, SyntaxError): pass return value diff --git a/tests/core/test_utils.py b/tests/core/test_utils.py index f136c6cb6..6b49aff4a 100644 --- a/tests/core/test_utils.py +++ b/tests/core/test_utils.py @@ -59,6 +59,9 @@ def test_non_string_values(self): self.assertEqual(native_value(7), 7) self.assertEqual(native_value(True), True) + def test_bad_string_values(self): + self.assertEqual(native_value("\u0000"), "\x00") + class StripWhitespaceTest(unittest.TestCase): def test_removes_all_kinds_of_spaces(self):
celery__celery-8650
Celery exit with non-zero code after Warm Shutdown in Celery 5.3.x ### Discussed in https://github.com/celery/celery/discussions/8539 <div type='discussions-op-text'> <sup>Originally posted by **cinesia** September 27, 2023</sup> We upgraded recently **celery** from **5.2.7** to **5.3.4** and something changed in the default behaviour of a celery worker when it receives a warm shutdown. Before the upgrade, the worker exited with zero code and now the worker exit with non-zero code (1). The code it's the same and nothing changed except the package upgrade. I succeed in reproducing the error in a clean environment where only celery is installed. To reproduce the behaviour: - Create a simple Celery worker tasks.py ```python from celery import Celery app = Celery('tasks') @app.task def add(x, y): return x + y ``` Dockerfile ```Dockerfile # Use an official Python runtime as the base image FROM python:3.9-slim # Set the working directory in the container WORKDIR /app # Copy the dependencies file to the working directory (it has just a line with celery==...) COPY requirements.txt . # Install the dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of the application's code to the working directory COPY . . # Define the command to run your Celery worker CMD ["celery", "--app=tasks", "worker", "--loglevel=info"] ``` docker-compose ```yaml version: '3.7' services: # Deploy the broker. rabbitmq_server: image: rabbitmq:3-management ports: # Expose the port for the worker to add/get tasks - 5672:5672 # OPTIONAL: Expose the GUI port - 15672:15672 # Deploy the worker worker: # Build using the worker Dockerfile build: context: . dockerfile: Dockerfile # Need to access the database # OPTIONAL: If your worker needs to access your db that is deployed locally, then make the network mode as host. network_mode: host # Pass the rabbitmq_uri as an environment variable in order to connect to our service environment: # NOTE: Below we are using 127.0.0.1 because this container will run on the host network, thus it will have access to the host network. - CELERY_BROKER_URL=amqp://guest@127.0.0.1:5672// ``` - Open a python console inside the celery container and send a shutdown ```python import celery app = celery.Celery("tasks") app.control.shutdown() ``` If celery == 5.2.7 the container exit with code 0, if celery == 5.3.4 the container exit with code 1. </div>
[ { "content": "\"\"\"Worker remote control command implementations.\"\"\"\nimport io\nimport tempfile\nfrom collections import UserDict, defaultdict, namedtuple\n\nfrom billiard.common import TERM_SIGNAME\nfrom kombu.utils.encoding import safe_repr\n\nfrom celery.exceptions import WorkerShutdown\nfrom celery.pla...
[ { "content": "\"\"\"Worker remote control command implementations.\"\"\"\nimport io\nimport tempfile\nfrom collections import UserDict, defaultdict, namedtuple\n\nfrom billiard.common import TERM_SIGNAME\nfrom kombu.utils.encoding import safe_repr\n\nfrom celery.exceptions import WorkerShutdown\nfrom celery.pla...
diff --git a/celery/worker/control.py b/celery/worker/control.py index 41d059e4116..8cbd92cbd0e 100644 --- a/celery/worker/control.py +++ b/celery/worker/control.py @@ -580,7 +580,7 @@ def autoscale(state, max=None, min=None): def shutdown(state, msg='Got shutdown from remote', **kwargs): """Shutdown worker(s).""" logger.warning(msg) - raise WorkerShutdown(msg) + raise WorkerShutdown(0) # -- Queues
google__osv.dev-731
Missing HTML escaping in advisory description See https://osv.dev/vulnerability/GHSA-prc3-vjfx-vhm9 for example, the XSS example is actually interpreted as HTML and breaks the page.
[ { "content": "# Copyright 2021 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
[ { "content": "# Copyright 2021 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicab...
diff --git a/gcp/appengine/frontend_handlers.py b/gcp/appengine/frontend_handlers.py index fa89259ea86..810f3bbe70e 100644 --- a/gcp/appengine/frontend_handlers.py +++ b/gcp/appengine/frontend_handlers.py @@ -403,7 +403,8 @@ def group_versions(versions): def markdown(text): """Render markdown.""" if text: - return markdown2.markdown(text, extras=['fenced-code-blocks']) + return markdown2.markdown( + text, safe_mode='escape', extras=['fenced-code-blocks']) return ''