Commit 13324a8
committed
Split web-monitoring-diff out from -processing
This commit caps off the process of extracting the `web-monitoring-diff` package from the old `web-monitoring-processing` repo! There's a lot happening here:
- The README has been almost entirely rewritten.
- `setup.py` has been updated for this package.
- Versioneer has been updated.
- Requirements have been slimmed down to just what's needed for this codebase.
- Requirements can be installed via `pip install web-monitoring-diff` or `pip install web-monitoring-diff[server,dev]`. `requirements.txt` files are not needed except for Docker and "experimental" diffs.
- The server script has been renamed to `web-monitoring-diff-server` to match the package name. It's long, but now that we are treating this as more abstract, I'm leery of abbreviating as much.
- Modules have been moved around and renamed. `web_monitoring_diff.diff.<whatever>` and `web_monitoring_diff.diff_server` both seemed pretty redundant, so we now have:
- `web_monitoring_diff.<diff_function>` -- all the diff functions are exposed directly at the top level.
- The actual submodules containing diff functions are named `<whatever>_diff.py`:
- `basic_diffs.py` instead of `differs` to be more clear that these are relatively simple functions all thrown together.
- `html_render_diff.py` instead of `html_diff_render.py` to fit the convention.
- `html_links_diff.py` instead of `links_diff.py` to clarify that this is for HTML documents.
- `experimental/<wrapped_package_name>.py` contains the diffs that are no longer actively used and were never especially well supported. They have to be installed by via git instead of PyPI, so setup is also kind of special. Since they need extra special installation support, importing them may fail, and so each one is in a separate module. I've also tried to document the issues and concerns around each of them much more than we had anywhere before.
- `web_monitoring_diff.exceptions` as a common standard for where our exception types belong.
- `web_monitoring_diff.server` for the server. It's a subpackage since the content of the server module is so big. I think it's a pretty obvious future plan to refactor that megamodule into smaller files and this lets us do so.
- `deployment.md` has been removed -- it's no longer relevant.
- Switch to flake8 for linting
Layer dependencies better in Dockerfile
Fix CircleCI dependencies
Switch to flake8 for linting (but limit it a lot)1 parent 0c85613 commit 13324a8
File tree
72 files changed
+1271
-1419
lines changed- .circleci
- scripts
- web_monitoring_diff
- example_data
- experimental
- server
- tests
- fixtures
- versions
- web_monitoring
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
72 files changed
+1271
-1419
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | | - | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | | - | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
56 | | - | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
61 | | - | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
77 | | - | |
| 79 | + | |
78 | 80 | | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
82 | | - | |
83 | | - | |
| 84 | + | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
| 71 | + | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | | - | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
| 2 | + | |
| 3 | + | |
0 commit comments