smsd 7.2.2__tar.gz → 8.0.0__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 (401) hide show
  1. smsd-8.0.0/.dockerignore +24 -0
  2. {smsd-7.2.2 → smsd-8.0.0}/.github/workflows/installers.yml +10 -5
  3. {smsd-7.2.2 → smsd-8.0.0}/.github/workflows/maven.yml +26 -3
  4. {smsd-7.2.2 → smsd-8.0.0}/.github/workflows/python-publish.yml +46 -24
  5. smsd-8.0.0/.github/workflows/release.yml +90 -0
  6. smsd-8.0.0/.github/workflows/windows-tests.yml +45 -0
  7. {smsd-7.2.2 → smsd-8.0.0}/.gitignore +2 -2
  8. smsd-8.0.0/CHANGELOG.md +60 -0
  9. {smsd-7.2.2 → smsd-8.0.0}/CITATION.cff +2 -1
  10. {smsd-7.2.2 → smsd-8.0.0}/Dockerfile +4 -1
  11. smsd-8.0.0/NOTICE +147 -0
  12. smsd-8.0.0/PKG-INFO +226 -0
  13. smsd-8.0.0/README.md +270 -0
  14. {smsd-7.2.2 → smsd-8.0.0}/benchmarks/generate_dalke_pairs.py +6 -4
  15. smsd-8.0.0/benchmarks/mcs_pairs.py +25 -0
  16. {smsd-7.2.2 → smsd-8.0.0}/benchmarks/mcs_protocol.py +39 -40
  17. smsd-8.0.0/cpp/CMakeLists.txt +364 -0
  18. smsd-8.0.0/cpp/README.md +134 -0
  19. smsd-8.0.0/cpp/bindings/pybind11/smsd_bindings.cpp +2226 -0
  20. {smsd-7.2.2 → smsd-8.0.0}/cpp/cmake/smsdConfig.cmake.in +1 -0
  21. {smsd-7.2.2 → smsd-8.0.0}/cpp/cuda/batch_screen.cu +24 -24
  22. {smsd-7.2.2 → smsd-8.0.0}/cpp/cuda/graph_kernels.cu +20 -25
  23. smsd-8.0.0/cpp/include/smsd/batch.hpp +1099 -0
  24. {smsd-7.2.2 → smsd-8.0.0}/cpp/include/smsd/bitops.hpp +42 -1
  25. {smsd-7.2.2 → smsd-8.0.0}/cpp/include/smsd/bond_energies.hpp +2 -1
  26. smsd-8.0.0/cpp/include/smsd/chem_options.hpp +129 -0
  27. smsd-8.0.0/cpp/include/smsd/cip.hpp +1675 -0
  28. {smsd-7.2.2 → smsd-8.0.0}/cpp/include/smsd/color_palette.hpp +8 -2
  29. smsd-8.0.0/cpp/include/smsd/common_atom_search.hpp +1549 -0
  30. smsd-8.0.0/cpp/include/smsd/common_bond_search.hpp +208 -0
  31. {smsd-7.2.2 → smsd-8.0.0}/cpp/include/smsd/depict.hpp +109 -294
  32. {smsd-7.2.2 → smsd-8.0.0}/cpp/include/smsd/depictor.hpp +1 -1
  33. smsd-8.0.0/cpp/include/smsd/detail/aromaticity.hpp +615 -0
  34. smsd-8.0.0/cpp/include/smsd/detail/atom_invariants.hpp +316 -0
  35. smsd-8.0.0/cpp/include/smsd/detail/batch_dispatch.hpp +302 -0
  36. smsd-8.0.0/cpp/include/smsd/detail/canonical_labelling.hpp +671 -0
  37. smsd-8.0.0/cpp/include/smsd/detail/common_bond_classes.hpp +661 -0
  38. smsd-8.0.0/cpp/include/smsd/detail/common_bond_conditions.hpp +741 -0
  39. smsd-8.0.0/cpp/include/smsd/detail/common_bond_embedding.hpp +371 -0
  40. smsd-8.0.0/cpp/include/smsd/detail/common_bond_graphs.hpp +517 -0
  41. smsd-8.0.0/cpp/include/smsd/detail/common_bond_mapping_search.hpp +1860 -0
  42. smsd-8.0.0/cpp/include/smsd/detail/graph_operations.hpp +436 -0
  43. smsd-8.0.0/cpp/include/smsd/detail/match_graph.hpp +264 -0
  44. smsd-8.0.0/cpp/include/smsd/detail/mol_graph_builder.hpp +355 -0
  45. smsd-8.0.0/cpp/include/smsd/detail/pattern_search.hpp +1015 -0
  46. smsd-8.0.0/cpp/include/smsd/detail/ring_perception.hpp +778 -0
  47. smsd-8.0.0/cpp/include/smsd/detail/search_budget.hpp +110 -0
  48. smsd-8.0.0/cpp/include/smsd/detail/search_compatibility.hpp +305 -0
  49. smsd-8.0.0/cpp/include/smsd/detail/search_results.hpp +523 -0
  50. smsd-8.0.0/cpp/include/smsd/detail/smarts_evaluation.hpp +303 -0
  51. smsd-8.0.0/cpp/include/smsd/detail/smarts_expressions.hpp +211 -0
  52. smsd-8.0.0/cpp/include/smsd/detail/smarts_parsing.hpp +880 -0
  53. smsd-8.0.0/cpp/include/smsd/detail/smarts_properties.hpp +323 -0
  54. smsd-8.0.0/cpp/include/smsd/detail/smarts_query.hpp +311 -0
  55. smsd-8.0.0/cpp/include/smsd/detail/smiles_writer.hpp +444 -0
  56. smsd-8.0.0/cpp/include/smsd/detail/tautomers.hpp +968 -0
  57. smsd-8.0.0/cpp/include/smsd/detail/union_find.hpp +30 -0
  58. smsd-8.0.0/cpp/include/smsd/detail/vertex_search.hpp +907 -0
  59. smsd-8.0.0/cpp/include/smsd/fingerprint_options.hpp +1212 -0
  60. {smsd-7.2.2 → smsd-8.0.0}/cpp/include/smsd/general_matching.hpp +1 -0
  61. {smsd-7.2.2 → smsd-8.0.0}/cpp/include/smsd/gpu.hpp +79 -34
  62. {smsd-7.2.2 → smsd-8.0.0}/cpp/include/smsd/gpu_kernels.hpp +39 -5
  63. {smsd-7.2.2 → smsd-8.0.0}/cpp/include/smsd/hungarian.hpp +8 -4
  64. {smsd-7.2.2 → smsd-8.0.0}/cpp/include/smsd/layout.hpp +213 -269
  65. smsd-8.0.0/cpp/include/smsd/mcs.hpp +325 -0
  66. {smsd-7.2.2 → smsd-8.0.0}/cpp/include/smsd/metal_gpu.hpp +16 -13
  67. smsd-8.0.0/cpp/include/smsd/mol_graph.hpp +916 -0
  68. {smsd-7.2.2 → smsd-8.0.0}/cpp/include/smsd/mol_reader.hpp +469 -445
  69. smsd-8.0.0/cpp/include/smsd/parser_utils.hpp +57 -0
  70. {smsd-7.2.2 → smsd-8.0.0}/cpp/include/smsd/periodic_table.hpp +18 -59
  71. {smsd-7.2.2 → smsd-8.0.0}/cpp/include/smsd/rdkit_adapter.hpp +6 -1
  72. {smsd-7.2.2 → smsd-8.0.0}/cpp/include/smsd/ring_finder.hpp +296 -285
  73. {smsd-7.2.2 → smsd-8.0.0}/cpp/include/smsd/scaffold_library.hpp +3 -2
  74. smsd-8.0.0/cpp/include/smsd/search.hpp +396 -0
  75. smsd-8.0.0/cpp/include/smsd/search_types.hpp +89 -0
  76. smsd-8.0.0/cpp/include/smsd/similarity_screen.hpp +142 -0
  77. smsd-8.0.0/cpp/include/smsd/smarts_parser.hpp +256 -0
  78. smsd-8.0.0/cpp/include/smsd/smiles_parser.hpp +1048 -0
  79. smsd-8.0.0/cpp/include/smsd/smiles_utils.hpp +178 -0
  80. {smsd-7.2.2 → smsd-8.0.0}/cpp/include/smsd/smsd.hpp +5 -4
  81. smsd-8.0.0/cpp/include/smsd/stereo.hpp +143 -0
  82. smsd-8.0.0/cpp/include/smsd/substructure.hpp +110 -0
  83. {smsd-7.2.2 → smsd-8.0.0}/cpp/include/smsd/time_budget.hpp +1 -0
  84. {smsd-7.2.2 → smsd-8.0.0}/cpp/metal/metal_batch.mm +41 -22
  85. {smsd-7.2.2 → smsd-8.0.0}/cpp/metal/metal_graph_kernels.mm +14 -3
  86. {smsd-7.2.2 → smsd-8.0.0}/cpp/src/rdkit_adapter.cpp +9 -5
  87. smsd-8.0.0/cpp/tests/test_aromatic_ring_regression.cpp +414 -0
  88. smsd-8.0.0/cpp/tests/test_aromatic_stereo_writer.cpp +305 -0
  89. {smsd-7.2.2 → smsd-8.0.0}/cpp/tests/test_assignment_regression.cpp +4 -12
  90. {smsd-7.2.2 → smsd-8.0.0}/cpp/tests/test_batch_gpu.cpp +19 -19
  91. smsd-8.0.0/cpp/tests/test_chemistry_rules_golden.cpp +782 -0
  92. {smsd-7.2.2 → smsd-8.0.0}/cpp/tests/test_cip.cpp +117 -3
  93. smsd-8.0.0/cpp/tests/test_cmake_options.cmake +28 -0
  94. {smsd-7.2.2 → smsd-8.0.0}/cpp/tests/test_core.cpp +278 -255
  95. smsd-8.0.0/cpp/tests/test_cuda_host_link.cpp +19 -0
  96. smsd-8.0.0/cpp/tests/test_depiction_regression.cpp +110 -0
  97. smsd-8.0.0/cpp/tests/test_device_workspace_regression.cpp +49 -0
  98. smsd-8.0.0/cpp/tests/test_feature_backend_regression.cpp +71 -0
  99. smsd-8.0.0/cpp/tests/test_fingerprint_extent_regression.cpp +127 -0
  100. smsd-8.0.0/cpp/tests/test_fingerprint_options_regression.cpp +289 -0
  101. smsd-8.0.0/cpp/tests/test_fragment_output_regression.cpp +93 -0
  102. {smsd-7.2.2 → smsd-8.0.0}/cpp/tests/test_general_matching.cpp +1 -0
  103. {smsd-7.2.2 → smsd-8.0.0}/cpp/tests/test_gpu_domain_regression.cpp +20 -13
  104. smsd-8.0.0/cpp/tests/test_graph_identity_regression.cpp +156 -0
  105. smsd-8.0.0/cpp/tests/test_input_validation_regression.cpp +85 -0
  106. {smsd-7.2.2 → smsd-8.0.0}/cpp/tests/test_layout.cpp +16 -15
  107. smsd-8.0.0/cpp/tests/test_mces_contract_regression.cpp +498 -0
  108. smsd-8.0.0/cpp/tests/test_mcs_regression.cpp +1240 -0
  109. smsd-8.0.0/cpp/tests/test_member_smiles_regression.cpp +67 -0
  110. smsd-8.0.0/cpp/tests/test_metal_failure_regression.mm +105 -0
  111. smsd-8.0.0/cpp/tests/test_mol_properties_regression.cpp +120 -0
  112. smsd-8.0.0/cpp/tests/test_option_fingerprint_regression.cpp +25 -0
  113. smsd-8.0.0/cpp/tests/test_parser_property_regression.cpp +99 -0
  114. smsd-8.0.0/cpp/tests/test_parser_robustness_regression.cpp +245 -0
  115. {smsd-7.2.2 → smsd-8.0.0}/cpp/tests/test_parsers.cpp +46 -38
  116. {smsd-7.2.2 → smsd-8.0.0}/cpp/tests/test_portability.cpp +4 -3
  117. smsd-8.0.0/cpp/tests/test_rdkit_adapter_regression.cpp +64 -0
  118. smsd-8.0.0/cpp/tests/test_screening_regression.cpp +118 -0
  119. smsd-8.0.0/cpp/tests/test_search_api.cpp +343 -0
  120. smsd-8.0.0/cpp/tests/test_search_bound_regression.cpp +315 -0
  121. smsd-8.0.0/cpp/tests/test_search_enumeration.cpp +256 -0
  122. smsd-8.0.0/cpp/tests/test_smarts_basics.cpp +429 -0
  123. {smsd-7.2.2 → smsd-8.0.0}/cpp/tests/test_smiles_comprehensive.cpp +18 -46
  124. smsd-8.0.0/cpp/tests/test_stereo_io_regression.cpp +216 -0
  125. smsd-8.0.0/cpp/tests/test_stereo_matching_regression.cpp +143 -0
  126. smsd-8.0.0/cpp/tests/test_substructure_regression.cpp +670 -0
  127. smsd-8.0.0/cpp/tests/test_support.hpp +153 -0
  128. smsd-8.0.0/cpp/tests/test_tautomer_confidence.cpp +467 -0
  129. smsd-8.0.0/cpp/tests/test_thread_safety_regression.cpp +311 -0
  130. smsd-8.0.0/docs/ALGORITHMS.md +54 -0
  131. smsd-8.0.0/docs/CPP.md +517 -0
  132. smsd-8.0.0/docs/EXAMPLES.md +364 -0
  133. smsd-8.0.0/docs/HOWTO-INSTALL.md +193 -0
  134. smsd-8.0.0/docs/JAVA.md +605 -0
  135. smsd-8.0.0/docs/PYTHON.md +703 -0
  136. smsd-8.0.0/docs/RELEASE_NOTES.md +97 -0
  137. smsd-8.0.0/docs/VALIDATION_8.0.0.md +15 -0
  138. smsd-8.0.0/java/README.md +226 -0
  139. smsd-8.0.0/java/cli/pom.xml +262 -0
  140. smsd-8.0.0/java/cli/src/main/java/com/bioinception/smsd/cli/SMSDcli.java +1095 -0
  141. {smsd-7.2.2/java → smsd-8.0.0/java/cli}/src/scripts/smsd +5 -1
  142. {smsd-7.2.2/java → smsd-8.0.0/java/cli}/src/scripts/smsd.bat +7 -2
  143. smsd-8.0.0/java/cli/src/scripts/smsd.ps1 +22 -0
  144. smsd-8.0.0/java/core/pom.xml +238 -0
  145. smsd-8.0.0/java/pom.xml +303 -0
  146. smsd-8.0.0/java/src/main/java/com/bioinception/smsd/core/CIPAssigner.java +1422 -0
  147. smsd-8.0.0/java/src/main/java/com/bioinception/smsd/core/CanonicalLabels.java +508 -0
  148. {smsd-7.2.2 → smsd-8.0.0}/java/src/main/java/com/bioinception/smsd/core/ChemOptions.java +72 -93
  149. smsd-8.0.0/java/src/main/java/com/bioinception/smsd/core/CommonAtomSearch.java +1759 -0
  150. smsd-8.0.0/java/src/main/java/com/bioinception/smsd/core/CommonBondConditions.java +930 -0
  151. smsd-8.0.0/java/src/main/java/com/bioinception/smsd/core/CommonBondGraphs.java +1318 -0
  152. smsd-8.0.0/java/src/main/java/com/bioinception/smsd/core/CommonBondSearch.java +2781 -0
  153. {smsd-7.2.2 → smsd-8.0.0}/java/src/main/java/com/bioinception/smsd/core/FingerprintEngine.java +450 -327
  154. smsd-8.0.0/java/src/main/java/com/bioinception/smsd/core/FingerprintOptions.java +470 -0
  155. smsd-8.0.0/java/src/main/java/com/bioinception/smsd/core/GraphLayout.java +662 -0
  156. smsd-8.0.0/java/src/main/java/com/bioinception/smsd/core/MCS.java +1075 -0
  157. smsd-8.0.0/java/src/main/java/com/bioinception/smsd/core/MatchGraph.java +403 -0
  158. smsd-8.0.0/java/src/main/java/com/bioinception/smsd/core/MolGraph.java +1593 -0
  159. smsd-8.0.0/java/src/main/java/com/bioinception/smsd/core/OptionFingerprints.java +876 -0
  160. smsd-8.0.0/java/src/main/java/com/bioinception/smsd/core/RingPerception.java +1264 -0
  161. smsd-8.0.0/java/src/main/java/com/bioinception/smsd/core/SearchResult.java +591 -0
  162. smsd-8.0.0/java/src/main/java/com/bioinception/smsd/core/SmartsInput.java +697 -0
  163. smsd-8.0.0/java/src/main/java/com/bioinception/smsd/core/SmilesWriter.java +336 -0
  164. {smsd-7.2.2 → smsd-8.0.0}/java/src/main/java/com/bioinception/smsd/core/Standardiser.java +42 -8
  165. smsd-8.0.0/java/src/main/java/com/bioinception/smsd/core/Substructure.java +1618 -0
  166. smsd-8.0.0/java/src/main/java/com/bioinception/smsd/core/TautomerClasses.java +869 -0
  167. smsd-8.0.0/java/src/main/java/com/bioinception/smsd/core/UnionFind.java +32 -0
  168. smsd-8.0.0/java/src/main/java/com/bioinception/smsd/core/VertexSearch.java +549 -0
  169. smsd-8.0.0/java/src/test/resources/com/bioinception/smsd/chemistry_rules.json +971 -0
  170. smsd-8.0.0/licenses/cdk/LICENSE +502 -0
  171. smsd-8.0.0/licenses/cdk/README.md +33 -0
  172. {smsd-7.2.2 → smsd-8.0.0}/licenses/libgomp/README.md +7 -5
  173. {smsd-7.2.2 → smsd-8.0.0}/licenses/msvc/README.md +4 -4
  174. {smsd-7.2.2 → smsd-8.0.0}/pom.xml +1 -1
  175. {smsd-7.2.2 → smsd-8.0.0}/pyproject.toml +15 -2
  176. smsd-8.0.0/python/README.md +189 -0
  177. smsd-8.0.0/python/smsd/__init__.py +90 -0
  178. smsd-8.0.0/python/smsd/_chemistry.py +116 -0
  179. smsd-8.0.0/python/smsd/_depiction.py +213 -0
  180. smsd-8.0.0/python/smsd/_fingerprints.py +414 -0
  181. smsd-8.0.0/python/smsd/_interop.py +281 -0
  182. smsd-8.0.0/python/smsd/_layout.py +48 -0
  183. smsd-8.0.0/python/smsd/_molecule.py +272 -0
  184. smsd-8.0.0/python/smsd/_screening.py +149 -0
  185. smsd-8.0.0/python/smsd/search.py +376 -0
  186. smsd-8.0.0/python/tests/__init__.py +4 -0
  187. smsd-8.0.0/python/tests/search_helpers.py +71 -0
  188. smsd-8.0.0/python/tests/test_algorithm_regressions.py +131 -0
  189. {smsd-7.2.2 → smsd-8.0.0}/python/tests/test_api_consistency.py +97 -69
  190. {smsd-7.2.2 → smsd-8.0.0}/python/tests/test_api_coverage.py +358 -498
  191. smsd-8.0.0/python/tests/test_aromatic_resonance_regression.py +99 -0
  192. smsd-8.0.0/python/tests/test_aromatic_ring_regression.py +62 -0
  193. smsd-8.0.0/python/tests/test_aromatic_stereo_writer.py +114 -0
  194. {smsd-7.2.2 → smsd-8.0.0}/python/tests/test_aromaticity_parity.py +2 -1
  195. smsd-8.0.0/python/tests/test_batch_search_regression.py +97 -0
  196. {smsd-7.2.2 → smsd-8.0.0}/python/tests/test_benchmark_protocol.py +7 -2
  197. smsd-8.0.0/python/tests/test_binding_regressions.py +263 -0
  198. smsd-8.0.0/python/tests/test_chemistry_rules_golden.py +309 -0
  199. {smsd-7.2.2 → smsd-8.0.0}/python/tests/test_chemistry_torture.py +13 -10
  200. {smsd-7.2.2 → smsd-8.0.0}/python/tests/test_cip.py +41 -7
  201. smsd-8.0.0/python/tests/test_cip_priority_regression.py +30 -0
  202. smsd-8.0.0/python/tests/test_depiction_stereo_regression.py +42 -0
  203. smsd-8.0.0/python/tests/test_depiction_style_regression.py +45 -0
  204. {smsd-7.2.2 → smsd-8.0.0}/python/tests/test_external_benchmarks.py +10 -5
  205. smsd-8.0.0/python/tests/test_feature_backend_regression.py +42 -0
  206. smsd-8.0.0/python/tests/test_fingerprint_extent_regression.py +60 -0
  207. smsd-8.0.0/python/tests/test_fingerprint_options.py +181 -0
  208. {smsd-7.2.2 → smsd-8.0.0}/python/tests/test_fingerprints.py +56 -27
  209. smsd-8.0.0/python/tests/test_fragment_mces_bound_regression.py +33 -0
  210. smsd-8.0.0/python/tests/test_fragment_output_regression.py +56 -0
  211. smsd-8.0.0/python/tests/test_full_query_proof_regression.py +32 -0
  212. smsd-8.0.0/python/tests/test_graph_identity_regression.py +65 -0
  213. {smsd-7.2.2 → smsd-8.0.0}/python/tests/test_hydrogen_handling.py +22 -15
  214. smsd-8.0.0/python/tests/test_import_footprint_regression.py +85 -0
  215. smsd-8.0.0/python/tests/test_input_validation_regression.py +74 -0
  216. {smsd-7.2.2 → smsd-8.0.0}/python/tests/test_layout.py +1 -1
  217. smsd-8.0.0/python/tests/test_mces_contract_regression.py +58 -0
  218. smsd-8.0.0/python/tests/test_mixed_input_regression.py +90 -0
  219. smsd-8.0.0/python/tests/test_mol_properties_regression.py +127 -0
  220. smsd-8.0.0/python/tests/test_native_result_regression.py +199 -0
  221. smsd-8.0.0/python/tests/test_package_surface.py +268 -0
  222. smsd-8.0.0/python/tests/test_parser_property_regression.py +86 -0
  223. smsd-8.0.0/python/tests/test_parser_robustness_regression.py +122 -0
  224. smsd-8.0.0/python/tests/test_properties_regression.py +47 -0
  225. smsd-8.0.0/python/tests/test_python_adapter_regression.py +84 -0
  226. smsd-8.0.0/python/tests/test_screening_strategy_regression.py +90 -0
  227. smsd-8.0.0/python/tests/test_search_api.py +198 -0
  228. smsd-8.0.0/python/tests/test_search_contract_regression.py +69 -0
  229. {smsd-7.2.2 → smsd-8.0.0}/python/tests/test_smsd.py +181 -184
  230. smsd-8.0.0/python/tests/test_stereo_io_regression.py +135 -0
  231. smsd-8.0.0/python/tests/test_stereo_matching_regression.py +82 -0
  232. smsd-8.0.0/python/tests/test_tautomer_confidence_regression.py +39 -0
  233. smsd-8.0.0/python/tests/test_thread_safety_regression.py +139 -0
  234. smsd-8.0.0/python/tests/test_toolkit_round_trip.py +152 -0
  235. {smsd-7.2.2 → smsd-8.0.0}/scripts/build-linux-installer.sh +7 -3
  236. {smsd-7.2.2 → smsd-8.0.0}/scripts/build_java_installer.py +31 -38
  237. smsd-8.0.0/scripts/build_python_wheels.py +429 -0
  238. smsd-8.0.0/scripts/check_examples.py +202 -0
  239. {smsd-7.2.2 → smsd-8.0.0}/scripts/check_macos_installer.py +4 -0
  240. smsd-8.0.0/scripts/check_native_wheel_build.py +33 -0
  241. smsd-8.0.0/scripts/check_pypi_release.py +294 -0
  242. {smsd-7.2.2 → smsd-8.0.0}/scripts/check_python_wheel.py +8 -4
  243. {smsd-7.2.2 → smsd-8.0.0}/scripts/check_windows_installer.ps1 +2 -0
  244. {smsd-7.2.2 → smsd-8.0.0}/scripts/cibuildwheel.toml +4 -0
  245. {smsd-7.2.2 → smsd-8.0.0}/scripts/collect-release-wheels.py +56 -28
  246. {smsd-7.2.2 → smsd-8.0.0}/scripts/collect_java_installers.py +4 -1
  247. {smsd-7.2.2 → smsd-8.0.0}/scripts/prepare-release.sh +41 -30
  248. {smsd-7.2.2 → smsd-8.0.0}/scripts/repair_windows_wheel.py +4 -0
  249. smsd-7.2.2/.dockerignore +0 -12
  250. smsd-7.2.2/.github/workflows/docker-image.yml +0 -16
  251. smsd-7.2.2/.github/workflows/release.yml +0 -104
  252. smsd-7.2.2/CHANGELOG.md +0 -450
  253. smsd-7.2.2/NOTICE +0 -121
  254. smsd-7.2.2/PKG-INFO +0 -198
  255. smsd-7.2.2/README.md +0 -243
  256. smsd-7.2.2/benchmarks/BENCHMARK_REPORT.md +0 -8
  257. smsd-7.2.2/benchmarks/README.md +0 -69
  258. smsd-7.2.2/benchmarks/RESULTS_7.2.0.md +0 -260
  259. smsd-7.2.2/benchmarks/benchmark_1000.py +0 -598
  260. smsd-7.2.2/benchmarks/benchmark_1000_java.java +0 -524
  261. smsd-7.2.2/benchmarks/benchmark_all.py +0 -654
  262. smsd-7.2.2/benchmarks/benchmark_assignment_matching.cpp +0 -114
  263. smsd-7.2.2/benchmarks/benchmark_bindings.py +0 -112
  264. smsd-7.2.2/benchmarks/benchmark_cpp.cpp +0 -90
  265. smsd-7.2.2/benchmarks/benchmark_cpp.sh +0 -12
  266. smsd-7.2.2/benchmarks/benchmark_java.sh +0 -99
  267. smsd-7.2.2/benchmarks/benchmark_leaderboard.py +0 -747
  268. smsd-7.2.2/benchmarks/benchmark_mcs_components.cpp +0 -50
  269. smsd-7.2.2/benchmarks/benchmark_present_vs_light_scaling.py +0 -694
  270. smsd-7.2.2/benchmarks/benchmark_python.py +0 -420
  271. smsd-7.2.2/benchmarks/benchmark_python_vs_rdkit.py +0 -172
  272. smsd-7.2.2/benchmarks/benchmark_rdkit.py +0 -122
  273. smsd-7.2.2/benchmarks/benchmark_search_primitives.cpp +0 -52
  274. smsd-7.2.2/benchmarks/benchmark_smsd_v6.py +0 -250
  275. smsd-7.2.2/benchmarks/benchmark_substructure_java.java +0 -181
  276. smsd-7.2.2/benchmarks/benchmark_substructure_setup.cpp +0 -52
  277. smsd-7.2.2/benchmarks/benchmark_tautomer.cpp +0 -297
  278. smsd-7.2.2/benchmarks/benchmark_tautomer_zinc.java +0 -438
  279. smsd-7.2.2/benchmarks/compare_benchmark_tsv.py +0 -291
  280. smsd-7.2.2/benchmarks/data/BBBP.csv +0 -2051
  281. smsd-7.2.2/benchmarks/data/README.md +0 -47
  282. smsd-7.2.2/benchmarks/data/bace.csv +0 -1514
  283. smsd-7.2.2/benchmarks/data/bzr.sdf +0 -9160
  284. smsd-7.2.2/benchmarks/data/cdk2.sdf +0 -5373
  285. smsd-7.2.2/benchmarks/data/chembl_mcs_benchmark.smi +0 -5590
  286. smsd-7.2.2/benchmarks/data/chodera_tautobase_subset.txt +0 -469
  287. smsd-7.2.2/benchmarks/data/clintox.csv +0 -1485
  288. smsd-7.2.2/benchmarks/data/dalke_nn_pairs.tsv +0 -1003
  289. smsd-7.2.2/benchmarks/data/dalke_random_pairs.tsv +0 -1003
  290. smsd-7.2.2/benchmarks/data/ehrlich_rarey_smarts.txt +0 -1417
  291. smsd-7.2.2/benchmarks/data/sider.csv +0 -1428
  292. smsd-7.2.2/benchmarks/data/stress_pairs.tsv +0 -15
  293. smsd-7.2.2/benchmarks/data/tautobase_smirks.txt +0 -1681
  294. smsd-7.2.2/benchmarks/diverse_molecules.txt +0 -1042
  295. smsd-7.2.2/benchmarks/results_dalke_nn_1000pairs.txt +0 -21
  296. smsd-7.2.2/benchmarks/results_dalke_random_1000pairs.txt +0 -11
  297. smsd-7.2.2/benchmarks/results_ehrlich_rarey_1400smarts.txt +0 -12
  298. smsd-7.2.2/benchmarks/results_external_all_combined.txt +0 -79
  299. smsd-7.2.2/benchmarks/results_leaderboard_core_java_sub.tsv +0 -29
  300. smsd-7.2.2/benchmarks/results_leaderboard_core_mcs.tsv +0 -21
  301. smsd-7.2.2/benchmarks/results_leaderboard_core_python.tsv +0 -46
  302. smsd-7.2.2/benchmarks/results_leaderboard_core_summary.txt +0 -35
  303. smsd-7.2.2/benchmarks/results_leaderboard_mcs.tsv +0 -21
  304. smsd-7.2.2/benchmarks/results_leaderboard_substructure.tsv +0 -29
  305. smsd-7.2.2/benchmarks/results_leaderboard_summary.txt +0 -24
  306. smsd-7.2.2/benchmarks/results_present_vs_light_scaling_mcs.tsv +0 -21
  307. smsd-7.2.2/benchmarks/results_present_vs_light_scaling_sub.tsv +0 -29
  308. smsd-7.2.2/benchmarks/results_python.tsv +0 -45
  309. smsd-7.2.2/benchmarks/results_python_6_9_1.tsv +0 -46
  310. smsd-7.2.2/benchmarks/results_smsd_vs_rdkit_20pairs_mcs_all.tsv +0 -21
  311. smsd-7.2.2/benchmarks/results_smsd_vs_rdkit_20pairs_mcs_sub.tsv +0 -24
  312. smsd-7.2.2/benchmarks/results_smsd_vs_rdkit_20pairs_mcs_sub.txt +0 -74
  313. smsd-7.2.2/benchmarks/results_smsd_vs_rdkit_20pairs_summary.txt +0 -43
  314. smsd-7.2.2/benchmarks/results_stress_12pairs.txt +0 -20
  315. smsd-7.2.2/benchmarks/results_substructure.tsv +0 -29
  316. smsd-7.2.2/benchmarks/results_substructure_benchmark.tsv +0 -29
  317. smsd-7.2.2/benchmarks/results_tautobase_468pairs.txt +0 -13
  318. smsd-7.2.2/benchmarks/results_tautobase_dalke_ehrlich_stress.txt +0 -56
  319. smsd-7.2.2/benchmarks/run_external_benchmarks.py +0 -195
  320. smsd-7.2.2/benchmarks/substructure_pairs.tsv +0 -53
  321. smsd-7.2.2/cpp/CMakeLists.txt +0 -296
  322. smsd-7.2.2/cpp/README.md +0 -116
  323. smsd-7.2.2/cpp/bindings/pybind11/smsd_bindings.cpp +0 -2260
  324. smsd-7.2.2/cpp/build.sh +0 -96
  325. smsd-7.2.2/cpp/build_gpu.sh +0 -4
  326. smsd-7.2.2/cpp/include/smsd/batch.hpp +0 -1755
  327. smsd-7.2.2/cpp/include/smsd/cip.hpp +0 -997
  328. smsd-7.2.2/cpp/include/smsd/clique_solver.hpp +0 -1123
  329. smsd-7.2.2/cpp/include/smsd/mcs.hpp +0 -5703
  330. smsd-7.2.2/cpp/include/smsd/mol_graph.hpp +0 -4139
  331. smsd-7.2.2/cpp/include/smsd/rascal.hpp +0 -35
  332. smsd-7.2.2/cpp/include/smsd/smarts_parser.hpp +0 -2717
  333. smsd-7.2.2/cpp/include/smsd/smiles_parser.hpp +0 -2199
  334. smsd-7.2.2/cpp/include/smsd/vf2pp.hpp +0 -2035
  335. smsd-7.2.2/cpp/tests/test_clique_regression.cpp +0 -305
  336. smsd-7.2.2/cpp/tests/test_mcs_regression.cpp +0 -838
  337. smsd-7.2.2/cpp/tests/test_substructure_regression.cpp +0 -175
  338. smsd-7.2.2/docs/ALGORITHM_REVIEW.md +0 -203
  339. smsd-7.2.2/docs/CPP.md +0 -379
  340. smsd-7.2.2/docs/EXAMPLES.md +0 -543
  341. smsd-7.2.2/docs/HOWTO-INSTALL.md +0 -151
  342. smsd-7.2.2/docs/INSTALLERS.md +0 -103
  343. smsd-7.2.2/docs/JAVA.md +0 -265
  344. smsd-7.2.2/docs/PUBLISHING.md +0 -269
  345. smsd-7.2.2/docs/PYTHON.md +0 -294
  346. smsd-7.2.2/docs/RELEASE_NOTES.md +0 -19
  347. smsd-7.2.2/docs/VALIDATION_7.1.2.md +0 -66
  348. smsd-7.2.2/docs/VALIDATION_7.2.0.md +0 -214
  349. smsd-7.2.2/docs/VALIDATION_7.2.1.md +0 -200
  350. smsd-7.2.2/docs/VALIDATION_7.2.2.md +0 -90
  351. smsd-7.2.2/icons/icon.png +0 -0
  352. smsd-7.2.2/java/README.md +0 -137
  353. smsd-7.2.2/java/pom.xml +0 -356
  354. smsd-7.2.2/java/src/main/java/com/bioinception/smsd/cli/SMSDcli.java +0 -752
  355. smsd-7.2.2/java/src/main/java/com/bioinception/smsd/core/CIPAssigner.java +0 -679
  356. smsd-7.2.2/java/src/main/java/com/bioinception/smsd/core/MCSPostFilter.java +0 -32
  357. smsd-7.2.2/java/src/main/java/com/bioinception/smsd/core/MolGraph.java +0 -3976
  358. smsd-7.2.2/java/src/main/java/com/bioinception/smsd/core/SMSD.java +0 -872
  359. smsd-7.2.2/java/src/main/java/com/bioinception/smsd/core/SearchEngine.java +0 -5910
  360. smsd-7.2.2/java/src/main/java/com/bioinception/smsd/core/SubstructureEngine.java +0 -633
  361. smsd-7.2.2/java/src/scripts/smsd.ps1 +0 -20
  362. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/AlgorithmTest.java +0 -4606
  363. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/AromaticityParityTest.java +0 -144
  364. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/BenchmarkHarnessRegressionTest.java +0 -26
  365. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/BenchmarkRunSettings.java +0 -85
  366. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/BenchmarkSuiteTest.java +0 -616
  367. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/CoreTest.java +0 -1939
  368. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/ExternalBenchmarkTest.java +0 -437
  369. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/FeaturesTest.java +0 -711
  370. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/IOTest.java +0 -336
  371. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/JavaCdkVsSmsdBenchmarkTest.java +0 -369
  372. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/LayoutTest.java +0 -308
  373. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/SearchApiRegressionTest.java +0 -74
  374. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/StressTest.java +0 -5541
  375. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/SubstructureRegressionTest.java +0 -149
  376. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/TestBase.java +0 -26
  377. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/TestSupport.java +0 -58
  378. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/ValueContractRegressionTest.java +0 -215
  379. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/cli/CLIFileFormatRegressionTest.java +0 -218
  380. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/core/MCSAlgorithmRegressionTest.java +0 -441
  381. smsd-7.2.2/java/src/test/java/com/bioinception/smsd/core/ObjectiveChemistryRegressionTest.java +0 -513
  382. smsd-7.2.2/python/README.md +0 -161
  383. smsd-7.2.2/python/smsd/__init__.py +0 -2877
  384. smsd-7.2.2/python/smsd/mcs_engine.py +0 -88
  385. smsd-7.2.2/python/tests/__init__.py +0 -2
  386. smsd-7.2.2/python/tests/test_algorithm_regressions.py +0 -116
  387. smsd-7.2.2/python/tests/test_binding_regressions.py +0 -216
  388. smsd-7.2.2/python/tests/test_python_review.py +0 -124
  389. smsd-7.2.2/scripts/build_python_wheels.py +0 -186
  390. smsd-7.2.2/scripts/check_native_wheel_build.py +0 -34
  391. smsd-7.2.2/scripts/tests/test_collect_release_wheels.py +0 -216
  392. smsd-7.2.2/scripts/tests/test_repair_windows_wheel.py +0 -175
  393. {smsd-7.2.2 → smsd-8.0.0}/.gitattributes +0 -0
  394. {smsd-7.2.2 → smsd-8.0.0}/LICENSE +0 -0
  395. {smsd-7.2.2 → smsd-8.0.0}/icons/icon.svg +0 -0
  396. {smsd-7.2.2 → smsd-8.0.0}/java/src/test/resources/com/bioinception/smsd/aromaticity_parity.json +0 -0
  397. {smsd-7.2.2 → smsd-8.0.0}/licenses/libgomp/COPYING.RUNTIME +0 -0
  398. {smsd-7.2.2 → smsd-8.0.0}/licenses/libgomp/COPYING3 +0 -0
  399. {smsd-7.2.2 → smsd-8.0.0}/licenses/libomp/LICENSE.TXT +0 -0
  400. {smsd-7.2.2 → smsd-8.0.0}/licenses/msvc/LICENSE-2022.docx +0 -0
  401. {smsd-7.2.2 → smsd-8.0.0}/licenses/msvc/LICENSE-2026.docx +0 -0
