Upgrade mammoth to 1.11.0 (#1452)
This commit is contained in:
@@ -36,7 +36,7 @@ dependencies = [
|
|||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
all = [
|
all = [
|
||||||
"python-pptx",
|
"python-pptx",
|
||||||
"mammoth~=1.10.0",
|
"mammoth~=1.11.0",
|
||||||
"pandas",
|
"pandas",
|
||||||
"openpyxl",
|
"openpyxl",
|
||||||
"xlrd",
|
"xlrd",
|
||||||
@@ -50,7 +50,7 @@ all = [
|
|||||||
"azure-identity"
|
"azure-identity"
|
||||||
]
|
]
|
||||||
pptx = ["python-pptx"]
|
pptx = ["python-pptx"]
|
||||||
docx = ["mammoth~=1.10.0", "lxml"]
|
docx = ["mammoth~=1.11.0", "lxml"]
|
||||||
xlsx = ["pandas", "openpyxl"]
|
xlsx = ["pandas", "openpyxl"]
|
||||||
xls = ["pandas", "xlrd"]
|
xls = ["pandas", "xlrd"]
|
||||||
pdf = ["pdfminer.six"]
|
pdf = ["pdfminer.six"]
|
||||||
|
|||||||
@@ -15,13 +15,6 @@ from .._exceptions import MissingDependencyException, MISSING_DEPENDENCY_MESSAGE
|
|||||||
_dependency_exc_info = None
|
_dependency_exc_info = None
|
||||||
try:
|
try:
|
||||||
import mammoth
|
import mammoth
|
||||||
import mammoth.docx.files
|
|
||||||
|
|
||||||
def mammoth_files_open(self, uri):
|
|
||||||
warn("DOCX: processing of r:link resources (e.g., linked images) is disabled.")
|
|
||||||
return io.BytesIO(b"")
|
|
||||||
|
|
||||||
mammoth.docx.files.Files.open = mammoth_files_open
|
|
||||||
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
# Preserve the error and stack trace for later
|
# Preserve the error and stack trace for later
|
||||||
|
|||||||
Reference in New Issue
Block a user