smsd 7.2.2__tar.gz → 8.0.2__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 (422) hide show
  1. smsd-8.0.2/.dockerignore +17 -0
  2. smsd-8.0.2/.gitattributes +20 -0
  3. {smsd-7.2.2 → smsd-8.0.2}/.github/workflows/installers.yml +17 -12
  4. smsd-8.0.2/.github/workflows/maven.yml +63 -0
  5. smsd-8.0.2/.github/workflows/python-publish.yml +187 -0
  6. smsd-8.0.2/.github/workflows/release.yml +173 -0
  7. smsd-8.0.2/.github/workflows/windows-tests.yml +49 -0
  8. {smsd-7.2.2 → smsd-8.0.2}/.gitignore +4 -2
  9. smsd-8.0.2/CHANGELOG.md +120 -0
  10. {smsd-7.2.2 → smsd-8.0.2}/CITATION.cff +1 -1
  11. smsd-8.0.2/Dockerfile +51 -0
  12. smsd-8.0.2/Dockerfile.cuda +47 -0
  13. smsd-8.0.2/NOTICE +164 -0
  14. smsd-8.0.2/PKG-INFO +270 -0
  15. smsd-8.0.2/README.md +275 -0
  16. {smsd-7.2.2 → smsd-8.0.2}/benchmarks/generate_dalke_pairs.py +6 -4
  17. smsd-8.0.2/benchmarks/mcs_pairs.py +25 -0
  18. {smsd-7.2.2 → smsd-8.0.2}/benchmarks/mcs_protocol.py +39 -40
  19. smsd-8.0.2/cpp/CMakeLists.txt +379 -0
  20. smsd-8.0.2/cpp/README.md +135 -0
  21. smsd-8.0.2/cpp/bindings/pybind11/smsd_bindings.cpp +2501 -0
  22. {smsd-7.2.2 → smsd-8.0.2}/cpp/cmake/smsdConfig.cmake.in +1 -0
  23. {smsd-7.2.2 → smsd-8.0.2}/cpp/cuda/batch_screen.cu +24 -24
  24. {smsd-7.2.2 → smsd-8.0.2}/cpp/cuda/graph_kernels.cu +20 -25
  25. smsd-8.0.2/cpp/include/smsd/batch.hpp +1365 -0
  26. {smsd-7.2.2 → smsd-8.0.2}/cpp/include/smsd/bitops.hpp +84 -8
  27. {smsd-7.2.2 → smsd-8.0.2}/cpp/include/smsd/bond_energies.hpp +2 -1
  28. smsd-8.0.2/cpp/include/smsd/chem_options.hpp +129 -0
  29. smsd-8.0.2/cpp/include/smsd/cip.hpp +1514 -0
  30. {smsd-7.2.2 → smsd-8.0.2}/cpp/include/smsd/color_palette.hpp +8 -2
  31. smsd-8.0.2/cpp/include/smsd/common_atom_search.hpp +1549 -0
  32. smsd-8.0.2/cpp/include/smsd/common_bond_search.hpp +270 -0
  33. {smsd-7.2.2 → smsd-8.0.2}/cpp/include/smsd/depict.hpp +109 -294
  34. {smsd-7.2.2 → smsd-8.0.2}/cpp/include/smsd/depictor.hpp +1 -1
  35. smsd-8.0.2/cpp/include/smsd/detail/aromaticity.hpp +704 -0
  36. smsd-8.0.2/cpp/include/smsd/detail/atom_invariants.hpp +316 -0
  37. smsd-8.0.2/cpp/include/smsd/detail/batch_dispatch.hpp +302 -0
  38. smsd-8.0.2/cpp/include/smsd/detail/canonical_labelling.hpp +671 -0
  39. smsd-8.0.2/cpp/include/smsd/detail/common_bond_classes.hpp +661 -0
  40. smsd-8.0.2/cpp/include/smsd/detail/common_bond_conditions.hpp +747 -0
  41. smsd-8.0.2/cpp/include/smsd/detail/common_bond_embedding.hpp +370 -0
  42. smsd-8.0.2/cpp/include/smsd/detail/common_bond_graphs.hpp +517 -0
  43. smsd-8.0.2/cpp/include/smsd/detail/common_bond_mapping_search.hpp +1948 -0
  44. smsd-8.0.2/cpp/include/smsd/detail/graph_operations.hpp +436 -0
  45. smsd-8.0.2/cpp/include/smsd/detail/match_graph.hpp +264 -0
  46. smsd-8.0.2/cpp/include/smsd/detail/mol_graph_builder.hpp +355 -0
  47. smsd-8.0.2/cpp/include/smsd/detail/pattern_search.hpp +1018 -0
  48. smsd-8.0.2/cpp/include/smsd/detail/ring_perception.hpp +795 -0
  49. smsd-8.0.2/cpp/include/smsd/detail/search_budget.hpp +110 -0
  50. smsd-8.0.2/cpp/include/smsd/detail/search_compatibility.hpp +306 -0
  51. smsd-8.0.2/cpp/include/smsd/detail/search_results.hpp +542 -0
  52. smsd-8.0.2/cpp/include/smsd/detail/smarts_evaluation.hpp +307 -0
  53. smsd-8.0.2/cpp/include/smsd/detail/smarts_expressions.hpp +233 -0
  54. smsd-8.0.2/cpp/include/smsd/detail/smarts_parsing.hpp +893 -0
  55. smsd-8.0.2/cpp/include/smsd/detail/smarts_properties.hpp +323 -0
  56. smsd-8.0.2/cpp/include/smsd/detail/smarts_query.hpp +314 -0
  57. smsd-8.0.2/cpp/include/smsd/detail/smiles_writer.hpp +463 -0
  58. smsd-8.0.2/cpp/include/smsd/detail/tautomers.hpp +968 -0
  59. smsd-8.0.2/cpp/include/smsd/detail/union_find.hpp +30 -0
  60. smsd-8.0.2/cpp/include/smsd/detail/vertex_search.hpp +907 -0
  61. smsd-8.0.2/cpp/include/smsd/fingerprint_options.hpp +1213 -0
  62. {smsd-7.2.2 → smsd-8.0.2}/cpp/include/smsd/general_matching.hpp +1 -0
  63. {smsd-7.2.2 → smsd-8.0.2}/cpp/include/smsd/gpu.hpp +61 -37
  64. {smsd-7.2.2 → smsd-8.0.2}/cpp/include/smsd/gpu_kernels.hpp +39 -5
  65. {smsd-7.2.2 → smsd-8.0.2}/cpp/include/smsd/hungarian.hpp +8 -4
  66. {smsd-7.2.2 → smsd-8.0.2}/cpp/include/smsd/layout.hpp +213 -269
  67. smsd-8.0.2/cpp/include/smsd/mcs.hpp +325 -0
  68. {smsd-7.2.2 → smsd-8.0.2}/cpp/include/smsd/metal_gpu.hpp +16 -13
  69. smsd-8.0.2/cpp/include/smsd/mol_graph.hpp +950 -0
  70. smsd-8.0.2/cpp/include/smsd/mol_reader.hpp +1444 -0
  71. smsd-8.0.2/cpp/include/smsd/parser_utils.hpp +68 -0
  72. {smsd-7.2.2 → smsd-8.0.2}/cpp/include/smsd/periodic_table.hpp +18 -59
  73. {smsd-7.2.2 → smsd-8.0.2}/cpp/include/smsd/rdkit_adapter.hpp +6 -1
  74. {smsd-7.2.2 → smsd-8.0.2}/cpp/include/smsd/ring_finder.hpp +314 -284
  75. {smsd-7.2.2 → smsd-8.0.2}/cpp/include/smsd/scaffold_library.hpp +3 -2
  76. smsd-8.0.2/cpp/include/smsd/screen_accelerator.hpp +468 -0
  77. smsd-8.0.2/cpp/include/smsd/screen_accelerator_abi.h +94 -0
  78. smsd-8.0.2/cpp/include/smsd/search.hpp +398 -0
  79. smsd-8.0.2/cpp/include/smsd/search_types.hpp +89 -0
  80. smsd-8.0.2/cpp/include/smsd/similarity_screen.hpp +339 -0
  81. smsd-8.0.2/cpp/include/smsd/smarts_parser.hpp +255 -0
  82. smsd-8.0.2/cpp/include/smsd/smiles_parser.hpp +1051 -0
  83. smsd-8.0.2/cpp/include/smsd/smiles_utils.hpp +178 -0
  84. {smsd-7.2.2 → smsd-8.0.2}/cpp/include/smsd/smsd.hpp +5 -4
  85. smsd-8.0.2/cpp/include/smsd/stereo.hpp +154 -0
  86. smsd-8.0.2/cpp/include/smsd/substructure.hpp +142 -0
  87. {smsd-7.2.2 → smsd-8.0.2}/cpp/include/smsd/time_budget.hpp +1 -0
  88. {smsd-7.2.2 → smsd-8.0.2}/cpp/metal/metal_batch.mm +41 -22
  89. {smsd-7.2.2 → smsd-8.0.2}/cpp/metal/metal_graph_kernels.mm +14 -3
  90. {smsd-7.2.2 → smsd-8.0.2}/cpp/src/rdkit_adapter.cpp +9 -5
  91. smsd-8.0.2/cpp/tests/test_aromatic_ring_regression.cpp +545 -0
  92. smsd-8.0.2/cpp/tests/test_aromatic_stereo_writer.cpp +323 -0
  93. {smsd-7.2.2 → smsd-8.0.2}/cpp/tests/test_assignment_regression.cpp +4 -12
  94. {smsd-7.2.2 → smsd-8.0.2}/cpp/tests/test_batch_gpu.cpp +50 -19
  95. smsd-8.0.2/cpp/tests/test_chemistry_rules_golden.cpp +863 -0
  96. {smsd-7.2.2 → smsd-8.0.2}/cpp/tests/test_cip.cpp +130 -3
  97. smsd-8.0.2/cpp/tests/test_cmake_options.cmake +28 -0
  98. {smsd-7.2.2 → smsd-8.0.2}/cpp/tests/test_core.cpp +278 -255
  99. smsd-8.0.2/cpp/tests/test_corpus_substructure_screen.cpp +295 -0
  100. smsd-8.0.2/cpp/tests/test_cuda_host_link.cpp +19 -0
  101. smsd-8.0.2/cpp/tests/test_depiction_regression.cpp +110 -0
  102. smsd-8.0.2/cpp/tests/test_device_workspace_regression.cpp +49 -0
  103. smsd-8.0.2/cpp/tests/test_feature_backend_regression.cpp +71 -0
  104. smsd-8.0.2/cpp/tests/test_fingerprint_extent_regression.cpp +150 -0
  105. smsd-8.0.2/cpp/tests/test_fingerprint_options_regression.cpp +289 -0
  106. smsd-8.0.2/cpp/tests/test_fragment_output_regression.cpp +93 -0
  107. {smsd-7.2.2 → smsd-8.0.2}/cpp/tests/test_general_matching.cpp +1 -0
  108. {smsd-7.2.2 → smsd-8.0.2}/cpp/tests/test_gpu_domain_regression.cpp +44 -13
  109. smsd-8.0.2/cpp/tests/test_graph_identity_regression.cpp +156 -0
  110. smsd-8.0.2/cpp/tests/test_input_validation_regression.cpp +85 -0
  111. {smsd-7.2.2 → smsd-8.0.2}/cpp/tests/test_layout.cpp +16 -15
  112. smsd-8.0.2/cpp/tests/test_mces_contract_regression.cpp +619 -0
  113. smsd-8.0.2/cpp/tests/test_mcs_regression.cpp +1240 -0
  114. smsd-8.0.2/cpp/tests/test_member_smiles_regression.cpp +67 -0
  115. smsd-8.0.2/cpp/tests/test_metal_failure_regression.mm +105 -0
  116. smsd-8.0.2/cpp/tests/test_mol_properties_regression.cpp +120 -0
  117. smsd-8.0.2/cpp/tests/test_option_fingerprint_regression.cpp +25 -0
  118. smsd-8.0.2/cpp/tests/test_parser_property_regression.cpp +99 -0
  119. smsd-8.0.2/cpp/tests/test_parser_robustness_regression.cpp +415 -0
  120. {smsd-7.2.2 → smsd-8.0.2}/cpp/tests/test_parsers.cpp +46 -38
  121. {smsd-7.2.2 → smsd-8.0.2}/cpp/tests/test_portability.cpp +45 -3
  122. smsd-8.0.2/cpp/tests/test_rdkit_adapter_regression.cpp +64 -0
  123. smsd-8.0.2/cpp/tests/test_screen_accelerator.cpp +499 -0
  124. smsd-8.0.2/cpp/tests/test_screening_regression.cpp +264 -0
  125. smsd-8.0.2/cpp/tests/test_search_api.cpp +343 -0
  126. smsd-8.0.2/cpp/tests/test_search_bound_regression.cpp +315 -0
  127. smsd-8.0.2/cpp/tests/test_search_enumeration.cpp +256 -0
  128. smsd-8.0.2/cpp/tests/test_smarts_basics.cpp +429 -0
  129. {smsd-7.2.2 → smsd-8.0.2}/cpp/tests/test_smiles_comprehensive.cpp +18 -46
  130. smsd-8.0.2/cpp/tests/test_stereo_io_regression.cpp +216 -0
  131. smsd-8.0.2/cpp/tests/test_stereo_matching_regression.cpp +143 -0
  132. smsd-8.0.2/cpp/tests/test_substructure_regression.cpp +670 -0
  133. smsd-8.0.2/cpp/tests/test_support.hpp +153 -0
  134. smsd-8.0.2/cpp/tests/test_tautomer_confidence.cpp +467 -0
  135. smsd-8.0.2/cpp/tests/test_thread_safety_regression.cpp +311 -0
  136. smsd-8.0.2/docs/ALGORITHMS.md +57 -0
  137. smsd-8.0.2/docs/CPP.md +546 -0
  138. smsd-8.0.2/docs/EXAMPLES.md +373 -0
  139. smsd-8.0.2/docs/HOWTO-INSTALL.md +249 -0
  140. smsd-8.0.2/docs/JAVA.md +631 -0
  141. smsd-8.0.2/docs/PYTHON.md +764 -0
  142. smsd-8.0.2/docs/RELEASE_NOTES.md +171 -0
  143. smsd-8.0.2/docs/VALIDATION_8.0.0.md +17 -0
  144. smsd-8.0.2/java/README.md +228 -0
  145. smsd-8.0.2/java/cli/pom.xml +272 -0
  146. smsd-8.0.2/java/cli/src/main/java/com/bioinception/smsd/cli/SMSDcli.java +1176 -0
  147. {smsd-7.2.2/java → smsd-8.0.2/java/cli}/src/scripts/smsd +5 -1
  148. {smsd-7.2.2/java → smsd-8.0.2/java/cli}/src/scripts/smsd.bat +26 -21
  149. smsd-8.0.2/java/cli/src/scripts/smsd.ps1 +22 -0
  150. smsd-8.0.2/java/core/pom.xml +238 -0
  151. smsd-8.0.2/java/pom.xml +303 -0
  152. smsd-8.0.2/java/src/main/java/com/bioinception/smsd/core/CIPAssigner.java +1393 -0
  153. smsd-8.0.2/java/src/main/java/com/bioinception/smsd/core/CanonicalLabels.java +508 -0
  154. {smsd-7.2.2 → smsd-8.0.2}/java/src/main/java/com/bioinception/smsd/core/ChemOptions.java +72 -93
  155. smsd-8.0.2/java/src/main/java/com/bioinception/smsd/core/CommonAtomSearch.java +1759 -0
  156. smsd-8.0.2/java/src/main/java/com/bioinception/smsd/core/CommonBondConditions.java +930 -0
  157. smsd-8.0.2/java/src/main/java/com/bioinception/smsd/core/CommonBondGraphs.java +1318 -0
  158. smsd-8.0.2/java/src/main/java/com/bioinception/smsd/core/CommonBondSearch.java +2979 -0
  159. {smsd-7.2.2 → smsd-8.0.2}/java/src/main/java/com/bioinception/smsd/core/FingerprintEngine.java +490 -332
  160. smsd-8.0.2/java/src/main/java/com/bioinception/smsd/core/FingerprintOptions.java +470 -0
  161. smsd-8.0.2/java/src/main/java/com/bioinception/smsd/core/GraphLayout.java +662 -0
  162. smsd-8.0.2/java/src/main/java/com/bioinception/smsd/core/MCS.java +1075 -0
  163. smsd-8.0.2/java/src/main/java/com/bioinception/smsd/core/MatchGraph.java +403 -0
  164. smsd-8.0.2/java/src/main/java/com/bioinception/smsd/core/MolGraph.java +1792 -0
  165. smsd-8.0.2/java/src/main/java/com/bioinception/smsd/core/OptionFingerprints.java +876 -0
  166. smsd-8.0.2/java/src/main/java/com/bioinception/smsd/core/RingPerception.java +1274 -0
  167. smsd-8.0.2/java/src/main/java/com/bioinception/smsd/core/SearchResult.java +591 -0
  168. smsd-8.0.2/java/src/main/java/com/bioinception/smsd/core/SmartsInput.java +809 -0
  169. smsd-8.0.2/java/src/main/java/com/bioinception/smsd/core/SmilesWriter.java +345 -0
  170. {smsd-7.2.2 → smsd-8.0.2}/java/src/main/java/com/bioinception/smsd/core/Standardiser.java +43 -8
  171. smsd-8.0.2/java/src/main/java/com/bioinception/smsd/core/Substructure.java +1618 -0
  172. smsd-8.0.2/java/src/main/java/com/bioinception/smsd/core/TautomerClasses.java +869 -0
  173. smsd-8.0.2/java/src/main/java/com/bioinception/smsd/core/UnionFind.java +32 -0
  174. smsd-8.0.2/java/src/main/java/com/bioinception/smsd/core/VertexSearch.java +549 -0
  175. smsd-8.0.2/java/src/test/resources/com/bioinception/smsd/chemistry_rules.json +1082 -0
  176. smsd-8.0.2/licenses/beam/LICENSE +26 -0
  177. smsd-8.0.2/licenses/cdk/LICENSE +502 -0
  178. smsd-8.0.2/licenses/cdk/README.md +33 -0
  179. {smsd-7.2.2 → smsd-8.0.2}/licenses/libgomp/README.md +7 -5
  180. {smsd-7.2.2 → smsd-8.0.2}/licenses/msvc/README.md +4 -4
  181. smsd-8.0.2/licenses/vecmath/LICENSE +346 -0
  182. smsd-8.0.2/licenses/vecmath/README.md +18 -0
  183. {smsd-7.2.2 → smsd-8.0.2}/pom.xml +1 -1
  184. {smsd-7.2.2 → smsd-8.0.2}/pyproject.toml +23 -11
  185. smsd-8.0.2/python/README.md +235 -0
  186. smsd-8.0.2/python/smsd/__init__.py +96 -0
  187. smsd-8.0.2/python/smsd/_accelerator.py +85 -0
  188. smsd-8.0.2/python/smsd/_chemistry.py +117 -0
  189. smsd-8.0.2/python/smsd/_depiction.py +213 -0
  190. smsd-8.0.2/python/smsd/_fingerprints.py +414 -0
  191. smsd-8.0.2/python/smsd/_interop.py +281 -0
  192. smsd-8.0.2/python/smsd/_layout.py +48 -0
  193. smsd-8.0.2/python/smsd/_molecule.py +272 -0
  194. smsd-8.0.2/python/smsd/_screening.py +193 -0
  195. smsd-8.0.2/python/smsd/search.py +380 -0
  196. smsd-8.0.2/python/tests/__init__.py +4 -0
  197. smsd-8.0.2/python/tests/search_helpers.py +71 -0
  198. smsd-8.0.2/python/tests/test_algorithm_regressions.py +131 -0
  199. {smsd-7.2.2 → smsd-8.0.2}/python/tests/test_api_consistency.py +97 -69
  200. {smsd-7.2.2 → smsd-8.0.2}/python/tests/test_api_coverage.py +358 -498
  201. smsd-8.0.2/python/tests/test_aromatic_resonance_regression.py +99 -0
  202. smsd-8.0.2/python/tests/test_aromatic_ring_regression.py +62 -0
  203. smsd-8.0.2/python/tests/test_aromatic_stereo_writer.py +126 -0
  204. {smsd-7.2.2 → smsd-8.0.2}/python/tests/test_aromaticity_parity.py +2 -1
  205. smsd-8.0.2/python/tests/test_batch_search_regression.py +97 -0
  206. {smsd-7.2.2 → smsd-8.0.2}/python/tests/test_benchmark_protocol.py +7 -2
  207. smsd-8.0.2/python/tests/test_binding_regressions.py +263 -0
  208. smsd-8.0.2/python/tests/test_chemistry_rules_golden.py +382 -0
  209. {smsd-7.2.2 → smsd-8.0.2}/python/tests/test_chemistry_torture.py +13 -10
  210. {smsd-7.2.2 → smsd-8.0.2}/python/tests/test_cip.py +41 -7
  211. smsd-8.0.2/python/tests/test_cip_priority_regression.py +30 -0
  212. smsd-8.0.2/python/tests/test_corpus_substructure_screen.py +266 -0
  213. smsd-8.0.2/python/tests/test_depiction_stereo_regression.py +42 -0
  214. smsd-8.0.2/python/tests/test_depiction_style_regression.py +45 -0
  215. {smsd-7.2.2 → smsd-8.0.2}/python/tests/test_external_benchmarks.py +10 -5
  216. smsd-8.0.2/python/tests/test_feature_backend_regression.py +42 -0
  217. smsd-8.0.2/python/tests/test_fingerprint_extent_regression.py +60 -0
  218. smsd-8.0.2/python/tests/test_fingerprint_options.py +181 -0
  219. {smsd-7.2.2 → smsd-8.0.2}/python/tests/test_fingerprints.py +56 -27
  220. smsd-8.0.2/python/tests/test_fragment_mces_bound_regression.py +33 -0
  221. smsd-8.0.2/python/tests/test_fragment_output_regression.py +56 -0
  222. smsd-8.0.2/python/tests/test_full_query_proof_regression.py +32 -0
  223. smsd-8.0.2/python/tests/test_graph_identity_regression.py +65 -0
  224. {smsd-7.2.2 → smsd-8.0.2}/python/tests/test_hydrogen_handling.py +22 -15
  225. smsd-8.0.2/python/tests/test_import_footprint_regression.py +85 -0
  226. smsd-8.0.2/python/tests/test_input_validation_regression.py +74 -0
  227. {smsd-7.2.2 → smsd-8.0.2}/python/tests/test_layout.py +1 -1
  228. smsd-8.0.2/python/tests/test_mces_contract_regression.py +58 -0
  229. smsd-8.0.2/python/tests/test_mixed_input_regression.py +90 -0
  230. smsd-8.0.2/python/tests/test_mol_properties_regression.py +127 -0
  231. smsd-8.0.2/python/tests/test_native_extension_regression.py +103 -0
  232. smsd-8.0.2/python/tests/test_native_result_regression.py +199 -0
  233. smsd-8.0.2/python/tests/test_package_surface.py +272 -0
  234. smsd-8.0.2/python/tests/test_parser_property_regression.py +86 -0
  235. smsd-8.0.2/python/tests/test_parser_robustness_regression.py +178 -0
  236. smsd-8.0.2/python/tests/test_properties_regression.py +47 -0
  237. smsd-8.0.2/python/tests/test_python_adapter_regression.py +84 -0
  238. smsd-8.0.2/python/tests/test_resident_screen_accelerator.py +64 -0
  239. smsd-8.0.2/python/tests/test_screen_accelerator.py +236 -0
  240. smsd-8.0.2/python/tests/test_screening_strategy_regression.py +201 -0
  241. smsd-8.0.2/python/tests/test_search_api.py +198 -0
  242. smsd-8.0.2/python/tests/test_search_contract_regression.py +69 -0
  243. {smsd-7.2.2 → smsd-8.0.2}/python/tests/test_smsd.py +181 -184
  244. smsd-8.0.2/python/tests/test_stereo_io_regression.py +135 -0
  245. smsd-8.0.2/python/tests/test_stereo_matching_regression.py +82 -0
  246. smsd-8.0.2/python/tests/test_tautomer_confidence_regression.py +39 -0
  247. smsd-8.0.2/python/tests/test_thread_safety_regression.py +139 -0
  248. smsd-8.0.2/python/tests/test_toolkit_round_trip.py +152 -0
  249. {smsd-7.2.2 → smsd-8.0.2}/scripts/build-linux-installer.sh +7 -3
  250. {smsd-7.2.2 → smsd-8.0.2}/scripts/build_java_installer.py +32 -38
  251. smsd-8.0.2/scripts/build_python_wheels.py +502 -0
  252. smsd-8.0.2/scripts/check_examples.py +202 -0
  253. {smsd-7.2.2 → smsd-8.0.2}/scripts/check_macos_installer.py +4 -0
  254. smsd-8.0.2/scripts/check_native_wheel_build.py +33 -0
  255. smsd-8.0.2/scripts/check_pypi_release.py +287 -0
  256. {smsd-7.2.2 → smsd-8.0.2}/scripts/check_python_wheel.py +12 -5
  257. {smsd-7.2.2 → smsd-8.0.2}/scripts/check_windows_installer.ps1 +2 -0
  258. {smsd-7.2.2 → smsd-8.0.2}/scripts/cibuildwheel.toml +7 -3
  259. {smsd-7.2.2 → smsd-8.0.2}/scripts/collect-release-wheels.py +80 -57
  260. {smsd-7.2.2 → smsd-8.0.2}/scripts/collect_java_installers.py +4 -1
  261. smsd-8.0.2/scripts/docker_install.py +130 -0
  262. smsd-8.0.2/scripts/docker_smoke.py +192 -0
  263. {smsd-7.2.2 → smsd-8.0.2}/scripts/prepare-release.sh +48 -31
  264. smsd-8.0.2/scripts/prepare_docker_context.py +140 -0
  265. {smsd-7.2.2 → smsd-8.0.2}/scripts/repair_windows_wheel.py +4 -0
  266. smsd-7.2.2/.dockerignore +0 -12
  267. smsd-7.2.2/.gitattributes +0 -2
  268. smsd-7.2.2/.github/workflows/docker-image.yml +0 -16
  269. smsd-7.2.2/.github/workflows/maven.yml +0 -36
  270. smsd-7.2.2/.github/workflows/python-publish.yml +0 -150
  271. smsd-7.2.2/.github/workflows/release.yml +0 -104
  272. smsd-7.2.2/CHANGELOG.md +0 -450
  273. smsd-7.2.2/Dockerfile +0 -13
  274. smsd-7.2.2/NOTICE +0 -121
  275. smsd-7.2.2/PKG-INFO +0 -198
  276. smsd-7.2.2/README.md +0 -243
  277. smsd-7.2.2/benchmarks/BENCHMARK_REPORT.md +0 -8
  278. smsd-7.2.2/benchmarks/README.md +0 -69
  279. smsd-7.2.2/benchmarks/RESULTS_7.2.0.md +0 -260
  280. smsd-7.2.2/benchmarks/benchmark_1000.py +0 -598
  281. smsd-7.2.2/benchmarks/benchmark_1000_java.java +0 -524
  282. smsd-7.2.2/benchmarks/benchmark_all.py +0 -654
  283. smsd-7.2.2/benchmarks/benchmark_assignment_matching.cpp +0 -114
  284. smsd-7.2.2/benchmarks/benchmark_bindings.py +0 -112
  285. smsd-7.2.2/benchmarks/benchmark_cpp.cpp +0 -90
  286. smsd-7.2.2/benchmarks/benchmark_cpp.sh +0 -12
  287. smsd-7.2.2/benchmarks/benchmark_java.sh +0 -99
  288. smsd-7.2.2/benchmarks/benchmark_leaderboard.py +0 -747
  289. smsd-7.2.2/benchmarks/benchmark_mcs_components.cpp +0 -50
  290. smsd-7.2.2/benchmarks/benchmark_present_vs_light_scaling.py +0 -694
  291. smsd-7.2.2/benchmarks/benchmark_python.py +0 -420
  292. smsd-7.2.2/benchmarks/benchmark_python_vs_rdkit.py +0 -172
  293. smsd-7.2.2/benchmarks/benchmark_rdkit.py +0 -122
  294. smsd-7.2.2/benchmarks/benchmark_search_primitives.cpp +0 -52
  295. smsd-7.2.2/benchmarks/benchmark_smsd_v6.py +0 -250
  296. smsd-7.2.2/benchmarks/benchmark_substructure_java.java +0 -181
  297. smsd-7.2.2/benchmarks/benchmark_substructure_setup.cpp +0 -52
  298. smsd-7.2.2/benchmarks/benchmark_tautomer.cpp +0 -297
  299. smsd-7.2.2/benchmarks/benchmark_tautomer_zinc.java +0 -438
  300. smsd-7.2.2/benchmarks/compare_benchmark_tsv.py +0 -291
  301. smsd-7.2.2/benchmarks/data/BBBP.csv +0 -2051
  302. smsd-7.2.2/benchmarks/data/README.md +0 -47
  303. smsd-7.2.2/benchmarks/data/bace.csv +0 -1514
  304. smsd-7.2.2/benchmarks/data/bzr.sdf +0 -9160
  305. smsd-7.2.2/benchmarks/data/cdk2.sdf +0 -5373
  306. smsd-7.2.2/benchmarks/data/chembl_mcs_benchmark.smi +0 -5590
  307. smsd-7.2.2/benchmarks/data/chodera_tautobase_subset.txt +0 -469
  308. smsd-7.2.2/benchmarks/data/clintox.csv +0 -1485
  309. smsd-7.2.2/benchmarks/data/dalke_nn_pairs.tsv +0 -1003
  310. smsd-7.2.2/benchmarks/data/dalke_random_pairs.tsv +0 -1003
  311. smsd-7.2.2/benchmarks/data/ehrlich_rarey_smarts.txt +0 -1417
  312. smsd-7.2.2/benchmarks/data/sider.csv +0 -1428
  313. smsd-7.2.2/benchmarks/data/stress_pairs.tsv +0 -15
  314. smsd-7.2.2/benchmarks/data/tautobase_smirks.txt +0 -1681
  315. smsd-7.2.2/benchmarks/diverse_molecules.txt +0 -1042
  316. smsd-7.2.2/benchmarks/results_dalke_nn_1000pairs.txt +0 -21
  317. smsd-7.2.2/benchmarks/results_dalke_random_1000pairs.txt +0 -11
  318. smsd-7.2.2/benchmarks/results_ehrlich_rarey_1400smarts.txt +0 -12
  319. smsd-7.2.2/benchmarks/results_external_all_combined.txt +0 -79
  320. smsd-7.2.2/benchmarks/results_leaderboard_core_java_sub.tsv +0 -29
  321. smsd-7.2.2/benchmarks/results_leaderboard_core_mcs.tsv +0 -21
  322. smsd-7.2.2/benchmarks/results_leaderboard_core_python.tsv +0 -46
  323. smsd-7.2.2/benchmarks/results_leaderboard_core_summary.txt +0 -35
  324. smsd-7.2.2/benchmarks/results_leaderboard_mcs.tsv +0 -21
  325. smsd-7.2.2/benchmarks/results_leaderboard_substructure.tsv +0 -29
  326. smsd-7.2.2/benchmarks/results_leaderboard_summary.txt +0 -24
  327. smsd-7.2.2/benchmarks/results_present_vs_light_scaling_mcs.tsv +0 -21
  328. smsd-7.2.2/benchmarks/results_present_vs_light_scaling_sub.tsv +0 -29
  329. smsd-7.2.2/benchmarks/results_python.tsv +0 -45
  330. smsd-7.2.2/benchmarks/results_python_6_9_1.tsv +0 -46
  331. smsd-7.2.2/benchmarks/results_smsd_vs_rdkit_20pairs_mcs_all.tsv +0 -21
  332. smsd-7.2.2/benchmarks/results_smsd_vs_rdkit_20pairs_mcs_sub.tsv +0 -24
  333. smsd-7.2.2/benchmarks/results_smsd_vs_rdkit_20pairs_mcs_sub.txt +0 -74
  334. smsd-7.2.2/benchmarks/results_smsd_vs_rdkit_20pairs_summary.txt +0 -43
  335. smsd-7.2.2/benchmarks/results_stress_12pairs.txt +0 -20
  336. smsd-7.2.2/benchmarks/results_substructure.tsv +0 -29
  337. smsd-7.2.2/benchmarks/results_substructure_benchmark.tsv +0 -29
  338. smsd-7.2.2/benchmarks/results_tautobase_468pairs.txt +0 -13
  339. smsd-7.2.2/benchmarks/results_tautobase_dalke_ehrlich_stress.txt +0 -56
  340. smsd-7.2.2/benchmarks/run_external_benchmarks.py +0 -195
  341. smsd-7.2.2/benchmarks/substructure_pairs.tsv +0 -53
  342. smsd-7.2.2/cpp/CMakeLists.txt +0 -296
  343. smsd-7.2.2/cpp/README.md +0 -116
  344. smsd-7.2.2/cpp/bindings/pybind11/smsd_bindings.cpp +0 -2260
  345. smsd-7.2.2/cpp/build.sh +0 -96
  346. smsd-7.2.2/cpp/build_gpu.sh +0 -4
  347. smsd-7.2.2/cpp/include/smsd/batch.hpp +0 -1755
  348. smsd-7.2.2/cpp/include/smsd/cip.hpp +0 -997
  349. smsd-7.2.2/cpp/include/smsd/clique_solver.hpp +0 -1123
  350. smsd-7.2.2/cpp/include/smsd/mcs.hpp +0 -5703
  351. smsd-7.2.2/cpp/include/smsd/mol_graph.hpp +0 -4139
  352. smsd-7.2.2/cpp/include/smsd/mol_reader.hpp +0 -1316
  353. smsd-7.2.2/cpp/include/smsd/rascal.hpp +0 -35
  354. smsd-7.2.2/cpp/include/smsd/smarts_parser.hpp +0 -2717
  355. smsd-7.2.2/cpp/include/smsd/smiles_parser.hpp +0 -2199
  356. smsd-7.2.2/cpp/include/smsd/vf2pp.hpp +0 -2035
  357. smsd-7.2.2/cpp/tests/test_clique_regression.cpp +0 -305
  358. smsd-7.2.2/cpp/tests/test_mcs_regression.cpp +0 -838
  359. smsd-7.2.2/cpp/tests/test_substructure_regression.cpp +0 -175
  360. smsd-7.2.2/docs/ALGORITHM_REVIEW.md +0 -203
  361. smsd-7.2.2/docs/CPP.md +0 -379
  362. smsd-7.2.2/docs/EXAMPLES.md +0 -543
  363. smsd-7.2.2/docs/HOWTO-INSTALL.md +0 -151
  364. smsd-7.2.2/docs/INSTALLERS.md +0 -103
  365. smsd-7.2.2/docs/JAVA.md +0 -265
  366. smsd-7.2.2/docs/PUBLISHING.md +0 -269
  367. smsd-7.2.2/docs/PYTHON.md +0 -294
  368. smsd-7.2.2/docs/RELEASE_NOTES.md +0 -19
  369. smsd-7.2.2/docs/VALIDATION_7.1.2.md +0 -66
  370. smsd-7.2.2/docs/VALIDATION_7.2.0.md +0 -214
  371. smsd-7.2.2/docs/VALIDATION_7.2.1.md +0 -200
  372. smsd-7.2.2/docs/VALIDATION_7.2.2.md +0 -90
  373. smsd-7.2.2/icons/icon.png +0 -0
  374. smsd-7.2.2/java/README.md +0 -137
  375. smsd-7.2.2/java/pom.xml +0 -356
  376. smsd-7.2.2/java/src/main/java/com/bioinception/smsd/cli/SMSDcli.java +0 -752
  377. smsd-7.2.2/java/src/main/java/com/bioinception/smsd/core/CIPAssigner.java +0 -679
  378. smsd-7.2.2/java/src/main/java/com/bioinception/smsd/core/MCSPostFilter.java +0 -32
  379. smsd-7.2.2/java/src/main/java/com/bioinception/smsd/core/MolGraph.java +0 -3976
  380. smsd-7.2.2/java/src/main/java/com/bioinception/smsd/core/SMSD.java +0 -872
  381. smsd-7.2.2/java/src/main/java/com/bioinception/smsd/core/SearchEngine.java +0 -5910
  382. smsd-7.2.2/java/src/main/java/com/bioinception/smsd/core/SubstructureEngine.java +0 -633
  383. smsd-7.2.2/java/src/scripts/smsd.ps1 +0 -20
  384. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/AlgorithmTest.java +0 -4606
  385. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/AromaticityParityTest.java +0 -144
  386. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/BenchmarkHarnessRegressionTest.java +0 -26
  387. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/BenchmarkRunSettings.java +0 -85
  388. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/BenchmarkSuiteTest.java +0 -616
  389. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/CoreTest.java +0 -1939
  390. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/ExternalBenchmarkTest.java +0 -437
  391. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/FeaturesTest.java +0 -711
  392. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/IOTest.java +0 -336
  393. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/JavaCdkVsSmsdBenchmarkTest.java +0 -369
  394. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/LayoutTest.java +0 -308
  395. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/SearchApiRegressionTest.java +0 -74
  396. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/StressTest.java +0 -5541
  397. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/SubstructureRegressionTest.java +0 -149
  398. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/TestBase.java +0 -26
  399. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/TestSupport.java +0 -58
  400. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/ValueContractRegressionTest.java +0 -215
  401. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/cli/CLIFileFormatRegressionTest.java +0 -218
  402. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/core/MCSAlgorithmRegressionTest.java +0 -441
  403. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/core/ObjectiveChemistryRegressionTest.java +0 -513
  404. smsd-7.2.2/python/README.md +0 -161
  405. smsd-7.2.2/python/smsd/__init__.py +0 -2877
  406. smsd-7.2.2/python/smsd/mcs_engine.py +0 -88
  407. smsd-7.2.2/python/tests/__init__.py +0 -2
  408. smsd-7.2.2/python/tests/test_algorithm_regressions.py +0 -116
  409. smsd-7.2.2/python/tests/test_binding_regressions.py +0 -216
  410. smsd-7.2.2/python/tests/test_python_review.py +0 -124
  411. smsd-7.2.2/scripts/build_python_wheels.py +0 -186
  412. smsd-7.2.2/scripts/check_native_wheel_build.py +0 -34
  413. smsd-7.2.2/scripts/tests/test_collect_release_wheels.py +0 -216
  414. smsd-7.2.2/scripts/tests/test_repair_windows_wheel.py +0 -175
  415. {smsd-7.2.2 → smsd-8.0.2}/LICENSE +0 -0
  416. {smsd-7.2.2 → smsd-8.0.2}/icons/icon.svg +0 -0
  417. {smsd-7.2.2 → smsd-8.0.2}/java/src/test/resources/com/bioinception/smsd/aromaticity_parity.json +0 -0
  418. {smsd-7.2.2 → smsd-8.0.2}/licenses/libgomp/COPYING.RUNTIME +0 -0
  419. {smsd-7.2.2 → smsd-8.0.2}/licenses/libgomp/COPYING3 +0 -0
  420. {smsd-7.2.2 → smsd-8.0.2}/licenses/libomp/LICENSE.TXT +0 -0
  421. {smsd-7.2.2 → smsd-8.0.2}/licenses/msvc/LICENSE-2022.docx +0 -0
  422. {smsd-7.2.2 → smsd-8.0.2}/licenses/msvc/LICENSE-2026.docx +0 -0
