crossref-local 0.7.6__tar.gz → 0.8.1__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.
- crossref_local-0.8.1/.github/ci/build-in-sif.sh +69 -0
- crossref_local-0.8.1/.github/ci/exec-in-sif.sh +51 -0
- crossref_local-0.8.1/.github/ci/publish-in-sif.sh +109 -0
- crossref_local-0.8.1/.github/ci/run-in-sif.sh +134 -0
- crossref_local-0.8.1/.github/workflows/auto-merge-to-develop.yaml +19 -0
- crossref_local-0.8.1/.github/workflows/cla.yml +33 -0
- crossref_local-0.8.1/.github/workflows/crossref-local-quality-audit-on-ubuntu-latest.yml +34 -0
- crossref_local-0.8.1/.github/workflows/import-smoke-on-ubuntu-py3-12.yml +23 -0
- crossref_local-0.8.1/.github/workflows/pypi-publish-and-github-release-on-tag.yml +175 -0
- crossref_local-0.8.1/.github/workflows/pytest-matrix-on-ubuntu-py3-11-3-12-3-13.yml +28 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/.github/workflows/rtd-sphinx-build-on-ubuntu-latest.yml +13 -1
- {crossref_local-0.7.6 → crossref_local-0.8.1}/.gitignore +1 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/CHANGELOG.md +57 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/PKG-INFO +1 -1
- {crossref_local-0.7.6 → crossref_local-0.8.1}/pyproject.toml +1 -1
- crossref_local-0.8.1/scripts/database/10_differential_update.py +510 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/__init__.py +6 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_aio/_impl.py +7 -19
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_cli/cli.py +49 -2
- crossref_local-0.8.1/src/crossref_local/_cli/deprecations.py +74 -0
- crossref_local-0.8.1/src/crossref_local/_cli/stats.py +150 -0
- crossref_local-0.8.1/src/crossref_local/_cli/update.py +128 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_core/__init__.py +5 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_core/api.py +23 -21
- crossref_local-0.8.1/src/crossref_local/_core/stats.py +184 -0
- crossref_local-0.8.1/src/crossref_local/_core/update.py +112 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_server/__init__.py +14 -20
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_server/models.py +7 -1
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/conftest.py +4 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/crossref_local/test_api.py +14 -0
- crossref_local-0.8.1/tests/crossref_local/test_cli_stats.py +134 -0
- crossref_local-0.8.1/tests/crossref_local/test_cli_update.py +400 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/crossref_local/test_server.py +17 -0
- crossref_local-0.8.1/tests/crossref_local/test_stats.py +351 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/develop/test_audit.py +19 -3
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/integration/test_cross_package_imports.py +1 -0
- crossref_local-0.7.6/.github/workflows/auto-merge-to-develop.yaml +0 -49
- crossref_local-0.7.6/.github/workflows/cla.yml +0 -33
- crossref_local-0.7.6/.github/workflows/crossref-local-quality-audit-on-ubuntu-latest.yml +0 -48
- crossref_local-0.7.6/.github/workflows/import-smoke-on-ubuntu-py3-12.yml +0 -34
- crossref_local-0.7.6/.github/workflows/newb-docs-quality-on-ubuntu-latest.yml +0 -83
- crossref_local-0.7.6/.github/workflows/pypi-publish-and-github-release-on-tag.yml +0 -184
- crossref_local-0.7.6/.github/workflows/pytest-matrix-on-ubuntu-py3-11-3-12-3-13.yml +0 -48
- {crossref_local-0.7.6 → crossref_local-0.8.1}/.env.example +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/.readthedocs.yaml +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/.scitex/dev/config.yaml +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/CLA.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/CONTRIBUTING.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/LICENSE +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/Makefile +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/README.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/codecov.yml +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/docs/remote-deployment.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/docs/sphinx/_static/.gitkeep +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/docs/sphinx/api/crossref_local.rst +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/docs/sphinx/cli_reference.rst +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/docs/sphinx/conf.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/docs/sphinx/http_api.rst +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/docs/sphinx/index.rst +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/docs/sphinx/installation.rst +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/docs/sphinx/quickstart.rst +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/docs/sphinx/requirements.txt +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/00_run_all.sh +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/01_quickstart.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/02_citation_network/01_generate_visualization.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/02_citation_network/citation_network.html +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/02_citation_network/citation_network.yaml +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/02_demo_mcp.org +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/03_impact_factor/00_calculate_impact_factor.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/03_impact_factor/01_compare_jcr.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/03_impact_factor/01_compare_jcr_out/all_combined.json +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/03_impact_factor/01_compare_jcr_out/biomedical_engineering.json +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/03_impact_factor/01_compare_jcr_out/high_impact.json +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/03_impact_factor/01_compare_jcr_out/neuroscience.json +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/03_impact_factor/02_compare_jcr_plot.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/03_impact_factor/02_compare_jcr_plot_out/scatter_calc_vs_jcr.yaml +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/03_impact_factor/run_all_demos.sh +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/04_mcp_demo.org +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/04_mcp_demo_out/demo_mcp.tex +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/04_mcp_demo_out/evolution.mmd +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/04_mcp_demo_out/pipeline.mmd +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/04_mcp_demo_out/states.mmd +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/04_mcp_demo_out/tradeoff.mmd +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/05_abstract_coverage.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/compose_readme.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/examples/readme_figure.yaml +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/README.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/create_test_db.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/database/00_rebuild_all.sh +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/database/02_create_missing_indexes.sh +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/database/03_rebuild_citations_table.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/database/03_rebuild_citations_table_optimized.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/database/04a_download_openalex_journals.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/database/04b_build_issn_table.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/database/04c_build_journals_table.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/database/04d_build_from_issn_list.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/database/05_build_fts5_index.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/database/06_calculate_abstract_ratio.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/database/99_check_db_connections.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/database/99_db_info.sh +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/database/99_maintain_indexes.sh +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/database/99_switch_to_optimized.sh +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/database/README.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/deployment/build_apptainer.sh +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/deployment/install_apptainer.sh +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/deployment/mcp/Dockerfile.mcp +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/deployment/mcp/crossref-mcp.service +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/deployment/mcp/docker-compose.mcp.yml +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/deployment/mcp/docker.sh +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/deployment/mcp/install.sh +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/deployment/mcp/status.sh +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/deployment/run_apptainer.sh +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/deployment/run_docker.sh +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/nfs/check.sh +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/nfs/setup_nfs.sh +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/nfs/status.sh +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/nfs/stop.sh +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/scripts/status.sh +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/__main__.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_aio/__init__.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_cache/__init__.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_cache/export.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_cache/utils.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_cache/viz.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_cli/__init__.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_cli/cache.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_cli/check.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_cli/completion.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_cli/main.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_cli/mcp.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_cli/mcp_server.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_cli/search.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_cli/utils.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_core/checker.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_core/citations.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_core/config.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_core/db.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_core/export.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_core/fts.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_core/models.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_core/paths.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_impact_factor/__init__.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_impact_factor/calculator.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_impact_factor/journal_lookup.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_remote/__init__.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_remote/base.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_remote/collections.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_server/middleware.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_server/routes_citations.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_server/routes_collections.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_server/routes_compat.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_server/routes_works.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_server/server.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_skills/crossref-local/01_installation.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_skills/crossref-local/02_quick-start.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_skills/crossref-local/03_python-api.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_skills/crossref-local/04_cli-reference.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_skills/crossref-local/05_citations.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_skills/crossref-local/06_http-api.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_skills/crossref-local/07_cache.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_skills/crossref-local/08_export.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_skills/crossref-local/09_async.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_skills/crossref-local/10_cli.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_skills/crossref-local/11_mcp.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_skills/crossref-local/12_env-vars.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_skills/crossref-local/13_configuration.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_skills/crossref-local/14_search.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_skills/crossref-local/15_retrieval.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_skills/crossref-local/16_models.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_skills/crossref-local/17_checker.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_skills/crossref-local/SKILL.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/.buildinfo +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/.doctrees/__intersphinx_cache__/python_objects.inv +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/.doctrees/api/crossref_local.doctree +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/.doctrees/cli_reference.doctree +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/.doctrees/environment.pickle +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/.doctrees/http_api.doctree +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/.doctrees/index.doctree +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/.doctrees/installation.doctree +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/.doctrees/quickstart.doctree +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/.nojekyll +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_modules/crossref_local/_core/api.html +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_modules/crossref_local/_core/models.html +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_modules/index.html +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/_sphinx_javascript_frameworks_compat.js +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/base-stemmer.js +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/basic.css +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/clipboard.min.js +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/copybutton.css +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/copybutton.js +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/copybutton_funcs.js +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/css/badge_only.css +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/css/fonts/Roboto-Slab-Regular.woff +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/css/fonts/Roboto-Slab-Regular.woff2 +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/css/fonts/fontawesome-webfont.eot +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/css/fonts/fontawesome-webfont.ttf +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/css/fonts/fontawesome-webfont.woff +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/css/fonts/fontawesome-webfont.woff2 +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/css/fonts/lato-normal-italic.woff +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/css/fonts/lato-normal-italic.woff2 +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/css/fonts/lato-normal.woff +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/css/fonts/lato-normal.woff2 +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/css/theme.css +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/doctools.js +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/documentation_options.js +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/english-stemmer.js +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-italic.eot +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-italic.ttf +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-italic.woff +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-italic.woff2 +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-regular.eot +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-regular.ttf +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-regular.woff +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/fonts/Lato/lato-regular.woff2 +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.eot +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.ttf +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff2 +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/jquery.js +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/js/badge_only.js +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/js/theme.js +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/js/versions.js +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/language_data.js +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/pygments.css +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/searchtools.js +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/_static/sphinx_highlight.js +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/api/crossref_local.html +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/cli_reference.html +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/genindex.html +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/http_api.html +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/index.html +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/installation.html +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/objects.inv +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/quickstart.html +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/search.html +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/_sphinx_html/searchindex.js +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/aio.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/cache.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/cli.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/jobs.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/mcp_server.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/remote.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/src/crossref_local/server.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/crossref_local/fixtures/.gitkeep +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/crossref_local/impact_factor/test_calculator.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/crossref_local/impact_factor/test_journal_lookup.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/crossref_local/test_aio.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/crossref_local/test_cache.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/crossref_local/test_citations.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/crossref_local/test_cli.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/crossref_local/test_cli_completion.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/crossref_local/test_config.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/crossref_local/test_db.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/crossref_local/test_fts.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/crossref_local/test_jobs.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/crossref_local/test_mcp_server.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/crossref_local/test_models.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/crossref_local/test_paths_runtime.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/crossref_local/test_remote.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/develop/__init__.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/examples/__init__.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/examples/test_01_quickstart.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/examples/test_05_abstract_coverage.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/examples/test_compose_readme.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/sync_tests_with_source.sh +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/tests/test_skills_quality.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/.gitignore +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/LICENSE +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/NOTES.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/README.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/dois2sqlite/__init__.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/dois2sqlite/cli.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/dois2sqlite/database.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/dois2sqlite/file_handlers.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/dois2sqlite/models.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/dois2sqlite/representations.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/dois2sqlite/utils.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/examples/cnserver/NOTES.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/examples/cnserver/README.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/examples/cnserver/app.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/examples/cnserver/cn-quick-test.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/examples/cnserver/cnserver/__init__.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/examples/cnserver/cnserver/accept_header_utils.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/examples/cnserver/cnserver/cslutils.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/examples/cnserver/cnserver/settings.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/pyproject.toml +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/quick_convert.sh +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/quick_no_convert.sh +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/utils/create-rnd-tar-subset.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/dois2sqlite/utils/select-rnd-dois-from-db.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/labs-data-file-api/.gitignore +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/labs-data-file-api/LICENSE.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/labs-data-file-api/README.md +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/labs-data-file-api/crossrefDataFile/__init__.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/labs-data-file-api/crossrefDataFile/api.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/labs-data-file-api/crossrefDataFile/app_urls.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/labs-data-file-api/crossrefDataFile/asgi.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/labs-data-file-api/crossrefDataFile/migrations/0001_initial.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/labs-data-file-api/crossrefDataFile/migrations/0002_dataindexwithlocation.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/labs-data-file-api/crossrefDataFile/migrations/__init__.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/labs-data-file-api/crossrefDataFile/models.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/labs-data-file-api/crossrefDataFile/urls.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/labs-data-file-api/crossrefDataFile/views.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/labs-data-file-api/crossrefDataFile/wsgi.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/labs-data-file-api/main.py +0 -0
- {crossref_local-0.7.6 → crossref_local-0.8.1}/vendor/labs-data-file-api/manage.py +0 -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,51 @@
|
|
|
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" "$@"
|
|
@@ -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,134 @@
|
|
|
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
|
+
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]"
|
|
79
|
+
|
|
80
|
+
export PYTHONPATH="$TMPDIR/site:$PWD/src${PYTHONPATH:+:$PYTHONPATH}"
|
|
81
|
+
|
|
82
|
+
# Parallelise with pytest-xdist (baked in [dev]/[all,dev] as pytest-xdist>=3).
|
|
83
|
+
# crossref-local's suite is ~2460 tests; single-process it overran the job's old
|
|
84
|
+
# 30-min cap (2300 passed in ~28 min, cancelled at 96%). Each xdist worker is
|
|
85
|
+
# a SEPARATE PROCESS, so matplotlib's global rcParams / pyplot state and the
|
|
86
|
+
# crossref-local style-stack are naturally isolated per worker — the safe way to
|
|
87
|
+
# parallelise a matplotlib-heavy suite.
|
|
88
|
+
#
|
|
89
|
+
# Worker count: use ALL cores. Each matrix leg now runs on its own dedicated
|
|
90
|
+
# self-hosted node (one runner per node: crossref-local-01/02/03), so there is no
|
|
91
|
+
# co-tenant to yield half the box to — the old nproc//2 cap left 2x the cores
|
|
92
|
+
# idle. nice/ionice (below) handles the "yield to higher-priority work if the
|
|
93
|
+
# node is ever shared" concern instead of statically reserving half the CPUs.
|
|
94
|
+
# Floor 4. pyproject addopts carries `-v`; override to `-q` here — 2460 verbose
|
|
95
|
+
# lines x workers bloats the CI log and adds measurable overhead.
|
|
96
|
+
NPROC="$(nproc 2>/dev/null || echo 4)"
|
|
97
|
+
WORKERS=$NPROC
|
|
98
|
+
[ "$WORKERS" -lt 4 ] && WORKERS=4
|
|
99
|
+
echo "xdist workers=$WORKERS (nproc=$NPROC)"
|
|
100
|
+
|
|
101
|
+
# Warm the matplotlib font cache ONCE, single-process, before xdist forks the
|
|
102
|
+
# workers. This builds $MPLCONFIGDIR/fontlist-*.json a single time so every
|
|
103
|
+
# worker reads a complete, consistent cache instead of racing to build it
|
|
104
|
+
# concurrently (the source of the render1!=render2 reproducibility flakes).
|
|
105
|
+
# Fail-loud: if matplotlib can't even build its font cache, CI must surface it.
|
|
106
|
+
# matplotlib may not be a dependency of this package; only warm the
|
|
107
|
+
# font cache when it's importable (no-op otherwise — never fail the run
|
|
108
|
+
# on an optional warm-up).
|
|
109
|
+
if python -c "import matplotlib" 2>/dev/null; then
|
|
110
|
+
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())"
|
|
111
|
+
else
|
|
112
|
+
echo "matplotlib not importable — skipping font-cache warm-up (not a dep)"
|
|
113
|
+
fi
|
|
114
|
+
|
|
115
|
+
# Distribution: `--dist load` (per-TEST round-robin), NOT `--dist loadscope`.
|
|
116
|
+
# loadscope pins an entire MODULE's tests to ONE worker — and crossref-local's heavy
|
|
117
|
+
# suites are big SINGLE modules (e.g. tests/integration/test_all_plotters_*.py
|
|
118
|
+
# parametrize one test over all 47 plotters, ~28 s each). loadscope therefore
|
|
119
|
+
# ran all ~50+ cases of such a module SERIALLY on one worker (~25 min) while the
|
|
120
|
+
# rest idled. There are NO module/session/class-scoped fixtures in those heavy
|
|
121
|
+
# modules and the root conftest's autouse `_close_figures` resets pyplot state
|
|
122
|
+
# after EVERY test, so loadscope's "same worker per module" buys nothing here —
|
|
123
|
+
# it only serialized. `load` spreads the parametrized cases across ALL workers.
|
|
124
|
+
#
|
|
125
|
+
# nice -n 19 ionice -c 3: run at the lowest CPU + idle I/O priority so that if
|
|
126
|
+
# this node is ever shared with interactive/dev work, CI grabs otherwise-idle
|
|
127
|
+
# cores but YIELDS the CPU and disk to any higher-priority process — "all
|
|
128
|
+
# available CPUs, with priority handling". exec replaces the shell with nice,
|
|
129
|
+
# which execs ionice, which execs python (still PID-traceable, signals/exit
|
|
130
|
+
# code propagate to the runner step).
|
|
131
|
+
exec nice -n 19 ionice -c 3 \
|
|
132
|
+
python -m pytest tests/ -n "$WORKERS" --dist load -q \
|
|
133
|
+
--cov=src/crossref_local --cov-report=xml --cov-report=term \
|
|
134
|
+
-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
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
name: release
|
|
2
|
+
|
|
3
|
+
# Tag-driven release pipeline — SELF-HOSTED (Spartan CPU) via the scitex-ci SIF.
|
|
4
|
+
#
|
|
5
|
+
# The intended operator flow is:
|
|
6
|
+
#
|
|
7
|
+
# git tag vX.Y.Z && git push origin vX.Y.Z
|
|
8
|
+
#
|
|
9
|
+
# Everything else fires automatically:
|
|
10
|
+
#
|
|
11
|
+
# 1. test — matrix pytest INSIDE the SIF. Must pass or the pipeline
|
|
12
|
+
# halts; nothing is published until tests are green on the
|
|
13
|
+
# tagged commit.
|
|
14
|
+
# 2. build — wheel + sdist built INSIDE the SIF, uploaded as artifact.
|
|
15
|
+
# 3. publish — PyPI via MANUAL OIDC trusted publishing INSIDE the SIF.
|
|
16
|
+
# 4. release — GitHub Release with CHANGELOG notes + artifacts.
|
|
17
|
+
#
|
|
18
|
+
# develop→main promotion is a DELIBERATE, separate PR (operator policy);
|
|
19
|
+
# this pipeline never auto-syncs main.
|
|
20
|
+
#
|
|
21
|
+
# WHY the SIF (operator standardization 2026-06-18, fleet canary 2026-06-21):
|
|
22
|
+
# the Spartan compute runners have NO Python on the bare node, so the old
|
|
23
|
+
# `actions/setup-python@v5` step failed at init ("version 3.x not found for
|
|
24
|
+
# this OS"). The working pytest-matrix CI runs INSIDE the pre-built, reused
|
|
25
|
+
# scitex-ci SIF (`apptainer exec ci-cpu.sif`), which bakes python 3.11/3.12/
|
|
26
|
+
# 3.13 + pip + uv + fd at /opt/venv-<ver>. This release pipeline mirrors that:
|
|
27
|
+
# - test/build run `bash .github/ci/exec-in-sif.sh <inner>.sh <pyver>`.
|
|
28
|
+
# - publish CANNOT use pypa/gh-action-pypi-publish (a Docker action; the
|
|
29
|
+
# compute nodes have no Docker), so it does MANUAL OIDC trusted publishing
|
|
30
|
+
# inside the SIF (.github/ci/publish-in-sif.sh): GitHub OIDC JWT →
|
|
31
|
+
# PyPI mint-token → twine upload. Trust config on PyPI is unchanged.
|
|
32
|
+
# - actions/checkout, upload/download-artifact, codecov are JS actions and
|
|
33
|
+
# run fine on the self-hosted runner.
|
|
34
|
+
# fail-loud: a missing SIF/shim/interpreter is a HARD error, never a
|
|
35
|
+
# bare-runner fallback.
|
|
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).
|
|
39
|
+
#
|
|
40
|
+
# Manual re-run: the workflow also accepts a `version` input via
|
|
41
|
+
# workflow_dispatch so you can re-publish without re-tagging.
|
|
42
|
+
|
|
43
|
+
on:
|
|
44
|
+
push:
|
|
45
|
+
tags: ['v*']
|
|
46
|
+
workflow_dispatch:
|
|
47
|
+
inputs:
|
|
48
|
+
version:
|
|
49
|
+
description: 'Tag to publish (e.g. v0.10.19) — must already exist on the repo'
|
|
50
|
+
required: true
|
|
51
|
+
type: string
|
|
52
|
+
|
|
53
|
+
env:
|
|
54
|
+
SCITEX_CI_APPTAINER: ${{ vars.SCITEX_CI_APPTAINER }}
|
|
55
|
+
SCITEX_CI_SIF: ${{ vars.SCITEX_CI_SIF }}
|
|
56
|
+
|
|
57
|
+
jobs:
|
|
58
|
+
test:
|
|
59
|
+
runs-on: ${{ fromJSON(vars.CI_RUNS_ON || '["self-hosted","Linux","X64","scitex-ci"]') }}
|
|
60
|
+
strategy:
|
|
61
|
+
fail-fast: false
|
|
62
|
+
matrix:
|
|
63
|
+
python-version: ["3.11", "3.12", "3.13"]
|
|
64
|
+
steps:
|
|
65
|
+
- name: Resolve version
|
|
66
|
+
id: ver
|
|
67
|
+
run: |
|
|
68
|
+
if [ "${{ github.event_name }}" = "push" ]; then
|
|
69
|
+
v="${GITHUB_REF#refs/tags/}"
|
|
70
|
+
else
|
|
71
|
+
v="${{ inputs.version }}"
|
|
72
|
+
fi
|
|
73
|
+
echo "version=$v" >> "$GITHUB_OUTPUT"
|
|
74
|
+
- uses: actions/checkout@v4
|
|
75
|
+
with:
|
|
76
|
+
ref: ${{ steps.ver.outputs.version }}
|
|
77
|
+
fetch-depth: 0
|
|
78
|
+
# SIF-based self-hosted test run — mirrors pytest-matrix exactly. No
|
|
79
|
+
# setup-python (the bare Spartan node has no Python tool cache; that step
|
|
80
|
+
# failed "version not found for this OS"); no apt fd-install (fd is baked
|
|
81
|
+
# in the SIF). exec-in-sif.sh apptainer-execs the reused ci-cpu.sif and
|
|
82
|
+
# run-in-sif.sh layers THIS (tagged) checkout + [all,dev] into a writable
|
|
83
|
+
# target, then runs pytest. fail-loud on a missing SIF/shim.
|
|
84
|
+
- name: Run tests in the reused CI SIF (apptainer exec — deps layered, not on the bare runner)
|
|
85
|
+
run: bash .github/ci/exec-in-sif.sh run-in-sif.sh ${{ matrix.python-version }}
|
|
86
|
+
|
|
87
|
+
build:
|
|
88
|
+
needs: test
|
|
89
|
+
runs-on: ${{ fromJSON(vars.CI_RUNS_ON || '["self-hosted","Linux","X64","scitex-ci"]') }}
|
|
90
|
+
outputs:
|
|
91
|
+
version: ${{ steps.ver.outputs.version }}
|
|
92
|
+
steps:
|
|
93
|
+
- name: Resolve version
|
|
94
|
+
id: ver
|
|
95
|
+
run: |
|
|
96
|
+
if [ "${{ github.event_name }}" = "push" ]; then
|
|
97
|
+
v="${GITHUB_REF#refs/tags/}"
|
|
98
|
+
else
|
|
99
|
+
v="${{ inputs.version }}"
|
|
100
|
+
fi
|
|
101
|
+
echo "version=$v" >> "$GITHUB_OUTPUT"
|
|
102
|
+
- uses: actions/checkout@v4
|
|
103
|
+
with:
|
|
104
|
+
ref: ${{ steps.ver.outputs.version }}
|
|
105
|
+
fetch-depth: 0
|
|
106
|
+
# Build INSIDE the SIF (no setup-python on the bare Spartan node).
|
|
107
|
+
# build-in-sif.sh installs the `build` frontend into a writable --target
|
|
108
|
+
# inside the SIF, then `python -m build` → dist/. fail-loud on empty dist.
|
|
109
|
+
- name: Build wheel + sdist in the CI SIF (apptainer exec)
|
|
110
|
+
run: bash .github/ci/exec-in-sif.sh build-in-sif.sh 3.12
|
|
111
|
+
# upload-artifact is a JS action — runs fine on the self-hosted runner.
|
|
112
|
+
- uses: actions/upload-artifact@v4
|
|
113
|
+
with:
|
|
114
|
+
name: dist
|
|
115
|
+
path: dist/
|
|
116
|
+
|
|
117
|
+
publish:
|
|
118
|
+
needs: build
|
|
119
|
+
runs-on: ${{ fromJSON(vars.CI_RUNS_ON || '["self-hosted","Linux","X64","scitex-ci"]') }}
|
|
120
|
+
environment:
|
|
121
|
+
name: pypi
|
|
122
|
+
url: https://pypi.org/p/crossref-local
|
|
123
|
+
# id-token: write is what populates ACTIONS_ID_TOKEN_REQUEST_{TOKEN,URL},
|
|
124
|
+
# which publish-in-sif.sh uses to mint the OIDC JWT. Keep it.
|
|
125
|
+
permissions:
|
|
126
|
+
id-token: write
|
|
127
|
+
steps:
|
|
128
|
+
# Need the repo checked out so .github/ci/exec-in-sif.sh +
|
|
129
|
+
# publish-in-sif.sh are on disk (the build job uploaded only dist/).
|
|
130
|
+
- uses: actions/checkout@v4
|
|
131
|
+
- uses: actions/download-artifact@v4
|
|
132
|
+
with:
|
|
133
|
+
name: dist
|
|
134
|
+
path: dist
|
|
135
|
+
# Manual OIDC trusted publishing INSIDE the SIF — pypa/gh-action-pypi-
|
|
136
|
+
# publish is a Docker action and the Spartan compute nodes have no Docker.
|
|
137
|
+
# publish-in-sif.sh: GitHub OIDC JWT (audience=pypi) → PyPI mint-token →
|
|
138
|
+
# twine upload dist/*. apptainer exec (no --cleanenv) passes the
|
|
139
|
+
# ACTIONS_ID_TOKEN_REQUEST_* env vars into the SIF. fail-loud at each step.
|
|
140
|
+
- name: Publish to PyPI via manual OIDC trusted publishing in the SIF
|
|
141
|
+
run: bash .github/ci/exec-in-sif.sh publish-in-sif.sh 3.12
|
|
142
|
+
|
|
143
|
+
release:
|
|
144
|
+
needs: [build, publish]
|
|
145
|
+
runs-on: ${{ fromJSON(vars.CI_RUNS_ON || '["self-hosted","Linux","X64","scitex-ci"]') }}
|
|
146
|
+
permissions:
|
|
147
|
+
contents: write
|
|
148
|
+
steps:
|
|
149
|
+
- uses: actions/checkout@v4
|
|
150
|
+
with:
|
|
151
|
+
ref: ${{ needs.build.outputs.version }}
|
|
152
|
+
- uses: actions/download-artifact@v4
|
|
153
|
+
with:
|
|
154
|
+
name: dist
|
|
155
|
+
path: dist
|
|
156
|
+
- name: Extract release notes from CHANGELOG.md
|
|
157
|
+
run: |
|
|
158
|
+
VERSION="${{ needs.build.outputs.version }}"
|
|
159
|
+
VERSION="${VERSION#v}"
|
|
160
|
+
awk -v v="$VERSION" '
|
|
161
|
+
$0 ~ "^## \\[" v "\\]" {p=1; next}
|
|
162
|
+
p && /^## \[/ {exit}
|
|
163
|
+
p
|
|
164
|
+
' CHANGELOG.md > release-notes.md || true
|
|
165
|
+
if [ ! -s release-notes.md ]; then
|
|
166
|
+
echo "Release v${VERSION}. See CHANGELOG.md for details." > release-notes.md
|
|
167
|
+
fi
|
|
168
|
+
- name: Create GitHub Release
|
|
169
|
+
env:
|
|
170
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
171
|
+
run: |
|
|
172
|
+
gh release create "${{ needs.build.outputs.version }}" \
|
|
173
|
+
--title "${{ needs.build.outputs.version }}" \
|
|
174
|
+
--notes-file release-notes.md \
|
|
175
|
+
dist/*
|