json-model-compiler 2.0b48__tar.gz → 2.0.49__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.
Files changed (129) hide show
  1. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/.gitignore +1 -0
  2. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/BACKLOG.md +11 -4
  3. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/BENCH.md +3 -7
  4. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/Makefile +9 -14
  5. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/PKG-INFO +1 -1
  6. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/VERSION.md +9 -0
  7. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/about.sh +12 -4
  8. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/__init__.py +2 -2
  9. json_model_compiler-2.0.49/json_model/data/VERSION +1 -0
  10. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/script.py +18 -4
  11. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model_compiler.egg-info/PKG-INFO +1 -1
  12. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model_compiler.egg-info/SOURCES.txt +0 -2
  13. json_model_compiler-2.0b48/json_model/.gitignore +0 -1
  14. json_model_compiler-2.0b48/json_model/data/VERSION +0 -1
  15. json_model_compiler-2.0b48/json_model/version.py +0 -2
  16. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/.gitmodules +0 -0
  17. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/API.md +0 -0
  18. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/DESIGN.md +0 -0
  19. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/DEV.md +0 -0
  20. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/DOC.md +0 -0
  21. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/HOWTO.md +0 -0
  22. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/INTEGRATION.md +0 -0
  23. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/MANIFEST.in +0 -0
  24. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/PUBS.md +0 -0
  25. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/README.md +0 -0
  26. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/SPEC.md +0 -0
  27. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/TUTO.md +0 -0
  28. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/README.md +0 -0
  29. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/analyze.py +0 -0
  30. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/clang.py +0 -0
  31. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/convert.py +0 -0
  32. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/clang_entry.c +0 -0
  33. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/clang_free.c +0 -0
  34. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/clang_init.c +0 -0
  35. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/clang_pcre2_fun.c +0 -0
  36. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/clang_re2_fun.c +0 -0
  37. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/java_free.java +0 -0
  38. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/java_init.java +0 -0
  39. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/javascript_exe.js +0 -0
  40. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/javascript_foot.js +0 -0
  41. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/javascript_free.js +0 -0
  42. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/javascript_head.js +0 -0
  43. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/javascript_init.js +0 -0
  44. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/javascript_main.js +0 -0
  45. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/jmc.pod +0 -0
  46. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/perl_entry.pl +0 -0
  47. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/perl_exe.pl +0 -0
  48. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/perl_free.pl +0 -0
  49. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/perl_init.pl +0 -0
  50. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/perl_main.pl +0 -0
  51. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/perl_pkg.pl +0 -0
  52. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/plpgsql_entry.sql +0 -0
  53. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/python_entry.py +0 -0
  54. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/python_exe.py +0 -0
  55. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/python_free.py +0 -0
  56. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/python_init.py +0 -0
  57. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/data/python_main.py +0 -0
  58. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/export.py +0 -0
  59. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/irep.py +0 -0
  60. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/java.py +0 -0
  61. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/javascript.py +0 -0
  62. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/language.py +0 -0
  63. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/model.py +0 -0
  64. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/mtypes.py +0 -0
  65. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/objops.py +0 -0
  66. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/optim.py +0 -0
  67. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/perl.py +0 -0
  68. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/plpgsql.py +0 -0
  69. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/predefs.py +0 -0
  70. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/python.py +0 -0
  71. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/recurse.py +0 -0
  72. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/resolver.py +0 -0
  73. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/Makefile +0 -0
  74. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/__init__.py +0 -0
  75. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/c/Makefile +0 -0
  76. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/c/json-model.c +0 -0
  77. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/c/json-model.h +0 -0
  78. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/c/main.c +0 -0
  79. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/java/.gitignore +0 -0
  80. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/java/Makefile +0 -0
  81. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/java/README.md +0 -0
  82. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/java/env.sh +0 -0
  83. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/java/json_model/Checker.java +0 -0
  84. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/java/json_model/GSON.java +0 -0
  85. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/java/json_model/JSON.java +0 -0
  86. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/java/json_model/JSONP.java +0 -0
  87. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/java/json_model/Jackson.java +0 -0
  88. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/java/json_model/Main.java +0 -0
  89. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/java/json_model/ModelChecker.java +0 -0
  90. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/java/json_model/Path.java +0 -0
  91. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/java/json_model/Report.java +0 -0
  92. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/java/json_model/Runtime.java +0 -0
  93. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/java/pom.xml +0 -0
  94. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/js/README.md +0 -0
  95. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/js/index.js +0 -0
  96. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/js/main.js +0 -0
  97. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/js/package.json +0 -0
  98. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/pl/.gitignore +0 -0
  99. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/pl/Changes +0 -0
  100. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/pl/LICENSE +0 -0
  101. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/pl/MANIFEST +0 -0
  102. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/pl/Makefile.PL +0 -0
  103. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/pl/README +0 -0
  104. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/pl/env.sh +0 -0
  105. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/pl/ignore.txt +0 -0
  106. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/pl/lib/JSON/JsonModel.pm +0 -0
  107. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/pl/t/00-load.t +0 -0
  108. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/pl/t/manifest.t +0 -0
  109. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/pl/t/pod-coverage.t +0 -0
  110. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/pl/t/pod.t +0 -0
  111. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/pl/xt/boilerplate.t +0 -0
  112. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/sql/META.json +0 -0
  113. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/sql/Makefile +0 -0
  114. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/sql/json_model--2.0.sql +0 -0
  115. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/sql/json_model.control +0 -0
  116. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/support.py +0 -0
  117. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/runtime/types.py +0 -0
  118. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/submodel.py +0 -0
  119. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/url_cache.py +0 -0
  120. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/utils.py +0 -0
  121. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model/xstatic.py +0 -0
  122. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model_compiler.egg-info/dependency_links.txt +0 -0
  123. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model_compiler.egg-info/entry_points.txt +0 -0
  124. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model_compiler.egg-info/not-zip-safe +0 -0
  125. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model_compiler.egg-info/requires.txt +0 -0
  126. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/json_model_compiler.egg-info/top_level.txt +0 -0
  127. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/package.json +0 -0
  128. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/pyproject.toml +0 -0
  129. {json_model_compiler-2.0b48 → json_model_compiler-2.0.49}/setup.cfg +0 -0
