htmlcmp 1.0.4__tar.gz → 1.0.5__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.
- {htmlcmp-1.0.4 → htmlcmp-1.0.5}/PKG-INFO +1 -1
- {htmlcmp-1.0.4 → htmlcmp-1.0.5}/pyproject.toml +2 -2
- {htmlcmp-1.0.4 → htmlcmp-1.0.5}/setup.py +1 -1
- {htmlcmp-1.0.4 → htmlcmp-1.0.5}/src/htmlcmp/tidy_output.py +4 -5
- {htmlcmp-1.0.4 → htmlcmp-1.0.5}/src/htmlcmp.egg-info/PKG-INFO +1 -1
- {htmlcmp-1.0.4 → htmlcmp-1.0.5}/README.md +0 -0
- {htmlcmp-1.0.4 → htmlcmp-1.0.5}/setup.cfg +0 -0
- {htmlcmp-1.0.4 → htmlcmp-1.0.5}/src/htmlcmp/__init__.py +0 -0
- {htmlcmp-1.0.4 → htmlcmp-1.0.5}/src/htmlcmp/common.py +0 -0
- {htmlcmp-1.0.4 → htmlcmp-1.0.5}/src/htmlcmp/compare_output.py +0 -0
- {htmlcmp-1.0.4 → htmlcmp-1.0.5}/src/htmlcmp/compare_output_server.py +0 -0
- {htmlcmp-1.0.4 → htmlcmp-1.0.5}/src/htmlcmp/html_render_diff.py +0 -0
- {htmlcmp-1.0.4 → htmlcmp-1.0.5}/src/htmlcmp.egg-info/SOURCES.txt +0 -0
- {htmlcmp-1.0.4 → htmlcmp-1.0.5}/src/htmlcmp.egg-info/dependency_links.txt +0 -0
- {htmlcmp-1.0.4 → htmlcmp-1.0.5}/src/htmlcmp.egg-info/entry_points.txt +0 -0
- {htmlcmp-1.0.4 → htmlcmp-1.0.5}/src/htmlcmp.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "htmlcmp"
|
|
3
|
-
version = "1.0.
|
|
3
|
+
version = "1.0.5"
|
|
4
4
|
description = "Compare HTML files by rendered output"
|
|
5
5
|
classifiers = []
|
|
6
6
|
authors = [
|
|
@@ -29,7 +29,7 @@ tracker = "https://github.com/opendocument-app/compare-html/issues"
|
|
|
29
29
|
[build-system]
|
|
30
30
|
requires = [
|
|
31
31
|
"setuptools",
|
|
32
|
-
"
|
|
32
|
+
"pillow",
|
|
33
33
|
"selenium",
|
|
34
34
|
"flask",
|
|
35
35
|
"watchdog",
|
|
@@ -5,7 +5,6 @@ import sys
|
|
|
5
5
|
import argparse
|
|
6
6
|
import json
|
|
7
7
|
import subprocess
|
|
8
|
-
import shlex
|
|
9
8
|
from pathlib import Path
|
|
10
9
|
|
|
11
10
|
from htmlcmp.common import bcolors
|
|
@@ -21,10 +20,10 @@ def tidy_json(path):
|
|
|
21
20
|
|
|
22
21
|
|
|
23
22
|
def tidy_html(path, html_tidy_config=None):
|
|
23
|
+
cmd = ["tidy"]
|
|
24
24
|
if html_tidy_config:
|
|
25
|
-
cmd
|
|
26
|
-
|
|
27
|
-
cmd = shlex.split(f'tidy -q "{path}"')
|
|
25
|
+
cmd.extend(["-config", str(html_tidy_config.resolve())])
|
|
26
|
+
cmd.append(str(path))
|
|
28
27
|
result = subprocess.run(
|
|
29
28
|
cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True
|
|
30
29
|
)
|
|
@@ -60,7 +59,7 @@ def tidy_dir(path, level=0, prefix="", html_tidy_config=None):
|
|
|
60
59
|
"error": [],
|
|
61
60
|
}
|
|
62
61
|
|
|
63
|
-
items = [
|
|
62
|
+
items = [p for p in path.iterdir()]
|
|
64
63
|
files = sorted([path for path in items if path.is_file() and tidyable_file(path)])
|
|
65
64
|
dirs = sorted([path for path in items if path.is_dir()])
|
|
66
65
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|