mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
relock with Python 3.8.15
This commit is contained in:
parent
33e597f5bb
commit
c21775980f
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -14,7 +14,11 @@ on:
|
|||||||
- 'translations**'
|
- 'translations**'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
# This is the version of pipenv all the steps will use
|
||||||
|
# If changing this, change Dockerfile
|
||||||
DEFAULT_PIP_ENV_VERSION: "2022.11.30"
|
DEFAULT_PIP_ENV_VERSION: "2022.11.30"
|
||||||
|
# This is the default version of Python to use in most steps
|
||||||
|
# If changing this, change Dockerfile
|
||||||
DEFAULT_PYTHON_VERSION: "3.9"
|
DEFAULT_PYTHON_VERSION: "3.9"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
1
.python-version
Normal file
1
.python-version
Normal file
@ -0,0 +1 @@
|
|||||||
|
3.8.15
|
3
Pipfile
3
Pipfile
@ -44,9 +44,6 @@ channels = "~=3.0"
|
|||||||
uvicorn = {extras = ["standard"], version = "*"}
|
uvicorn = {extras = ["standard"], version = "*"}
|
||||||
concurrent-log-handler = "*"
|
concurrent-log-handler = "*"
|
||||||
"pdfminer.six" = "*"
|
"pdfminer.six" = "*"
|
||||||
"backports.zoneinfo" = {version = "*", markers = "python_version < '3.9'"}
|
|
||||||
"importlib-resources" = {version = "*", markers = "python_version < '3.9'"}
|
|
||||||
zipp = {version = "*", markers = "python_version < '3.9'"}
|
|
||||||
pyzbar = "*"
|
pyzbar = "*"
|
||||||
mysqlclient = "*"
|
mysqlclient = "*"
|
||||||
celery = {extras = ["redis"], version = "*"}
|
celery = {extras = ["redis"], version = "*"}
|
||||||
|
31
Pipfile.lock
generated
31
Pipfile.lock
generated
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"_meta": {
|
"_meta": {
|
||||||
"hash": {
|
"hash": {
|
||||||
"sha256": "cda8a69041c65176017700e723e8ae57849e0a98a0d2f02323c0078064e91db9"
|
"sha256": "5d6da0ede3fc7dd05c9a1d836bf8786285b10b6134e763d06ee90d6e1ccb2be7"
|
||||||
},
|
},
|
||||||
"pipfile-spec": 6,
|
"pipfile-spec": 6,
|
||||||
"requires": {},
|
"requires": {},
|
||||||
@ -99,6 +99,7 @@
|
|||||||
"sha256:f04e857b59d9d1ccc39ce2da1021d196e47234873820cbeaad210724b1ee28ac",
|
"sha256:f04e857b59d9d1ccc39ce2da1021d196e47234873820cbeaad210724b1ee28ac",
|
||||||
"sha256:fadbfe37f74051d024037f223b8e001611eac868b5c5b06144ef4d8b799862f2"
|
"sha256:fadbfe37f74051d024037f223b8e001611eac868b5c5b06144ef4d8b799862f2"
|
||||||
],
|
],
|
||||||
|
"index": "pypi",
|
||||||
"markers": "python_version < '3.9'",
|
"markers": "python_version < '3.9'",
|
||||||
"version": "==0.2.1"
|
"version": "==0.2.1"
|
||||||
},
|
},
|
||||||
@ -1650,7 +1651,7 @@
|
|||||||
"sha256:1511434bb92bf8dd198c12b1cc812e800d4181cfcb867674e0f8279cc93087aa",
|
"sha256:1511434bb92bf8dd198c12b1cc812e800d4181cfcb867674e0f8279cc93087aa",
|
||||||
"sha256:16fa4864408f655d35ec496218b85f79b3437c829e93320c7c9215ccfd92489e"
|
"sha256:16fa4864408f655d35ec496218b85f79b3437c829e93320c7c9215ccfd92489e"
|
||||||
],
|
],
|
||||||
"markers": "python_version >= '3.7'",
|
"markers": "python_version < '3.10'",
|
||||||
"version": "==4.4.0"
|
"version": "==4.4.0"
|
||||||
},
|
},
|
||||||
"tzdata": {
|
"tzdata": {
|
||||||
@ -1899,7 +1900,7 @@
|
|||||||
"sha256:83a28fcb75844b5c0cdaf5aa4003c2d728c77e05f5aeabe8e95e56727005fbaa",
|
"sha256:83a28fcb75844b5c0cdaf5aa4003c2d728c77e05f5aeabe8e95e56727005fbaa",
|
||||||
"sha256:a7a22e05929290a67401440b39690ae6563279bced5f314609d9d03798f56766"
|
"sha256:a7a22e05929290a67401440b39690ae6563279bced5f314609d9d03798f56766"
|
||||||
],
|
],
|
||||||
"markers": "python_version < '3.9'",
|
"markers": "python_version < '3.10'",
|
||||||
"version": "==3.11.0"
|
"version": "==3.11.0"
|
||||||
},
|
},
|
||||||
"zope.interface": {
|
"zope.interface": {
|
||||||
@ -2160,6 +2161,14 @@
|
|||||||
"index": "pypi",
|
"index": "pypi",
|
||||||
"version": "==4.3.1"
|
"version": "==4.3.1"
|
||||||
},
|
},
|
||||||
|
"importlib-metadata": {
|
||||||
|
"hashes": [
|
||||||
|
"sha256:7efb448ec9a5e313a57655d35aa54cd3e01b7e1fbcf72dce1bf06119420f5bad",
|
||||||
|
"sha256:e354bedeb60efa6affdcc8ae121b73544a7aa74156d047311948f6d711cd378d"
|
||||||
|
],
|
||||||
|
"markers": "python_version < '3.10'",
|
||||||
|
"version": "==6.0.0"
|
||||||
|
},
|
||||||
"iniconfig": {
|
"iniconfig": {
|
||||||
"hashes": [
|
"hashes": [
|
||||||
"sha256:011e24c64b7f47f6ebd835bb12a743f2fbe9a26d4cecaa7f53bc4f35ee9da8b3",
|
"sha256:011e24c64b7f47f6ebd835bb12a743f2fbe9a26d4cecaa7f53bc4f35ee9da8b3",
|
||||||
@ -2736,6 +2745,14 @@
|
|||||||
"markers": "python_full_version < '3.11.0a7'",
|
"markers": "python_full_version < '3.11.0a7'",
|
||||||
"version": "==2.0.1"
|
"version": "==2.0.1"
|
||||||
},
|
},
|
||||||
|
"typing-extensions": {
|
||||||
|
"hashes": [
|
||||||
|
"sha256:1511434bb92bf8dd198c12b1cc812e800d4181cfcb867674e0f8279cc93087aa",
|
||||||
|
"sha256:16fa4864408f655d35ec496218b85f79b3437c829e93320c7c9215ccfd92489e"
|
||||||
|
],
|
||||||
|
"markers": "python_version < '3.10'",
|
||||||
|
"version": "==4.4.0"
|
||||||
|
},
|
||||||
"urllib3": {
|
"urllib3": {
|
||||||
"hashes": [
|
"hashes": [
|
||||||
"sha256:47cc05d99aaa09c9e72ed5809b60e7ba354e64b59c9c173ac3018642d8bb41fc",
|
"sha256:47cc05d99aaa09c9e72ed5809b60e7ba354e64b59c9c173ac3018642d8bb41fc",
|
||||||
@ -2785,6 +2802,14 @@
|
|||||||
],
|
],
|
||||||
"index": "pypi",
|
"index": "pypi",
|
||||||
"version": "==2.2.0"
|
"version": "==2.2.0"
|
||||||
|
},
|
||||||
|
"zipp": {
|
||||||
|
"hashes": [
|
||||||
|
"sha256:83a28fcb75844b5c0cdaf5aa4003c2d728c77e05f5aeabe8e95e56727005fbaa",
|
||||||
|
"sha256:a7a22e05929290a67401440b39690ae6563279bced5f314609d9d03798f56766"
|
||||||
|
],
|
||||||
|
"markers": "python_version < '3.10'",
|
||||||
|
"version": "==3.11.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ import re
|
|||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
import tempfile
|
import tempfile
|
||||||
from functools import cache
|
from functools import lru_cache
|
||||||
from typing import Iterator
|
from typing import Iterator
|
||||||
from typing import Match
|
from typing import Match
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
@ -45,7 +45,7 @@ DATE_REGEX = re.compile(
|
|||||||
logger = logging.getLogger("paperless.parsing")
|
logger = logging.getLogger("paperless.parsing")
|
||||||
|
|
||||||
|
|
||||||
@cache
|
@lru_cache(maxsize=8)
|
||||||
def is_mime_type_supported(mime_type: str) -> bool:
|
def is_mime_type_supported(mime_type: str) -> bool:
|
||||||
"""
|
"""
|
||||||
Returns True if the mime type is supported, False otherwise
|
Returns True if the mime type is supported, False otherwise
|
||||||
@ -53,7 +53,7 @@ def is_mime_type_supported(mime_type: str) -> bool:
|
|||||||
return get_parser_class_for_mime_type(mime_type) is not None
|
return get_parser_class_for_mime_type(mime_type) is not None
|
||||||
|
|
||||||
|
|
||||||
@cache
|
@lru_cache(maxsize=8)
|
||||||
def get_default_file_extension(mime_type: str) -> str:
|
def get_default_file_extension(mime_type: str) -> str:
|
||||||
"""
|
"""
|
||||||
Returns the default file extension for a mimetype, or
|
Returns the default file extension for a mimetype, or
|
||||||
@ -73,7 +73,7 @@ def get_default_file_extension(mime_type: str) -> str:
|
|||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
|
||||||
@cache
|
@lru_cache(maxsize=8)
|
||||||
def is_file_ext_supported(ext: str) -> bool:
|
def is_file_ext_supported(ext: str) -> bool:
|
||||||
"""
|
"""
|
||||||
Returns True if the file extension is supported, False otherwise
|
Returns True if the file extension is supported, False otherwise
|
||||||
|
Loading…
x
Reference in New Issue
Block a user