@@ -14,5 +14,6 @@ jmc.1
14
14
  site/MODELS.md
15
15
  site/JMC.md
16
16
  site/ABOUT.md
17
+ .about.md
17
18
  local.mk
18
19
  env.sh
@@ -2,10 +2,19 @@
2
2
 
3
3
  ## Current Tasks
4
4
 
5
+ - [x] front: cleanup obsolete versioning stuff
6
+ - [x] front: show dynamic version when under dev
7
+ - [x] pr: show static version when generating ABOUT page
8
+ - [x] pr: add documentation section in ABOUT page
9
+ - [x] front: workaround, allow to skip dynamic version recomputation
10
+ - [x] front: use semver
11
+ - [ ] perf: improve resilience to bad overhead estimation
12
+ - [ ] pr: switch to semver on version _2.1.0_?
13
+ - [ ] perf: keep only one java run?
14
+ - [ ] perf: show schema to model conversion times
5
15
  - [ ] optim: collect and display stats about what works
6
16
  - [ ] c-backend: improve unique with hash using int set?
7
17
  - [ ] c-backend: improve str hash?
8
- - [ ] perf: show schema to model conversion times
9
18
  - [ ] js-backend: remove useless braces and semi-colons
10
19
  - [ ] c-backend: use str cmp for ends with optimization as well
11
20
  - [ ] c-backend: improve partitioned cset prettyprinting
@@ -18,6 +27,7 @@
18
27
  - [ ] c-backend: use knowledge of Jansson hash to improve property lookup??
19
28
  - [ ] c-backend: generate custom character class ascii tables?
20
29
  - [ ] c-backend: custom char classes: `[:-] [a-zA-Z0-9_\\.\\-\\|@#] [a-zA-Z_$] [a-zA-Z0-9_\\-] [a-zA-Z0-9_.:-]`
30
+ - [ ] c-backend: handle small char classes?
21
31
  - [ ] optim: remove props which match the default, in some cases?
22
32
  - [ ] optim: regex list of words to enum?
23
33
  - [ ] static: improve startswith pattern recognition `/^xyz.*/`
@@ -101,7 +111,6 @@
101
111
  - [ ] command: allow to pass some options from rc file?
102
112
  - [ ] tests: parallelize per-case instead of per-dir?
103
113
  - [ ] static: shorten xor exit?
104
- - [ ] perf: profile some cases
105
114
  - [ ] c-backend: use vector instructions for larger strcmp?
106
115
  - [ ] export: sqlalchemy
