crossref-local 0.8.1__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 (302) hide show
  1. crossref_local-0.8.3/.github/ci/audit-baseline.constraints +12 -0
  2. crossref_local-0.8.3/.github/ci/exec-in-sif.sh +150 -0
  3. {crossref_local-0.8.1 → crossref_local-0.8.3}/.github/ci/run-in-sif.sh +14 -4
  4. {crossref_local-0.8.1 → crossref_local-0.8.3}/.github/workflows/pypi-publish-and-github-release-on-tag.yml +43 -9
  5. {crossref_local-0.8.1 → crossref_local-0.8.3}/CHANGELOG.md +29 -0
  6. {crossref_local-0.8.1 → crossref_local-0.8.3}/PKG-INFO +3 -3
  7. {crossref_local-0.8.1 → crossref_local-0.8.3}/pyproject.toml +2 -2
  8. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/__init__.py +18 -15
  9. crossref_local-0.8.3/tests/integration/test_dotenv_scope.py +72 -0
  10. crossref_local-0.8.1/.github/ci/exec-in-sif.sh +0 -51
  11. {crossref_local-0.8.1 → crossref_local-0.8.3}/.env.example +0 -0
  12. {crossref_local-0.8.1 → crossref_local-0.8.3}/.github/ci/build-in-sif.sh +0 -0
  13. {crossref_local-0.8.1 → crossref_local-0.8.3}/.github/ci/publish-in-sif.sh +0 -0
  14. {crossref_local-0.8.1 → crossref_local-0.8.3}/.github/workflows/auto-merge-to-develop.yaml +0 -0
  15. {crossref_local-0.8.1 → crossref_local-0.8.3}/.github/workflows/cla.yml +0 -0
  16. {crossref_local-0.8.1 → crossref_local-0.8.3}/.github/workflows/crossref-local-quality-audit-on-ubuntu-latest.yml +0 -0
  17. {crossref_local-0.8.1 → crossref_local-0.8.3}/.github/workflows/import-smoke-on-ubuntu-py3-12.yml +0 -0
  18. {crossref_local-0.8.1 → crossref_local-0.8.3}/.github/workflows/pytest-matrix-on-ubuntu-py3-11-3-12-3-13.yml +0 -0
  19. {crossref_local-0.8.1 → crossref_local-0.8.3}/.github/workflows/rtd-sphinx-build-on-ubuntu-latest.yml +0 -0
  20. {crossref_local-0.8.1 → crossref_local-0.8.3}/.gitignore +0 -0
  21. {crossref_local-0.8.1 → crossref_local-0.8.3}/.readthedocs.yaml +0 -0
  22. {crossref_local-0.8.1 → crossref_local-0.8.3}/.scitex/dev/config.yaml +0 -0
  23. {crossref_local-0.8.1 → crossref_local-0.8.3}/CLA.md +0 -0
  24. {crossref_local-0.8.1 → crossref_local-0.8.3}/CONTRIBUTING.md +0 -0
  25. {crossref_local-0.8.1 → crossref_local-0.8.3}/LICENSE +0 -0
  26. {crossref_local-0.8.1 → crossref_local-0.8.3}/Makefile +0 -0
  27. {crossref_local-0.8.1 → crossref_local-0.8.3}/README.md +0 -0
  28. {crossref_local-0.8.1 → crossref_local-0.8.3}/codecov.yml +0 -0
  29. {crossref_local-0.8.1 → crossref_local-0.8.3}/docs/remote-deployment.md +0 -0
  30. {crossref_local-0.8.1 → crossref_local-0.8.3}/docs/sphinx/_static/.gitkeep +0 -0
  31. {crossref_local-0.8.1 → crossref_local-0.8.3}/docs/sphinx/api/crossref_local.rst +0 -0
  32. {crossref_local-0.8.1 → crossref_local-0.8.3}/docs/sphinx/cli_reference.rst +0 -0
  33. {crossref_local-0.8.1 → crossref_local-0.8.3}/docs/sphinx/conf.py +0 -0
  34. {crossref_local-0.8.1 → crossref_local-0.8.3}/docs/sphinx/http_api.rst +0 -0
  35. {crossref_local-0.8.1 → crossref_local-0.8.3}/docs/sphinx/index.rst +0 -0
  36. {crossref_local-0.8.1 → crossref_local-0.8.3}/docs/sphinx/installation.rst +0 -0
  37. {crossref_local-0.8.1 → crossref_local-0.8.3}/docs/sphinx/quickstart.rst +0 -0
  38. {crossref_local-0.8.1 → crossref_local-0.8.3}/docs/sphinx/requirements.txt +0 -0
  39. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/00_run_all.sh +0 -0
  40. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/01_quickstart.py +0 -0
  41. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/02_citation_network/01_generate_visualization.py +0 -0
  42. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/02_citation_network/citation_network.html +0 -0
  43. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/02_citation_network/citation_network.yaml +0 -0
  44. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/02_demo_mcp.org +0 -0
  45. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/03_impact_factor/00_calculate_impact_factor.py +0 -0
  46. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/03_impact_factor/01_compare_jcr.py +0 -0
  47. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/03_impact_factor/01_compare_jcr_out/all_combined.json +0 -0
  48. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/03_impact_factor/01_compare_jcr_out/biomedical_engineering.json +0 -0
  49. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/03_impact_factor/01_compare_jcr_out/high_impact.json +0 -0
  50. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/03_impact_factor/01_compare_jcr_out/neuroscience.json +0 -0
  51. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/03_impact_factor/02_compare_jcr_plot.py +0 -0
  52. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/03_impact_factor/02_compare_jcr_plot_out/scatter_calc_vs_jcr.yaml +0 -0
  53. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/03_impact_factor/run_all_demos.sh +0 -0
  54. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/04_mcp_demo.org +0 -0
  55. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/04_mcp_demo_out/demo_mcp.tex +0 -0
  56. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/04_mcp_demo_out/evolution.mmd +0 -0
  57. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/04_mcp_demo_out/pipeline.mmd +0 -0
  58. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/04_mcp_demo_out/states.mmd +0 -0
  59. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/04_mcp_demo_out/tradeoff.mmd +0 -0
  60. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/05_abstract_coverage.py +0 -0
  61. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/compose_readme.py +0 -0
  62. {crossref_local-0.8.1 → crossref_local-0.8.3}/examples/readme_figure.yaml +0 -0
  63. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/README.md +0 -0
  64. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/create_test_db.py +0 -0
  65. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/database/00_rebuild_all.sh +0 -0
  66. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/database/02_create_missing_indexes.sh +0 -0
  67. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/database/03_rebuild_citations_table.py +0 -0
  68. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/database/03_rebuild_citations_table_optimized.py +0 -0
  69. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/database/04a_download_openalex_journals.py +0 -0
  70. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/database/04b_build_issn_table.py +0 -0
  71. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/database/04c_build_journals_table.py +0 -0
  72. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/database/04d_build_from_issn_list.py +0 -0
  73. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/database/05_build_fts5_index.py +0 -0
  74. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/database/06_calculate_abstract_ratio.py +0 -0
  75. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/database/10_differential_update.py +0 -0
  76. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/database/99_check_db_connections.py +0 -0
  77. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/database/99_db_info.sh +0 -0
  78. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/database/99_maintain_indexes.sh +0 -0
  79. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/database/99_switch_to_optimized.sh +0 -0
  80. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/database/README.md +0 -0
  81. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/deployment/build_apptainer.sh +0 -0
  82. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/deployment/install_apptainer.sh +0 -0
  83. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/deployment/mcp/Dockerfile.mcp +0 -0
  84. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/deployment/mcp/crossref-mcp.service +0 -0
  85. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/deployment/mcp/docker-compose.mcp.yml +0 -0
  86. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/deployment/mcp/docker.sh +0 -0
  87. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/deployment/mcp/install.sh +0 -0
  88. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/deployment/mcp/status.sh +0 -0
  89. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/deployment/run_apptainer.sh +0 -0
  90. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/deployment/run_docker.sh +0 -0
  91. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/nfs/check.sh +0 -0
  92. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/nfs/setup_nfs.sh +0 -0
  93. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/nfs/status.sh +0 -0
  94. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/nfs/stop.sh +0 -0
  95. {crossref_local-0.8.1 → crossref_local-0.8.3}/scripts/status.sh +0 -0
  96. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/__main__.py +0 -0
  97. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_aio/__init__.py +0 -0
  98. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_aio/_impl.py +0 -0
  99. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_cache/__init__.py +0 -0
  100. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_cache/export.py +0 -0
  101. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_cache/utils.py +0 -0
  102. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_cache/viz.py +0 -0
  103. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_cli/__init__.py +0 -0
  104. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_cli/cache.py +0 -0
  105. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_cli/check.py +0 -0
  106. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_cli/cli.py +0 -0
  107. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_cli/completion.py +0 -0
  108. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_cli/deprecations.py +0 -0
  109. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_cli/main.py +0 -0
  110. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_cli/mcp.py +0 -0
  111. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_cli/mcp_server.py +0 -0
  112. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_cli/search.py +0 -0
  113. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_cli/stats.py +0 -0
  114. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_cli/update.py +0 -0
  115. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_cli/utils.py +0 -0
  116. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_core/__init__.py +0 -0
  117. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_core/api.py +0 -0
  118. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_core/checker.py +0 -0
  119. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_core/citations.py +0 -0
  120. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_core/config.py +0 -0
  121. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_core/db.py +0 -0
  122. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_core/export.py +0 -0
  123. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_core/fts.py +0 -0
  124. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_core/models.py +0 -0
  125. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_core/paths.py +0 -0
  126. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_core/stats.py +0 -0
  127. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_core/update.py +0 -0
  128. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_impact_factor/__init__.py +0 -0
  129. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_impact_factor/calculator.py +0 -0
  130. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_impact_factor/journal_lookup.py +0 -0
  131. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_remote/__init__.py +0 -0
  132. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_remote/base.py +0 -0
  133. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_remote/collections.py +0 -0
  134. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_server/__init__.py +0 -0
  135. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_server/middleware.py +0 -0
  136. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_server/models.py +0 -0
  137. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_server/routes_citations.py +0 -0
  138. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_server/routes_collections.py +0 -0
  139. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_server/routes_compat.py +0 -0
  140. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_server/routes_works.py +0 -0
  141. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_server/server.py +0 -0
  142. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/01_installation.md +0 -0
  143. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/02_quick-start.md +0 -0
  144. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/03_python-api.md +0 -0
  145. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/04_cli-reference.md +0 -0
  146. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/05_citations.md +0 -0
  147. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/06_http-api.md +0 -0
  148. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/07_cache.md +0 -0
  149. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/08_export.md +0 -0
  150. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/09_async.md +0 -0
  151. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/10_cli.md +0 -0
  152. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/11_mcp.md +0 -0
  153. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/12_env-vars.md +0 -0
  154. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/13_configuration.md +0 -0
  155. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/14_search.md +0 -0
  156. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/15_retrieval.md +0 -0
  157. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/16_models.md +0 -0
  158. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/17_checker.md +0 -0
  159. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_skills/crossref-local/SKILL.md +0 -0
  160. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/.buildinfo +0 -0
  161. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/.doctrees/__intersphinx_cache__/python_objects.inv +0 -0
  162. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/.doctrees/api/crossref_local.doctree +0 -0
  163. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/.doctrees/cli_reference.doctree +0 -0
  164. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/.doctrees/environment.pickle +0 -0
  165. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/.doctrees/http_api.doctree +0 -0
  166. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/.doctrees/index.doctree +0 -0
  167. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/.doctrees/installation.doctree +0 -0
  168. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/.doctrees/quickstart.doctree +0 -0
  169. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/.nojekyll +0 -0
  170. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_modules/crossref_local/_core/api.html +0 -0
  171. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_modules/crossref_local/_core/models.html +0 -0
  172. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_modules/index.html +0 -0
  173. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/_sphinx_javascript_frameworks_compat.js +0 -0
  174. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/base-stemmer.js +0 -0
  175. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/basic.css +0 -0
  176. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/clipboard.min.js +0 -0
  177. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/copybutton.css +0 -0
  178. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/copybutton.js +0 -0
  179. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/copybutton_funcs.js +0 -0
  180. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/badge_only.css +0 -0
  181. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/fonts/Roboto-Slab-Regular.woff +0 -0
  182. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/fonts/Roboto-Slab-Regular.woff2 +0 -0
  183. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/fonts/fontawesome-webfont.eot +0 -0
  184. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/fonts/fontawesome-webfont.ttf +0 -0
  185. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/fonts/fontawesome-webfont.woff +0 -0
  186. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/fonts/fontawesome-webfont.woff2 +0 -0
  187. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/fonts/lato-normal-italic.woff +0 -0
  188. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/fonts/lato-normal-italic.woff2 +0 -0
  189. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/fonts/lato-normal.woff +0 -0
  190. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/fonts/lato-normal.woff2 +0 -0
  191. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/css/theme.css +0 -0
  192. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/doctools.js +0 -0
  193. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/documentation_options.js +0 -0
  194. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/english-stemmer.js +0 -0
  195. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-italic.eot +0 -0
  196. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-italic.ttf +0 -0
  197. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-italic.woff +0 -0
  198. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-italic.woff2 +0 -0
  199. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-regular.eot +0 -0
  200. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-regular.ttf +0 -0
  201. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-regular.woff +0 -0
  202. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-regular.woff2 +0 -0
  203. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.eot +0 -0
  204. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.ttf +0 -0
  205. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff +0 -0
  206. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff2 +0 -0
  207. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/jquery.js +0 -0
  208. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/js/badge_only.js +0 -0
  209. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/js/theme.js +0 -0
  210. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/js/versions.js +0 -0
  211. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/language_data.js +0 -0
  212. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/pygments.css +0 -0
  213. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/searchtools.js +0 -0
  214. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/_static/sphinx_highlight.js +0 -0
  215. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/api/crossref_local.html +0 -0
  216. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/cli_reference.html +0 -0
  217. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/genindex.html +0 -0
  218. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/http_api.html +0 -0
  219. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/index.html +0 -0
  220. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/installation.html +0 -0
  221. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/objects.inv +0 -0
  222. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/quickstart.html +0 -0
  223. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/search.html +0 -0
  224. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/_sphinx_html/searchindex.js +0 -0
  225. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/aio.py +0 -0
  226. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/cache.py +0 -0
  227. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/cli.py +0 -0
  228. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/jobs.py +0 -0
  229. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/mcp_server.py +0 -0
  230. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/remote.py +0 -0
  231. {crossref_local-0.8.1 → crossref_local-0.8.3}/src/crossref_local/server.py +0 -0
  232. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/conftest.py +0 -0
  233. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/crossref_local/fixtures/.gitkeep +0 -0
  234. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/crossref_local/impact_factor/test_calculator.py +0 -0
  235. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/crossref_local/impact_factor/test_journal_lookup.py +0 -0
  236. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/crossref_local/test_aio.py +0 -0
  237. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/crossref_local/test_api.py +0 -0
  238. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/crossref_local/test_cache.py +0 -0
  239. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/crossref_local/test_citations.py +0 -0
  240. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/crossref_local/test_cli.py +0 -0
  241. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/crossref_local/test_cli_completion.py +0 -0
  242. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/crossref_local/test_cli_stats.py +0 -0
  243. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/crossref_local/test_cli_update.py +0 -0
  244. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/crossref_local/test_config.py +0 -0
  245. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/crossref_local/test_db.py +0 -0
  246. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/crossref_local/test_fts.py +0 -0
  247. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/crossref_local/test_jobs.py +0 -0
  248. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/crossref_local/test_mcp_server.py +0 -0
  249. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/crossref_local/test_models.py +0 -0
  250. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/crossref_local/test_paths_runtime.py +0 -0
  251. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/crossref_local/test_remote.py +0 -0
  252. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/crossref_local/test_server.py +0 -0
  253. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/crossref_local/test_stats.py +0 -0
  254. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/develop/__init__.py +0 -0
  255. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/develop/test_audit.py +0 -0
  256. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/examples/__init__.py +0 -0
  257. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/examples/test_01_quickstart.py +0 -0
  258. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/examples/test_05_abstract_coverage.py +0 -0
  259. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/examples/test_compose_readme.py +0 -0
  260. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/integration/test_cross_package_imports.py +0 -0
  261. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/sync_tests_with_source.sh +0 -0
  262. {crossref_local-0.8.1 → crossref_local-0.8.3}/tests/test_skills_quality.py +0 -0
  263. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/.gitignore +0 -0
  264. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/LICENSE +0 -0
  265. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/NOTES.md +0 -0
  266. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/README.md +0 -0
  267. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/dois2sqlite/__init__.py +0 -0
  268. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/dois2sqlite/cli.py +0 -0
  269. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/dois2sqlite/database.py +0 -0
  270. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/dois2sqlite/file_handlers.py +0 -0
  271. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/dois2sqlite/models.py +0 -0
  272. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/dois2sqlite/representations.py +0 -0
  273. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/dois2sqlite/utils.py +0 -0
  274. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/examples/cnserver/NOTES.md +0 -0
  275. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/examples/cnserver/README.md +0 -0
  276. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/examples/cnserver/app.py +0 -0
  277. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/examples/cnserver/cn-quick-test.py +0 -0
  278. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/examples/cnserver/cnserver/__init__.py +0 -0
  279. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/examples/cnserver/cnserver/accept_header_utils.py +0 -0
  280. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/examples/cnserver/cnserver/cslutils.py +0 -0
  281. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/examples/cnserver/cnserver/settings.py +0 -0
  282. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/pyproject.toml +0 -0
  283. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/quick_convert.sh +0 -0
  284. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/quick_no_convert.sh +0 -0
  285. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/utils/create-rnd-tar-subset.py +0 -0
  286. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/dois2sqlite/utils/select-rnd-dois-from-db.py +0 -0
  287. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/labs-data-file-api/.gitignore +0 -0
  288. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/labs-data-file-api/LICENSE.md +0 -0
  289. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/labs-data-file-api/README.md +0 -0
  290. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/labs-data-file-api/crossrefDataFile/__init__.py +0 -0
  291. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/labs-data-file-api/crossrefDataFile/api.py +0 -0
  292. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/labs-data-file-api/crossrefDataFile/app_urls.py +0 -0
  293. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/labs-data-file-api/crossrefDataFile/asgi.py +0 -0
  294. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/labs-data-file-api/crossrefDataFile/migrations/0001_initial.py +0 -0
  295. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/labs-data-file-api/crossrefDataFile/migrations/0002_dataindexwithlocation.py +0 -0
  296. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/labs-data-file-api/crossrefDataFile/migrations/__init__.py +0 -0
  297. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/labs-data-file-api/crossrefDataFile/models.py +0 -0
  298. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/labs-data-file-api/crossrefDataFile/urls.py +0 -0
  299. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/labs-data-file-api/crossrefDataFile/views.py +0 -0
  300. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/labs-data-file-api/crossrefDataFile/wsgi.py +0 -0
  301. {crossref_local-0.8.1 → crossref_local-0.8.3}/vendor/labs-data-file-api/main.py +0 -0
  302. {crossref_local-0.8.1 → 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,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" "$@"
@@ -72,12 +72,22 @@ echo "py=$("$VENV/bin/python" -V) target=$TMPDIR/site"
72
72
  # Fallback chain mirrors crossref-local's historical bare-uv/pip workflow so a
73
73
  # packaging hiccup in an optional extra doesn't strand CI: [all,dev] → [dev] →
74
74
  # bare. uv first (fast resolver), pip as a final safety net.
75
- uv pip install --python "$VENV/bin/python" --target="$TMPDIR/site" -e ".[all,dev]" ||
76
- uv pip install --python "$VENV/bin/python" --target="$TMPDIR/site" -e ".[dev]" ||
77
- uv pip install --python "$VENV/bin/python" --target="$TMPDIR/site" -e "." ||
78
- pip install --target="$TMPDIR/site" -e ".[dev]"
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]"
79
86
 
