crossref-local 0.7.6__tar.gz → 0.8.3__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 (309) hide show
  1. crossref_local-0.8.3/.github/ci/audit-baseline.constraints +12 -0
  2. crossref_local-0.8.3/.github/ci/build-in-sif.sh +69 -0
  3. crossref_local-0.8.3/.github/ci/exec-in-sif.sh +150 -0
  4. crossref_local-0.8.3/.github/ci/publish-in-sif.sh +109 -0
  5. crossref_local-0.8.3/.github/ci/run-in-sif.sh +144 -0
  6. crossref_local-0.8.3/.github/workflows/auto-merge-to-develop.yaml +19 -0
  7. crossref_local-0.8.3/.github/workflows/cla.yml +33 -0
  8. crossref_local-0.8.3/.github/workflows/crossref-local-quality-audit-on-ubuntu-latest.yml +34 -0
  9. crossref_local-0.8.3/.github/workflows/import-smoke-on-ubuntu-py3-12.yml +23 -0
  10. crossref_local-0.8.3/.github/workflows/pypi-publish-and-github-release-on-tag.yml +209 -0
  11. crossref_local-0.8.3/.github/workflows/pytest-matrix-on-ubuntu-py3-11-3-12-3-13.yml +28 -0
  12. {crossref_local-0.7.6 → crossref_local-0.8.3}/.github/workflows/rtd-sphinx-build-on-ubuntu-latest.yml +13 -1
  13. {crossref_local-0.7.6 → crossref_local-0.8.3}/.gitignore +1 -0
  14. crossref_local-0.8.3/CHANGELOG.md +192 -0
  15. {crossref_local-0.7.6 → crossref_local-0.8.3}/PKG-INFO +3 -3
  16. {crossref_local-0.7.6 → crossref_local-0.8.3}/pyproject.toml +2 -2
  17. crossref_local-0.8.3/scripts/database/10_differential_update.py +510 -0
  18. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/__init__.py +24 -15
  19. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_aio/_impl.py +7 -19
  20. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_cli/cli.py +49 -2
  21. crossref_local-0.8.3/src/crossref_local/_cli/deprecations.py +74 -0
  22. crossref_local-0.8.3/src/crossref_local/_cli/stats.py +150 -0
  23. crossref_local-0.8.3/src/crossref_local/_cli/update.py +128 -0
  24. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_core/__init__.py +5 -0
  25. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_core/api.py +23 -21
  26. crossref_local-0.8.3/src/crossref_local/_core/stats.py +184 -0
  27. crossref_local-0.8.3/src/crossref_local/_core/update.py +112 -0
  28. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_server/__init__.py +14 -20
  29. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_server/models.py +7 -1
  30. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/conftest.py +4 -0
  31. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/crossref_local/test_api.py +14 -0
  32. crossref_local-0.8.3/tests/crossref_local/test_cli_stats.py +134 -0
  33. crossref_local-0.8.3/tests/crossref_local/test_cli_update.py +400 -0
  34. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/crossref_local/test_server.py +17 -0
  35. crossref_local-0.8.3/tests/crossref_local/test_stats.py +351 -0
  36. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/develop/test_audit.py +19 -3
  37. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/integration/test_cross_package_imports.py +1 -0
  38. crossref_local-0.8.3/tests/integration/test_dotenv_scope.py +72 -0
  39. crossref_local-0.7.6/.github/workflows/auto-merge-to-develop.yaml +0 -49
  40. crossref_local-0.7.6/.github/workflows/cla.yml +0 -33
  41. crossref_local-0.7.6/.github/workflows/crossref-local-quality-audit-on-ubuntu-latest.yml +0 -48
  42. crossref_local-0.7.6/.github/workflows/import-smoke-on-ubuntu-py3-12.yml +0 -34
  43. crossref_local-0.7.6/.github/workflows/newb-docs-quality-on-ubuntu-latest.yml +0 -83
  44. crossref_local-0.7.6/.github/workflows/pypi-publish-and-github-release-on-tag.yml +0 -184
  45. crossref_local-0.7.6/.github/workflows/pytest-matrix-on-ubuntu-py3-11-3-12-3-13.yml +0 -48
  46. crossref_local-0.7.6/CHANGELOG.md +0 -106
  47. {crossref_local-0.7.6 → crossref_local-0.8.3}/.env.example +0 -0
  48. {crossref_local-0.7.6 → crossref_local-0.8.3}/.readthedocs.yaml +0 -0
  49. {crossref_local-0.7.6 → crossref_local-0.8.3}/.scitex/dev/config.yaml +0 -0
  50. {crossref_local-0.7.6 → crossref_local-0.8.3}/CLA.md +0 -0
  51. {crossref_local-0.7.6 → crossref_local-0.8.3}/CONTRIBUTING.md +0 -0
  52. {crossref_local-0.7.6 → crossref_local-0.8.3}/LICENSE +0 -0
  53. {crossref_local-0.7.6 → crossref_local-0.8.3}/Makefile +0 -0
  54. {crossref_local-0.7.6 → crossref_local-0.8.3}/README.md +0 -0
  55. {crossref_local-0.7.6 → crossref_local-0.8.3}/codecov.yml +0 -0
  56. {crossref_local-0.7.6 → crossref_local-0.8.3}/docs/remote-deployment.md +0 -0
  57. {crossref_local-0.7.6 → crossref_local-0.8.3}/docs/sphinx/_static/.gitkeep +0 -0
  58. {crossref_local-0.7.6 → crossref_local-0.8.3}/docs/sphinx/api/crossref_local.rst +0 -0
  59. {crossref_local-0.7.6 → crossref_local-0.8.3}/docs/sphinx/cli_reference.rst +0 -0
  60. {crossref_local-0.7.6 → crossref_local-0.8.3}/docs/sphinx/conf.py +0 -0
  61. {crossref_local-0.7.6 → crossref_local-0.8.3}/docs/sphinx/http_api.rst +0 -0
  62. {crossref_local-0.7.6 → crossref_local-0.8.3}/docs/sphinx/index.rst +0 -0
  63. {crossref_local-0.7.6 → crossref_local-0.8.3}/docs/sphinx/installation.rst +0 -0
  64. {crossref_local-0.7.6 → crossref_local-0.8.3}/docs/sphinx/quickstart.rst +0 -0
  65. {crossref_local-0.7.6 → crossref_local-0.8.3}/docs/sphinx/requirements.txt +0 -0
  66. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/00_run_all.sh +0 -0
  67. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/01_quickstart.py +0 -0
  68. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/02_citation_network/01_generate_visualization.py +0 -0
  69. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/02_citation_network/citation_network.html +0 -0
  70. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/02_citation_network/citation_network.yaml +0 -0
  71. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/02_demo_mcp.org +0 -0
  72. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/03_impact_factor/00_calculate_impact_factor.py +0 -0
  73. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/03_impact_factor/01_compare_jcr.py +0 -0
  74. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/03_impact_factor/01_compare_jcr_out/all_combined.json +0 -0
  75. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/03_impact_factor/01_compare_jcr_out/biomedical_engineering.json +0 -0
  76. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/03_impact_factor/01_compare_jcr_out/high_impact.json +0 -0
  77. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/03_impact_factor/01_compare_jcr_out/neuroscience.json +0 -0
  78. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/03_impact_factor/02_compare_jcr_plot.py +0 -0
  79. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/03_impact_factor/02_compare_jcr_plot_out/scatter_calc_vs_jcr.yaml +0 -0
  80. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/03_impact_factor/run_all_demos.sh +0 -0
  81. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/04_mcp_demo.org +0 -0
  82. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/04_mcp_demo_out/demo_mcp.tex +0 -0
  83. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/04_mcp_demo_out/evolution.mmd +0 -0
  84. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/04_mcp_demo_out/pipeline.mmd +0 -0
  85. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/04_mcp_demo_out/states.mmd +0 -0
  86. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/04_mcp_demo_out/tradeoff.mmd +0 -0
  87. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/05_abstract_coverage.py +0 -0
  88. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/compose_readme.py +0 -0
  89. {crossref_local-0.7.6 → crossref_local-0.8.3}/examples/readme_figure.yaml +0 -0
  90. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/README.md +0 -0
  91. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/create_test_db.py +0 -0
  92. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/database/00_rebuild_all.sh +0 -0
  93. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/database/02_create_missing_indexes.sh +0 -0
  94. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/database/03_rebuild_citations_table.py +0 -0
  95. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/database/03_rebuild_citations_table_optimized.py +0 -0
  96. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/database/04a_download_openalex_journals.py +0 -0
  97. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/database/04b_build_issn_table.py +0 -0
  98. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/database/04c_build_journals_table.py +0 -0
  99. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/database/04d_build_from_issn_list.py +0 -0
  100. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/database/05_build_fts5_index.py +0 -0
  101. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/database/06_calculate_abstract_ratio.py +0 -0
  102. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/database/99_check_db_connections.py +0 -0
  103. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/database/99_db_info.sh +0 -0
  104. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/database/99_maintain_indexes.sh +0 -0
  105. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/database/99_switch_to_optimized.sh +0 -0
  106. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/database/README.md +0 -0
  107. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/deployment/build_apptainer.sh +0 -0
  108. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/deployment/install_apptainer.sh +0 -0
  109. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/deployment/mcp/Dockerfile.mcp +0 -0
  110. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/deployment/mcp/crossref-mcp.service +0 -0
  111. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/deployment/mcp/docker-compose.mcp.yml +0 -0
  112. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/deployment/mcp/docker.sh +0 -0
  113. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/deployment/mcp/install.sh +0 -0
  114. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/deployment/mcp/status.sh +0 -0
  115. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/deployment/run_apptainer.sh +0 -0
  116. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/deployment/run_docker.sh +0 -0
  117. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/nfs/check.sh +0 -0
  118. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/nfs/setup_nfs.sh +0 -0
  119. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/nfs/status.sh +0 -0
  120. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/nfs/stop.sh +0 -0
  121. {crossref_local-0.7.6 → crossref_local-0.8.3}/scripts/status.sh +0 -0
  122. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/__main__.py +0 -0
  123. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_aio/__init__.py +0 -0
  124. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_cache/__init__.py +0 -0
  125. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_cache/export.py +0 -0
  126. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_cache/utils.py +0 -0
  127. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_cache/viz.py +0 -0
  128. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_cli/__init__.py +0 -0
  129. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_cli/cache.py +0 -0
  130. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_cli/check.py +0 -0
  131. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_cli/completion.py +0 -0
  132. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_cli/main.py +0 -0
  133. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_cli/mcp.py +0 -0
  134. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_cli/mcp_server.py +0 -0
  135. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_cli/search.py +0 -0
  136. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_cli/utils.py +0 -0
  137. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_core/checker.py +0 -0
  138. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_core/citations.py +0 -0
  139. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_core/config.py +0 -0
  140. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_core/db.py +0 -0
  141. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_core/export.py +0 -0
  142. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_core/fts.py +0 -0
  143. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_core/models.py +0 -0
  144. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_core/paths.py +0 -0
  145. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_impact_factor/__init__.py +0 -0
  146. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_impact_factor/calculator.py +0 -0
  147. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_impact_factor/journal_lookup.py +0 -0
  148. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_remote/__init__.py +0 -0
  149. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_remote/base.py +0 -0
  150. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_remote/collections.py +0 -0
  151. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_server/middleware.py +0 -0
  152. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_server/routes_citations.py +0 -0
  153. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_server/routes_collections.py +0 -0
  154. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_server/routes_compat.py +0 -0
  155. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_server/routes_works.py +0 -0
  156. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_server/server.py +0 -0
  157. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/01_installation.md +0 -0
  158. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/02_quick-start.md +0 -0
  159. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/03_python-api.md +0 -0
  160. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/04_cli-reference.md +0 -0
  161. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/05_citations.md +0 -0
  162. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/06_http-api.md +0 -0
  163. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/07_cache.md +0 -0
  164. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/08_export.md +0 -0
  165. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/09_async.md +0 -0
  166. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/10_cli.md +0 -0
  167. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/11_mcp.md +0 -0
  168. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/12_env-vars.md +0 -0
  169. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/13_configuration.md +0 -0
  170. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/14_search.md +0 -0
  171. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/15_retrieval.md +0 -0
  172. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/16_models.md +0 -0
  173. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/17_checker.md +0 -0
  174. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/SKILL.md +0 -0
  175. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/.buildinfo +0 -0
  176. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/.doctrees/__intersphinx_cache__/python_objects.inv +0 -0
  177. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/.doctrees/api/crossref_local.doctree +0 -0
  178. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/.doctrees/cli_reference.doctree +0 -0
  179. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/.doctrees/environment.pickle +0 -0
  180. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/.doctrees/http_api.doctree +0 -0
  181. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/.doctrees/index.doctree +0 -0
  182. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/.doctrees/installation.doctree +0 -0
  183. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/.doctrees/quickstart.doctree +0 -0
  184. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/.nojekyll +0 -0
  185. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_modules/crossref_local/_core/api.html +0 -0
  186. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_modules/crossref_local/_core/models.html +0 -0
  187. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_modules/index.html +0 -0
  188. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/_sphinx_javascript_frameworks_compat.js +0 -0
  189. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/base-stemmer.js +0 -0
  190. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/basic.css +0 -0
  191. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/clipboard.min.js +0 -0
  192. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/copybutton.css +0 -0
  193. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/copybutton.js +0 -0
  194. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/copybutton_funcs.js +0 -0
  195. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/badge_only.css +0 -0
  196. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/fonts/Roboto-Slab-Regular.woff +0 -0
  197. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/fonts/Roboto-Slab-Regular.woff2 +0 -0
  198. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/fonts/fontawesome-webfont.eot +0 -0
  199. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/fonts/fontawesome-webfont.ttf +0 -0
  200. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/fonts/fontawesome-webfont.woff +0 -0
  201. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/fonts/fontawesome-webfont.woff2 +0 -0
  202. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/fonts/lato-normal-italic.woff +0 -0
  203. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/fonts/lato-normal-italic.woff2 +0 -0
  204. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/fonts/lato-normal.woff +0 -0
  205. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/fonts/lato-normal.woff2 +0 -0
  206. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/theme.css +0 -0
  207. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/doctools.js +0 -0
  208. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/documentation_options.js +0 -0
  209. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/english-stemmer.js +0 -0
  210. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-italic.eot +0 -0
  211. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-italic.ttf +0 -0
  212. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-italic.woff +0 -0
  213. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-italic.woff2 +0 -0
  214. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-regular.eot +0 -0
  215. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-regular.ttf +0 -0
  216. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-regular.woff +0 -0
  217. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-regular.woff2 +0 -0
  218. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.eot +0 -0
  219. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.ttf +0 -0
  220. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff +0 -0
  221. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff2 +0 -0
  222. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/jquery.js +0 -0
  223. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/js/badge_only.js +0 -0
  224. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/js/theme.js +0 -0
  225. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/js/versions.js +0 -0
  226. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/language_data.js +0 -0
  227. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/pygments.css +0 -0
  228. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/searchtools.js +0 -0
  229. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/sphinx_highlight.js +0 -0
  230. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/api/crossref_local.html +0 -0
  231. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/cli_reference.html +0 -0
  232. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/genindex.html +0 -0
  233. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/http_api.html +0 -0
  234. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/index.html +0 -0
  235. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/installation.html +0 -0
  236. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/objects.inv +0 -0
  237. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/quickstart.html +0 -0
  238. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/search.html +0 -0
  239. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/searchindex.js +0 -0
  240. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/aio.py +0 -0
  241. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/cache.py +0 -0
  242. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/cli.py +0 -0
  243. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/jobs.py +0 -0
  244. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/mcp_server.py +0 -0
  245. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/remote.py +0 -0
  246. {crossref_local-0.7.6 → crossref_local-0.8.3}/src/crossref_local/server.py +0 -0
  247. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/crossref_local/fixtures/.gitkeep +0 -0
  248. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/crossref_local/impact_factor/test_calculator.py +0 -0
  249. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/crossref_local/impact_factor/test_journal_lookup.py +0 -0
  250. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/crossref_local/test_aio.py +0 -0
  251. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/crossref_local/test_cache.py +0 -0
  252. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/crossref_local/test_citations.py +0 -0
  253. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/crossref_local/test_cli.py +0 -0
  254. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/crossref_local/test_cli_completion.py +0 -0
  255. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/crossref_local/test_config.py +0 -0
  256. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/crossref_local/test_db.py +0 -0
  257. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/crossref_local/test_fts.py +0 -0
  258. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/crossref_local/test_jobs.py +0 -0
  259. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/crossref_local/test_mcp_server.py +0 -0
  260. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/crossref_local/test_models.py +0 -0
  261. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/crossref_local/test_paths_runtime.py +0 -0
  262. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/crossref_local/test_remote.py +0 -0
  263. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/develop/__init__.py +0 -0
  264. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/examples/__init__.py +0 -0
  265. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/examples/test_01_quickstart.py +0 -0
  266. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/examples/test_05_abstract_coverage.py +0 -0
  267. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/examples/test_compose_readme.py +0 -0
  268. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/sync_tests_with_source.sh +0 -0
  269. {crossref_local-0.7.6 → crossref_local-0.8.3}/tests/test_skills_quality.py +0 -0
  270. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/.gitignore +0 -0
  271. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/LICENSE +0 -0
  272. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/NOTES.md +0 -0
  273. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/README.md +0 -0
  274. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/dois2sqlite/__init__.py +0 -0
  275. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/dois2sqlite/cli.py +0 -0
  276. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/dois2sqlite/database.py +0 -0
  277. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/dois2sqlite/file_handlers.py +0 -0
  278. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/dois2sqlite/models.py +0 -0
  279. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/dois2sqlite/representations.py +0 -0
  280. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/dois2sqlite/utils.py +0 -0
  281. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/examples/cnserver/NOTES.md +0 -0
  282. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/examples/cnserver/README.md +0 -0
  283. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/examples/cnserver/app.py +0 -0
  284. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/examples/cnserver/cn-quick-test.py +0 -0
  285. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/examples/cnserver/cnserver/__init__.py +0 -0
  286. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/examples/cnserver/cnserver/accept_header_utils.py +0 -0
  287. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/examples/cnserver/cnserver/cslutils.py +0 -0
  288. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/examples/cnserver/cnserver/settings.py +0 -0
  289. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/pyproject.toml +0 -0
  290. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/quick_convert.sh +0 -0
  291. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/quick_no_convert.sh +0 -0
  292. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/utils/create-rnd-tar-subset.py +0 -0
  293. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/dois2sqlite/utils/select-rnd-dois-from-db.py +0 -0
  294. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/labs-data-file-api/.gitignore +0 -0
  295. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/labs-data-file-api/LICENSE.md +0 -0
  296. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/labs-data-file-api/README.md +0 -0
  297. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/labs-data-file-api/crossrefDataFile/__init__.py +0 -0
  298. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/labs-data-file-api/crossrefDataFile/api.py +0 -0
  299. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/labs-data-file-api/crossrefDataFile/app_urls.py +0 -0
  300. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/labs-data-file-api/crossrefDataFile/asgi.py +0 -0
  301. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/labs-data-file-api/crossrefDataFile/migrations/0001_initial.py +0 -0
  302. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/labs-data-file-api/crossrefDataFile/migrations/0002_dataindexwithlocation.py +0 -0
  303. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/labs-data-file-api/crossrefDataFile/migrations/__init__.py +0 -0
  304. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/labs-data-file-api/crossrefDataFile/models.py +0 -0
  305. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/labs-data-file-api/crossrefDataFile/urls.py +0 -0
  306. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/labs-data-file-api/crossrefDataFile/views.py +0 -0
  307. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/labs-data-file-api/crossrefDataFile/wsgi.py +0 -0
  308. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/labs-data-file-api/main.py +0 -0
  309. {crossref_local-0.7.6 → crossref_local-0.8.3}/vendor/labs-data-file-api/manage.py +0 -0