107
116
  - [ ] predefs: add country codes, eg `$COUNTRY $COUNTRY2 $COUNTRY3 $COUNTRYN`
@@ -156,8 +165,6 @@
156
165
  - [ ] py-backend: heterogeneous enum (`enum_05`) improved implementation with `ConstSet`
157
166
  - [ ] py-backend: heterogeneous disjunction with `ConstMap`?
158
167
  - [ ] py-backend: unique for scalars (`set` only works for str)
159
- - [ ] c-backend: optimize unique for scalar types using `constant_t`
160
- - [ ] c-backend: remove path build under no reporting code gen
161
168
  - [ ] static: make loose/strict work locally, triggered by `$name` root comments
162
169
  - [ ] optim: root xor should be simplified in `geo.model.json`, maybe with inlining?
163
170
  - [ ] python: how to keep looseness after inlining?
@@ -9,6 +9,9 @@ schema to model converter in C, JS, Java (GSON, Jackson and JSONP using Johnzon)
9
9
 
10
10
  ## Recent Artifacts
11
11
 
12
+ - [2026050900](benchmarks/2026050900.md) clang, no predefs, jsu 0.9.8/jmc 2.0b48 vs sbc 15.6.0, 11 runs, 1000 iterations.
13
+ - [2026050800](benchmarks/2026050800.md) clang, no predefs, jsu 0.9.8/jmc 2.0b48 vs sbc 15.5.0, 11 runs, 1000 iterations.
14
+ - [2026050703](benchmarks/2026050703.md) clang, no predefs, jsu 0.9.8/jmc 2.0b48 vs sbc 15.4.0, 11 runs, 1000 iterations.
12
15
  - [2026050700](benchmarks/2026050700.md) clang, no predefs, jsu 0.9.6/jmc 2.0b46 vs sbc 15.4.0, 11 runs, 1000 iterations.
13
16
  - [2026050304](benchmarks/2026050304.md) clang, no predefs, jsu 0.9.6/jmc 2.0b46 vs sbc 15.2.0, 11 runs, 1000 iterations.
14
17
  - [2026042800](benchmarks/2026042800.md) clang, no predefs, jsu 0.9.6/jmc 2.0b45 vs sbc 15.2.0, 11 runs, 1000 iterations.