80
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"
81
91
 
82
92
  # Parallelise with pytest-xdist (baked in [dev]/[all,dev] as pytest-xdist>=3).
83
93
  # crossref-local's suite is ~2460 tests; single-process it overran the job's old
@@ -34,8 +34,10 @@ name: release
34
34
  # fail-loud: a missing SIF/shim/interpreter is a HARD error, never a
35
35
  # bare-runner fallback.
36
36
  #
37
- # runs-on driven by repo Actions Variable CI_RUNS_ON; SIF + apptainer paths
38
- # come from SCITEX_CI_SIF / SCITEX_CI_APPTAINER (same as pytest-matrix).
37
+ # Shared runner admission selects the Organization CPU pool (forks and
38
+ # non-members go to ubuntu-latest). SCITEX_CI_SIF selects the image and
39
+ # SCITEX_CI_SIF_SHA256 verifies it before any inner script runs; apptainer
40
+ # is SCITEX_CI_APPTAINER when executable, else the host's PATH apptainer.
39
41
  #
40
42
  # Manual re-run: the workflow also accepts a `version` input via
41
43
  # workflow_dispatch so you can re-publish without re-tagging.
@@ -53,10 +55,21 @@ on:
53
55
  env:
54
56
  SCITEX_CI_APPTAINER: ${{ vars.SCITEX_CI_APPTAINER }}