@@ -0,0 +1,12 @@
1
+ # Maintenance-line qualification baseline (release/0.8.x only).
2
+ #
3
+ # A patch release on this line is qualified against the auditor it was
4
+ # released under, not against rules added later. v0.8.1 was qualified on
5
+ # 2026-07-22T03:47Z; scitex-dev 0.34.0 (uploaded 2026-07-21T04:32Z) was the
6
+ # latest release at that time. The v0.8.1 run logs have expired, so the
7
+ # version is inferred from PyPI upload times.
8
+ #
9
+ # Newer audit findings on this code (PS-140/220/224/231/233) are real and are
10
+ # fixed on develop, not backported into a patch release.
11
+ # Applied by run-in-sif.sh via `uv pip install -c`. Do NOT carry to develop.
12
+ scitex-dev==0.34.0
@@ -0,0 +1,69 @@
1
+ #!/usr/bin/env bash
2
+ # Runs INSIDE the reused scitex-ci SIF (apptainer exec — invoked via
3
+ # exec-in-sif.sh). Builds crossref-local's wheel + sdist into ./dist/.
4
+ #
5
+ # WHY build in the SIF: the self-hosted Spartan runner has no Python on the
6
+ # bare node (the whole reason the old `actions/setup-python@v5` step failed:
7
+ # "version 3.x not found for this OS"). The SIF bakes python 3.11/3.12/3.13 +
8
+ # pip + uv at /opt/venv-<ver>, exactly like the working pytest-matrix CI.
9
+ #
10
+ # `python -m build` needs the `build` frontend, which is NOT baked in the SIF
11
+ # (only scitex-dev[all,dev] deps are). Mirror run-in-sif.sh: install `build`
12
+ # into a writable --target on node-local /tmp and put it on PYTHONPATH. The
13
+ # SIF's /opt/venv-* are root-owned + RO and the compute-node HOME is RO inside
14
+ # the container, so a normal install fails Permission denied — a --target on
15
+ # writable scratch sidesteps both.
16
+ #
17
+ # Fail-loud (operator directive): a missing interpreter or a failed build is a
18
+ # HARD error, never a silent fallback.
19
+ set -euo pipefail
20
+
21
+ V="${1:-3.12}"
22
+ VENV="/opt/venv-$V"
23
+ PY="$VENV/bin/python"
24
+ test -x "$PY" || {
25
+ echo "::error::baked python missing in $VENV — rebuild the SIF: scitex-container apptainer build ci-cpu"
26
+ exit 1
27
+ }
28
+
29
+ export LC_ALL=C.UTF-8 LANG=C.UTF-8
30
+
31
+ # Writable scratch (the runner's TMPDIR=~/.cache/tmp is a host path that does
32
+ # NOT resolve inside the container). Node-local /tmp is writable + ephemeral.
33
+ TMPDIR="/tmp/build-crossref_local-${GITHUB_RUN_ID:-0}-${GITHUB_RUN_ATTEMPT:-0}-$V"
34
+ export TMPDIR
35
+ rm -rf "$TMPDIR"
36
+ mkdir -p "$TMPDIR/site" "$TMPDIR/uv-cache"
37
+
38
+ # The compute-node $HOME is RO inside the container — point every cache the
39
+ # installer might touch at the writable scratch (else uv/pip die creating
40
+ # ~/.cache).
41
+ export UV_CACHE_DIR="$TMPDIR/uv-cache"
42
+ export XDG_CACHE_HOME="$TMPDIR"
43
+ export PIP_CACHE_DIR="$TMPDIR/pip-cache"
44
+
45
+ # A VIRTUAL_ENV leaked from the runner profile (~/.env-3.11) is a broken
46
+ # symlink in here; unset it so no tool follows it.
47
+ unset VIRTUAL_ENV || true
48
+
49
+ export PATH="$VENV/bin:$PATH"
50
+ echo "build: py=$("$PY" -V) target=$TMPDIR/site"
51
+
52
+ # Install the PEP 517 build frontend into the writable target (uv fast path,
53
+ # pip safety net), then build with it. Clean dist/ first so only the freshly
54
+ # built artifacts are uploaded.
55
+ uv pip install --python "$PY" --target="$TMPDIR/site" build ||
56
+ "$PY" -m pip install --target="$TMPDIR/site" build
57
+
58
+ export PYTHONPATH="$TMPDIR/site${PYTHONPATH:+:$PYTHONPATH}"
59
+
60
+ rm -rf dist
61
+ "$PY" -m build --outdir dist
62
+
63
+ echo "=== built artifacts ==="
64
+ ls -l dist
65
+ # fail-loud: refuse to continue the pipeline with an empty dist/.
66
+ test -n "$(ls -A dist 2>/dev/null)" || {
67
+ echo "::error::python -m build produced no artifacts in dist/"
68
+ exit 1
69
+ }
@@ -0,0 +1,150 @@
1
+ #!/usr/bin/env bash
2
+ # Outer apptainer-exec wrapper for crossref-local's self-hosted CI.
3
+ #
4
+ # Runs ON THE RUNNER (outside the SIF). Resolves apptainer + the SIF image, then
5
+ # `apptainer exec`s the SIF and hands off to an INNER script (run inside the
6
+ # container). Keeps every workflow job's YAML down to one line —
7
+ # `bash .github/ci/exec-in-sif.sh <inner-script> [args...]` — and concentrates
8
+ # all the SIF plumbing (apptainer resolution, ~-expansion, scratch, binds) in
9
+ # one version-controlled place.
10
+ #
11
+ # HOST-AGNOSTIC. This script is NOT Spartan-only: it auto-adapts to whichever
12
+ # self-hosted runner picks the job up, keyed off what actually exists on the box.
13
+ #
14
+ # * Spartan HPC — the GPFS project dir /data/gpfs/projects/punim0264 EXISTS:
15
+ # apptainer comes from the ~/.env-3.11 shim named by SCITEX_CI_APPTAINER,
16
+ # job scratch comes from RUNNER_TEMP, and punim0264 is bound into
17
+ # the container ($HOME/.scitex there is a symlink into it, so without the
18
+ # bind the symlink dangles inside the SIF).
19
+ #
20
+ # * Local compute nodes (scitex-compute-01..04) — NO /data/gpfs at all:
21
+ # apptainer is the distro package on PATH (/usr/bin/apptainer), scratch is
22
+ # job-owned under RUNNER_TEMP, and the GPFS bind is OMITTED
23
+ # (apptainer refuses a bind whose source does not exist, and `mkdir -p` on a
24
+ # GPFS scratch path would hard-fail here under `set -e`).
25
+ #
26
+ # Each of those three decisions (interpreter, scratch, bind) is made
27
+ # INDEPENDENTLY from a probe of this host, so a runner that matches neither
28
+ # profile exactly still gets a coherent command line.
29
+ #
30
+ # Env (set by the workflow from repo Actions Variables):
31
+ # SCITEX_CI_APPTAINER OPTIONAL path to an apptainer shim
32
+ # (e.g. ~/.env-3.11/bin/apptainer). Honoured when it
33
+ # points at an executable; otherwise apptainer is taken
34
+ # from PATH.
35
+ # RUNNER_TEMP REQUIRED existing spacious job scratch parent
36
+ # (configured by the runner, not a HOME fallback).
37
+ # SCITEX_CI_SIF REQUIRED path to the CI SIF image
38
+ # (e.g. ~/.scitex/dev/containers/ci-cpu.sif)
39
+ #
40
+ # Usage:
41
+ # bash .github/ci/exec-in-sif.sh run-in-sif.sh 3.12
42
+ #
43
+ # Fail-loud (operator directive): if NEITHER the shim nor PATH yields an
44
+ # apptainer, or the SIF is missing, that is a HARD error naming what was tried
45
+ # — never a silent fallback to a bare-runner install.
46
+ set -euo pipefail
47
+
48
+ INNER="${1:?inner script name required (relative to .github/ci/)}"
49
+ shift || true
50
+
51
+ # Spartan's job shell is --noprofile --norc (no Lmod), so its apptainer shim dir
52
+ # must be put on PATH explicitly; the shim execs the real Apptainer binary.
53
+ # Harmless where that directory is absent — a non-existent PATH entry is simply
54
+ # never matched — which is the case on the local compute nodes.
55
+ export PATH="$HOME/.env-3.11/bin:$PATH"
56
+
57
+ # ~-expand the Actions-Variable paths: a quoted "~/…" is NOT tilde-expanded by
58
+ # the shell, so substitute a leading ~ with $HOME ourselves.
59
+ APPTAINER_VAR="${SCITEX_CI_APPTAINER:-}"
60
+ APPTAINER_VAR="${APPTAINER_VAR/#\~/$HOME}"
61
+ SIF="${SCITEX_CI_SIF:?SCITEX_CI_SIF not set (repo Actions Variable)}"
62
+ SIF="${SIF/#\~/$HOME}"
63
+ SIF_SHA256="${SCITEX_CI_SIF_SHA256:?SCITEX_CI_SIF_SHA256 not set (repo Actions Variable)}"
64
+
65
+ # Apptainer resolution, in order:
66
+ # 1. SCITEX_CI_APPTAINER when it names an executable (Spartan's shim)
67
+ # 2. `apptainer` on PATH (local compute nodes)
68
+ # Only when NEITHER resolves is this an error — and the message names BOTH
69
+ # attempts, because "which one did you even try" is the whole diagnosis.
70
+ if [ -n "$APPTAINER_VAR" ] && [ -x "$APPTAINER_VAR" ]; then
71
+ APPTAINER="$APPTAINER_VAR"
72
+ APPTAINER_FROM="SCITEX_CI_APPTAINER"
73
+ elif APPTAINER="$(command -v apptainer 2>/dev/null)"; then
74
+ APPTAINER_FROM="PATH"
75
+ else
76
+ echo "::error::no apptainer on this runner. Tried (1) SCITEX_CI_APPTAINER=${SCITEX_CI_APPTAINER:-<unset>} (expanded to '${APPTAINER_VAR:-<empty>}') — not an executable; (2) 'apptainer' on PATH ($PATH) — not found. Install apptainer on this runner, or point SCITEX_CI_APPTAINER at a working shim. Running the job outside the SIF on a bare-runner install is NOT an acceptable fallback."
77
+ exit 1
78
+ fi
79
+
80
+ [ -f "$SIF" ] || {
81
+ echo "::error::CI SIF missing at $SIF — rebuild it: scitex-container apptainer build ci-cpu"
82
+ exit 1
83
+ }
84
+
85
+ ACTUAL_SIF_SHA256="$(sha256sum "$SIF" | awk '{print $1}')"
86
+ if [ "$ACTUAL_SIF_SHA256" != "$SIF_SHA256" ]; then
87
+ echo "::error::CI SIF digest mismatch at $SIF: expected $SIF_SHA256, got $ACTUAL_SIF_SHA256. Synchronize the versioned image before accepting jobs; running an unverified image is forbidden."
88
+ exit 1
89
+ fi
90
+
91
+ # Use a new directory under the runner's spacious job area. Neither root /tmp
92
+ # nor HOME caches are acceptable implicit fallbacks. Refuse before execution if
93
+ # the configured job parent is missing or cannot stage the full declared tests.
94
+ CI_JOB_BASE="${RUNNER_TEMP:?RUNNER_TEMP must name spacious job scratch}"
95
+ case "$CI_JOB_BASE" in
96
+ /*) ;;
97
+ *) echo "::error::RUNNER_TEMP must be an absolute directory"; exit 1 ;;
98
+ esac
99
+ case "$CI_JOB_BASE:$PWD" in
100
+ *','*|*$'\n'*) echo "::error::CI bind paths contain unsupported separators"; exit 1 ;;
101
+ esac
102
+ case "$CI_JOB_BASE" in
103
+ *':'*) echo "::error::RUNNER_TEMP contains an unsupported bind separator"; exit 1 ;;
104
+ esac
105
+ case "$PWD" in
106
+ *':'*) echo "::error::checkout path contains an unsupported bind separator"; exit 1 ;;
107
+ esac
108
+ [ -d "$CI_JOB_BASE" ] && [ -w "$CI_JOB_BASE" ] || {
109
+ echo "::error::RUNNER_TEMP is not an existing writable job directory: $CI_JOB_BASE"
110
+ exit 1
111
+ }
112
+ CI_AVAILABLE_KB="$(df -Pk "$CI_JOB_BASE" | awk 'NR == 2 {print $4}')"
113
+ case "$CI_AVAILABLE_KB" in
114
+ ''|*[!0-9]*) echo "::error::cannot establish free space for job scratch"; exit 1 ;;
115
+ esac
116
+ [ "$CI_AVAILABLE_KB" -ge 2097152 ] || {
117
+ echo "::error::job scratch needs at least 2 GiB available: $CI_JOB_BASE (${CI_AVAILABLE_KB} KiB free)"
118
+ exit 1
119
+ }
120
+ CI_JOB_ROOT="$(mktemp -d "$CI_JOB_BASE/crossref-local-sif.XXXXXXXX")"
121
+ export APPTAINER_TMPDIR="$CI_JOB_ROOT/apptainer-tmp"
122
+ export APPTAINER_CACHEDIR="$CI_JOB_ROOT/apptainer-cache"
123
+ export APPTAINER_CONFIGDIR="$CI_JOB_ROOT/apptainer-config"
124
+ mkdir -p "$CI_JOB_ROOT/tmp" "$APPTAINER_TMPDIR" "$APPTAINER_CACHEDIR" "$APPTAINER_CONFIGDIR"
125
+ # The inner scripts keep their guarded /tmp lifecycle, now backed by this
126
+ # job-owned directory instead of the runner's full root filesystem.
127
+ export APPTAINERENV_TMPDIR=/tmp
128
+
129
+ # Explicit checkout and /tmp binds preserve source identity and scratch even
130
+ # when a host profile does not bind /scratch automatically. Arrays retain spaces.
131
+ GPFS_PROJECT="/data/gpfs/projects/punim0264"
132
+ APPTAINER_ARGV=(exec --pwd "$PWD" --bind "$PWD:$PWD" --bind "$CI_JOB_ROOT/tmp:/tmp")
133
+ if [ -d "$GPFS_PROJECT" ]; then
134
+ APPTAINER_ARGV+=(--bind "$GPFS_PROJECT")
135
+ GPFS_STATE="present (punim0264 bound)"
136
+ else
137
+ GPFS_STATE="absent (no GPFS bind)"
138
+ fi
139
+
140
+ # Echo the resolved plan: when a run fails on an unfamiliar node, the FIRST
141
+ # question is which of the two profiles it took.
142
+ echo "exec-in-sif: apptainer=$APPTAINER (via $APPTAINER_FROM)"
143
+ echo "exec-in-sif: sif=$SIF"
144
+ echo "exec-in-sif: sif_sha256=$ACTUAL_SIF_SHA256 (verified)"
145
+ echo "exec-in-sif: $GPFS_PROJECT $GPFS_STATE"
146
+ echo "exec-in-sif: job_scratch=$CI_JOB_ROOT (available=${CI_AVAILABLE_KB} KiB)"
147
+ echo "exec-in-sif: APPTAINER_TMPDIR=$APPTAINER_TMPDIR"
148
+ echo "exec-in-sif: + $APPTAINER ${APPTAINER_ARGV[*]} $SIF bash .github/ci/$INNER $*"
149
+
150
+ exec "$APPTAINER" "${APPTAINER_ARGV[@]}" "$SIF" bash ".github/ci/$INNER" "$@"
@@ -0,0 +1,109 @@
1
+ #!/usr/bin/env bash
2
+ # Runs INSIDE the reused scitex-ci SIF (apptainer exec — invoked via
3
+ # exec-in-sif.sh). Publishes ./dist/* to PyPI via MANUAL OIDC Trusted
4
+ # Publishing, then twine upload.
5
+ #
6
+ # WHY manual OIDC (not pypa/gh-action-pypi-publish): that action is a Docker
7
+ # container action. Self-hosted Spartan compute nodes have NO Docker, so the
8
+ # action cannot run there. PyPI Trusted Publishing is just an OIDC token
9
+ # exchange over plain HTTPS, so we do it by hand:
10
+ #
11
+ # 1. Ask the GitHub Actions OIDC provider for a JWT with audience=pypi,
12
+ # using the per-job ACTIONS_ID_TOKEN_REQUEST_{TOKEN,URL} env vars (present
13
+ # because the publish job declares `permissions: id-token: write`).
14
+ # apptainer exec (no --cleanenv) passes those host env vars into the SIF.
15
+ # 2. Exchange that JWT at PyPI's mint-token endpoint for a short-lived,
16
+ # scope-limited PyPI API token.
17
+ # 3. twine upload dist/* with TWINE_USERNAME=__token__ and that minted token.
18
+ #
19
+ # This requires a Trusted Publisher to be configured on PyPI for
20
+ # (project=crossref-local, owner=ywatanabe1989, repo=crossref-local,
21
+ # workflow=pypi-publish-and-github-release-on-tag.yml). It already is — the
22
+ # previous releases published via the Docker action under the same trusted
23
+ # publisher; only the *client* changes here, not PyPI's trust config.
24
+ #
25
+ # curl, python and (after a --target install) twine all live in the SIF.
26
+ #
27
+ # Fail-loud (operator directive): every step asserts non-empty output and
28
+ # `set -euo pipefail`; any failure is a HARD error with the exact cause, never
29
+ # a silent skip.
30
+ set -euo pipefail
31
+
32
+ V="${1:-3.12}"
33
+ VENV="/opt/venv-$V"
34
+ PY="$VENV/bin/python"
35
+ test -x "$PY" || {
36
+ echo "::error::baked python missing in $VENV — rebuild the SIF: scitex-container apptainer build ci-cpu"
37
+ exit 1
38
+ }
39
+
40
+ export LC_ALL=C.UTF-8 LANG=C.UTF-8
41
+
42
+ # dist/ must already hold the artifacts (downloaded by the publish job before
43
+ # this script runs). Fail loud if empty.
44
+ if [ ! -d dist ] || [ -z "$(ls -A dist 2>/dev/null)" ]; then
45
+ echo "::error::dist/ is empty — nothing to publish (download the build artifact first)"
46
+ exit 1
47
+ fi
48
+ echo "=== dist to publish ==="
49
+ ls -l dist
50
+
51
+ # --- writable scratch (compute-node HOME is RO inside the container) ---
52
+ TMPDIR="/tmp/publish-crossref_local-${GITHUB_RUN_ID:-0}-${GITHUB_RUN_ATTEMPT:-0}-$V"
53
+ export TMPDIR
54
+ rm -rf "$TMPDIR"
55
+ mkdir -p "$TMPDIR/site" "$TMPDIR/uv-cache"
56
+ export UV_CACHE_DIR="$TMPDIR/uv-cache"
57
+ export XDG_CACHE_HOME="$TMPDIR"
58
+ export PIP_CACHE_DIR="$TMPDIR/pip-cache"
59
+ unset VIRTUAL_ENV || true
60
+ export PATH="$VENV/bin:$PATH"
61
+
62
+ # --- step 1: request the OIDC JWT (audience=pypi) from GitHub ---
63
+ : "${ACTIONS_ID_TOKEN_REQUEST_TOKEN:?ACTIONS_ID_TOKEN_REQUEST_TOKEN not set — the publish job needs 'permissions: id-token: write'}"
64
+ : "${ACTIONS_ID_TOKEN_REQUEST_URL:?ACTIONS_ID_TOKEN_REQUEST_URL not set — the publish job needs 'permissions: id-token: write'}"
65
+
66
+ echo "=== minting OIDC JWT (audience=pypi) ==="
67
+ JWT="$(curl -fsS \
68
+ -H "Authorization: bearer ${ACTIONS_ID_TOKEN_REQUEST_TOKEN}" \
69
+ "${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=pypi" |
70
+ "$PY" -c 'import sys,json; print(json.load(sys.stdin)["value"])')"
71
+ test -n "$JWT" || {
72
+ echo "::error::OIDC JWT request returned an empty token"
73
+ exit 1
74
+ }
75
+ echo "OIDC JWT obtained (length=${#JWT})"
76
+
77
+ # --- step 2: exchange the JWT for a short-lived PyPI API token ---
78
+ echo "=== exchanging JWT at PyPI mint-token endpoint ==="
79
+ MINT_RESP="$(curl -sS -X POST https://pypi.org/_/oidc/mint-token \
80
+ -d "{\"token\":\"${JWT}\"}")"
81
+ MINTED="$(printf '%s' "$MINT_RESP" |
82
+ "$PY" -c 'import sys,json; d=json.load(sys.stdin); print(d.get("token",""))')"
83
+ if [ -z "$MINTED" ]; then
84
+ # Surface PyPI's error body VERBATIM (the JWT is NOT echoed) so a trust
85
+ # misconfiguration is diagnosable — this is the decisive failure mode for
86
+ # the fleet. Print the raw response unconditionally (most reliable on an
87
+ # error path); pretty-print is best-effort on top.
88
+ echo "::error::PyPI mint-token returned no token."
89
+ echo "--- PyPI mint-token response body (raw) ---"
90
+ printf '%s\n' "$MINT_RESP"
91
+ echo "--- (pretty, best-effort) ---"
92
+ printf '%s' "$MINT_RESP" |
93
+ "$PY" -c 'import sys,json; print(json.dumps(json.load(sys.stdin), indent=2))' \
94
+ 2>/dev/null || true
95
+ exit 1
96
+ fi
97
+ echo "PyPI token minted (length=${#MINTED})"
98
+
99
+ # --- step 3: install twine into the writable target, then upload ---
100
+ echo "=== installing twine (--target) ==="
101
+ uv pip install --python "$PY" --target="$TMPDIR/site" twine ||
102
+ "$PY" -m pip install --target="$TMPDIR/site" twine
103
+ export PYTHONPATH="$TMPDIR/site${PYTHONPATH:+:$PYTHONPATH}"
104
+
105
+ echo "=== twine upload dist/* ==="
106
+ TWINE_USERNAME="__token__" TWINE_PASSWORD="$MINTED" \
107
+ "$PY" -m twine upload --non-interactive --disable-progress-bar dist/*
108
+
109
+ echo "PUBLISH-OK: crossref-local dist/* uploaded to PyPI via manual OIDC trusted publishing"
@@ -0,0 +1,144 @@
1
+ #!/usr/bin/env bash
2
+ # Runs INSIDE the reused scitex-ci SIF (apptainer exec). $1 = python version.
3
+ #
4
+ # WHY a layered install (not the bare PYTHONPATH=src trick scitex-dev uses):
5
+ # the shared ci-cpu.sif bakes scitex-dev[all,dev] DEPS, NOT crossref-local's —
6
+ # matplotlib / graphviz / seaborn / django / Pillow / networkx / playwright /
7
+ # pytesseract / scitex-app / scitex-ui are absent from the SIF. So we install
8
+ # THIS checkout + its [all,dev] extras (WITH dependency resolution) into a
9
+ # writable --target dir and prepend that on PYTHONPATH. The SIF still supplies
10
+ # the heavy shared base (pip/uv, the python interpreters, scitex-dev's deps),
11
+ # so only crossref-local's own thin dep set is fetched per run.
12
+ #
13
+ # --target (not a plain `-e .`): the SIF's /opt/venv-* are root-owned + RO and
14
+ # the HPC compute-node HOME is RO inside the container, so a normal site install
15
+ # fails Permission denied. A writable target on node-local /tmp sidesteps both.
16
+ #
17
+ # Fail-loud: a missing interpreter or a failed install is a hard error.
18
+ set -euo pipefail
19
+
20
+ V="${1:?python version arg required (3.11/3.12/3.13)}"
21
+ VENV="/opt/venv-$V"
22
+ test -x "$VENV/bin/python" || {
23
+ echo "::error::baked python missing in $VENV — rebuild the SIF: scitex-container apptainer build ci-cpu"
24
+ exit 1
25
+ }
26
+
27
+ export LC_ALL=C.UTF-8 LANG=C.UTF-8
28
+
29
+ # Real writable scratch. The runner profile exports TMPDIR=~/.cache/tmp, a host
30
+ # path that does NOT resolve inside the container; tests (tmp_path) and the
31
+ # install target both need a working, writable tmp. Node-local /tmp is writable
32
+ # + ephemeral and per-version-isolated so concurrent matrix legs don't collide.
33
+ export TMPDIR="/tmp/ci-crossref_local-${GITHUB_RUN_ID:-0}-${GITHUB_RUN_ATTEMPT:-0}-$V"
34
+ rm -rf "$TMPDIR"
35
+ mkdir -p "$TMPDIR/site" "$TMPDIR/uv-cache"
36
+
37
+ # The HPC compute-node $HOME is READ-ONLY inside the container, so uv/pip cannot
38
+ # create their default caches under ~/.cache — point them at the writable
39
+ # scratch instead (else `uv pip install` dies: "failed to create directory
40
+ # ~/.cache/uv: File exists / read-only").
41
+ export UV_CACHE_DIR="$TMPDIR/uv-cache"
42
+ export XDG_CACHE_HOME="$TMPDIR"
43
+ export PIP_CACHE_DIR="$TMPDIR/pip-cache"
44
+
45
+ # Headless matplotlib — no DISPLAY on the compute node; force the Agg backend so
46
+ # pyplot imports + figure rendering in the test suite never try to open a GUI.
47
+ export MPLBACKEND=Agg
48
+
49
+ # Dedicated, stable matplotlib config/cache dir for this matrix leg. Without
50
+ # pinning it, MPLCONFIGDIR defaults to $XDG_CACHE_HOME/matplotlib which is COLD
51
+ # every CI run; the xdist workers (one per core, see below) then each cold-start
52
+ # matplotlib and RACE to build fontList.json in that shared dir.
53
+ # A partial/contended cache makes some renders fall back to a different font, so
54
+ # crossref-local's reproducibility tests (validate_recipe renders the SAME recipe
55
+ # twice and compares) see render1 != render2 → spurious MSE-over-threshold
56
+ # failures (e.g. TestValidateRecipe, max channel diff 255). One stable dir +
57
+ # a single warm-up below (build the cache ONCE, pre-fork) removes the race.
58
+ export MPLCONFIGDIR="$TMPDIR/mpl"
59
+ mkdir -p "$MPLCONFIGDIR"
60
+
61
+ # A VIRTUAL_ENV leaked from the runner profile (~/.env-3.11) is a broken symlink
62
+ # in here; unset it so no tool (uv, pip) tries to follow it.
63
+ unset VIRTUAL_ENV || true
64
+
65
+ # venv bin on PATH (this matrix leg's python3 + pip); PYTHONPATH points at the
66
+ # writable target so imports + coverage use the freshly-installed checkout.
67
+ export PATH="$VENV/bin:$PATH"
68
+
69
+ echo "py=$("$VENV/bin/python" -V) target=$TMPDIR/site"
70
+
71
+ # Install crossref-local + its [all,dev] extras WITH deps into the writable target.
72
+ # Fallback chain mirrors crossref-local's historical bare-uv/pip workflow so a
73
+ # packaging hiccup in an optional extra doesn't strand CI: [all,dev] → [dev] →
74
+ # bare. uv first (fast resolver), pip as a final safety net.
75
+ # A maintenance line pins its qualification baseline (the auditor version it
76
+ # was released under) in .github/ci/audit-baseline.constraints.
77
+ CONSTRAINTS=()
78
+ if [ -f .github/ci/audit-baseline.constraints ]; then
79
+ CONSTRAINTS=(-c .github/ci/audit-baseline.constraints)
80
+ echo "run-in-sif: constraints $(grep -v '^#' .github/ci/audit-baseline.constraints | tr '\n' ' ')"
81
+ fi
82
+ uv pip install --python "$VENV/bin/python" --target="$TMPDIR/site" "${CONSTRAINTS[@]}" -e ".[all,dev]" ||
83
+ uv pip install --python "$VENV/bin/python" --target="$TMPDIR/site" "${CONSTRAINTS[@]}" -e ".[dev]" ||
84
+ uv pip install --python "$VENV/bin/python" --target="$TMPDIR/site" "${CONSTRAINTS[@]}" -e "." ||
85
+ pip install --target="$TMPDIR/site" "${CONSTRAINTS[@]}" -e ".[dev]"
86
+
87
+ export PYTHONPATH="$TMPDIR/site:$PWD/src${PYTHONPATH:+:$PYTHONPATH}"
88
+ # Console scripts of the layered install (e.g. the pinned scitex-dev CLI that
89
+ # the audit test shells out to) must win over the SIF's baked ones.
90
+ [ -d "$TMPDIR/site/bin" ] && export PATH="$TMPDIR/site/bin:$PATH"
91
+
92
+ # Parallelise with pytest-xdist (baked in [dev]/[all,dev] as pytest-xdist>=3).
93
+ # crossref-local's suite is ~2460 tests; single-process it overran the job's old
94
+ # 30-min cap (2300 passed in ~28 min, cancelled at 96%). Each xdist worker is
95
+ # a SEPARATE PROCESS, so matplotlib's global rcParams / pyplot state and the
96
+ # crossref-local style-stack are naturally isolated per worker — the safe way to
97
+ # parallelise a matplotlib-heavy suite.
98
+ #
99
+ # Worker count: use ALL cores. Each matrix leg now runs on its own dedicated
100
+ # self-hosted node (one runner per node: crossref-local-01/02/03), so there is no
101
+ # co-tenant to yield half the box to — the old nproc//2 cap left 2x the cores
102
+ # idle. nice/ionice (below) handles the "yield to higher-priority work if the
103
+ # node is ever shared" concern instead of statically reserving half the CPUs.
104
+ # Floor 4. pyproject addopts carries `-v`; override to `-q` here — 2460 verbose
105
+ # lines x workers bloats the CI log and adds measurable overhead.
106
+ NPROC="$(nproc 2>/dev/null || echo 4)"
107
+ WORKERS=$NPROC
108
+ [ "$WORKERS" -lt 4 ] && WORKERS=4
109
+ echo "xdist workers=$WORKERS (nproc=$NPROC)"
110
+
111
+ # Warm the matplotlib font cache ONCE, single-process, before xdist forks the
112
+ # workers. This builds $MPLCONFIGDIR/fontlist-*.json a single time so every
113
+ # worker reads a complete, consistent cache instead of racing to build it
114
+ # concurrently (the source of the render1!=render2 reproducibility flakes).
115
+ # Fail-loud: if matplotlib can't even build its font cache, CI must surface it.
116
+ # matplotlib may not be a dependency of this package; only warm the
117
+ # font cache when it's importable (no-op otherwise — never fail the run
118
+ # on an optional warm-up).
119
+ if python -c "import matplotlib" 2>/dev/null; then
120
+ python -c "import matplotlib; matplotlib.use('Agg'); from matplotlib import font_manager; font_manager.fontManager; import matplotlib.pyplot as plt; f=plt.figure(); f.canvas.draw(); print('mpl font cache warmed at', matplotlib.get_cachedir())"
121
+ else
122
+ echo "matplotlib not importable — skipping font-cache warm-up (not a dep)"
123
+ fi
124
+
125
+ # Distribution: `--dist load` (per-TEST round-robin), NOT `--dist loadscope`.
126
+ # loadscope pins an entire MODULE's tests to ONE worker — and crossref-local's heavy
127
+ # suites are big SINGLE modules (e.g. tests/integration/test_all_plotters_*.py
128
+ # parametrize one test over all 47 plotters, ~28 s each). loadscope therefore
129
+ # ran all ~50+ cases of such a module SERIALLY on one worker (~25 min) while the
130
+ # rest idled. There are NO module/session/class-scoped fixtures in those heavy
131
+ # modules and the root conftest's autouse `_close_figures` resets pyplot state
132
+ # after EVERY test, so loadscope's "same worker per module" buys nothing here —
133
+ # it only serialized. `load` spreads the parametrized cases across ALL workers.
134
+ #
135
+ # nice -n 19 ionice -c 3: run at the lowest CPU + idle I/O priority so that if
136
+ # this node is ever shared with interactive/dev work, CI grabs otherwise-idle
137
+ # cores but YIELDS the CPU and disk to any higher-priority process — "all
138
+ # available CPUs, with priority handling". exec replaces the shell with nice,
139
+ # which execs ionice, which execs python (still PID-traceable, signals/exit
140
+ # code propagate to the runner step).
141
+ exec nice -n 19 ionice -c 3 \
142
+ python -m pytest tests/ -n "$WORKERS" --dist load -q \
143
+ --cov=src/crossref_local --cov-report=xml --cov-report=term \
144
+ -p no:cacheprovider
@@ -0,0 +1,19 @@
1
+ name: auto-merge-to-develop
2
+ # PILOT: org-level reusable-workflow caller (scitex-ai/.github, 2026-07-10).
3
+ # Triggers/permissions preserved verbatim from the prior local file.
4
+ # GitHub reads check_suite-triggered workflows from the DEFAULT branch (main),
5
+ # so this file must stay on main, acting only on PRs whose base is develop
6
+ # (unchanged from before).
7
+ on:
8
+ check_suite:
9
+ types: [completed]
10
+ workflow_dispatch: {}
11
+
12
+ permissions:
13
+ contents: write
14
+ pull-requests: write
15
+
16
+ jobs:
17
+ call:
18
+ uses: scitex-ai/.github/.github/workflows/auto-merge-to-develop.yml@main
19
+ secrets: inherit
@@ -0,0 +1,33 @@
1
+ name: CLA Assistant
2
+
3
+ # PILOT: org-level reusable-workflow caller (scitex-ai/.github, 2026-07-10).
4
+ # Triggers/permissions preserved verbatim from the prior local file.
5
+ # Reusable workflow defaults (owner_login=ywatanabe1989,
6
+ # owner_allowlist="bot*,ywatanabe1989", default_branch=main) already match
7
+ # this repo's prior hardcoded values, so no `with:` overrides are needed.
8
+ # NOTE: this repo's on: has no `push` trigger, so the reusable's
9
+ # owner-bypass job (guarded by `if: github.event_name == 'push'`) never
10
+ # fires here — same as before (this repo never had an owner-bypass job).
11
+ # NOTE (pre-existing, unrelated to this migration): the prior local file
12
+ # referenced `secrets.CROSSREF_LOCAL_PERSONAL_ACCESS_TOKEN`, but the repo's
13
+ # actual configured secret is named `PERSONAL_ACCESS_TOKEN` (no prefix) —
14
+ # neither that name nor the reusable's expected `GH_PERSONAL_ACCESS_TOKEN`
15
+ # match, so PERSONAL_ACCESS_TOKEN resolves empty before and after this PR
16
+ # (no regression; flagged for a follow-up secret rename/add).
17
+
18
+ on:
19
+ issue_comment:
20
+ types: [created]
21
+ pull_request_target:
22
+ types: [opened, closed, synchronize]
23
+
24
+ permissions:
25
+ actions: write
26
+ contents: write
27
+ pull-requests: write
28
+ statuses: write
29
+
30
+ jobs:
31
+ call:
32
+ uses: scitex-ai/.github/.github/workflows/cla.yml@main
33
+ secrets: inherit
@@ -0,0 +1,34 @@
1
+ name: quality
2
+
3
+ # PILOT: org-level reusable-workflow caller (scitex-ai/.github, 2026-07-10).
4
+ # Same purpose as before (`scitex-dev ecosystem audit-all` gate), now via
5
+ # scitex-ai/.github's quality-audit reusable workflow.
6
+ # NOTE (behavior delta): the reusable audit job runs
7
+ # `scitex-dev ecosystem audit-all "$DIST" --path "$PWD"` (no `--new-only`,
8
+ # no `--no-version-check`) — this repo's prior invocation passed both
9
+ # flags to grandfather pre-existing findings (CLI naming on the `relay`
10
+ # leaf + a PATH.yaml example wrapper). Flagged in the PR description; may
11
+ # reintroduce those pre-existing findings as visible (non-required-check)
12
+ # CI failures on this job specifically.
13
+ # Runner/install now self-hosted spartan-cpu + uv (was ubuntu-latest + pip).
14
+ # Triggers preserved verbatim from the prior local file.
15
+
16
+ on:
17
+ schedule:
18
+ - cron: "0 8 * * *" # 08:00 UTC, after the 07:00 per-repo Test runs
19
+ workflow_dispatch:
20
+ push:
21
+ branches: [develop]
22
+ paths:
23
+ - "src/**"
24
+ - "tests/**"
25
+ - "pyproject.toml"
26
+ - ".github/workflows/crossref-local-quality-audit-on-ubuntu-latest.yml"
27
+ pull_request:
28
+ branches: [main, develop]
29
+
30
+ jobs:
31
+ quality-audit:
32
+ # New required-status-check context: "quality-audit / audit"
33
+ uses: scitex-ai/.github/.github/workflows/quality-audit.yml@main
34
+ secrets: inherit
@@ -0,0 +1,23 @@
1
+ name: import-smoke
2
+
3
+ # PILOT: org-level reusable-workflow caller (scitex-ai/.github, 2026-07-10).
4
+ # Same purpose as before (bare `pip install -e .` + `import crossref_local`
5
+ # smoke check), now via scitex-ai/.github's import-smoke reusable workflow.
6
+ # NOTE: runner/install now self-hosted spartan-cpu + uv (was ubuntu-latest
7
+ # + venv/pip) — same infra-normalization note as pytest-matrix, see PR.
8
+ # Triggers preserved verbatim from the prior local file.
9
+
10
+ on:
11
+ push:
12
+ branches: [main, develop]
13
+ pull_request:
14
+ branches: [main, develop]
15
+ schedule:
16
+ - cron: "0 7 * * *" # nightly 07:00 UTC
17
+ workflow_dispatch:
18
+
19
+ jobs:
20
+ import-smoke:
21
+ # New required-status-check context: "import-smoke / import-smoke-on-ubuntu-py3-12"
22
+ uses: scitex-ai/.github/.github/workflows/import-smoke.yml@main
23
+ secrets: inherit