@@ -21,13 +24,6 @@ schema to model converter in C, JS, Java (GSON, Jackson and JSONP using Johnzon)
21
24
  - [2026040400](benchmarks/2026040400.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.19.0, 11 runs, 1000 iterations.
22
25
  - [2026040300](benchmarks/2026040300.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.18.0, 11 runs, 1000 iterations.
23
26
  - [2026040200](benchmarks/2026040200.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.17.1, 11 runs, 1000 iterations.
24
- - [2026032801](benchmarks/2026032801.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.17.0, 11 runs, 1000 iterations.
25
- - [2026032700](benchmarks/2026032700.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.16.2, 11 runs, 1000 iterations.
26
- - [2026032500](benchmarks/2026032500.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.16.1, 11 runs, 1000 iterations.
27
- - [2026031900](benchmarks/2026031900.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.16.0, 11 runs, 1000 iterations.
28
- - [2026031400](benchmarks/2026031400.md) clang, no predefs, jsu 0.9.2/jmc 2.0b41 vs sbc 14.14.2, 11 runs, 1000 iterations.
29
- - [2026031300](benchmarks/2026031300.md) clang, no predefs, jsu 0.9.1/jmc 2.0b40 vs sbc 14.14.2, 11 runs, 1000 iterations.
30
- - [2026031000](benchmarks/2026031000.md) clang, no predefs, jsu 0.9.1/jmc 2.0b39 vs sbc 14.14.2, 11 runs, 1000 iterations.
31
27
 
32
28
  ## Benchmarking Script
33
29
 
@@ -59,11 +59,11 @@ clean.js:
59
59
 
60
60
  .PHONY: clean.site
61
61
  clean.site:
62
- $(RM) site/MODELS.md site/JMC.md site/ABOUT.md
62
+ $(RM) site/MODELS.md site/JMC.md site/ABOUT.md .about.md
63
63
 
64
64
  .PHONY: clean.py
65
65
  clean.py:
66
- $(RM) -r .pytest_cache .ruff_cache dist venv *.egg-info *.dist-info build json_model/version.py
66
+ $(RM) -r .pytest_cache .ruff_cache dist venv *.egg-info *.dist-info build
67
67
  find . -type d -name __pycache__ | xargs $(RM) -r
68
68
 
69
69
  .PHONY: clean.dev
@@ -120,9 +120,11 @@ site/MODELS.md: Makefile models/
120
120
  site/JMC.md: json_model/data/jmc.pod
121
121
  pod2markdown $< > $@
122
122
 
123
- site/ABOUT.md: ./about.sh
124
- source venv/bin/activate
125
- $< > $@
123
+ # generate twice to include the about page in the counts
124
+ site/ABOUT.md: ./about.sh site/JMC.md site/MODELS.md
125
+ ./$< > $@
126
+ ./$< > .about.md
127
+ mv .about.md $@
126
128
 
127
129
  jmc.1: json_model/data/jmc.pod dev
128
130
  source venv/bin/activate
@@ -138,7 +140,7 @@ www: build.site
138
140
  #
139
141
  # PUBLICATION
140
142
  #
141
- # SITE, SITEPATH:
143
+ # SITE and SITEPATH are out of the git repository
142
144
  -include local.mk
143
145
 
144
146
  .PHONY: build.site
@@ -146,20 +148,13 @@ build.site: site/MODELS.md site/JMC.md site/ABOUT.md
146
148
 
147
149
  .PHONY: publish.site
148
150
  publish.site: build.site
151
+ # NOTE --delete: no, keep old benchmark pages archive on the site for now
149
152
  rsync -avL --progress ./site/. $(SITE):$(SITEPATH)/.
150
153
  ssh $(SITE) chmod a+rx $(SITEPATH) $(SITEPATH)/models $(SITEPATH)/benchmarks
151
154
  ssh $(SITE) chmod a+r $(SITEPATH)/* $(SITEPATH)/models/* $(SITEPATH)/benchmarks/*
152
155
 
153
- json_model/version.py:
154
- {
155
- echo "# this file is automatically generated, do not edit!"
156
- echo "HASH: str = \"$$(git rev-parse --short HEAD)\""
157
- } > $@
158
-
159
156
  .PHONY: publish.py
160
157
  publish.py: venv/.dist
161
- $(RM) json_model/version.py
162
- $(MAKE) json_model/version.py
163
158
  source venv/bin/activate
164
159
  python -m build
165
160
  twine check dist/*
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: json_model_compiler
3
- Version: 2.0b48
3
+ Version: 2.0.49
4
4
  Summary: JSON Model Tools
5
5
  Author: Fabien Coelho, Claire Yannou-Medrala
6
6
  License-Expression: CC0-1.0
@@ -1,5 +1,14 @@
1
1
  # JSON Model Compiler Versions
2
2
 
3
+ ## 2.0.49 2026-05-09
4
+
5
+ - [x] front: cleanup obsolete versioning stuff
6
+ - [x] front: show dynamic version when under dev
7
+ - [x] pr: show static version when generating ABOUT page
8
+ - [x] pr: add documentation section in ABOUT page
9
+ - [x] front: workaround, allow to skip dynamic version recomputation
10
+ - [x] front: use semver
11
+
3
12
  ## 2.0b48 2026-05-07
4
13
 
5
14
  - [x] static: unroll small array scans for simple type checks
@@ -3,9 +3,10 @@
3
3
  # Generate a markdown report about the compiler sources
4
4
  #
5
5
 
6
- version=$(jmc --version)
6
+ # version=$(jmc --version)
7
+ read version < json_model/data/VERSION
7
8
  branch=$(git rev-parse --abbrev-ref HEAD)
8
- githash=$(git show --pretty=format:"%h" --no-patch)
9
+ githash=$(git show --pretty=format:"%h on %cs" --no-patch)
9
10
 
10
11
  cat <<EOF
11
12
  # About JSON Model
@@ -23,7 +24,7 @@ but excludes language-specific code generators.
23
24
  EOF
24
25
 
25
26
  cloc --md \
26
- json_model/analyze.py \
27
+ json_model/analyze.py \
27
28
  json_model/convert.py \
28
29
  json_model/export.py \
29
30
  json_model/predefs.py \
@@ -54,7 +55,7 @@ Language|files|blank|comment|code
54
55
  EOF
55
56
 
56
57
  cloc --md \
57
- json_model/python.py \
58
+ json_model/python.py \
58
59
  json_model/data/*.py \
59
60
  | tail -1 | sed "s/SUM:/Python/"
60
61
 
@@ -136,4 +137,11 @@ on a set of test vectors.
136
137
  - total JSON model locs: _${model_locs}_
137
138
  - number of test vector JSON values: _${n_values}_
138
139
  - all tested JSON values (including models, generated schemas and test suite schemas): _${all_values}_
140
+
141
+ ## Documentation
142
+
143
+ Documentation files, excluding benchmark results.
139
144
  EOF
145
+
146
+ cloc --md site/*.md \
147
+ | sed -n -e '/^$/,$p' | head -4
@@ -5,14 +5,14 @@ from .mtypes import Jsonable
5
5
  from .runtime.types import Report, EntryCheckFun
6
6
  from .model import JsonModel
7
7
  from .script import (
8
- jmc_script,
8
+ jmc_script, jmc_version,
9
9
  model_from_json, model_from_url, model_from_str,
10
10
  model_checker, model_checker_from_url, model_checker_from_json,
11
11
  )
12
12
 
13
13
  __ALL__ = [
14
14
  Jsonable, Report, EntryCheckFun, JsonModel,
15
- jmc_script,
15
+ jmc_script, jmc_version,
16
16
  model_from_json, model_from_url, model_from_str,
17
17
  model_checker, model_checker_from_url, model_checker_from_json,
18
18
  ]
@@ -0,0 +1 @@
1
+ 2.0.49
@@ -286,6 +286,20 @@ def java_compile(java_code: str, args):
286
286
  assert status == 0, f"Java compilation succeeded: {command}"
287
287
 
288
288
 
289
+ def jmc_version(dynamic: bool = True) -> str:
290
+ version = pkg_version("json_model_compiler")
291
+ version_ref = load_data_file("VERSION").strip()
292
+ # if we are in a development version, try to recompute the version dynamically
293
+ if dynamic and version != version_ref:
294
+ log.debug(f"recomputing version...")
295
+ try:
296
+ from setuptools_git_versioning import get_version
297
+ version = str(get_version(root=Path(__file__).parent.parent))
298
+ except Exception as e:
299
+ log.warning(f"error while computing version: {e}")
300
+ pass
301
+ return version
302
+
289
303
  #
290
304
  # Compiler entry point
291
305
  #
@@ -502,8 +516,11 @@ def jmc_script(xargs: list[str]|None = None) -> int:
502
516
  arg("values", nargs="*", help="JSON values to testing")
503
517
  args = ap.parse_args(xargs)
504
518
 
519
+ # set debug as early as possible
520
+ log.setLevel(logging.DEBUG if args.debug else logging.INFO if args.verbose else logging.WARNING)
521
+
505
522
  if args.version:
506
- print(pkg_version("json_model_compiler"))
523
+ print(jmc_version())
507
524
  return 0
508
525
 
509
526
  if args.runtime:
@@ -659,9 +676,6 @@ def jmc_script(xargs: list[str]|None = None) -> int:
659
676
 
660
677
  with_main = args.gen == "exec" or args.gen == "source" and args.format == "java"
661
678
 
662
- # debug
663
- log.setLevel(logging.DEBUG if args.debug else logging.INFO if args.verbose else logging.WARNING)
664
-
665
679
  # resolver
666
680
  maps: dict[str, str] = {}
667
681
  for m in args.maps:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: json_model_compiler
3
- Version: 2.0b48
3
+ Version: 2.0.49
4
4
  Summary: JSON Model Tools
5
5
  Author: Fabien Coelho, Claire Yannou-Medrala
6
6
  License-Expression: CC0-1.0
@@ -18,7 +18,6 @@ VERSION.md
18
18
  about.sh
19
19
  package.json
20
20
  pyproject.toml
21
- json_model/.gitignore
22
21
  json_model/README.md
23
22
  json_model/__init__.py
24
23
  json_model/analyze.py
@@ -43,7 +42,6 @@ json_model/script.py
43
42
  json_model/submodel.py
44
43
  json_model/url_cache.py
45
44
  json_model/utils.py
46
- json_model/version.py
47
45
  json_model/xstatic.py
48
46
  json_model/data/VERSION
49
47
  json_model/data/clang_entry.c
@@ -1 +0,0 @@
1
- version.py
@@ -1 +0,0 @@
1
- 2.0b48
@@ -1,2 +0,0 @@
1
- # this file is automatically generated, do not edit!
2
- HASH: str = "e0951c4c"