55
57
  SCITEX_CI_SIF: ${{ vars.SCITEX_CI_SIF }}
58
+ SCITEX_CI_SIF_SHA256: ${{ vars.SCITEX_CI_SIF_SHA256 }}
56
59
 
57
60
  jobs:
61
+ runner-admission:
62
+ uses: scitex-ai/.github/.github/workflows/runner-admission.yml@d7d96c34d68cdfbb5503a933591f7748b5aa30ee
63
+ permissions: {}
64
+ with:
65
+ runs_on: '["self-hosted","Linux","X64","scitex-org-cpu"]'
66
+
58
67
  test:
59
- runs-on: ${{ fromJSON(vars.CI_RUNS_ON || '["self-hosted","Linux","X64","scitex-ci"]') }}
68
+ needs: [runner-admission]
69
+ runs-on: >-
70
+ ${{ needs.runner-admission.outputs.native_authorized == 'true'
71
+ && fromJSON('{"group":"Organization","labels":["self-hosted","Linux","X64","scitex-org-cpu"]}')
72
+ || fromJSON('["ubuntu-latest"]') }}
60
73
  strategy:
61
74
  fail-fast: false
62
75
  matrix:
@@ -75,6 +88,12 @@ jobs:
75
88
  with:
76
89
  ref: ${{ steps.ver.outputs.version }}
