python-redlines 2.0.0__tar.gz → 3.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_redlines-2.0.0 → python_redlines-3.0.0}/PKG-INFO +14 -12
- {python_redlines-2.0.0 → python_redlines-3.0.0}/README.md +5 -3
- {python_redlines-2.0.0 → python_redlines-3.0.0}/pyproject.toml +4 -4
- {python_redlines-2.0.0 → python_redlines-3.0.0}/src/python_redlines/__about__.py +1 -1
- {python_redlines-2.0.0 → python_redlines-3.0.0}/src/python_redlines/engines.py +12 -4
- {python_redlines-2.0.0 → python_redlines-3.0.0}/.gitignore +0 -0
- {python_redlines-2.0.0 → python_redlines-3.0.0}/hatch_build.py +0 -0
- {python_redlines-2.0.0 → python_redlines-3.0.0}/src/python_redlines/__init__.py +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: python-redlines
|
|
3
|
-
Version:
|
|
4
|
-
Summary: Open-source DOCX comparison tool to generate native Word tracked changes (redlines) in Python without MS Word dependencies.
|
|
3
|
+
Version: 3.0.0
|
|
4
|
+
Summary: Open-source DOCX comparison tool, powered by the Docxodus engine, to generate native Word tracked changes (redlines) in Python without MS Word dependencies.
|
|
5
5
|
Project-URL: Homepage, https://github.com/JSv4/Python-Redlines
|
|
6
6
|
Project-URL: Documentation, https://jsv4.github.io/Python-Redlines/
|
|
7
7
|
Project-URL: Demo, https://redlines.opensource.legal
|
|
@@ -13,20 +13,20 @@ Keywords: compare-word-documents,diff,docx,docx-comparison,docxodus,legal-tech,o
|
|
|
13
13
|
Classifier: Development Status :: 5 - Production/Stable
|
|
14
14
|
Classifier: License :: OSI Approved :: MIT License
|
|
15
15
|
Classifier: Programming Language :: Python
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
18
16
|
Classifier: Programming Language :: Python :: 3.11
|
|
19
17
|
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
20
20
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
21
|
-
Requires-Python: >=3.
|
|
21
|
+
Requires-Python: >=3.11
|
|
22
22
|
Requires-Dist: platformdirs>=3.0
|
|
23
23
|
Provides-Extra: all
|
|
24
|
-
Requires-Dist: python-redlines-docxodus==
|
|
25
|
-
Requires-Dist: python-redlines-ooxmlpowertools==
|
|
24
|
+
Requires-Dist: python-redlines-docxodus==3.0.0; extra == 'all'
|
|
25
|
+
Requires-Dist: python-redlines-ooxmlpowertools==3.0.0; extra == 'all'
|
|
26
26
|
Provides-Extra: docxodus
|
|
27
|
-
Requires-Dist: python-redlines-docxodus==
|
|
27
|
+
Requires-Dist: python-redlines-docxodus==3.0.0; extra == 'docxodus'
|
|
28
28
|
Provides-Extra: ooxmlpowertools
|
|
29
|
-
Requires-Dist: python-redlines-ooxmlpowertools==
|
|
29
|
+
Requires-Dist: python-redlines-ooxmlpowertools==3.0.0; extra == 'ooxmlpowertools'
|
|
30
30
|
Description-Content-Type: text/markdown
|
|
31
31
|
|
|
32
32
|
# python-redlines
|
|
@@ -68,10 +68,12 @@ version as the wrapper. For older releases, pin both packages explicitly (for
|
|
|
68
68
|
example, `python-redlines[docxodus]==0.3.0` and
|
|
69
69
|
`python-redlines-docxodus==0.3.0`). Existing published metadata is unchanged.
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
are unchanged from
|
|
71
|
+
3.0.0 bundles Docxodus v17.0.0 and adds one setting, `minimum_anchor_word_count`.
|
|
72
|
+
Existing call signatures and settings are unchanged from 2.0.0, but comparison markup
|
|
73
|
+
and revision counts can differ, and some very deeply nested documents are now refused.
|
|
74
|
+
It requires Python 3.11 or newer; 2.0.0 was the last release to support 3.9 and 3.10.
|
|
73
75
|
Review representative redlines when upgrading; see the
|
|
74
|
-
[
|
|
76
|
+
[3.0.0 migration guide](https://github.com/JSv4/Python-Redlines#upgrading-to-300).
|
|
75
77
|
|
|
76
78
|
An unsuccessful engine exit raises `EngineExecutionError`, a subclass of
|
|
77
79
|
`subprocess.CalledProcessError`. Its message includes the captured stderr and
|
|
@@ -37,10 +37,12 @@ version as the wrapper. For older releases, pin both packages explicitly (for
|
|
|
37
37
|
example, `python-redlines[docxodus]==0.3.0` and
|
|
38
38
|
`python-redlines-docxodus==0.3.0`). Existing published metadata is unchanged.
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
are unchanged from
|
|
40
|
+
3.0.0 bundles Docxodus v17.0.0 and adds one setting, `minimum_anchor_word_count`.
|
|
41
|
+
Existing call signatures and settings are unchanged from 2.0.0, but comparison markup
|
|
42
|
+
and revision counts can differ, and some very deeply nested documents are now refused.
|
|
43
|
+
It requires Python 3.11 or newer; 2.0.0 was the last release to support 3.9 and 3.10.
|
|
42
44
|
Review representative redlines when upgrading; see the
|
|
43
|
-
[
|
|
45
|
+
[3.0.0 migration guide](https://github.com/JSv4/Python-Redlines#upgrading-to-300).
|
|
44
46
|
|
|
45
47
|
An unsuccessful engine exit raises `EngineExecutionError`, a subclass of
|
|
46
48
|
`subprocess.CalledProcessError`. Its message includes the captured stderr and
|
|
@@ -5,9 +5,9 @@ build-backend = "hatchling.build"
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "python-redlines"
|
|
7
7
|
dynamic = ["version", "optional-dependencies"]
|
|
8
|
-
description = "Open-source DOCX comparison tool to generate native Word tracked changes (redlines) in Python without MS Word dependencies."
|
|
8
|
+
description = "Open-source DOCX comparison tool, powered by the Docxodus engine, to generate native Word tracked changes (redlines) in Python without MS Word dependencies."
|
|
9
9
|
readme = "README.md"
|
|
10
|
-
requires-python = ">=3.
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
11
|
license = "MIT"
|
|
12
12
|
keywords = [
|
|
13
13
|
"docx",
|
|
@@ -30,10 +30,10 @@ classifiers = [
|
|
|
30
30
|
"Development Status :: 5 - Production/Stable",
|
|
31
31
|
"License :: OSI Approved :: MIT License",
|
|
32
32
|
"Programming Language :: Python",
|
|
33
|
-
"Programming Language :: Python :: 3.9",
|
|
34
|
-
"Programming Language :: Python :: 3.10",
|
|
35
33
|
"Programming Language :: Python :: 3.11",
|
|
36
34
|
"Programming Language :: Python :: 3.12",
|
|
35
|
+
"Programming Language :: Python :: 3.13",
|
|
36
|
+
"Programming Language :: Python :: 3.14",
|
|
37
37
|
"Programming Language :: Python :: Implementation :: CPython",
|
|
38
38
|
]
|
|
39
39
|
dependencies = [
|
|
@@ -162,10 +162,11 @@ class BaseEngine(object):
|
|
|
162
162
|
|
|
163
163
|
Additional keyword arguments are passed to _build_command() for engine-specific
|
|
164
164
|
options. DocxodusEngine supports: case_insensitive, detect_moves,
|
|
165
|
-
move_similarity_threshold, move_minimum_word_count,
|
|
166
|
-
conflate_spaces, date_time. It raises ValueError for
|
|
167
|
-
for the WmlComparer-era settings removed in Docxodus
|
|
168
|
-
detail_threshold, simplify_move_markup). XmlPowerToolsEngine
|
|
165
|
+
move_similarity_threshold, move_minimum_word_count, minimum_anchor_word_count,
|
|
166
|
+
detect_format_changes, conflate_spaces, date_time. It raises ValueError for
|
|
167
|
+
unrecognised settings and for the WmlComparer-era settings removed in Docxodus
|
|
168
|
+
v11.0.0 (engine, detail_threshold, simplify_move_markup). XmlPowerToolsEngine
|
|
169
|
+
ignores kwargs.
|
|
169
170
|
"""
|
|
170
171
|
scratch_files = []
|
|
171
172
|
try:
|
|
@@ -288,6 +289,7 @@ class DocxodusEngine(BaseEngine):
|
|
|
288
289
|
_VALUE_FLAGS = [
|
|
289
290
|
('move_similarity_threshold', '--move-similarity-threshold'),
|
|
290
291
|
('move_minimum_word_count', '--move-minimum-word-count'),
|
|
292
|
+
('minimum_anchor_word_count', '--minimum-anchor-word-count'),
|
|
291
293
|
('date_time', '--date-time'),
|
|
292
294
|
]
|
|
293
295
|
|
|
@@ -322,6 +324,12 @@ class DocxodusEngine(BaseEngine):
|
|
|
322
324
|
if not isinstance(val, int) or val < 1:
|
|
323
325
|
raise ValueError(f"move_minimum_word_count must be a positive integer, got {val!r}")
|
|
324
326
|
|
|
327
|
+
if 'minimum_anchor_word_count' in kwargs:
|
|
328
|
+
val = kwargs['minimum_anchor_word_count']
|
|
329
|
+
# bool is an int subclass, but would reach the CLI as "True".
|
|
330
|
+
if isinstance(val, bool) or not isinstance(val, int) or val < 0:
|
|
331
|
+
raise ValueError(f"minimum_anchor_word_count must be a non-negative integer, got {val!r}")
|
|
332
|
+
|
|
325
333
|
def _build_command(self, author_tag, original_path, modified_path, target_path, **kwargs):
|
|
326
334
|
self._validate_kwargs(kwargs)
|
|
327
335
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|