@@ -0,0 +1,24 @@
1
+ *
2
+ !pom.xml
3
+ !LICENSE
4
+ !NOTICE
5
+ !licenses/
6
+ licenses/*
7
+ !licenses/cdk/
8
+ !licenses/cdk/**
9
+ !java/
10
+ java/*
11
+ !java/pom.xml
12
+ !java/src/
13
+ !java/src/**
14
+ !java/core/
15
+ java/core/*
16
+ !java/core/pom.xml
17
+ !java/cli/
18
+ java/cli/*
19
+ !java/cli/pom.xml
20
+ !java/cli/src/
21
+ !java/cli/src/**
22
+ java/cli/src/scripts/lib/
23
+ java/cli/src/scripts/repo/
24
+ **/*.class
@@ -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:
@@ -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')
@@ -1,24 +1,47 @@
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: maven
4
6
 
5
7
  on:
6
8
  workflow_dispatch:
7
9
 
10
+ permissions:
11
+ contents: read
12
+
8
13
  jobs:
14
+ release-tooling:
15
+ runs-on: ubuntu-latest
16
+ timeout-minutes: 10
17
+ steps:
18
+ - uses: actions/checkout@v7.0.1
19
+ with:
20
+ persist-credentials: false
21
+ - uses: actions/setup-python@v7.0.0
22
+ with:
23
+ python-version: '3.14'
24
+ - name: Test release tooling
25
+ run: |
26
+ python -m pip install pytest pytest-timeout
27
+ python -m pytest scripts/tests -q
28
+
9
29
  build:
10
30
  runs-on: ubuntu-latest
11
31
  timeout-minutes: 25
12
32
  steps:
13
33
  - uses: actions/checkout@v7.0.1
34
+ with:
35
+ persist-credentials: false
14
36
  - name: Set up JDK 25
15
37
  uses: actions/setup-java@v6.0.1
16
38
  with:
17
39
  distribution: temurin
18
40
  java-version: '25'
19
41
  cache: maven
42
+ # Installing the library lets the Java 8 step below resolve it for the CLI tests.
20
43
  - name: Build Java 8-compatible packages and test on Java 25
21
- run: mvn -U -B -Dslow.tests.exclude=nothing -Dsurefire.reportNameSuffix=java25 clean verify
44
+ run: mvn -U -B -Dslow.tests.exclude=nothing -Dsurefire.reportNameSuffix=java25 clean install
22
45
  - name: Set up Java 8 compatibility runtime
23
46
  uses: actions/setup-java@v6.0.1
24
47
  with:
@@ -32,5 +55,5 @@ jobs:
32
55
  with:
33
56
  name: smsd-jar-and-launchers
34
57
  path: |
35
- java/target/*-jar-with-dependencies.jar
36
- java/target/appassembler/
58
+ java/cli/target/*-jar-with-dependencies.jar
59
+ java/cli/target/appassembler/
@@ -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: Build and validate Python wheels
4
6
 
5
7
  on:
@@ -16,7 +18,7 @@ on:
16
18
  type: choice
17
19
  options: [windows, linux, macos, all]
18
20
  publish:
19
- description: Publish the full matrix and sdist to PyPI (requires platform=all)
21
+ description: Upload the validated published GitHub SDK and three wheels to PyPI (requires platform=all)
20
22
  required: true
21
23
  default: false
22
24
  type: boolean
@@ -26,6 +28,7 @@ permissions:
26
28
 
27
29
  jobs:
28
30
  source:
31
+ if: ${{ !inputs.publish }}
29
32
  name: Prepare one source distribution
30
33
  runs-on: ubuntu-24.04
31
34
  timeout-minutes: 10
@@ -36,6 +39,7 @@ jobs:
36
39
  with:
37
40
  ref: ${{ inputs.release_tag }}
38
41
  fetch-depth: 0
42
+ persist-credentials: false
39
43
  - uses: actions/setup-python@v7.0.0
40
44
  with:
41
45
  python-version: '3.14'
@@ -72,7 +76,8 @@ jobs:
72
76
  env:
73
77
  RELEASE_REF: ${{ inputs.release_tag }}
74
78
  run: |
75
- python -m pip install build twine
79
+ python -m pip install build twine pytest pytest-timeout
80
+ python -m pytest scripts/tests -q
76
81
  python scripts/build_python_wheels.py prepare --output-dir dist --release-ref "$RELEASE_REF"
77
82
  python -m twine check --strict dist/*.tar.gz
78
83
  - uses: actions/upload-artifact@v7.0.1
@@ -82,6 +87,7 @@ jobs:
82
87
  if-no-files-found: error
83
88
 
84
89
  build:
90
+ if: ${{ !inputs.publish }}
85
91
  name: CPython 3.14 ${{ matrix.platform }} ${{ matrix.arch }}
86
92
  needs: source
87
93
  runs-on: ${{ matrix.os }}
@@ -93,6 +99,7 @@ jobs:
93
99
  - uses: actions/checkout@v7.0.1
94
100
  with:
95
101
  ref: ${{ inputs.release_tag }}
102
+ persist-credentials: false
96
103
  - uses: actions/setup-python@v7.0.0
97
104
  with:
98
105
  python-version: '3.14'
@@ -108,7 +115,7 @@ jobs:
108
115
  run: |
109
116
  python -m pip install cibuildwheel==4.2.1
110
117
  python scripts/build_python_wheels.py build \
111
- --sdist release-source/smsd-*.tar.gz --source-manifest release-source/source-manifest.json \
118
+ --sdist release-source/smsd-*.tar.gz --source-manifest release-source/SOURCE_MANIFEST.json \
112
119
  --platform "$WHEEL_PLATFORM" --arch "$WHEEL_ARCH" --output-dir wheelhouse
113
120
  - uses: actions/upload-artifact@v7.0.1
114
121
  with:
@@ -117,9 +124,8 @@ jobs:
117
124
  if-no-files-found: error
118
125
 
119
126
  publish:
120
- name: Publish explicitly approved full matrix
121
- if: ${{ inputs.publish && inputs.platform == 'all' }}
122
- needs: [source, build]
127
+ name: Publish validated GitHub release files
128
+ if: ${{ inputs.publish }}
123
129
  runs-on: ubuntu-24.04
124
130
  timeout-minutes: 10
125
131
  environment: pypi
@@ -127,24 +133,40 @@ jobs:
127
133
  id-token: write
128
134
  contents: read
129
135
  steps:
130
- - uses: actions/download-artifact@v8.0.1
136
+ - uses: actions/checkout@v7.0.1
137
+ with:
138
+ persist-credentials: false
139
+ - uses: actions/setup-python@v7.0.0
131
140
  with:
132
- pattern: python-*
133
- path: artifacts
134
- - name: Collect only distributions
141
+ python-version: '3.14'
142
+ - name: Download only the published release distributions
143
+ env:
144
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
145
+ RELEASE_TAG: ${{ inputs.release_tag }}
146
+ BUILD_TARGET: ${{ inputs.platform }}
147
+ RELEASE_REPOSITORY: ${{ github.repository }}
135
148
  run: |
136
- python - <<'PY'
137
- from pathlib import Path
138
- import shutil
139
- output = Path('dist')
140
- output.mkdir()
141
- for path in Path('artifacts').rglob('*'):
142
- if path.is_file() and (path.suffix == '.whl' or path.name.endswith('.tar.gz')):
143
- if (output / path.name).exists():
144
- raise SystemExit('Duplicate distribution: ' + path.name)
145
- shutil.copy2(path, output / path.name)
146
- if len(list(output.glob('*.whl'))) != 3 or len(list(output.glob('*.tar.gz'))) != 1:
147
- raise SystemExit('Expected three tested wheels and one source distribution')
148
- PY
149
+ python scripts/check_pypi_release.py download \
150
+ --tag "$RELEASE_TAG" --platform "$BUILD_TARGET" --repository "$RELEASE_REPOSITORY" \
151
+ --release-dir release-input --metadata-file release-metadata.json
152
+ - uses: actions/checkout@v7.0.1
153
+ with:
154
+ ref: ${{ inputs.release_tag }}
155
+ fetch-depth: 0
156
+ path: release-checkout
157
+ persist-credentials: false
158
+ - name: Check release hashes, frozen source and all three wheels
159
+ env:
160
+ RELEASE_TAG: ${{ inputs.release_tag }}
161
+ run: |
162
+ python scripts/check_pypi_release.py validate \
163
+ --tag "$RELEASE_TAG" --release-dir release-input --metadata-file release-metadata.json \
164
+ --source-checkout release-checkout --dist-dir dist --receipt-file upload-receipt.json
165
+ python -m pip install twine
166
+ python -m twine check --strict dist/*
167
+ - name: Verify the exact four files immediately before upload
168
+ run: |
169
+ python scripts/check_pypi_release.py verify-staged \
170
+ --dist-dir dist --receipt-file upload-receipt.json
149
171
  - name: Publish to PyPI
150
- uses: pypa/gh-action-pypi-publish@release/v1
172
+ uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # release/v1
@@ -0,0 +1,90 @@
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
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ java-cli:
20
+ runs-on: ubuntu-latest
21
+ timeout-minutes: 25
22
+ steps:
23
+ - uses: actions/checkout@v7.0.1
24
+ with:
25
+ ref: ${{ inputs.tag }}
26
+ persist-credentials: false
27
+ - name: Set up JDK 25
28
+ uses: actions/setup-java@v6.0.1
29
+ with:
30
+ distribution: temurin
31
+ java-version: '25'
32
+ cache: maven
33
+ - name: Build and test the library and CLI JARs
34
+ run: mvn -U -B clean verify
35
+ - uses: actions/upload-artifact@v7.0.1
36
+ with:
37
+ name: java-jars
38
+ path: |
39
+ java/core/target/smsd-*.jar
40
+ !java/core/target/smsd-*-sources.jar
41
+ !java/core/target/smsd-*-javadoc.jar
42
+ !java/core/target/smsd-*-tests.jar
43
+ java/cli/target/smsd-cli-*-jar-with-dependencies.jar
44
+ if-no-files-found: error
45
+
46
+ cpp-headers:
47
+ runs-on: ubuntu-latest
48
+ timeout-minutes: 15
49
+ steps:
50
+ - uses: actions/checkout@v7.0.1
51
+ with:
52
+ ref: ${{ inputs.tag }}
53
+ persist-credentials: false
54
+ - name: Test and package C++ headers
55
+ env:
56
+ RELEASE_TAG: ${{ inputs.tag }}
57
+ run: |
58
+ cmake -S cpp -B build/headers -DCMAKE_BUILD_TYPE=Debug \
59
+ -DSMSD_BUILD_PYTHON=OFF -DSMSD_BUILD_TESTS=ON \
60
+ -DSMSD_BUILD_METAL=OFF -DSMSD_BUILD_CUDA=OFF
61
+ cmake --build build/headers --parallel 2
62
+ ctest --test-dir build/headers --output-on-failure
63
+ VERSION=${RELEASE_TAG#v}
64
+ COPYFILE_DISABLE=1 tar -czf "smsd-cpp-${VERSION}-headers.tar.gz" \
65
+ LICENSE NOTICE -C cpp/include smsd/
66
+ - uses: actions/upload-artifact@v7.0.1
67
+ with:
68
+ name: cpp-headers
69
+ path: smsd-cpp-*-headers.tar.gz
70
+ if-no-files-found: error
71
+
72
+ docker-cli:
73
+ runs-on: ubuntu-latest
74
+ timeout-minutes: 20
75
+ steps:
76
+ - uses: actions/checkout@v7.0.1
77
+ with:
78
+ ref: ${{ inputs.tag }}
79
+ persist-credentials: false
80
+ - name: Build CLI image
81
+ run: docker build --tag smsd:release-check .
82
+ - name: Test CLI image
83
+ run: docker run --rm smsd:release-check --help
84
+ - name: Save tested image
85
+ run: docker save smsd:release-check | gzip > smsd-cli-image.tar.gz
86
+ - uses: actions/upload-artifact@v7.0.1
87
+ with:
88
+ name: docker-cli
89
+ path: smsd-cli-image.tar.gz
90
+ if-no-files-found: error
@@ -0,0 +1,45 @@
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
+ permissions:
11
+ contents: read
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
+ defaults:
22
+ run:
23
+ shell: pwsh
24
+ env:
25
+ SMSD_DISABLE_GPU: '1'
26
+ steps:
27
+ - uses: actions/checkout@v7.0.1
28
+ - uses: actions/setup-python@v7.0.0
29
+ with:
30
+ python-version: '3.13'
31
+ - name: C++ Release tests
32
+ run: |
33
+ cmake -S cpp -B build/release -DSMSD_BUILD_TESTS=ON -DSMSD_BUILD_METAL=OFF -DSMSD_BUILD_CUDA=OFF
34
+ cmake --build build/release --config Release --parallel
35
+ ctest --test-dir build/release -C Release --output-on-failure
36
+ - name: C++ Debug tests
37
+ run: |
38
+ cmake -S cpp -B build/debug -DSMSD_BUILD_TESTS=ON -DSMSD_BUILD_METAL=OFF -DSMSD_BUILD_CUDA=OFF
39
+ cmake --build build/debug --config Debug --parallel
40
+ ctest --test-dir build/debug -C Debug --output-on-failure
41
+ - name: Python wheel tests
42
+ run: |
43
+ python -m pip install ".[dev]" -Ccmake.define.SMSD_BUILD_METAL=OFF -Ccmake.define.SMSD_BUILD_CUDA=OFF
44
+ Set-Location $env:RUNNER_TEMP
45
+ python -m pytest "$env:GITHUB_WORKSPACE/python/tests" -q -p no:cacheprovider --import-mode=importlib
@@ -44,8 +44,8 @@ Thumbs.db
44
44
 
45
45
  # Generated (rebuild anytime)
46
46
  api/
47
- java/src/scripts/lib/
48
- java/src/scripts/repo/
47
+ java/cli/src/scripts/lib/
48
+ java/cli/src/scripts/repo/
49
49
  benchmarks/runs/
50
50
 
51
51
  # Not for public repo
@@ -0,0 +1,60 @@
1
+ # Changelog
2
+
3
+ All notable changes to SMSD Pro are documented in this file. The format is
4
+ based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
5
+
6
+ ## [8.0.0] - 2026-10-21
7
+
8
+ Substructure and maximum common substructure (MCS) search for C++, Java and
9
+ Python through prepared `MCS` and `Substructure` queries, with one search
10
+ model, one set of chemistry rules and the same fingerprints in the three
11
+ languages. The [release notes](docs/RELEASE_NOTES.md) list the downloads and
12
+ the upgrade notes.
13
+
14
+ ### Added
15
+
16
+ - Prepared `MCS` and `Substructure` queries with `match`, `matchAll` and `matchMany` (Python `match`, `match_all` and `match_many`), and `Substructure.smarts` for SMARTS queries.
17
+ - MCS objectives: connected and disconnected maximum common induced subgraphs (MCIS), maximum common edge subgraphs (MCES) and atom-weighted MCIS, with bond mappings, fragment results and fragment limits.
18
+ - Constrained, consensus and R-group searches: `MCS.matchConstrained`, `MCS.consensus` and `Substructure.decomposeRGroups`.
19
+ - Results that report status (`Completed`, `TimedOut`, `Cancelled` or `LimitReached`), proved optimality and completeness separately from the matches.
20
+ - Search budgets: timeouts, node limits and cancellation.
21
+ - Mapping tools: `MCS.validateMapping`, `MCS.isMappingMaximal`, `MCS.mappingMatch` and `MCS.canonicalizeMapping`.
22
+ - Tautomer confidence for the selected bonds of a match: `MCS.computeTautomerConfidence` (Python `MCS.compute_tautomer_confidence`).
23
+ - `FingerprintOptions`, a configurable fingerprint specification shared by C++, Java and Python.
24
+ - Similarity bounds for screening: `similarityUpperBound` and `screenTargets` (Python `similarity_upper_bound` and `screen_targets`).
25
+ - Python: `parse_smiles(smiles, lenient=True)`, `MCS.validate_tautomer_consistency`, and the full set of `ChemOptions` setters, with copy support.
26
+ - Java: `MolGraph.toCanonicalSmiles(Map<Integer, Integer>)` and `MolGraph.Builder.hydrogenCounts(int[])`.
27
+ - Shared benchmark workloads for C++, Java and Python, with independent checks of every returned mapping.
28
+
29
+ ### Search behaviour
30
+
31
+ - A search is reported optimal only when it runs to completion; a search stopped by a limit returns the best valid mapping it found.
32
+ - Shared golden fixtures pin the same search and chemistry results in C++, Java and Python, and the C++ and Java MCES searches visit the same nodes in the same order.
33
+ - Stereo-aware substructure searches require a specified, matching target centre or double bond for each specified query centre or double bond.
34
+ - Batch searches keep input order, and their results do not depend on the number of threads unless a search reaches its time limit.
35
+ - The Java command-line tool exits with status 0 for a match, 1 for no match and 2 for an error or an incomplete search.
36
+
37
+ ### Chemistry
38
+
39
+ - SMARTS follows Daylight semantics in C++ and Java, including directional bonds, and SMARTS input has documented size limits.
40
+ - SMILES bracket atoms are checked against the OpenSMILES limits.
41
+ - One implicit-hydrogen valence table and one tetrahedral-centre rule are shared by C++ and Java.
42
+ - CIP descriptors follow the IUPAC 2013 Recommendations, including pseudoasymmetric centres (r and s), identically in C++ and Java.
43
+ - Ring perception has bounded work and stack use on very large ring systems, and C++ and Java count rings by the same rule.
44
+ - Tautomer classes do not depend on the atom order, and tautomer weights depend on pH through the Henderson–Hasselbalch relation.
45
+ - Murcko scaffolds keep exocyclic multiply bonded atoms and stereochemistry.
46
+ - MOL and SDF input and output keep tetrahedral and double-bond stereochemistry.
47
+
48
+ ### Fingerprints
49
+
50
+ - `FingerprintOptions` selects circular (ECFP or FCFP), path, topological-torsion or structural-key fingerprints, including the 166 MACCS keys, and switches atom, bond, ring, ring-size, stereo and fragment terms, with an optional Murcko framework.
51
+ - The default configuration of each family reproduces the bits of the corresponding fingerprint function.
52
+ - Two empty fingerprints are identical sets: Tanimoto and overlap are 1.0 in every language.
53
+
54
+ ### Packaging
55
+
56
+ - Java: the library `com.bioinceptionlabs:smsd`, with a lean set of CDK dependencies, and the command-line tool `com.bioinceptionlabs:smsd-cli`, built from one Maven project.
57
+ - C++: a header-only C++17 library whose public headers each compile on their own.
58
+ - Python: the `smsd` package on the native library, with optional RDKit, NumPy and Open Babel support loaded only when used.
59
+ - The CDK licence ships with every Java artefact that bundles CDK.
60
+ - The guides document the prepared-query API, and `scripts/check_examples.py` runs every example in them.
@@ -3,7 +3,8 @@ title: "SMSD Pro: Small Molecule Subgraph Detector"
3
3
  message: "If you use this software, please cite it using the metadata from this file."
4
4
  type: software
5
5
  license: Apache-2.0
6
- version: 7.2.2
6
+ version: 8.0.0
7
+ date-released: 2026-10-21
7
8
  url: "https://github.com/asad/SMSD"
8
9
  repository-code: "https://github.com/asad/SMSD"
9
10
 
@@ -6,7 +6,10 @@ RUN mvn -f java/pom.xml -U -B -DskipTests=true clean package
6
6
  FROM eclipse-temurin:25-jre
7
7
  RUN groupadd -r smsd && useradd -r -g smsd -d /work smsd
8
8
  WORKDIR /work
9
- COPY --from=build /app/java/target/smsd-*-jar-with-dependencies.jar /usr/local/bin/smsd.jar
9
+ COPY --from=build /app/java/cli/target/smsd-cli-*-jar-with-dependencies.jar /usr/local/bin/smsd.jar
10
+ # LICENSE, NOTICE and the licence files of the bundled CDK that NOTICE refers to
11
+ COPY --from=build /app/LICENSE /app/NOTICE /usr/share/doc/smsd/
12
+ COPY --from=build /app/licenses/cdk/ /usr/share/doc/smsd/licenses/cdk/
10
13
  RUN chown -R smsd:smsd /work
11
14
  USER smsd
12
15
  ENTRYPOINT ["java","-jar","/usr/local/bin/smsd.jar"]
smsd-8.0.0/NOTICE ADDED
@@ -0,0 +1,147 @@
1
+ SMSD Pro™ — Small Molecule Subgraph Detector
2
+ Copyright (c) 2018-2026 BioInception PVT LTD
3
+ Algorithm Copyright (c) 2009-2026 Syed Asad Rahman
4
+
5
+ This product includes software developed by Syed Asad Rahman
6
+ at BioInception PVT LTD (https://github.com/asad/SMSD).
7
+
8
+ LICENSING AND COMMERCIAL USE
9
+ ============================
10
+ SMSD Pro is released under the Apache License, Version 2.0.
11
+ You are free to use, modify, and distribute this software for any
12
+ purpose, including commercial use, subject to the licence terms.
13
+
14
+ PERMITTED (no fee, no registration, no approval needed):
15
+ * Use SMSD Pro in commercial products and services
16
+ * Use SMSD Pro in proprietary / closed-source software
17
+ * Bundle SMSD Pro in SaaS platforms and cloud services
18
+ * Modify the source code for your own needs
19
+ * Redistribute SMSD Pro (modified or unmodified)
20
+ * Use in pharmaceutical, biotech, agrochemical pipelines
21
+ * Use in academic research and teaching
22
+ * Use in internal corporate tools and workflows
23
+
24
+ REQUIRED (Apache 2.0 Section 4):
25
+ * Include a copy of the LICENSE file in your distribution
26
+ * Include a copy of this NOTICE file in your distribution
27
+ * Retain all copyright and attribution notices
28
+ * State any changes you made to the source files
29
+
30
+ NOT PERMITTED:
31
+ * Use the names "SMSD", "SMSD Pro", or BioInception
32
+ trademarks to endorse your product (see TRADEMARK NOTICE)
33
+ * Claim you wrote the original software
34
+ * Hold contributors liable for damages
35
+
36
+ NO WARRANTY:
37
+ SMSD Pro is provided "AS IS", without warranty of any kind.
38
+ See the LICENSE file for the full disclaimer.
39
+
40
+ ACADEMIC CITATION
41
+ =================
42
+ If you use SMSD Pro in academic research, please cite both papers:
43
+
44
+ Rahman SA.
45
+ SMSD Pro: Coverage-Driven, Tautomer-Aware Maximum Common
46
+ Substructure Search.
47
+ ChemRxiv, 2026.
48
+ DOI: 10.26434/chemrxiv.15001534/v1
49
+
50
+ Rahman SA, Bashton M, Holliday GL, Schrader R, Thornton JM.
51
+ Small Molecule Subgraph Detector (SMSD) toolkit.
52
+ Journal of Cheminformatics, 1:12, 2009.
53
+ DOI: 10.1186/1758-2946-1-12
54
+
55
+ A machine-readable citation file (CITATION.cff) is included in
56
+ the repository for automated citation tools.
57
+
58
+ COMMERCIAL ATTRIBUTION
59
+ ======================
60
+ If you redistribute SMSD Pro or include it in a commercial product,
61
+ the Apache License 2.0 (Section 4d) requires you to:
62
+
63
+ 1. Include a copy of this NOTICE file in your distribution
64
+ 2. Retain all copyright and attribution notices
65
+
66
+ We also request (but do not require) the following attribution
67
+ in your product documentation, About screen, or website:
68
+
69
+ "Powered by SMSD Pro — https://github.com/asad/SMSD
70
+ Copyright (c) BioInception PVT LTD"
71
+
72
+ TRADEMARK NOTICE
73
+ ================
74
+ "SMSD"(TM), "SMSD Pro"(TM), and the BioInception molecular graph
75
+ logo(TM) are unregistered trademarks of Syed Asad Rahman /
76
+ BioInception PVT LTD. You may not use these marks to endorse or
77
+ promote products derived from this software without prior written
78
+ permission from the copyright holder.
79
+
80
+ ORIGINAL CONTRIBUTIONS
81
+ ======================
82
+ The methods below were developed by Syed Asad Rahman for SMSD Pro.
83
+ Where they build on published work, that work is cited and the original
84
+ contribution is the extension described.
85
+
86
+ 1. Tautomer-aware fingerprints: ECFP-style circular atom invariants
87
+ (Rogers and Hahn, 2010) extended with the tautomer class of each
88
+ atom, and path fingerprints in which tautomeric atoms share a label.
89
+ 2. pH-dependent weighting of tautomer relevance: each tautomer class
90
+ is weighted by the neutral fraction, given by the
91
+ Henderson-Hasselbalch relation, of the ionisable sites assigned to
92
+ its motifs, with motifs chosen by a fixed priority.
93
+ 3. Solvent-dependent corrections of the same tautomer weights. These
94
+ weights and the pH weighting feed the tautomer confidence of a
95
+ mapping; they do not change search results.
96
+ 4. Substructure search over precomputed candidate domains that extends
97
+ the mapping from already mapped neighbours first, as in VF2++
98
+ (Jüttner and Madarasi, 2018), combined with pruning of
99
+ interchangeable atoms related to the equivalent-vertex pruning of
100
+ Han et al. (2013) and Ren and Wang (2015), and with element and
101
+ degree count screening of each pair before the search.
102
+ 5. A branch-and-bound common-bond (MCES) search whose upper bounds come
103
+ from classes of compatible atoms and bonds, in the manner of the
104
+ label-class bounds of McSplit (McCreesh et al., 2017) and the label
105
+ and degree bounds of RASCAL (Raymond et al., 2002), extended with a
106
+ maximum b-matching where compatibility is not an equivalence
107
+ relation.
108
+ 6. A multi-stage two-dimensional layout pipeline with template
109
+ placement, force-directed refinement and annealed crossing
110
+ reduction.
111
+ 7. An SVG depiction engine following the ACS 1996 drawing conventions,
112
+ with conventional element colouring, asymmetric double bonds, wedge
113
+ and hash stereo marks and bond-to-label clipping.
114
+ 8. A digraph-based implementation of the CIP sequence rules following
115
+ the IUPAC 2013 Recommendations, including Rule 3 (Z before E) and,
116
+ for R/S descriptors, Rules 4 and 5 with the auxiliary descriptors of
117
+ Hanson et al. (2018).
118
+
119
+ THIRD-PARTY NOTICES
120
+ ===================
121
+ The Java library uses the Chemistry Development Kit (CDK) 2.13, licensed
122
+ under the GNU Lesser General Public License, version 2.1 or later. CDK
123
+ is Copyright (c) The CDK Project; see https://cdk.github.io/. The Java
124
+ CLI JAR with dependencies, the CLI installers and Docker image built
125
+ from it, and the portable CLI archive bundle CDK unmodified. The Java
126
+ library uses CDK for its molecule model, SMARTS input and matching,
127
+ aromaticity, atom typing and hydrogen handling, and the CLI uses it for
128
+ SMILES and file input; the MCS, MCES and molecule-query substructure
129
+ searches are SMSD Pro's own code. The licence text is provided in
130
+ licenses/cdk/LICENSE, and licenses/cdk/README.md states where the CDK
131
+ source is published and how the bundled copy can be replaced.
132
+
133
+ Python wheels built with OpenMP may bundle the LLVM OpenMP runtime,
134
+ licensed under Apache License 2.0 with LLVM Exceptions. Its licence
135
+ is provided in licenses/libomp/LICENSE.TXT and in wheel licence metadata.
136
+
137
+ Linux wheels built with GCC may bundle the GNU OpenMP runtime (libgomp),
138
+ licensed under GPL-3.0 with the GCC Runtime Library Exception; see
139
+ licenses/libgomp/. Windows wheels may bundle Microsoft Visual C++ runtime
140
+ components under Microsoft's redistribution terms; see licenses/msvc/.
141
+
142
+ AVAILABLE PLATFORMS
143
+ ===================
144
+ Java: com.bioinceptionlabs:smsd on Maven Central
145
+ com.bioinceptionlabs:smsd-cli on Maven Central (command line)
146
+ Python: pip install smsd (PyPI)
147
+ C++: Header-only library (cpp/include/smsd/)