77
90
  fetch-depth: 0
91
+ # CI drivers come from the workflow revision; the package source comes
92
+ # from the tag. A workflow_dispatch re-publish of an immutable tag thus
93
+ # gets current runner plumbing without rewriting the tag. On a tag push
94
+ # GITHUB_SHA is the tag commit, so this is a no-op.
95
+ - name: Use CI drivers from the workflow revision
96
+ run: git checkout "$GITHUB_SHA" -- .github/ci
78
97
  # SIF-based self-hosted test run — mirrors pytest-matrix exactly. No
79
98
  # setup-python (the bare Spartan node has no Python tool cache; that step
80
99
  # failed "version not found for this OS"); no apt fd-install (fd is baked
@@ -85,8 +104,11 @@ jobs:
85
104
  run: bash .github/ci/exec-in-sif.sh run-in-sif.sh ${{ matrix.python-version }}
86
105
 
87
106
  build:
88
- needs: test
89
- runs-on: ${{ fromJSON(vars.CI_RUNS_ON || '["self-hosted","Linux","X64","scitex-ci"]') }}
107
+ needs: [test, runner-admission]
108
+ runs-on: >-
109
+ ${{ needs.runner-admission.outputs.native_authorized == 'true'
110
+ && fromJSON('{"group":"Organization","labels":["self-hosted","Linux","X64","scitex-org-cpu"]}')
111
+ || fromJSON('["ubuntu-latest"]') }}
90
112
  outputs:
