Commit 4dcf29c
committed
Split precompiled data into a sub-project (and wheel)
The goal of this is the ability to generate wheels for precompiled
instances of uap-core, at whatever version we want.
1. It resolves #146 by splitting the versioning of the API and that of
the (pre-compiled) data, this is an issue for 1.0 as that detaches
uap-python's versioning from uap-core's.
2. It allows users to update the API and the precompiled dataset
separately, something they would otherwise need to do via yaml.
3. It fixes #221 by allowing the regular release of "preview"
precompiled regexes from uap-core snapshots e.g. we could release
0.19.dev202412 at the start of december with whatever uap-core
merged between the previous prerelease and then. This should not be
picked up by pip by default, but would allow users to access those
prerelases via `pip install --pre`.
4. If done well enough, it might allow users to build bespoke
precompiled datasets so they don't have to pick between custom
rules and precompiled (not sure there's any demand for this but it
seems like it might be useful).
5. If it works well enough it might actually be possible to have 0.x
use the legacy codegen package meaning it should not need to be
updated anymore.
This is implemented via hatch build hooks (which seem seem simpler
than doing it via setuptools in the end).
Adding `regexes.yaml` to the sdist via artifacts is a bit strange but
necessary in order to generate a complete sdist which a wheel can be
built from (even though the release script will likely only push the
wheel).1 parent 2476d04 commit 4dcf29c
File tree
17 files changed
+274
-283
lines changed- .github/workflows
- src/ua_parser
- tests
- ua-parser-builtins
- ua_parser_builtins
17 files changed
+274
-283
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | | - | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| 106 | + | |
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
| |||
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
| 121 | + | |
118 | 122 | | |
119 | 123 | | |
120 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
524 | | - | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
0 commit comments