@@ -0,0 +1,17 @@
1
+ *
2
+ !Dockerfile
3
+ !Dockerfile.cuda
4
+ !source.tar.gz
5
+ !SOURCE_MANIFEST.json
6
+ !ARTIFACTS.json
7
+ !LICENSE
8
+ !NOTICE
9
+ !wheels/
10
+ !wheels/**
11
+ !scripts/
12
+ scripts/*
13
+ !scripts/docker_install.py
14
+ !scripts/docker_smoke.py
15
+ !licenses/
16
+ licenses/*
17
+ !licenses/NVIDIA-CUDA.txt
@@ -0,0 +1,20 @@
1
+ # Text files are stored and checked out with LF line endings on every platform.
2
+ # Windows batch files are stored with the CRLF line endings that cmd.exe needs and
3
+ # are never converted, so every checkout and the source archive hold the same bytes.
4
+ * text=auto eol=lf
5
+ *.bat -text
6
+ *.cmd -text
7
+
8
+ # Binary files are never converted.
9
+ *.docx binary
10
+ *.png binary
11
+ *.jpg binary
12
+ *.ico binary
13
+ *.icns binary
14
+ *.jar binary
15
+ *.gz binary
16
+ *.zip binary
17
+
18
+ # Preserve the upstream third-party license text verbatim.
19
+ licenses/libomp/LICENSE.TXT whitespace=-blank-at-eof
20
+ licenses/beam/LICENSE whitespace=-trailing-space
@@ -1,5 +1,7 @@
1
1
  # SPDX-License-Identifier: Apache-2.0
2
2
  # Copyright (c) 2018-2026 BioInception PVT LTD
3
+ # Algorithm Copyright (c) 2009-2026 Syed Asad Rahman
4
+ # See the NOTICE file for attribution, trademark, and algorithm IP terms.
3
5
  name: Native Windows release packages
4
6
 
5
7
  on:
@@ -15,8 +17,8 @@ on:
15
17
  default: true
16
18
  type: boolean
17
19
 
18
- permissions:
19
- contents: read
20
+ # Each job states the token permissions it needs.
21
+ permissions: {}
20
22
 
21
23
  jobs:
22
24
  windows:
@@ -32,10 +34,10 @@ jobs:
32
34
  - name: Preserve source file bytes
33
35
  shell: pwsh
34
36
  run: git config --global core.autocrlf false
35
- - uses: actions/checkout@v7.0.1
37
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
36
38
  with:
37
39
  persist-credentials: false
38
- - uses: actions/setup-python@v7.0.0
40
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
39
41
  with:
40
42
  python-version: '3.14'
41
43
  - name: Download and verify release inputs
@@ -46,12 +48,12 @@ jobs:
46
48
  shell: pwsh
47
49
  run: |
48
50
  if ($env:RELEASE_TAG -notmatch '^v([0-9]+\.[0-9]+\.[0-9]+)$') {
49
- throw 'Expected an existing stable release tag, such as v7.2.2'
51
+ throw 'Expected an existing stable release tag, such as v8.0.0'
50
52
  }
51
53
  $version = $Matches[1]
52
54
  New-Item -ItemType Directory -Path release-input -Force | Out-Null
53
55
  gh release download $env:RELEASE_TAG --repo $env:RELEASE_REPOSITORY --dir release-input `
54
- --pattern "smsd-$version-jar-with-dependencies.jar" --pattern "smsd-$version.tar.gz" `
56
+ --pattern "smsd-cli-$version-jar-with-dependencies.jar" --pattern "smsd-$version.tar.gz" `
55
57
  --pattern SOURCE_MANIFEST.json --pattern SHA256SUMS
56
58
  if ($LASTEXITCODE -ne 0) { throw 'Release input download failed' }
57
59
  $check = @'
@@ -72,7 +74,7 @@ jobs:
72
74
 
73
75
  version, tag = sys.argv[1:]
74
76
  directory = Path('release-input')
75
- names = {f'smsd-{version}-jar-with-dependencies.jar', f'smsd-{version}.tar.gz', 'SOURCE_MANIFEST.json'}
77
+ names = {f'smsd-cli-{version}-jar-with-dependencies.jar', f'smsd-{version}.tar.gz', 'SOURCE_MANIFEST.json'}
76
78
  require({path.name for path in directory.iterdir()} == names | {'SHA256SUMS'},
77
79
  'Release input filenames differ from the selected version')
78
80
  sums = {}
@@ -102,8 +104,11 @@ jobs:
102
104
  frozen = git('rev-parse', '--verify', manifest['release_ref'] + '^{commit}')
103
105
  require(frozen == manifest['source_commit'], 'Frozen source ref resolves to another commit')
104
106
  tagged = git('rev-parse', '--verify', f'refs/tags/{tag}' + '^{commit}')
105
- subprocess.run(['git', 'merge-base', '--is-ancestor', frozen, tagged], check=True)
106
- # Validation notes can advance after the frozen SDK. Production files cannot.
107
+ related = any(subprocess.run(
108
+ ['git', 'merge-base', '--is-ancestor', earlier, later], check=False).returncode == 0
109
+ for earlier, later in ((frozen, tagged), (tagged, frozen)))
110
+ require(related, 'Frozen source and release tag have unrelated histories')
111
+ # Documentation may advance after tagging; production files must match.
107
112
  changed = git('diff', '--name-only', frozen, tagged).splitlines()
108
113
  require(all(Path(name).suffix in ('.md', '.rst') or name == 'CITATION.cff' for name in changed),
109
114
  'Tagged production files differ from the frozen SDK source')
@@ -177,7 +182,7 @@ jobs:
177
182
  --source-manifest release-input/SOURCE_MANIFEST.json `
178
183
  --platform windows --arch AMD64 --output-dir wheelhouse
179
184
  if ($LASTEXITCODE -ne 0) { throw 'Windows wheel build or tests failed' }
180
- - uses: actions/upload-artifact@v7.0.1
185
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
181
186
  with:
182
187
  name: java-installer-windows-amd64
183
188
  path: |
@@ -186,13 +191,13 @@ jobs:
186
191
  installer-output/installation-check.json
187
192
  installer-output/installed-image-check.json
188
193
  if-no-files-found: error
189
- - uses: actions/upload-artifact@v7.0.1
194
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
190
195
  if: ${{ inputs.build_python_wheel }}
191
196
  with:
192
197
  name: python-wheel-windows-AMD64
193
198
  path: wheelhouse/*
194
199
  if-no-files-found: error
195
- - uses: actions/upload-artifact@v7.0.1
200
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
196
201
  if: ${{ failure() }}
197
202
  with:
198
203
  name: windows-installer-diagnostics
@@ -0,0 +1,63 @@
1
+ # SPDX-License-Identifier: Apache-2.0
2
+ # Copyright (c) 2018-2026 BioInception PVT LTD
3
+ # Algorithm Copyright (c) 2009-2026 Syed Asad Rahman
4
+ # See the NOTICE file for attribution, trademark, and algorithm IP terms.
5
+ name: maven
6
+
7
+ on:
8
+ workflow_dispatch:
9
+
10
+ # Each job states the token permissions it needs.
11
+ permissions: {}
12
+
13
+ jobs:
14
+ release-tooling:
15
+ runs-on: ubuntu-latest
16
+ permissions:
17
+ contents: read
18
+ timeout-minutes: 10
19
+ steps:
20
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
21
+ with:
22
+ persist-credentials: false
23
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
24
+ with:
25
+ python-version: '3.14'
26
+ - name: Test release tooling
27
+ run: |
28
+ python -m pip install pytest==9.1.1 pytest-timeout==2.4.0
29
+ python -m pytest scripts/tests -q
30
+
31
+ build:
32
+ runs-on: ubuntu-latest
33
+ permissions:
34
+ contents: read
35
+ timeout-minutes: 25
36
+ steps:
37
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
38
+ with:
39
+ persist-credentials: false
40
+ - name: Set up JDK 25
41
+ uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
42
+ with:
43
+ distribution: temurin
44
+ java-version: '25'
45
+ cache: maven
46
+ # Installing the library lets the Java 8 step below resolve it for the CLI tests.
47
+ - name: Build Java 8-compatible packages and test on Java 25
48
+ run: mvn -U -B -Dslow.tests.exclude=nothing -Dsurefire.reportNameSuffix=java25 clean install
49
+ - name: Set up Java 8 compatibility runtime
50
+ uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
51
+ with:
52
+ distribution: corretto
53
+ java-version: '8'
54
+ cache: maven
55
+ - name: Test the same compiled classes on Java 8
56
+ run: mvn -f java/pom.xml -B -Dslow.tests.exclude=nothing -Dsurefire.reportNameSuffix=java8 surefire:test
57
+ - name: Upload fat JAR and launchers
58
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
59
+ with:
60
+ name: smsd-jar-and-launchers
61
+ path: |
62
+ java/cli/target/*-jar-with-dependencies.jar
63
+ java/cli/target/appassembler/
@@ -0,0 +1,187 @@
1
+ # SPDX-License-Identifier: Apache-2.0
2
+ # Copyright (c) 2018-2026 BioInception PVT LTD
3
+ # Algorithm Copyright (c) 2009-2026 Syed Asad Rahman
4
+ # See the NOTICE file for attribution, trademark, and algorithm IP terms.
5
+ name: Build and validate Python wheels
6
+
7
+ on:
8
+ workflow_dispatch:
9
+ inputs:
10
+ release_tag:
11
+ description: Exact release commit or existing validated tag
12
+ required: true
13
+ type: string
14
+ platform:
15
+ description: Platform requiring validation; prefer local Linux/macOS builds
16
+ required: true
17
+ default: windows
18
+ type: choice
19
+ options: [windows, linux, macos, all]
20
+ publish:
21
+ description: Upload the validated published GitHub SDK and 20 CPU wheels to PyPI (requires platform=all)
22
+ required: true
23
+ default: false
24
+ type: boolean
25
+
26
+ # Each job states the token permissions it needs.
27
+ permissions: {}
28
+
29
+ jobs:
30
+ source:
31
+ if: ${{ !inputs.publish }}
32
+ name: Prepare one source distribution
33
+ runs-on: ubuntu-24.04
34
+ timeout-minutes: 10
35
+ permissions:
36
+ contents: read
37
+ outputs:
38
+ matrix: ${{ steps.matrix.outputs.value }}
39
+ steps:
40
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
41
+ with:
42
+ ref: ${{ inputs.release_tag }}
43
+ fetch-depth: 0
44
+ persist-credentials: false
45
+ - name: Restore the release files exactly as stored
46
+ # The source distribution must equal the frozen Git tree byte for byte, so no
47
+ # checkout line-ending conversion may apply to it.
48
+ shell: bash
49
+ run: |
50
+ printf '* -text -eol\n' > .git/info/attributes
51
+ git rm -r -q --cached .
52
+ git reset -q --hard
53
+ test -z "$(git status --porcelain)"
54
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
55
+ with:
56
+ python-version: '3.14'
57
+ - name: Validate source ref and select explicit platforms
58
+ id: matrix
59
+ env:
60
+ RELEASE_REF: ${{ inputs.release_tag }}
61
+ BUILD_TARGET: ${{ inputs.platform }}
62
+ PUBLISH: ${{ inputs.publish }}
63
+ shell: bash
64
+ run: |
65
+ python - <<'PY'
66
+ import json, os, re, subprocess
67
+ ref = os.environ['RELEASE_REF']
68
+ if not re.fullmatch(r'(?:v\d+\.\d+\.\d+|[0-9a-fA-F]{40})', ref):
69
+ raise SystemExit('Expected a stable release tag or exact 40-character commit SHA')
70
+ commit = subprocess.check_output(['git', 'rev-parse', 'HEAD'], text=True).strip()
71
+ resolved = subprocess.check_output(['git', 'rev-parse', ref + '^{commit}'], text=True).strip()
72
+ if resolved != commit:
73
+ raise SystemExit('Checkout does not match the requested release ref')
74
+ target = os.environ['BUILD_TARGET']
75
+ if os.environ['PUBLISH'] == 'true' and target != 'all':
76
+ raise SystemExit('Publishing requires the complete matrix (platform=all)')
77
+ entries = [
78
+ {'platform': 'windows', 'os': 'windows-2022', 'arch': 'AMD64'},
79
+ {'platform': 'linux', 'os': 'ubuntu-24.04', 'arch': 'x86_64'},
80
+ {'platform': 'linux', 'os': 'ubuntu-24.04-arm', 'arch': 'aarch64'},
81
+ {'platform': 'macos', 'os': 'macos-26', 'arch': 'arm64'},
82
+ ]
83
+ selected = [{**entry, 'python': version} for entry in entries
84
+ if target == 'all' or entry['platform'] == target
85
+ for version in ('3.10', '3.11', '3.12', '3.13', '3.14')]
86
+ with open(os.environ['GITHUB_OUTPUT'], 'a') as output:
87
+ output.write('value=' + json.dumps({'include': selected}) + '\n')
88
+ PY
89
+ - name: Build and check source distribution
90
+ env:
91
+ RELEASE_REF: ${{ inputs.release_tag }}
92
+ run: |
93
+ python -m pip install build==1.6.1 twine==7.0.0 pytest==9.1.1 pytest-timeout==2.4.0
94
+ python -m pytest scripts/tests -q
95
+ python scripts/build_python_wheels.py prepare --output-dir dist --release-ref "$RELEASE_REF"
96
+ python -m twine check --strict dist/*.tar.gz
97
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
98
+ with:
99
+ name: python-release-source
100
+ path: dist/*
101
+ if-no-files-found: error
102
+
103
+ build:
104
+ if: ${{ !inputs.publish }}
105
+ name: CPython ${{ matrix.python }} ${{ matrix.platform }} ${{ matrix.arch }}
106
+ needs: source
107
+ runs-on: ${{ matrix.os }}
108
+ timeout-minutes: 45
109
+ permissions:
110
+ contents: read
111
+ strategy:
112
+ fail-fast: false
113
+ matrix: ${{ fromJSON(needs.source.outputs.matrix) }}
114
+ steps:
115
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
116
+ with:
117
+ ref: ${{ inputs.release_tag }}
118
+ persist-credentials: false
119
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
120
+ with:
121
+ python-version: '3.14'
122
+ - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
123
+ with:
124
+ name: python-release-source
125
+ path: release-source
126
+ - name: Build, repair and test installed wheel from the sdist
127
+ env:
128
+ WHEEL_PLATFORM: ${{ matrix.platform }}
129
+ WHEEL_ARCH: ${{ matrix.arch }}
130
+ WHEEL_PYTHON_VERSION: ${{ matrix.python }}
131
+ shell: bash
132
+ run: |
133
+ python -m pip install cibuildwheel==4.2.1
134
+ python scripts/build_python_wheels.py build \
135
+ --sdist release-source/smsd-*.tar.gz --source-manifest release-source/SOURCE_MANIFEST.json \
136
+ --platform "$WHEEL_PLATFORM" --arch "$WHEEL_ARCH" --python-version "$WHEEL_PYTHON_VERSION" --output-dir wheelhouse
137
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
138
+ with:
139
+ name: python-wheel-${{ matrix.platform }}-${{ matrix.arch }}-${{ matrix.python }}
140
+ path: wheelhouse/*
141
+ if-no-files-found: error
142
+
143
+ publish:
144
+ name: Publish validated GitHub release files
145
+ if: ${{ inputs.publish }}
146
+ runs-on: ubuntu-24.04
147
+ timeout-minutes: 10
148
+ environment: pypi
149
+ permissions:
150
+ id-token: write
151
+ contents: read
152
+ steps:
153
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
154
+ with:
155
+ persist-credentials: false
156
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
157
+ with:
158
+ python-version: '3.14'
159
+ - name: Download only the published release distributions
160
+ env:
161
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
162
+ RELEASE_TAG: ${{ inputs.release_tag }}
163
+ BUILD_TARGET: ${{ inputs.platform }}
164
+ RELEASE_REPOSITORY: ${{ github.repository }}
165
+ run: |
166
+ python scripts/check_pypi_release.py download \
167
+ --tag "$RELEASE_TAG" --platform "$BUILD_TARGET" --repository "$RELEASE_REPOSITORY" \
168
+ --release-dir release-input --metadata-file release-metadata.json
169
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
170
+ with:
171
+ ref: ${{ inputs.release_tag }}
172
+ fetch-depth: 0
173
+ path: release-checkout
174
+ persist-credentials: false
175
+ - name: Check release hashes, frozen source and all 20 CPU wheels
176
+ env:
177
+ RELEASE_TAG: ${{ inputs.release_tag }}
178
+ run: |
179
+ python scripts/check_pypi_release.py validate \
180
+ --tag "$RELEASE_TAG" --release-dir release-input --metadata-file release-metadata.json \
181
+ --source-checkout release-checkout --dist-dir dist --receipt-file upload-receipt.json
182
+ - name: Verify the exact 21 files immediately before upload
183
+ run: |
184
+ python scripts/check_pypi_release.py verify-staged \
185
+ --dist-dir dist --receipt-file upload-receipt.json
186
+ - name: Publish to PyPI
187
+ uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
@@ -0,0 +1,173 @@
1
+ # SPDX-License-Identifier: Apache-2.0
2
+ # Copyright (c) 2018-2026 BioInception PVT LTD
3
+ # Algorithm Copyright (c) 2009-2026 Syed Asad Rahman
4
+ # See the NOTICE file for attribution, trademark, and algorithm IP terms.
5
+ name: Prepare release artefacts
6
+
7
+ on:
8
+ workflow_dispatch:
9
+ inputs:
10
+ tag:
11
+ description: Existing release tag to build and validate
12
+ required: true
13
+ type: string
14
+ python_build_run_id:
15
+ description: Completed Python build run containing the canonical SDK and checked CPython 3.14 Linux x86_64 wheel
16
+ required: true
17
+ type: string
18
+
19
+ # Each job states the token permissions it needs.
20
+ permissions: {}
21
+
22
+ jobs:
23
+ java-cli:
24
+ runs-on: ubuntu-latest
25
+ permissions:
26
+ contents: read
27
+ timeout-minutes: 25
28
+ steps:
29
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
30
+ with:
31
+ ref: ${{ inputs.tag }}
32
+ persist-credentials: false
33
+ - name: Set up JDK 25
34
+ uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
35
+ with:
36
+ distribution: temurin
37
+ java-version: '25'
38
+ cache: maven
39
+ - name: Build and test the library and CLI JARs
40
+ run: mvn -U -B clean verify
41
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
42
+ with:
43
+ name: java-jars
44
+ path: |
45
+ java/core/target/smsd-*.jar
46
+ !java/core/target/smsd-*-sources.jar
47
+ !java/core/target/smsd-*-javadoc.jar
48
+ !java/core/target/smsd-*-tests.jar
49
+ java/cli/target/smsd-cli-*-jar-with-dependencies.jar
50
+ if-no-files-found: error
51
+
52
+ cpp-headers:
53
+ runs-on: ubuntu-latest
54
+ permissions:
55
+ contents: read
56
+ timeout-minutes: 15
57
+ steps:
58
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
59
+ with:
60
+ ref: ${{ inputs.tag }}
61
+ persist-credentials: false
62
+ - name: Test and package C++ headers
63
+ env:
64
+ RELEASE_TAG: ${{ inputs.tag }}
65
+ run: |
66
+ cmake -S cpp -B build/headers -DCMAKE_BUILD_TYPE=Debug \
67
+ -DSMSD_BUILD_PYTHON=OFF -DSMSD_BUILD_TESTS=ON \
68
+ -DSMSD_BUILD_METAL=OFF -DSMSD_BUILD_CUDA=OFF
69
+ cmake --build build/headers --parallel 2
70
+ ctest --test-dir build/headers --output-on-failure
71
+ VERSION=${RELEASE_TAG#v}
72
+ COPYFILE_DISABLE=1 tar -czf "smsd-cpp-${VERSION}-headers.tar.gz" \
73
+ LICENSE NOTICE -C cpp/include smsd/
74
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
75
+ with:
76
+ name: cpp-headers
77
+ path: smsd-cpp-*-headers.tar.gz
78
+ if-no-files-found: error
79
+
80
+ docker-cli:
81
+ runs-on: ubuntu-latest
82
+ permissions:
83
+ contents: read
84
+ actions: read
85
+ timeout-minutes: 20
86
+ steps:
87
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
88
+ with:
89
+ ref: ${{ inputs.tag }}
90
+ fetch-depth: 0
91
+ persist-credentials: false
92
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
93
+ with:
94
+ python-version: '3.14'
95
+ - name: Check the completed Python build run
96
+ env:
97
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
98
+ PYTHON_BUILD_RUN_ID: ${{ inputs.python_build_run_id }}
99
+ shell: bash
100
+ run: |
101
+ [[ "$PYTHON_BUILD_RUN_ID" =~ ^[1-9][0-9]*$ ]] || { echo 'Expected a numeric Python build run ID' >&2; exit 1; }
102
+ gh api "repos/$GITHUB_REPOSITORY/actions/runs/$PYTHON_BUILD_RUN_ID" > python-build-run.json
103
+ python - <<'PY'
104
+ import json
105
+ run = json.load(open('python-build-run.json'))
106
+ if (run.get('status') != 'completed' or run.get('conclusion') != 'success'
107
+ or run.get('path') != '.github/workflows/python-publish.yml'):
108
+ raise SystemExit('Expected a successful completed Python wheel build run')
109
+ PY
110
+ - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
111
+ with:
112
+ name: python-release-source
113
+ run-id: ${{ inputs.python_build_run_id }}
114
+ github-token: ${{ secrets.GITHUB_TOKEN }}
115
+ path: python-source
116
+ - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
117
+ with:
118
+ name: python-wheel-linux-x86_64-3.14
119
+ run-id: ${{ inputs.python_build_run_id }}
120
+ github-token: ${{ secrets.GITHUB_TOKEN }}
121
+ path: python-wheel
122
+ - name: Check the canonical SDK and prepare the image inputs
123
+ shell: bash
124
+ run: |
125
+ python - <<'PY'
126
+ import importlib.util, os, pathlib, shutil, subprocess
127
+ script = pathlib.Path('scripts/build_python_wheels.py')
128
+ spec = importlib.util.spec_from_file_location('release_build', script)
129
+ build = importlib.util.module_from_spec(spec)
130
+ spec.loader.exec_module(build)
131
+ archives = list(pathlib.Path('python-source').glob('smsd-*.tar.gz'))
132
+ if len(archives) != 1:
133
+ raise SystemExit('Expected one canonical SDK')
134
+ source = build.checked_source(archives[0])
135
+ commit = subprocess.check_output(['git', 'rev-parse', 'HEAD'], text=True).strip()
136
+ if source['source_commit'] != commit:
137
+ raise SystemExit('Canonical SDK and selected release ref differ')
138
+ build.verify_source_tree(archives[0], commit)
139
+ output = pathlib.Path('release-input')
140
+ output.mkdir()
141
+ shutil.copyfile(archives[0], output / archives[0].name)
142
+ shutil.copyfile('python-source/SOURCE_MANIFEST.json', output / 'SOURCE_MANIFEST.json')
143
+ with open(os.environ['GITHUB_ENV'], 'a') as environment:
144
+ environment.write('SMSD_REVISION=' + commit + '\n')
145
+ PY
146
+ python scripts/collect-release-wheels.py --release-dir release-input --wheel-dir python-wheel --allow-incomplete
147
+ python scripts/prepare_docker_context.py --release-dir release-input --output docker-context --architecture amd64
148
+ - name: Build the image from the checked SDK and wheel
149
+ run: docker build --platform linux/amd64 --build-arg "SMSD_REVISION=$SMSD_REVISION" --tag smsd:release-check docker-context
150
+ - name: Test the CLI and installed Python image
151
+ run: |
152
+ docker run --rm smsd:release-check --help > docker-cli-help.log
153
+ docker run --rm smsd:release-check --version > docker-cli-version.log
154
+ docker run --rm --entrypoint python smsd:release-check /usr/local/share/smsd/docker_smoke.py > docker-cpu-smoke.json
155
+ - name: Save tested image
156
+ run: |
157
+ docker inspect smsd:release-check > docker-image.json
158
+ docker save smsd:release-check | gzip > smsd-cli-image.tar.gz
159
+ sha256sum smsd-cli-image.tar.gz > docker-image.sha256
160
+ - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
161
+ with:
162
+ name: docker-cli
163
+ path: |
164
+ smsd-cli-image.tar.gz
165
+ docker-image.sha256
166
+ docker-image.json
167
+ docker-cpu-smoke.json
168
+ docker-cli-help.log
169
+ docker-cli-version.log
170
+ release-input/SOURCE_MANIFEST.json
171
+ release-input/WHEEL_MANIFEST.json
172
+ docker-context/ARTIFACTS.json
173
+ if-no-files-found: error
@@ -0,0 +1,49 @@
1
+ # SPDX-License-Identifier: Apache-2.0
2
+ # Copyright (c) 2018-2026 BioInception PVT LTD
3
+ # Algorithm Copyright (c) 2009-2026 Syed Asad Rahman
4
+ # See the NOTICE file for attribution, trademark, and algorithm IP terms.
5
+ name: Windows tests
6
+
7
+ on:
8
+ workflow_dispatch:
9
+
10
+ # Each job states the token permissions it needs.
11
+ permissions: {}
12
+
13
+ concurrency:
14
+ group: windows-tests-${{ github.ref }}
15
+ cancel-in-progress: true
16
+
17
+ jobs:
18
+ test:
19
+ runs-on: windows-2022
20
+ timeout-minutes: 60
21
+ permissions:
22
+ contents: read
23
+ defaults:
24
+ run:
25
+ shell: pwsh
26
+ env:
27
+ SMSD_DISABLE_GPU: '1'
28
+ steps:
29
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
30
+ with:
31
+ persist-credentials: false
32
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
33
+ with:
34
+ python-version: '3.13'
35
+ - name: C++ Release tests
36
+ run: |
37
+ cmake -S cpp -B build/release -DSMSD_BUILD_TESTS=ON -DSMSD_BUILD_METAL=OFF -DSMSD_BUILD_CUDA=OFF
38
+ cmake --build build/release --config Release --parallel
39
+ ctest --test-dir build/release -C Release --output-on-failure
40
+ - name: C++ Debug tests
41
+ run: |
42
+ cmake -S cpp -B build/debug -DSMSD_BUILD_TESTS=ON -DSMSD_BUILD_METAL=OFF -DSMSD_BUILD_CUDA=OFF
43
+ cmake --build build/debug --config Debug --parallel
44
+ ctest --test-dir build/debug -C Debug --output-on-failure
45
+ - name: Python wheel tests
46
+ run: |
47
+ python -m pip install ".[dev]" -Ccmake.define.SMSD_BUILD_METAL=OFF -Ccmake.define.SMSD_BUILD_CUDA=OFF
48
+ Set-Location $env:RUNNER_TEMP
49
+ python -m pytest "$env:GITHUB_WORKSPACE/python/tests" -q -p no:cacheprovider --import-mode=importlib
@@ -16,6 +16,8 @@ venv/
16
16
  .pyuser/
17
17
  dist/
18
18
  build/
19
+ wheelhouse/
20
+ .pytest_cache/
19
21
  *.so
20
22
  *.pyd
21
23
 
@@ -44,8 +46,8 @@ Thumbs.db
44
46
 
45
47
  # Generated (rebuild anytime)
46
48
  api/
47
- java/src/scripts/lib/
48
- java/src/scripts/repo/
49
+ java/cli/src/scripts/lib/
50
+ java/cli/src/scripts/repo/
49
51
  benchmarks/runs/
50
52
 
51
53
  # Not for public repo