91
113
  version: ${{ steps.ver.outputs.version }}
92
114
  steps:
@@ -103,6 +125,12 @@ jobs:
103
125
  with:
104
126
  ref: ${{ steps.ver.outputs.version }}
105
127
  fetch-depth: 0
128
+ # CI drivers come from the workflow revision; the package source comes
129
+ # from the tag. A workflow_dispatch re-publish of an immutable tag thus
130
+ # gets current runner plumbing without rewriting the tag. On a tag push
131
+ # GITHUB_SHA is the tag commit, so this is a no-op.
132
+ - name: Use CI drivers from the workflow revision
133
+ run: git checkout "$GITHUB_SHA" -- .github/ci
106
134
  # Build INSIDE the SIF (no setup-python on the bare Spartan node).
107
135
  # build-in-sif.sh installs the `build` frontend into a writable --target
108
136
  # inside the SIF, then `python -m build` → dist/. fail-loud on empty dist.
@@ -115,8 +143,11 @@ jobs:
115
143
  path: dist/
116
144
 
117
145
  publish:
118
- needs: build
119
- runs-on: ${{ fromJSON(vars.CI_RUNS_ON || '["self-hosted","Linux","X64","scitex-ci"]') }}
146
+ needs: [build, runner-admission]
147
+ runs-on: >-
148
+ ${{ needs.runner-admission.outputs.native_authorized == 'true'
149
+ && fromJSON('{"group":"Organization","labels":["self-hosted","Linux","X64","scitex-org-cpu"]}')
150
+ || fromJSON('["ubuntu-latest"]') }}
120
151
  environment:
