calkit-python 0.41.6__tar.gz → 0.41.7__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.
- {calkit_python-0.41.6 → calkit_python-0.41.7}/AGENTS.md +7 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/PKG-INFO +1 -1
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/cli/new.py +33 -31
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/cli/overleaf.py +12 -7
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/core.py +1 -0
- calkit_python-0.41.7/calkit/licenses.py +211 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/overleaf.py +215 -79
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/pipeline.py +13 -1
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/releases.py +129 -29
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/cli/test_new.py +111 -13
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/cli/test_overleaf.py +128 -4
- calkit_python-0.41.7/calkit/tests/test_licenses.py +105 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/test_releases.py +118 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/cli-reference.md +16 -16
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/overleaf.md +92 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/releases.md +21 -0
- calkit_python-0.41.6/calkit/licenses.py +0 -59
- {calkit_python-0.41.6 → calkit_python-0.41.7}/.claude-plugin/marketplace.json +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/.gitattributes +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/.gitignore +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/.pre-commit-config.yaml +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/.prettierignore +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/.python-version +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/.vscode/launch.json +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/.vscode/tasks.json +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/.yarnrc.yml +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/CITATION.cff +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/CODE_OF_CONDUCT.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/CONTRIBUTING.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/LICENSE +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/Makefile +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/README.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/agent-plugin/.claude-plugin/plugin.json +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/agent-plugin/skills/add-pipeline-stage/SKILL.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/agent-plugin/skills/conventions/SKILL.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/agent-plugin/skills/create-pipeline/SKILL.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/babel.config.js +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/__init__.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/__main__.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/calc.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/check.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/cli/__init__.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/cli/check.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/cli/cloud.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/cli/config.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/cli/core.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/cli/describe.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/cli/dev.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/cli/import_.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/cli/latex.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/cli/list.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/cli/main/__init__.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/cli/main/core.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/cli/main/xr.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/cli/notebooks.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/cli/office.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/cli/scheduler.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/cli/update.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/cloud.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/conda.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/config.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/datasets.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/dependencies.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/detect.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/docker.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/dvc/__init__.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/dvc/core.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/dvc/zip.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/environments.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/fs.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/git.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/github.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/gui.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/install.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/invenio.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/julia.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/jupyter.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/jupyterlab/__init__.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/jupyterlab/routes.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/labextension/package.json +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/labextension/schemas/calkit/package.json.orig +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/labextension/schemas/calkit/plugin.json +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/labextension/static/502.9a2c5772a15466e923ef.js +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/labextension/static/695.2c41003a452d43d2b358.js +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/labextension/static/867.a42a046aa5108f54f8fb.js +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/labextension/static/909.e3f9cc3408834a7fdcc3.js +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/labextension/static/946.050af2abf7845cfbdbd2.js +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/labextension/static/946.050af2abf7845cfbdbd2.js.LICENSE.txt +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/labextension/static/b2f1c3efe70cb539d121.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/labextension/static/remoteEntry.65469af996e7a96aa983.js +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/labextension/static/style.js +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/labextension/static/third-party-licenses.json +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/magics.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/matlab.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/models/__init__.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/models/core.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/models/io.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/models/iteration.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/models/pipeline.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/notebooks.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/office.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/ops.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/server.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/templates/__init__.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/templates/core.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/templates/latex/__init__.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/templates/latex/article/paper.tex +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/templates/latex/core.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/templates/latex/jfm/jfm.bst +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/templates/latex/jfm/jfm.cls +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/templates/latex/jfm/lineno-FLM.sty +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/templates/latex/jfm/paper.tex +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/templates/latex/jfm/upmath.sty +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/__init__.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/cli/__init__.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/cli/main/__init__.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/cli/main/test_core.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/cli/main/test_subprojects.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/cli/main/test_xr.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/cli/test_check.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/cli/test_cloud.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/cli/test_config.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/cli/test_import.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/cli/test_latex.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/cli/test_list.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/cli/test_notebooks.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/cli/test_scheduler.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/cli/test_update.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/dvc/__init__.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/dvc/test_core.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/dvc/test_zip.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/jupyterlab/__init__.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/jupyterlab/test_routes.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/models/__init__.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/models/test_iteration.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/models/test_pipeline.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/test_calc.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/test_check.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/test_cloud.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/test_conda.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/test_core.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/test_dependencies.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/test_detect.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/test_docker.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/test_environments.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/test_fs.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/test_git.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/test_install.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/test_invenio.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/test_julia.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/test_jupyter.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/test_magics.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/test_matlab.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/test_notebooks.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/test_pipeline.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/calkit/tests/test_templates.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/conftest.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/CNAME +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/ai-tools.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/apps.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/calculations.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/calkit-yaml.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/cloud-integration.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/datasets.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/dependencies.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/environments.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/examples.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/governance.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/help.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/hpc.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/img/c-to-the-k-white.svg +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/img/calkit-fragmentation-compendium.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/img/calkit-no-bg.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/img/connect-zenodo.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/img/jupyterlab/all-green.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/img/jupyterlab/collect-data-stale.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/img/jupyterlab/new-env.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/img/jupyterlab/new-notebook.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/img/jupyterlab/pipeline-badge.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/img/jupyterlab-params.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/img/plos-osi-code-2024-03.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/img/vscode-nb-params.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/index.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/installation.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/jupyterlab.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/local-server.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/notebooks.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/pipeline/index.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/pipeline/manual-steps.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/pipeline/running-and-logging.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/quickstart.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/references.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/reproducibility.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/subprojects.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/adding-latex-pub-docker.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/conda-envs.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/existing-project.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/first-project.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/github-actions.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/actions-repo-secrets.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/latex-codespaces/building-codespace.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/latex-codespaces/codespaces-secrets-2.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/latex-codespaces/editor-split.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/latex-codespaces/go-to-linked-code.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/latex-codespaces/issue-from-selection.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/latex-codespaces/new-project.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/latex-codespaces/new-pub-2.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/latex-codespaces/new-token.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/latex-codespaces/paper.tex.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/latex-codespaces/project-home-3.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/latex-codespaces/push.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/latex-codespaces/stage.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/office/anakin-excel.jpg +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/office/chart-more-rows.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/office/create-project.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/office/elsevier-research-data-guidelines.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/office/excel-chart.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/office/excel-data.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/office/insert-link-to-file.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/office/needs-clone.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/office/new-stage.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/office/phd-comics-version-control.webp +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/office/pipeline-out-of-date.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/office/status-more-rows.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/office/uncommitted-changes.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/office/untracked-data.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/office/updated-publication.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/office/word-to-pdf-stage-2.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/office/workflow-page.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/openfoam/clone.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/openfoam/create-project.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/openfoam/datasets-page.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/openfoam/figure-on-website-updated.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/openfoam/figure-on-website.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/openfoam/new-token.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/openfoam/reclone.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/openfoam/status-after-import-dataset.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/quick-actions.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/run-proc.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/vscode-slurm-notebook/create-calkit-env.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/vscode-slurm-notebook/create-inner-env.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/vscode-slurm-notebook/create-new-calkit-env.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/vscode-slurm-notebook/select-calkit-env.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/vscode-slurm-notebook/slurm-job-running.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/vscode-slurm-notebook/slurm-launch-options.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/img/vscode-slurm-notebook/starting-slurm-job.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/index.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/jupyterlab.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/latex-codespaces.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/matlab.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/notebook-pipeline.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/office.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/openfoam.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/procedures.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/tutorials/vscode-slurm-notebook.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/docs/version-control.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/flake.lock +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/flake.nix +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/install.json +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/jest.config.js +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/jupyter-config/server-config/calkit.json +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/mkdocs.yml +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/package.json +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/pyproject.toml +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/schema/plugin.json +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/scripts/generate-docs-references.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/scripts/install.ps1 +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/scripts/install.sh +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/scripts/make-calk9.sh +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/scripts/sync-docs.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/src/__tests__/useQueries.spec.ts +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/src/calkit-config.ts +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/src/cell-output-marker.ts +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/src/components/commit-dialog.tsx +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/src/components/environment-editor.tsx +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/src/components/notebook-registration.tsx +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/src/components/notebook-toolbar.tsx +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/src/components/pipeline-status-bar.tsx +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/src/components/project-info-editor.tsx +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/src/components/sidebar-settings.tsx +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/src/components/sidebar.tsx +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/src/components/stage-editor.tsx +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/src/feature-flags.ts +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/src/file-browser-menu.ts +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/src/hooks/__tests__/useQueries.test.tsx +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/src/hooks/useQueries.ts +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/src/icons.ts +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/src/index.ts +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/src/io-tracker.ts +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/src/pipeline-state.ts +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/src/queryClient.ts +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/src/request.ts +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/src/shims-mainmenu.d.ts +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/style/base.css +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/style/cell-output-marker.css +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/style/environment-editor.css +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/style/environment-selector.css +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/style/img/calkit-no-bg.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/style/index.css +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/style/index.js +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/style/notebook-toolbar.css +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/style/pipeline-status-bar.css +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/style/sidebar.css +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/test/dvc-md5-dir/osx-arm64.txt +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/test/nb-julia.ipynb +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/test/nb-params.ipynb +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/test/nb-subdir.ipynb +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/test/pipeline.ipynb +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/test/script.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/test/test-log.log +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/tsconfig.json +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/tsconfig.test.json +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/ui-tests/.gitignore +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/ui-tests/README.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/ui-tests/jupyter_server_test_config.py +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/ui-tests/package.json +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/ui-tests/playwright.config.js +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/ui-tests/tests/calkit.spec.ts +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/ui-tests/yarn.lock +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/uv.lock +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/vscode-ext/.gitignore +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/vscode-ext/.vscodeignore +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/vscode-ext/CHANGELOG.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/vscode-ext/LICENSE +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/vscode-ext/README.md +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/vscode-ext/images/calkit-no-bg.png +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/vscode-ext/package-lock.json +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/vscode-ext/package.json +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/vscode-ext/scripts/set-proposed-api.js +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/vscode-ext/src/environments.ts +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/vscode-ext/src/extension.ts +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/vscode-ext/src/notebooks.ts +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/vscode-ext/src/test/environments.test.ts +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/vscode-ext/src/test/kernel-selection.test.ts +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/vscode-ext/src/test/notebooks.test.ts +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/vscode-ext/src/types.ts +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/vscode-ext/tsconfig.json +0 -0
- {calkit_python-0.41.6 → calkit_python-0.41.7}/yarn.lock +0 -0
|
@@ -22,6 +22,11 @@ not introduce new type errors.
|
|
|
22
22
|
Wrap prose at natural breakpoints in phrases or punctuation to keep max
|
|
23
23
|
line length below 80 characters.
|
|
24
24
|
|
|
25
|
+
In the docs, MkDocs Material admonitions (`!!! note`, `!!! tip`, etc.) must be
|
|
26
|
+
preceded by a `<!-- prettier-ignore -->` comment. Otherwise Prettier reformats
|
|
27
|
+
the block and strips the 4-space indentation of the admonition body, which
|
|
28
|
+
breaks rendering.
|
|
29
|
+
|
|
25
30
|
Agents should never make commits to Git.
|
|
26
31
|
|
|
27
32
|
Prefer tests that include multiple scenarios to comprehensively test
|
|
@@ -36,3 +41,5 @@ Functions should usually be used ~3 times before abstracting.
|
|
|
36
41
|
Otherwise, split up long ones into logical sections with comments.
|
|
37
42
|
The only exception here is if splitting up a function makes it easier to
|
|
38
43
|
write meaningful unit tests.
|
|
44
|
+
If a function is only used inside one other function, nest it inside the
|
|
45
|
+
caller at the top.
|
|
@@ -3124,18 +3124,7 @@ def new_release(
|
|
|
3124
3124
|
record_id = None
|
|
3125
3125
|
# Detect project license IDs if necessary
|
|
3126
3126
|
if not license_ids:
|
|
3127
|
-
license_file =
|
|
3128
|
-
license_txt = None
|
|
3129
|
-
license_candidates = [
|
|
3130
|
-
"LICENSE",
|
|
3131
|
-
"LICENSE.rst",
|
|
3132
|
-
"LICENSE.txt",
|
|
3133
|
-
"LICENSE.md",
|
|
3134
|
-
]
|
|
3135
|
-
for lc in license_candidates:
|
|
3136
|
-
if os.path.isfile(lc):
|
|
3137
|
-
license_file = lc
|
|
3138
|
-
break
|
|
3127
|
+
license_file = calkit.licenses.find_license_file()
|
|
3139
3128
|
if license_file is None:
|
|
3140
3129
|
typer.echo("No project license found.")
|
|
3141
3130
|
use_default_license = typer.confirm(
|
|
@@ -3155,15 +3144,18 @@ def new_release(
|
|
|
3155
3144
|
f.write(license_txt)
|
|
3156
3145
|
repo.git.add("LICENSE")
|
|
3157
3146
|
license_ids = ["mit", "cc-by-4.0"]
|
|
3158
|
-
|
|
3147
|
+
else:
|
|
3148
|
+
typer.echo(f"Detecting license(s) from {license_file}")
|
|
3159
3149
|
with open(license_file) as f:
|
|
3160
3150
|
license_txt = f.read()
|
|
3161
|
-
|
|
3162
|
-
if
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3151
|
+
license_ids = calkit.licenses.detect_license_ids(license_txt)
|
|
3152
|
+
if license_ids:
|
|
3153
|
+
typer.echo(f"Detected license(s): {', '.join(license_ids)}")
|
|
3154
|
+
else:
|
|
3155
|
+
warn(
|
|
3156
|
+
f"Could not detect any known license in {license_file}; "
|
|
3157
|
+
"specify one explicitly with --license"
|
|
3158
|
+
)
|
|
3167
3159
|
if not license_ids:
|
|
3168
3160
|
raise_error("Project has no license(s) defined")
|
|
3169
3161
|
invenio_metadata = dict(
|
|
@@ -3189,9 +3181,13 @@ def new_release(
|
|
|
3189
3181
|
)
|
|
3190
3182
|
invenio_metadata["related_identifiers"] = related_identifiers
|
|
3191
3183
|
# TODO: Add calkit.io URL if applicable?
|
|
3192
|
-
# Determine creators from authors
|
|
3193
|
-
|
|
3194
|
-
|
|
3184
|
+
# Determine creators from authors. CITATION.cff is the single source of
|
|
3185
|
+
# truth for authors, so read them from there; if none are defined yet,
|
|
3186
|
+
# prompt for them and persist them to CITATION.cff.
|
|
3187
|
+
authors = calkit.releases.read_authors_from_cff()
|
|
3188
|
+
if authors:
|
|
3189
|
+
typer.echo(f"Read {len(authors)} author(s) from CITATION.cff")
|
|
3190
|
+
else:
|
|
3195
3191
|
warn("No authors defined for the project")
|
|
3196
3192
|
still_entering_authors = True
|
|
3197
3193
|
n = 0
|
|
@@ -3218,24 +3214,27 @@ def new_release(
|
|
|
3218
3214
|
still_entering_authors = typer.confirm(
|
|
3219
3215
|
"Are there more authors to enter?", default=True
|
|
3220
3216
|
)
|
|
3221
|
-
|
|
3222
|
-
# Write authors out to calkit.yaml
|
|
3217
|
+
# Write authors out to CITATION.cff
|
|
3223
3218
|
if not dry_run:
|
|
3224
|
-
typer.echo("
|
|
3225
|
-
|
|
3226
|
-
|
|
3219
|
+
typer.echo("Writing authors to CITATION.cff")
|
|
3220
|
+
calkit.releases.set_cff_authors(authors, ck_info=ck_info)
|
|
3221
|
+
repo.git.add("CITATION.cff")
|
|
3227
3222
|
invenio_creators = []
|
|
3228
3223
|
for author in authors:
|
|
3229
3224
|
orcid = author.get("orcid")
|
|
3230
|
-
creator = {
|
|
3225
|
+
creator: dict = {
|
|
3231
3226
|
"person_or_org": {
|
|
3232
3227
|
"type": "personal",
|
|
3233
3228
|
"given_name": author["first_name"],
|
|
3234
3229
|
"family_name": author["last_name"],
|
|
3235
3230
|
"identifiers": [{"identifier": orcid}] if orcid else [],
|
|
3236
3231
|
},
|
|
3237
|
-
"affiliations": [{"name": author["affiliation"]}],
|
|
3238
3232
|
}
|
|
3233
|
+
# Affiliation is optional (e.g., authors read from CITATION.cff may
|
|
3234
|
+
# not specify one)
|
|
3235
|
+
affiliation = author.get("affiliation")
|
|
3236
|
+
if affiliation:
|
|
3237
|
+
creator["affiliations"] = [{"name": affiliation}]
|
|
3239
3238
|
invenio_creators.append(creator)
|
|
3240
3239
|
invenio_metadata["creators"] = invenio_creators # type: ignore
|
|
3241
3240
|
# Set InvenioRDM resource_type based on release_type and artifact kind
|
|
@@ -3423,10 +3422,13 @@ def new_release(
|
|
|
3423
3422
|
)
|
|
3424
3423
|
releases[name] = release
|
|
3425
3424
|
ck_info["releases"] = releases
|
|
3426
|
-
# Create CITATION.cff file
|
|
3425
|
+
# Create/update CITATION.cff file, preserving existing authors
|
|
3427
3426
|
if release_type == "project":
|
|
3428
3427
|
cff = calkit.releases.create_citation_cff(
|
|
3429
|
-
ck_info=ck_info,
|
|
3428
|
+
ck_info=ck_info,
|
|
3429
|
+
release_name=name,
|
|
3430
|
+
release_date=release_date,
|
|
3431
|
+
authors=authors,
|
|
3430
3432
|
)
|
|
3431
3433
|
if dry_run:
|
|
3432
3434
|
typer.echo(f"Would write CITATION.cff:\n{cff}")
|
|
@@ -12,9 +12,9 @@ import typer
|
|
|
12
12
|
from typing_extensions import Annotated
|
|
13
13
|
|
|
14
14
|
import calkit
|
|
15
|
-
from calkit.cli import raise_error, warn
|
|
15
|
+
from calkit.cli import AliasGroup, raise_error, warn
|
|
16
16
|
|
|
17
|
-
overleaf_app = typer.Typer(no_args_is_help=True)
|
|
17
|
+
overleaf_app = typer.Typer(cls=AliasGroup, no_args_is_help=True)
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
def _extract_title_from_tex(tex_file_path: str) -> str | None:
|
|
@@ -369,8 +369,11 @@ def sync(
|
|
|
369
369
|
typer.Option(
|
|
370
370
|
"--no-commit",
|
|
371
371
|
help=(
|
|
372
|
-
"Do not
|
|
373
|
-
"Changes
|
|
372
|
+
"Do not create a commit in the project repo for this sync. "
|
|
373
|
+
"Changes pulled from Overleaf are still applied, but are "
|
|
374
|
+
"left staged so you can review or commit them yourself. "
|
|
375
|
+
"Changes are always committed and pushed to Overleaf "
|
|
376
|
+
"regardless."
|
|
374
377
|
),
|
|
375
378
|
),
|
|
376
379
|
] = False,
|
|
@@ -378,6 +381,7 @@ def sync(
|
|
|
378
381
|
bool,
|
|
379
382
|
typer.Option(
|
|
380
383
|
"--auto-commit",
|
|
384
|
+
"-a",
|
|
381
385
|
help=(
|
|
382
386
|
"Automatically commit changes to the project repo if a synced "
|
|
383
387
|
"folder has changes."
|
|
@@ -490,8 +494,9 @@ def sync(
|
|
|
490
494
|
)
|
|
491
495
|
else:
|
|
492
496
|
raise_error(
|
|
493
|
-
f"Uncommitted changes found in {wdir}
|
|
494
|
-
"
|
|
497
|
+
f"Uncommitted changes found in {wdir}. "
|
|
498
|
+
"Commit or stash them before syncing with Overleaf, "
|
|
499
|
+
"or use --auto-commit/-a to automatically commit them."
|
|
495
500
|
)
|
|
496
501
|
# Ensure we've cloned the Overleaf project
|
|
497
502
|
overleaf_project_dir = os.path.join(
|
|
@@ -585,7 +590,7 @@ def compare_folders_recursively(
|
|
|
585
590
|
return res
|
|
586
591
|
|
|
587
592
|
|
|
588
|
-
@overleaf_app.command(name="status")
|
|
593
|
+
@overleaf_app.command(name="status|st")
|
|
589
594
|
def get_status(
|
|
590
595
|
paths: Annotated[
|
|
591
596
|
list[str] | None,
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
"""Functionality for working with licenses.
|
|
2
|
+
|
|
3
|
+
Calkit projects will often include code, data, text, and other content
|
|
4
|
+
and artifacts that may each have their own license.
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
from __future__ import annotations
|
|
8
|
+
|
|
9
|
+
import os
|
|
10
|
+
import re
|
|
11
|
+
|
|
12
|
+
# A list of (SPDX license ID, required substring groups) used to detect
|
|
13
|
+
# licenses from the text of a license file.
|
|
14
|
+
# Each entry maps an SPDX ID to a list of "all-of" groups; the license
|
|
15
|
+
# matches if *every* group has at least one of its substrings present in the
|
|
16
|
+
# (lowercased, whitespace-normalized) license text.
|
|
17
|
+
# This is intentionally tolerant so that licenses written by hand, generated
|
|
18
|
+
# by GitHub, or produced by Calkit's own templates are all detected.
|
|
19
|
+
# A single license file may contain more than one license (e.g., Calkit's
|
|
20
|
+
# default dual MIT/CC-BY-4.0 license), so all matching IDs are returned.
|
|
21
|
+
_LICENSE_MARKERS: list[tuple[str, list[list[str]]]] = [
|
|
22
|
+
(
|
|
23
|
+
"mit",
|
|
24
|
+
[
|
|
25
|
+
[
|
|
26
|
+
"mit license",
|
|
27
|
+
"permission is hereby granted, free of charge, to any "
|
|
28
|
+
"person obtaining a copy",
|
|
29
|
+
]
|
|
30
|
+
],
|
|
31
|
+
),
|
|
32
|
+
(
|
|
33
|
+
"apache-2.0",
|
|
34
|
+
[["apache license"], ["version 2.0", "version 2,"]],
|
|
35
|
+
),
|
|
36
|
+
(
|
|
37
|
+
"bsd-3-clause",
|
|
38
|
+
[
|
|
39
|
+
["redistribution and use in source and binary forms"],
|
|
40
|
+
["neither the name of"],
|
|
41
|
+
],
|
|
42
|
+
),
|
|
43
|
+
(
|
|
44
|
+
"bsd-2-clause",
|
|
45
|
+
[
|
|
46
|
+
["redistribution and use in source and binary forms"],
|
|
47
|
+
],
|
|
48
|
+
),
|
|
49
|
+
(
|
|
50
|
+
"gpl-3.0",
|
|
51
|
+
[["gnu general public license"], ["version 3"]],
|
|
52
|
+
),
|
|
53
|
+
(
|
|
54
|
+
"gpl-2.0",
|
|
55
|
+
[["gnu general public license"], ["version 2"]],
|
|
56
|
+
),
|
|
57
|
+
(
|
|
58
|
+
"lgpl-3.0",
|
|
59
|
+
[["gnu lesser general public license"], ["version 3"]],
|
|
60
|
+
),
|
|
61
|
+
(
|
|
62
|
+
"agpl-3.0",
|
|
63
|
+
[["gnu affero general public license"], ["version 3"]],
|
|
64
|
+
),
|
|
65
|
+
(
|
|
66
|
+
"mpl-2.0",
|
|
67
|
+
[["mozilla public license"], ["version 2.0", "version 2,"]],
|
|
68
|
+
),
|
|
69
|
+
(
|
|
70
|
+
"cc-by-4.0",
|
|
71
|
+
[
|
|
72
|
+
[
|
|
73
|
+
"creative commons attribution 4.0",
|
|
74
|
+
"cc by 4.0",
|
|
75
|
+
"cc-by-4.0",
|
|
76
|
+
"creativecommons.org/licenses/by/4.0",
|
|
77
|
+
]
|
|
78
|
+
],
|
|
79
|
+
),
|
|
80
|
+
(
|
|
81
|
+
"cc0-1.0",
|
|
82
|
+
[
|
|
83
|
+
[
|
|
84
|
+
"cc0 1.0",
|
|
85
|
+
"creative commons zero",
|
|
86
|
+
"creativecommons.org/publicdomain/zero/1.0",
|
|
87
|
+
]
|
|
88
|
+
],
|
|
89
|
+
),
|
|
90
|
+
(
|
|
91
|
+
"isc",
|
|
92
|
+
[
|
|
93
|
+
[
|
|
94
|
+
"isc license",
|
|
95
|
+
"permission to use, copy, modify, and/or distribute this "
|
|
96
|
+
"software",
|
|
97
|
+
]
|
|
98
|
+
],
|
|
99
|
+
),
|
|
100
|
+
(
|
|
101
|
+
"unlicense",
|
|
102
|
+
[
|
|
103
|
+
[
|
|
104
|
+
"this is free and unencumbered software released into the "
|
|
105
|
+
"public domain"
|
|
106
|
+
]
|
|
107
|
+
],
|
|
108
|
+
),
|
|
109
|
+
]
|
|
110
|
+
|
|
111
|
+
# Candidate file names to search for a project license, in priority order.
|
|
112
|
+
LICENSE_FILE_CANDIDATES = [
|
|
113
|
+
"LICENSE",
|
|
114
|
+
"LICENSE.txt",
|
|
115
|
+
"LICENSE.md",
|
|
116
|
+
"LICENSE.rst",
|
|
117
|
+
"LICENCE",
|
|
118
|
+
"LICENCE.txt",
|
|
119
|
+
"LICENCE.md",
|
|
120
|
+
"COPYING",
|
|
121
|
+
]
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
def detect_license_ids(text: str) -> list[str]:
|
|
125
|
+
"""Detect SPDX license IDs present in license text.
|
|
126
|
+
|
|
127
|
+
The match is tolerant of whitespace and case, and a single body of text
|
|
128
|
+
can match multiple licenses (e.g., a dual-licensed project).
|
|
129
|
+
Returns the IDs in a deterministic order with duplicates removed.
|
|
130
|
+
"""
|
|
131
|
+
if not text:
|
|
132
|
+
return []
|
|
133
|
+
# Lowercase and collapse all runs of whitespace so that line wrapping in
|
|
134
|
+
# the source license file does not break multi-word substring matches
|
|
135
|
+
normalized = re.sub(r"\s+", " ", text.lower())
|
|
136
|
+
found: list[str] = []
|
|
137
|
+
for license_id, groups in _LICENSE_MARKERS:
|
|
138
|
+
# The "bsd-3-clause" and "bsd-2-clause" markers overlap; only report
|
|
139
|
+
# the 2-clause variant when the 3-clause variant did not match
|
|
140
|
+
if license_id == "bsd-2-clause" and "bsd-3-clause" in found:
|
|
141
|
+
continue
|
|
142
|
+
if all(
|
|
143
|
+
any(substring in normalized for substring in group)
|
|
144
|
+
for group in groups
|
|
145
|
+
):
|
|
146
|
+
found.append(license_id)
|
|
147
|
+
return found
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
def find_license_file(wdir: str | None = None) -> str | None:
|
|
151
|
+
"""Return the path to the project license file, if one exists."""
|
|
152
|
+
for candidate in LICENSE_FILE_CANDIDATES:
|
|
153
|
+
path = candidate if wdir is None else os.path.join(wdir, candidate)
|
|
154
|
+
if os.path.isfile(path):
|
|
155
|
+
return path
|
|
156
|
+
return None
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
LICENSE_TEMPLATE_DUAL = """
|
|
160
|
+
This project is licensed under a dual-license structure to appropriately cover
|
|
161
|
+
both the software code and the non-code content (data, text, figures, etc.).
|
|
162
|
+
|
|
163
|
+
Source code (MIT License)
|
|
164
|
+
|
|
165
|
+
All source code contained within this repository, including but not limited to
|
|
166
|
+
files with the extensions .js, .py, .html, .css, .ts, .jsx, .tsx, shell
|
|
167
|
+
scripts, build configurations, and their related files, is licensed under
|
|
168
|
+
the MIT License.
|
|
169
|
+
|
|
170
|
+
The MIT License (MIT)
|
|
171
|
+
|
|
172
|
+
Copyright (c) {year} {copyright_holder}
|
|
173
|
+
|
|
174
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
175
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
176
|
+
in the Software without restriction, including without limitation the rights
|
|
177
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
178
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
179
|
+
furnished to do so, subject to the following conditions:
|
|
180
|
+
|
|
181
|
+
The above copyright notice and this permission notice shall be included in all
|
|
182
|
+
copies or substantial portions of the Software.
|
|
183
|
+
|
|
184
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
185
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
186
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
187
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
188
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
189
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
190
|
+
SOFTWARE.
|
|
191
|
+
|
|
192
|
+
Content, data, and documentation (CC BY 4.0)
|
|
193
|
+
|
|
194
|
+
All non-code assets, including but not limited to prose, documentation, data,
|
|
195
|
+
figures, images, designs, and text written in Markdown or similar formats
|
|
196
|
+
(e.g., files in a docs/ directory, this LICENSE file itself, or .txt files
|
|
197
|
+
containing prose or data), are licensed under the Creative Commons Attribution
|
|
198
|
+
4.0 International Public License (CC BY 4.0).
|
|
199
|
+
|
|
200
|
+
To view a copy of this license, visit:
|
|
201
|
+
|
|
202
|
+
CC BY 4.0 Deed (summary):
|
|
203
|
+
https://creativecommons.org/licenses/by/4.0/
|
|
204
|
+
|
|
205
|
+
CC BY 4.0 Legal Code (full license):
|
|
206
|
+
https://creativecommons.org/licenses/by/4.0/legalcode
|
|
207
|
+
|
|
208
|
+
This license requires you to give appropriate credit, provide a link to the
|
|
209
|
+
license, and indicate if changes were made. You may do so in any reasonable
|
|
210
|
+
manner, but not in any way that suggests the licensor endorses you or your use.
|
|
211
|
+
""".strip()
|