morphtree 2.1.0__tar.gz → 2.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {morphtree-2.1.0 → morphtree-2.2.0}/.github/ISSUE_TEMPLATE/bug_report.yml +50 -50
- morphtree-2.2.0/.github/workflows/ci.yml +123 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/.github/workflows/publish-pypi.yml +10 -10
- {morphtree-2.1.0 → morphtree-2.2.0}/.github/workflows/publish.yml +195 -195
- {morphtree-2.1.0 → morphtree-2.2.0}/.github/workflows/test.yml +1 -1
- morphtree-2.2.0/BENCHMARKS.md +234 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/CHANGELOG.md +160 -131
- {morphtree-2.1.0 → morphtree-2.2.0}/DEPENDENCIES.md +1 -1
- morphtree-2.2.0/PKG-INFO +153 -0
- morphtree-2.2.0/README.md +140 -0
- morphtree-2.2.0/RELEASE_NOTES.md +9 -0
- morphtree-2.2.0/ROADMAP.md +19 -0
- morphtree-2.2.0/SOURCE_MANIFEST.json +231 -0
- morphtree-2.2.0/benchmarks/P9_SCOPE.md +23 -0
- morphtree-2.2.0/benchmarks/README.md +27 -0
- morphtree-2.2.0/benchmarks/plot_direct_results.py +21 -0
- morphtree-2.2.0/benchmarks/plot_results.py +75 -0
- morphtree-2.2.0/benchmarks/protocol.json +1384 -0
- morphtree-2.2.0/benchmarks/results/README.md +61 -0
- morphtree-2.2.0/benchmarks/results/direct_exclusions_20261129.csv +90 -0
- morphtree-2.2.0/benchmarks/results/direct_first_places.svg +30 -0
- morphtree-2.2.0/benchmarks/results/direct_mean_rank.svg +30 -0
- morphtree-2.2.0/benchmarks/results/direct_no_optuna_20261129.csv +1489 -0
- morphtree-2.2.0/benchmarks/results/direct_no_optuna_20261129.json +559 -0
- morphtree-2.2.0/benchmarks/results/p9_prospective_ranks_20261129.csv +11 -0
- morphtree-2.2.0/benchmarks/results/p9_prospective_summary_20261129.json +231 -0
- morphtree-2.2.0/benchmarks/results/predictive_loss.png +0 -0
- morphtree-2.2.0/benchmarks/results/predictive_loss.svg +491 -0
- morphtree-2.2.0/benchmarks/results/preliminary_reference_20261127.csv +37 -0
- morphtree-2.2.0/benchmarks/results/preliminary_reference_20261127.json +11960 -0
- morphtree-2.2.0/benchmarks/results/private_commit.png +0 -0
- morphtree-2.2.0/benchmarks/results/private_commit.svg +495 -0
- morphtree-2.2.0/benchmarks/results/worker_wall_time.png +0 -0
- morphtree-2.2.0/benchmarks/results/worker_wall_time.svg +495 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/docs/API.md +176 -120
- morphtree-2.2.0/docs/ARCHITECTURE.md +91 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/docs/ARCHITECTURE_1_0.md +1 -1
- morphtree-2.2.0/docs/AUTONOMOUS_EXPORT.md +68 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/docs/COMPARISON.md +19 -17
- morphtree-2.2.0/docs/FINAL_RELEASE_RECONCILIATION_20261129.md +28 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/docs/INSTALLATION.md +111 -102
- morphtree-2.2.0/docs/MIGRATION.md +34 -0
- morphtree-2.2.0/docs/PACKAGE_QUALIFICATION_20261129.json +230 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/docs/PUBLIC_API_LIMITS.md +3 -2
- {morphtree-2.1.0 → morphtree-2.2.0}/docs/PYPI_PUBLISHING.md +13 -12
- morphtree-2.2.0/docs/PYPI_RUNTIME_REFERENCE.json +214 -0
- morphtree-2.2.0/docs/QUALIFICATION.md +150 -0
- morphtree-2.2.0/docs/RELEASE_STATUS.json +234 -0
- morphtree-2.2.0/docs/Relazione_MorphTree.txt +72 -0
- morphtree-2.2.0/docs/WINE_QUALIFICATION.json +61 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/examples/scalable_workflow.py +14 -1
- {morphtree-2.1.0 → morphtree-2.2.0}/pyproject.toml +34 -34
- morphtree-2.2.0/python/SOURCE_MANIFEST.json +142 -0
- morphtree-2.2.0/python/morphtree/LICENSE_EXPORT.txt +21 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/__init__.py +34 -28
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/facade.py +4 -3
- morphtree-2.2.0/python/morphtree/_experimental/manifest.json +373 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/api.py +24 -7
- morphtree-2.2.0/python/morphtree/api_compat.py +111 -0
- morphtree-2.2.0/python/morphtree/artifact_paths.py +16 -0
- morphtree-2.2.0/python/morphtree/atomic_export_fidelity.json +269 -0
- morphtree-2.2.0/python/morphtree/atomic_training_qualification.json +165 -0
- morphtree-2.2.0/python/morphtree/autonomous_export.py +359 -0
- morphtree-2.2.0/python/morphtree/capabilities.py +44 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/cli.py +30 -2
- morphtree-2.2.0/python/morphtree/composed_research.py +236 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/config.py +11 -3
- morphtree-2.2.0/python/morphtree/experimental_admission.py +209 -0
- morphtree-2.2.0/python/morphtree/experimental_bag.py +369 -0
- morphtree-2.2.0/python/morphtree/experimental_block_frontier.py +225 -0
- morphtree-2.2.0/python/morphtree/experimental_frontier.py +169 -0
- morphtree-2.2.0/python/morphtree/experimental_introspection.py +1242 -0
- morphtree-2.2.0/python/morphtree/experimental_opportunities.py +237 -0
- morphtree-2.2.0/python/morphtree/experimental_refit_equivalence.py +52 -0
- morphtree-2.2.0/python/morphtree/experimental_target_evidence.py +229 -0
- morphtree-2.2.0/python/morphtree/export_fidelity.py +72 -0
- morphtree-2.2.0/python/morphtree/family_contracts.py +258 -0
- morphtree-2.2.0/python/morphtree/family_training.py +28 -0
- morphtree-2.2.0/python/morphtree/frontier_training_qualification.json +281 -0
- morphtree-2.2.0/python/morphtree/frozen_template.py.txt +135 -0
- morphtree-2.2.0/python/morphtree/growth_program.py +595 -0
- morphtree-2.2.0/python/morphtree/legacy_export_primitives.json +13 -0
- morphtree-2.2.0/python/morphtree/logging_scope.py +23 -0
- morphtree-2.2.0/python/morphtree/operation_limits.py +9 -0
- morphtree-2.2.0/python/morphtree/ordinary_training_qualification.json +185 -0
- morphtree-2.2.0/python/morphtree/parametric_export.py +360 -0
- morphtree-2.2.0/python/morphtree/parametric_training_qualification.json +1 -0
- morphtree-2.2.0/python/morphtree/parent_recovery.py +83 -0
- morphtree-2.2.0/python/morphtree/partition_frontier_training_qualification.json +305 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/persistence.py +4 -1
- morphtree-2.2.0/python/morphtree/product_quality.py +423 -0
- morphtree-2.2.0/python/morphtree/program_schema.py +54 -0
- morphtree-2.2.0/python/morphtree/qualified_frontier_primitives.json +10 -0
- morphtree-2.2.0/python/morphtree/qualified_growth_primitives.json +10 -0
- morphtree-2.2.0/python/morphtree/qualified_partition_frontier_primitives.json +10 -0
- morphtree-2.2.0/python/morphtree/refit_safety.py +106 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/resource_plan.py +211 -170
- morphtree-2.2.0/python/morphtree/scalable.py +1678 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/scalable_checkpoint.py +41 -11
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/scalable_data.py +9 -2
- morphtree-2.2.0/python/morphtree/scalable_receipts.py +499 -0
- morphtree-2.2.0/python/morphtree/scalable_variants.py +262 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/sklearn_view.py +14 -9
- morphtree-2.2.0/python/morphtree/stop_observer.py +24 -0
- morphtree-2.2.0/python/morphtree/temporary_parents.py +91 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/training_fragment.py +26 -10
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/tree.py +3 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/tests/product/test_compatibility.py +7 -1
- {morphtree-2.1.0 → morphtree-2.2.0}/python/tests/product/test_scalable_product.py +13 -1
- morphtree-2.2.0/release/PUBLISHING.md +17 -0
- morphtree-2.2.0/release/README.md +9 -0
- morphtree-2.2.0/release/RELEASE_CHECKLIST.md +19 -0
- morphtree-2.2.0/release/VERSIONING.md +7 -0
- morphtree-2.2.0/research/README.md +12 -0
- morphtree-2.2.0/tests/test_oof_fold_contract.py +28 -0
- morphtree-2.2.0/tests/test_oof_preprocessing.py +178 -0
- morphtree-2.2.0/tests/test_parameter_family_export.py +66 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/tests/test_public_admission.py +13 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/tests/test_public_description.py +2 -2
- {morphtree-2.1.0 → morphtree-2.2.0}/tests/test_release_metadata.py +1 -1
- {morphtree-2.1.0 → morphtree-2.2.0}/tools/build_artifacts.py +27 -2
- {morphtree-2.1.0 → morphtree-2.2.0}/tools/check_installed.py +35 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/tools/check_repository.py +15 -6
- {morphtree-2.1.0 → morphtree-2.2.0}/tools/publish_pypi_reviewed.py +103 -103
- {morphtree-2.1.0 → morphtree-2.2.0}/tools/publish_reviewed.py +179 -179
- {morphtree-2.1.0 → morphtree-2.2.0}/tools/tests/test_publishing.py +31 -20
- {morphtree-2.1.0 → morphtree-2.2.0}/tools/tests/test_pypi_publication.py +10 -10
- morphtree-2.2.0/tools/tests/test_sdist_source.py +26 -0
- morphtree-2.1.0/BENCHMARKS.md +0 -17
- morphtree-2.1.0/PKG-INFO +0 -212
- morphtree-2.1.0/PUBLISHING.md +0 -152
- morphtree-2.1.0/README.md +0 -199
- morphtree-2.1.0/RELEASE_CHECKLIST.md +0 -25
- morphtree-2.1.0/ROADMAP.md +0 -7
- morphtree-2.1.0/SOURCE_MANIFEST.json +0 -152
- morphtree-2.1.0/VERSIONING.md +0 -21
- morphtree-2.1.0/docs/ARCHITECTURE.md +0 -67
- morphtree-2.1.0/docs/LOCAL_HANDOFF.md +0 -35
- morphtree-2.1.0/docs/MIGRATION.md +0 -16
- morphtree-2.1.0/docs/QUALIFICATION.md +0 -136
- morphtree-2.1.0/docs/README_REVIEW.md +0 -57
- morphtree-2.1.0/docs/RELEASE_STATUS.json +0 -51
- morphtree-2.1.0/docs/Relazione_MorphTree.txt +0 -1079
- morphtree-2.1.0/python/SOURCE_MANIFEST.json +0 -87
- morphtree-2.1.0/python/morphtree/_experimental/manifest.json +0 -203
- morphtree-2.1.0/python/morphtree/api_compat.py +0 -65
- morphtree-2.1.0/python/morphtree/scalable.py +0 -781
- morphtree-2.1.0/python/morphtree/scalable_receipts.py +0 -92
- morphtree-2.1.0/python/morphtree/scalable_variants.py +0 -133
- morphtree-2.1.0/research/README.md +0 -1
- {morphtree-2.1.0 → morphtree-2.2.0}/.gitattributes +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/.gitignore +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/AGENTS.md +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/CODE_OF_CONDUCT.md +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/CONTRIBUTING.md +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/LICENSE +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/SECURITY.md +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/docs/API_REFERENCE_1_0.md +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/docs/CAPACITY.md +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/docs/LINUX_WHEEL_AUDIT.json +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/docs/NATIVE_MEASUREMENTS.json +0 -0
- /morphtree-2.1.0/docs/PYPI_RUNTIME_REFERENCE.json → /morphtree-2.2.0/docs/PYPI_RUNTIME_REFERENCE_210_ARCHIVE.json +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/docs/RC_TRAINING_SUMMARY.json +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/docs/TRAINING_SUMMARY210.json +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/examples/binary.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/examples/capacity8.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/examples/minimal.ipynb +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/examples/multiclass.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/examples/regression.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/examples/scalable_notebook.ipynb +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/hatch_build.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/__main__.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/__init__.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/admission.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/base.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/component_cache_v2.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/evolution_report.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/execution_v2.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/integrated.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/learning.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/numeric_fixture.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/parameter_contract.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/postfit.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/preprocessing.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/processes.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/producer.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/product.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/product_cli.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/roundtrip_v3.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/runtime_io.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/sampling.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/support.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/target.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/training.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_experimental/worker.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_installed.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_native/__init__.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_native/buffers.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_native/loader.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_native/manifest.json +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_native/runtime.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_native/src/histogram.c +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/_native/src/traversal.c +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/backend.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/booster.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/control.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/data.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/diagnostics.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/estimators.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/examples.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/exporting.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/legacy_artifacts.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/metrics.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/model.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/mutations.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/native_lab_backend.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/numpy_backend.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/optuna_tuner.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/prediction_output.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/prepared_bins.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/public.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/scalable_backend.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/scalable_target.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/source_markers.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/species.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/temporary.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/morphtree/tuning.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/tests/product/test_objective_math.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/python/tests/product/test_split_kernel.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/tests/test_integrated_native.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/tests/test_native_pinning.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/tests/test_prediction_arrays.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/tests/test_threads.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/tools/audit_linux_wheel.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/tools/build_native.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/tools/check_distribution.py +0 -0
- {morphtree-2.1.0 → morphtree-2.2.0}/tools/write_build_provenance.py +0 -0
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
name: Bug report
|
|
2
|
-
description: Report a reproducible MorphTree issue.
|
|
3
|
-
title: "[Bug]: "
|
|
4
|
-
body:
|
|
5
|
-
- type: markdown
|
|
6
|
-
attributes:
|
|
7
|
-
value: >-
|
|
8
|
-
Use invented or public data only. Remove credentials, usernames and
|
|
9
|
-
private file paths from tracebacks. Report security issues privately
|
|
10
|
-
using the guidance in SECURITY.md rather than a public issue.
|
|
11
|
-
- type: input
|
|
12
|
-
id: version
|
|
13
|
-
attributes:
|
|
14
|
-
label: MorphTree version
|
|
15
|
-
placeholder: "2.
|
|
16
|
-
validations:
|
|
17
|
-
required: true
|
|
18
|
-
- type: textarea
|
|
19
|
-
id: environment
|
|
20
|
-
attributes:
|
|
21
|
-
label: Environment
|
|
22
|
-
description: Python version, Windows/Linux variant, architecture, and installation type (wheel or sdist). No local identifiers.
|
|
23
|
-
validations:
|
|
24
|
-
required: true
|
|
25
|
-
- type: textarea
|
|
26
|
-
id: reproduction
|
|
27
|
-
attributes:
|
|
28
|
-
label: Minimal synthetic reproduction
|
|
29
|
-
description: Include imports, sample rows, labels, random_state and estimator settings. Keep it small; do not upload private models.
|
|
30
|
-
validations:
|
|
31
|
-
required: true
|
|
32
|
-
- type: textarea
|
|
33
|
-
id: traceback
|
|
34
|
-
attributes:
|
|
35
|
-
label: Error or diagnostic output (redacted)
|
|
36
|
-
description: Include a traceback if there is one, or write "No exception".
|
|
37
|
-
validations:
|
|
38
|
-
required: true
|
|
39
|
-
- type: textarea
|
|
40
|
-
id: expected
|
|
41
|
-
attributes:
|
|
42
|
-
label: Expected behavior
|
|
43
|
-
validations:
|
|
44
|
-
required: true
|
|
45
|
-
- type: textarea
|
|
46
|
-
id: actual
|
|
47
|
-
attributes:
|
|
48
|
-
label: Actual behavior
|
|
49
|
-
validations:
|
|
50
|
-
required: true
|
|
1
|
+
name: Bug report
|
|
2
|
+
description: Report a reproducible MorphTree issue.
|
|
3
|
+
title: "[Bug]: "
|
|
4
|
+
body:
|
|
5
|
+
- type: markdown
|
|
6
|
+
attributes:
|
|
7
|
+
value: >-
|
|
8
|
+
Use invented or public data only. Remove credentials, usernames and
|
|
9
|
+
private file paths from tracebacks. Report security issues privately
|
|
10
|
+
using the guidance in SECURITY.md rather than a public issue.
|
|
11
|
+
- type: input
|
|
12
|
+
id: version
|
|
13
|
+
attributes:
|
|
14
|
+
label: MorphTree version
|
|
15
|
+
placeholder: "2.2.0"
|
|
16
|
+
validations:
|
|
17
|
+
required: true
|
|
18
|
+
- type: textarea
|
|
19
|
+
id: environment
|
|
20
|
+
attributes:
|
|
21
|
+
label: Environment
|
|
22
|
+
description: Python version, Windows/Linux variant, architecture, and installation type (wheel or sdist). No local identifiers.
|
|
23
|
+
validations:
|
|
24
|
+
required: true
|
|
25
|
+
- type: textarea
|
|
26
|
+
id: reproduction
|
|
27
|
+
attributes:
|
|
28
|
+
label: Minimal synthetic reproduction
|
|
29
|
+
description: Include imports, sample rows, labels, random_state and estimator settings. Keep it small; do not upload private models.
|
|
30
|
+
validations:
|
|
31
|
+
required: true
|
|
32
|
+
- type: textarea
|
|
33
|
+
id: traceback
|
|
34
|
+
attributes:
|
|
35
|
+
label: Error or diagnostic output (redacted)
|
|
36
|
+
description: Include a traceback if there is one, or write "No exception".
|
|
37
|
+
validations:
|
|
38
|
+
required: true
|
|
39
|
+
- type: textarea
|
|
40
|
+
id: expected
|
|
41
|
+
attributes:
|
|
42
|
+
label: Expected behavior
|
|
43
|
+
validations:
|
|
44
|
+
required: true
|
|
45
|
+
- type: textarea
|
|
46
|
+
id: actual
|
|
47
|
+
attributes:
|
|
48
|
+
label: Actual behavior
|
|
49
|
+
validations:
|
|
50
|
+
required: true
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main, "release/**"]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
|
|
13
|
+
concurrency:
|
|
14
|
+
group: ci-${{ github.workflow }}-${{ github.ref }}
|
|
15
|
+
cancel-in-progress: true
|
|
16
|
+
|
|
17
|
+
env:
|
|
18
|
+
PYTHONDONTWRITEBYTECODE: "1"
|
|
19
|
+
PYTHONUTF8: "1"
|
|
20
|
+
SOURCE_DATE_EPOCH: "1792022400"
|
|
21
|
+
PIP_NO_INPUT: "1"
|
|
22
|
+
|
|
23
|
+
jobs:
|
|
24
|
+
tests:
|
|
25
|
+
name: Build and zero-fit tests - ${{ matrix.os }} / Python ${{ matrix.python }}
|
|
26
|
+
runs-on: ${{ matrix.os }}
|
|
27
|
+
timeout-minutes: 35
|
|
28
|
+
strategy:
|
|
29
|
+
fail-fast: false
|
|
30
|
+
max-parallel: 2
|
|
31
|
+
matrix:
|
|
32
|
+
os: [ubuntu-24.04, windows-latest]
|
|
33
|
+
python: ["3.12", "3.13", "3.14"]
|
|
34
|
+
steps:
|
|
35
|
+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
|
36
|
+
with:
|
|
37
|
+
persist-credentials: false
|
|
38
|
+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
|
|
39
|
+
with:
|
|
40
|
+
python-version: ${{ matrix.python }}
|
|
41
|
+
- name: Verify exact source inventory
|
|
42
|
+
run: python -I -B tools/check_repository.py
|
|
43
|
+
- name: Install build and test tools
|
|
44
|
+
run: python -m pip --isolated install build==1.3.0 hatchling==1.27.0 twine==6.2.0 PyYAML==6.0.3
|
|
45
|
+
- name: Test release tooling without publication
|
|
46
|
+
run: python -I -B -m unittest discover -s tools/tests -v
|
|
47
|
+
- name: Install Linux wheel auditing dependencies
|
|
48
|
+
if: runner.os == 'Linux'
|
|
49
|
+
run: python -m pip --isolated install auditwheel==6.8.2 pyelftools==0.33 packaging==26.3 patchelf==0.19.1.0
|
|
50
|
+
- name: Build verified Windows wheel and sdist
|
|
51
|
+
if: runner.os == 'Windows'
|
|
52
|
+
run: python -I -B tools/build_artifacts.py
|
|
53
|
+
- name: Build and audit Linux wheel and sdist
|
|
54
|
+
if: runner.os == 'Linux'
|
|
55
|
+
run: python -I -B tools/build_artifacts.py --manylinux
|
|
56
|
+
- name: Verify wheel and sdist contain the current README
|
|
57
|
+
shell: python
|
|
58
|
+
run: |
|
|
59
|
+
import email.policy, tarfile, tomllib, zipfile
|
|
60
|
+
from email.parser import BytesParser
|
|
61
|
+
from pathlib import Path
|
|
62
|
+
|
|
63
|
+
def normalized(data):
|
|
64
|
+
return data.replace(b"\r\n", b"\n")
|
|
65
|
+
|
|
66
|
+
project = tomllib.loads(Path("pyproject.toml").read_text(encoding="utf-8"))["project"]
|
|
67
|
+
readme_bytes = Path("README.md").read_bytes()
|
|
68
|
+
wheels = list(Path("dist").glob("*.whl"))
|
|
69
|
+
sdists = list(Path("dist").glob("*.tar.gz"))
|
|
70
|
+
if len(wheels) != 1 or len(sdists) != 1:
|
|
71
|
+
raise RuntimeError("Expected exactly one wheel and one sdist")
|
|
72
|
+
|
|
73
|
+
with zipfile.ZipFile(wheels[0]) as archive:
|
|
74
|
+
names = [name for name in archive.namelist() if name.endswith(".dist-info/METADATA")]
|
|
75
|
+
if len(names) != 1:
|
|
76
|
+
raise RuntimeError("Expected exactly one wheel METADATA")
|
|
77
|
+
wheel_metadata = archive.read(names[0])
|
|
78
|
+
|
|
79
|
+
with tarfile.open(sdists[0], "r:gz") as archive:
|
|
80
|
+
prefix = f"{project['name']}-{project['version']}/"
|
|
81
|
+
info = archive.extractfile(prefix + "PKG-INFO")
|
|
82
|
+
source_readme = archive.extractfile(prefix + "README.md")
|
|
83
|
+
if info is None or source_readme is None or source_readme.read() != readme_bytes:
|
|
84
|
+
raise RuntimeError("Sdist README differs from source README")
|
|
85
|
+
sdist_metadata = info.read()
|
|
86
|
+
|
|
87
|
+
for label, raw in (("wheel", wheel_metadata), ("sdist", sdist_metadata)):
|
|
88
|
+
metadata = BytesParser(policy=email.policy.compat32).parsebytes(raw)
|
|
89
|
+
if metadata.get("Name") != project["name"] or metadata.get("Version") != project["version"]:
|
|
90
|
+
raise RuntimeError(f"{label}: distribution name/version mismatch")
|
|
91
|
+
if metadata.get("Description-Content-Type", "").split(";", 1)[0].strip().lower() != "text/markdown":
|
|
92
|
+
raise RuntimeError(f"{label}: Markdown description required")
|
|
93
|
+
if normalized(metadata.get_payload(decode=True) or b"") != normalized(readme_bytes):
|
|
94
|
+
raise RuntimeError(f"{label}: package description differs from current README")
|
|
95
|
+
print(f"PASS: {label} metadata matches current README")
|
|
96
|
+
- name: Verify distributions with Twine
|
|
97
|
+
shell: python
|
|
98
|
+
run: |
|
|
99
|
+
from pathlib import Path
|
|
100
|
+
import subprocess, sys
|
|
101
|
+
artifacts = sorted(Path('dist').glob('*.whl')) + sorted(Path('dist').glob('*.tar.gz'))
|
|
102
|
+
if len(artifacts) != 2:
|
|
103
|
+
raise RuntimeError('Expected one wheel and one sdist')
|
|
104
|
+
subprocess.run([sys.executable, '-I', '-B', '-m', 'twine', 'check', '--strict', *map(str, artifacts)], check=True)
|
|
105
|
+
- name: Install and test wheel and sdist in isolated environments (zero fit)
|
|
106
|
+
shell: python
|
|
107
|
+
run: |
|
|
108
|
+
import os, pathlib, subprocess, sys
|
|
109
|
+
root = pathlib.Path.cwd()
|
|
110
|
+
for artifact in sorted((root / 'dist').iterdir()):
|
|
111
|
+
kind = 'wheel' if artifact.suffix == '.whl' else 'sdist'
|
|
112
|
+
prefix = pathlib.Path(os.environ['RUNNER_TEMP']) / ('morphtree-ci-' + kind)
|
|
113
|
+
if prefix.exists():
|
|
114
|
+
raise RuntimeError('Environment already exists: ' + str(prefix))
|
|
115
|
+
def run(args):
|
|
116
|
+
subprocess.run(list(map(str, args)), check=True, timeout=240, cwd=os.environ['RUNNER_TEMP'])
|
|
117
|
+
run([sys.executable, '-I', '-B', '-m', 'venv', prefix])
|
|
118
|
+
python = prefix / ('Scripts/python.exe' if os.name == 'nt' else 'bin/python')
|
|
119
|
+
run([python, '-I', '-B', '-m', 'pip', '--isolated', 'install', artifact, 'numpy==2.5.4', 'pandas==3.1.1', 'scikit-learn==1.9.1'])
|
|
120
|
+
run([python, '-I', '-B', '-m', 'pip', 'check'])
|
|
121
|
+
run([python, '-I', '-B', root / 'tools/check_installed.py', '--ci-current-readme'])
|
|
122
|
+
- name: Recheck source inventory
|
|
123
|
+
run: python -I -B tools/check_repository.py
|
|
@@ -3,9 +3,9 @@ on:
|
|
|
3
3
|
workflow_dispatch:
|
|
4
4
|
inputs:
|
|
5
5
|
expected_version:
|
|
6
|
-
description: Approved version (2.
|
|
6
|
+
description: Approved version (2.2.0 only)
|
|
7
7
|
required: true
|
|
8
|
-
default: '2.
|
|
8
|
+
default: '2.2.0'
|
|
9
9
|
type: string
|
|
10
10
|
reviewed_commit:
|
|
11
11
|
description: Full SHA of this exact main-branch commit and its successful CI run
|
|
@@ -34,14 +34,14 @@ on:
|
|
|
34
34
|
default: false
|
|
35
35
|
type: boolean
|
|
36
36
|
approval:
|
|
37
|
-
description: For upload enter exactly PUBLISH morphtree 2.
|
|
37
|
+
description: For upload enter exactly PUBLISH morphtree 2.2.0 TO PYPI
|
|
38
38
|
required: false
|
|
39
39
|
default: ''
|
|
40
40
|
type: string
|
|
41
41
|
permissions:
|
|
42
42
|
contents: read
|
|
43
43
|
concurrency:
|
|
44
|
-
group: morphtree-pypi-2.
|
|
44
|
+
group: morphtree-pypi-2.2.0
|
|
45
45
|
cancel-in-progress: false
|
|
46
46
|
env:
|
|
47
47
|
PYTHONDONTWRITEBYTECODE: '1'
|
|
@@ -70,7 +70,7 @@ jobs:
|
|
|
70
70
|
shell: python
|
|
71
71
|
run: |
|
|
72
72
|
import os
|
|
73
|
-
assert os.environ['REQUESTED'] == 'false' or os.environ['APPROVAL'] == 'PUBLISH morphtree 2.
|
|
73
|
+
assert os.environ['REQUESTED'] == 'false' or os.environ['APPROVAL'] == 'PUBLISH morphtree 2.2.0 TO PYPI'
|
|
74
74
|
- run: python -I -B tools/check_repository.py
|
|
75
75
|
- name: Verify CI commit, six jobs, artifacts and environment protection
|
|
76
76
|
env:
|
|
@@ -128,7 +128,7 @@ jobs:
|
|
|
128
128
|
retention-days: 7
|
|
129
129
|
publish-pypi:
|
|
130
130
|
needs: preflight
|
|
131
|
-
if: ${{ inputs.publish_pypi && inputs.approval == 'PUBLISH morphtree 2.
|
|
131
|
+
if: ${{ inputs.publish_pypi && inputs.approval == 'PUBLISH morphtree 2.2.0 TO PYPI' && needs.preflight.result == 'success' }}
|
|
132
132
|
runs-on: ubuntu-24.04
|
|
133
133
|
timeout-minutes: 10
|
|
134
134
|
environment:
|
|
@@ -156,7 +156,7 @@ jobs:
|
|
|
156
156
|
import hashlib, json, os, pathlib, re, urllib.error, urllib.request
|
|
157
157
|
def require(condition, message):
|
|
158
158
|
if not condition: raise RuntimeError(message)
|
|
159
|
-
require(os.environ['REQUESTED'] == 'true' and os.environ['APPROVAL'] == 'PUBLISH morphtree 2.
|
|
159
|
+
require(os.environ['REQUESTED'] == 'true' and os.environ['APPROVAL'] == 'PUBLISH morphtree 2.2.0 TO PYPI', 'Explicit upload approval missing')
|
|
160
160
|
path = pathlib.Path('reviewed/APPROVED.json')
|
|
161
161
|
require(path.is_file() and not path.is_symlink(), 'Missing or unsafe approval receipt')
|
|
162
162
|
require(re.fullmatch('[0-9a-f]{64}', os.environ['APPROVED_MANIFEST_SHA256']), 'Invalid approval SHA-256')
|
|
@@ -166,7 +166,7 @@ jobs:
|
|
|
166
166
|
require(value['repository'] == os.environ['GITHUB_REPOSITORY'] == 'lucalullo/morph-tree', 'Wrong repository')
|
|
167
167
|
require(re.fullmatch('[0-9a-f]{40}', value['commit']) and value['commit'] == os.environ['GITHUB_SHA'] == os.environ['REVIEWED_COMMIT'], 'Wrong commit')
|
|
168
168
|
require(str(value['build_run_id']) == os.environ['REVIEWED_RUN'] and str(value['build_run_attempt']) == os.environ['REVIEWED_ATTEMPT'], 'Wrong reviewed CI run or attempt')
|
|
169
|
-
require(value['target'] == 'pypi' and value['version'] == '2.
|
|
169
|
+
require(value['target'] == 'pypi' and value['version'] == '2.2.0', 'Only PyPI version 2.2.0 allowed')
|
|
170
170
|
require(value['repository_url'] == 'https://upload.pypi.org/legacy/', 'Wrong official PyPI endpoint')
|
|
171
171
|
require(value.get('testpypi_release_verified') is True, 'TestPyPI release evidence missing')
|
|
172
172
|
require(value.get('publication_workflow') == '.github/workflows/publish-pypi.yml', 'Wrong publication workflow')
|
|
@@ -174,7 +174,7 @@ jobs:
|
|
|
174
174
|
root = pathlib.Path('reviewed/packages')
|
|
175
175
|
require(root.is_dir() and not root.is_symlink(), 'Unsafe package directory')
|
|
176
176
|
require({p.name for p in root.iterdir()} == set(value['files']) and len(value['files']) == 3, 'Unexpected package membership')
|
|
177
|
-
require(sum(name.endswith('.whl') for name in value['files']) == 2 and 'morphtree-2.
|
|
177
|
+
require(sum(name.endswith('.whl') for name in value['files']) == 2 and 'morphtree-2.2.0.tar.gz' in value['files'], 'Expected two wheels and one source archive')
|
|
178
178
|
for name, pin in value['files'].items():
|
|
179
179
|
require(pathlib.Path(name).name == name and '\\' not in name, 'Unsafe filename')
|
|
180
180
|
artifact = root / name
|
|
@@ -184,7 +184,7 @@ jobs:
|
|
|
184
184
|
def redirect_request(self, *args, **kwargs):
|
|
185
185
|
raise RuntimeError('Unexpected index redirect')
|
|
186
186
|
try:
|
|
187
|
-
urllib.request.build_opener(NoRedirect).open('https://pypi.org/pypi/morphtree/2.
|
|
187
|
+
urllib.request.build_opener(NoRedirect).open('https://pypi.org/pypi/morphtree/2.2.0/json', timeout=20).close()
|
|
188
188
|
except urllib.error.HTTPError as error:
|
|
189
189
|
require(error.code == 404, 'Index availability not verified')
|
|
190
190
|
else:
|