121
152
  name: pypi
122
153
  url: https://pypi.org/p/crossref-local
@@ -141,8 +172,11 @@ jobs:
141
172
  run: bash .github/ci/exec-in-sif.sh publish-in-sif.sh 3.12
142
173
 
143
174
  release:
144
- needs: [build, publish]
145
- runs-on: ${{ fromJSON(vars.CI_RUNS_ON || '["self-hosted","Linux","X64","scitex-ci"]') }}
175
+ needs: [build, publish, runner-admission]
176
+ runs-on: >-
177
+ ${{ needs.runner-admission.outputs.native_authorized == 'true'
178
+ && fromJSON('{"group":"Organization","labels":["self-hosted","Linux","X64","scitex-org-cpu"]}')
179
+ || fromJSON('["ubuntu-latest"]') }}
146
180
  permissions:
147
181
  contents: write
148
182
  steps:
@@ -5,6 +5,35 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.8.3] - 2026-11-29
9
+
10
+ Same code as 0.8.2 plus CI fixes. **0.8.2 was tagged but never published to PyPI.**
11
+ Its release run could not reach the publish step: the legacy SIF driver needed
12
+ a host-specific apptainer shim, and the newest auditor flagged rules that
13
+ postdate this maintenance line. Tags are immutable, so 0.8.2's content ships
14
+ as 0.8.3. Use 0.8.3.
15
+
16
+ ### Changed (CI only; no package code changes since 0.8.2)
17
+
18
+ - Release workflow: shared runner admission and the host-agnostic,
19
+ digest-verified SIF driver (#58).
20
+ - The 0.8.x line is qualified against its auditor baseline, `scitex-dev==0.34.0`
21
+ (#60).
22
+
23
+ ## [0.8.2] - 2026-11-28 (not published; superseded by 0.8.3)
24
+
25
+ Security hotfix on the 0.8.x line (branch `release/0.8.x`, cut from
26
+ v0.8.1). It does not include the unreleased develop work (shared-store
27
+ corpus).
28
+
29
+ ### Security
30
+
31
+ - On import, export only `CROSSREF_LOCAL_*` variables from the `.env` files
32
+ found between cwd and `$HOME`. The import used to copy every variable,
33
+ including unrelated credentials, into `os.environ`, where every subprocess
34
+ inherited them (scitex-config#47). Process env still wins, and the
35
+ closest `.env` still wins. Requires `scitex-config>=0.4.0`.
36
+
8
37
  ## [0.8.1] - 2026-07-22
9
38
 
10
39
  Release note: the v0.8.0 tag exists but was NEVER published to PyPI —
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.4
1
+ Metadata-Version: 2.5
2
2
  Name: crossref-local
3
- Version: 0.8.1
3
+ Version: 0.8.3
4
4
  Summary: Local CrossRef database with 167M+ works and full-text search
5
5
  Project-URL: Homepage, https://github.com/ywatanabe1989/crossref-local
6
6
  Project-URL: Documentation, https://crossref-local.readthedocs.io
@@ -21,7 +21,7 @@ Classifier: Topic :: Scientific/Engineering
21
21
  Requires-Python: >=3.10
22
22
  Requires-Dist: click>=8.0
23
23
  Requires-Dist: rich>=13.0
24
- Requires-Dist: scitex-config>=0.3.0
24
+ Requires-Dist: scitex-config>=0.4.0
25
25
  Requires-Dist: scitex-dev>=0.11.5
26
26
  Provides-Extra: all
27
27
  Requires-Dist: fastapi>=0.100; extra == 'all'
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "crossref-local"
7
- version = "0.8.1"
7
+ version = "0.8.3"
8
8
  description = "Local CrossRef database with 167M+ works and full-text search"
9
9
  readme = "README.md"
10
10
  license = "AGPL-3.0-only"
@@ -36,7 +36,7 @@ classifiers = [
36
36
  dependencies = [
37
37
  "click>=8.0",
38
38
  "rich>=13.0",
39
- "scitex-config>=0.3.0",
39
+ "scitex-config>=0.4.0",
40
40
  "scitex-dev>=0.11.5",
41
41
  ]
42
42
 
@@ -67,25 +67,28 @@ Modules:
67
67
  from __future__ import annotations
68
68
 
69
69
  # ============================================================================
70
- # .env-respect: walk up from CWD to $HOME, loading every .env we find.
71
- # Runs as the very first thing on import so downstream config readers
72
- # (env vars consumed in _core.config etc.) see project-local overrides.
70
+ # .env-respect: walk up from CWD to $HOME and export only this package's own
71
+ # ``CROSSREF_LOCAL_*`` settings (closest .env wins; process env always wins).
72
+ # Runs first on import so downstream config readers (_core.config etc.) see
73
+ # project-local overrides. Other .env variables -- credentials for unrelated
74
+ # services -- are never copied into os.environ, so subprocesses do not
75
+ # inherit them (scitex-config#47).
73
76
  # ============================================================================
74
77
  try:
75
78
  from pathlib import Path as _Path
76
79
 
77
- # scitex-config exposes both ``PriorityConfig`` (the class) and
78
- # ``load_dotenv`` (the parent-walking helper that landed on develop
79
- # at eb9507e1 with ``walk_up`` + ``stop_at`` kwargs). Use the helper
80
- # as a classmethod when available, fall back to the module-level
81
- # function otherwise — same call signature either way.
82
- from scitex_config import PriorityConfig as _PC
83
-
84
- _loader = getattr(_PC, "load_dotenv", None)
85
- if _loader is None:
86
- from scitex_config import load_dotenv as _loader # type: ignore[no-redef]
87
- _loader(walk_up=True, stop_at=str(_Path.home()))
88
- del _PC, _Path, _loader
80
+ from scitex_config import load_dotenv as _load_dotenv
81
+ from scitex_config import read_dotenv as _read_dotenv
82
+
83
+ _home = str(_Path.home())
84
+ _keys = [
85
+ _k
86
+ for _k in _read_dotenv(walk_up=True, stop_at=_home)
87
+ if _k.startswith("CROSSREF_LOCAL_")
88
+ ]
89
+ if _keys:
90
+ _load_dotenv(walk_up=True, stop_at=_home, keys=_keys)
91
+ del _Path, _load_dotenv, _read_dotenv, _home, _keys
89
92
  except Exception:
90
93
  pass
91
94
 
@@ -0,0 +1,72 @@
1
+ """Import exports only CROSSREF_LOCAL_* keys from .env (scitex-config#47).
2
+
3
+ A fresh interpreter runs with a real temporary HOME/cwd holding a real
4
+ ``.env``; nothing is mocked.
5
+ """
6
+
7
+ from __future__ import annotations
8
+
9
+ import os
10
+ import subprocess
11
+ import sys
12
+ import textwrap
13
+ from pathlib import Path
14
+
15
+ import pytest
16
+
17
+ _PROBE = textwrap.dedent(
18
+ """
19
+ import os
20
+ import crossref_local
21
+ print(os.environ.get("CROSSREF_LOCAL_DOTENV_PROBE", "<unset>"))
22
+ print(os.environ.get("FOREIGN_SERVICE_API_KEY", "<unset>"))
23
+ """
24
+ )
25
+
26
+
27
+ @pytest.fixture
28
+ def import_lines(tmp_path: Path) -> list:
29
+ """Import crossref_local in a child whose HOME/.env holds own + foreign keys."""
30
+ (tmp_path / ".env").write_text(
31
+ "CROSSREF_LOCAL_DOTENV_PROBE=from-dotenv\n"
32
+ "FOREIGN_SERVICE_API_KEY=fake-value-not-a-secret\n"
33
+ )
34
+ import crossref_local as _pkg
35
+
36
+ src = str(Path(_pkg.__file__).resolve().parent.parent)
37
+ env = {
38
+ k: v
39
+ for k, v in os.environ.items()
40
+ if k not in ("CROSSREF_LOCAL_DOTENV_PROBE", "FOREIGN_SERVICE_API_KEY")
41
+ }
42
+ env["HOME"] = str(tmp_path)
43
+ env["PYTHONPATH"] = os.pathsep.join([src, *(p for p in sys.path if p)])
44
+ result = subprocess.run(
45
+ [sys.executable, "-c", _PROBE],
46
+ cwd=str(tmp_path),
47
+ env=env,
48
+ capture_output=True,
49
+ text=True,
50
+ timeout=120,
51
+ )
52
+ if result.returncode != 0:
53
+ raise RuntimeError(result.stderr)
54
+ return result.stdout.strip().splitlines()[-2:]
55
+
56
+
57
+ def test_own_prefixed_key_is_exported(import_lines: list) -> None:
58
+ # Arrange
59
+ expected = "from-dotenv"
60
+ # Act
61
+ value = import_lines[0]
62
+ # Assert
63
+ assert value == expected
64
+
65
+
66
+ def test_foreign_key_is_not_exported(import_lines: list) -> None:
67
+ # Arrange
68
+ expected = "<unset>"
69
+ # Act
70
+ value = import_lines[1]
71
+ # Assert
72
+ assert value == expected
@@ -1,51 +0,0 @@
1
- #!/usr/bin/env bash
2
- # Outer apptainer-exec wrapper for scitex-tex's self-hosted (Spartan) CI.
3
- #
4
- # Runs ON THE RUNNER (outside the SIF). Resolves the apptainer shim + SIF image
5
- # from the repo Actions Variables, then `apptainer exec`s the SIF and hands off
6
- # to an INNER script (run inside the container). Keeps every workflow job's YAML
7
- # down to one line — `bash .github/ci/exec-in-sif.sh <inner-script> [args...]` —
8
- # and concentrates all the HPC/SIF plumbing (shim PATH, ~-expansion, scratch,
9
- # binds) in one version-controlled place.
10
- #
11
- # Required env (set by the workflow from repo Actions Variables):
12
- # SCITEX_CI_APPTAINER path to the apptainer shim (e.g. ~/.env-3.11/bin/apptainer)
13
- # SCITEX_CI_SIF path to the CI SIF image (e.g. ~/.scitex/dev/containers/ci-cpu.sif)
14
- #
15
- # Usage:
16
- # bash .github/ci/exec-in-sif.sh run-in-sif.sh 3.12
17
- #
18
- # Fail-loud (operator directive): a missing shim or SIF is a HARD error — never
19
- # a silent fallback to a bare-runner install.
20
- set -euo pipefail
21
-
22
- INNER="${1:?inner script name required (relative to .github/ci/)}"
23
- shift || true
24
-
25
- # The runner's job shell is --noprofile --norc (no Lmod), so the apptainer shim
26
- # must be put on PATH explicitly; it execs the real Apptainer binary directly.
27
- # ~-expand the Actions-Variable paths: a quoted "~/…" is NOT tilde-expanded by
28
- # the shell, so substitute a leading ~ with $HOME ourselves.
29
- APPTAINER="${SCITEX_CI_APPTAINER:?SCITEX_CI_APPTAINER not set (repo Actions Variable)}"
30
- SIF="${SCITEX_CI_SIF:?SCITEX_CI_SIF not set (repo Actions Variable)}"
31
- APPTAINER="${APPTAINER/#\~/$HOME}"
32
- SIF="${SIF/#\~/$HOME}"
33
- export PATH="$HOME/.env-3.11/bin:$PATH"
34
-
35
- [ -x "$APPTAINER" ] || {
36
- echo "::error::apptainer shim not executable at $APPTAINER"
37
- exit 1
38
- }
39
- [ -f "$SIF" ] || {
40
- echo "::error::CI SIF missing at $SIF — rebuild it: scitex-container apptainer build ci-cpu"
41
- exit 1
42
- }
43
-
44
- # apptainer scratch on the shared FS — keeps HOME clean.
45
- export APPTAINER_TMPDIR="/data/gpfs/projects/punim0264/ywatanabe/ci/apptainer-tmp"
46
- mkdir -p "$APPTAINER_TMPDIR"
47
-
48
- # --bind punim0264: $HOME/.scitex is a symlink into punim0264; bind it so the
49
- # symlink resolves inside the container. --pwd "$PWD" keeps the checkout as cwd.
50
- exec "$APPTAINER" exec --pwd "$PWD" --bind /data/gpfs/projects/punim0264 \
51
- "$SIF" bash ".github/ci/$INNER" "$@"
File without changes
File without changes
File without changes
File without changes