mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-12-13 14:43:03 +00:00
Merge branch 'master' into nightly
This commit is contained in:
commit
5419be7d31
@ -18,7 +18,11 @@ Every user-facing change should have an entry in this changelog. Please respect
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
- [Improvement] use caddy `encode gzip` directive to optimize transfer size (by @ghassanmas)
|
## v14.1.1 (2022-10-25)
|
||||||
|
|
||||||
|
- [Deprecation] Tutor is no longer compatible with Python 3.6. (by @regisb)
|
||||||
|
- [Security] Fix xblock ajax handler vulnerability. (by @regisb)
|
||||||
|
- [Improvement] Use web proxy gzip encoding to improve bandwidth. We observe a 75% size reduction on the LMS dashboard. (by @ghassanmas)
|
||||||
|
|
||||||
## v14.1.0 (2022-10-10)
|
## v14.1.0 (2022-10-10)
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
include requirements/base.in
|
include requirements/base.in
|
||||||
include requirements/plugins.txt
|
include requirements/plugins.txt
|
||||||
recursive-include tutor/templates *
|
recursive-include tutor/templates *
|
||||||
|
include tutor/py.typed
|
||||||
|
3
setup.py
3
setup.py
@ -56,7 +56,7 @@ setup(
|
|||||||
long_description_content_type="text/x-rst",
|
long_description_content_type="text/x-rst",
|
||||||
packages=find_packages(exclude=["tests*"]),
|
packages=find_packages(exclude=["tests*"]),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
python_requires=">=3.6",
|
python_requires=">=3.7",
|
||||||
install_requires=load_requirements("base.in"),
|
install_requires=load_requirements("base.in"),
|
||||||
extras_require={
|
extras_require={
|
||||||
"full": load_requirements("plugins.txt"),
|
"full": load_requirements("plugins.txt"),
|
||||||
@ -68,7 +68,6 @@ setup(
|
|||||||
"License :: OSI Approved :: GNU Affero General Public License v3",
|
"License :: OSI Approved :: GNU Affero General Public License v3",
|
||||||
"Operating System :: OS Independent",
|
"Operating System :: OS Independent",
|
||||||
"Programming Language :: Python",
|
"Programming Language :: Python",
|
||||||
"Programming Language :: Python :: 3.6",
|
|
||||||
"Programming Language :: Python :: 3.7",
|
"Programming Language :: Python :: 3.7",
|
||||||
"Programming Language :: Python :: 3.8",
|
"Programming Language :: Python :: 3.8",
|
||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
|
@ -2,7 +2,7 @@ import os
|
|||||||
|
|
||||||
# Increment this version number to trigger a new release. See
|
# Increment this version number to trigger a new release. See
|
||||||
# docs/tutor.html#versioning for information on the versioning scheme.
|
# docs/tutor.html#versioning for information on the versioning scheme.
|
||||||
__version__ = "14.1.0"
|
__version__ = "14.1.1"
|
||||||
|
|
||||||
# The version suffix will be appended to the actual version, separated by a
|
# The version suffix will be appended to the actual version, separated by a
|
||||||
# dash. Use this suffix to differentiate between the actual released version and
|
# dash. Use this suffix to differentiate between the actual released version and
|
||||||
|
0
tutor/py.typed
Normal file
0
tutor/py.typed
Normal file
@ -35,7 +35,10 @@ T = t.TypeVar("T")
|
|||||||
|
|
||||||
|
|
||||||
def get_typed(
|
def get_typed(
|
||||||
config: Config, key: str, expected_type: t.Type[T], default: t.Optional[T] = None
|
config: t.Dict[str, t.Any],
|
||||||
|
key: str,
|
||||||
|
expected_type: t.Type[T],
|
||||||
|
default: t.Optional[T] = None,
|
||||||
) -> T:
|
) -> T:
|
||||||
value = config.get(key, default)
|
value = config.get(key, default)
|
||||||
if not isinstance(value, expected_type):
|
if not isinstance(value, expected_type):
|
||||||
|
Loading…
Reference in New Issue
Block a user