From 6ad3468ece3c1e02e9f05757b25dedabbe2ece8e Mon Sep 17 00:00:00 2001 From: Juan Date: Tue, 26 May 2026 22:16:25 +0200 Subject: [PATCH 1/2] build: limit package contents for PyPI uploads Restrict Hatch build outputs to the package and required metadata so release artifacts stay under PyPI's file size limit. Remove the stale test-generation CLI reference to keep contributor docs aligned with the current repo layout. Co-authored-by: Cursor --- pyproject.toml | 35 ++++++++++++++++++++++++++++++++--- scripts/README.md | 9 +-------- 2 files changed, 33 insertions(+), 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index bb4891fee..ea2c967c5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -141,13 +141,42 @@ dev = [ "twine>=4.0.2,<5", ] -[project.scripts] -vm-create-new-test = "scripts.create_new_test:generate_test" - [build-system] requires = ["hatchling>=1.26.0"] build-backend = "hatchling.build" +[tool.hatch.build.targets.sdist] +include = [ + "/validmind", + "/README.pypi.md", + "/LICENSE", + "/pyproject.toml", +] + +exclude = [ + "/.github", + "/.vscode", + "/docs", + "/images", + "/notebooks", + "/tests", + "/scripts", + "/r", + "/dist", + "/build", + "/uv.lock", + "/.cursorrules", + "/.flake8", + "/.pre-commit-config.yaml", + "/Makefile", + "/disk_clean.sh", + "**/__pycache__", + "**/*.pyc", +] + +[tool.hatch.build.targets.wheel] +packages = ["validmind"] + [tool.isort] known_first_party = "validmind" profile = "black" diff --git a/scripts/README.md b/scripts/README.md index 98e5f1ad1..9a99a6cb8 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -6,11 +6,4 @@ The tests are separated into subdirectories based on the category and type of te Please see the notebook `listing-and-loading-tests.ipynb` for more information and examples and to learn about how the directory relates to the test's ID which is used across the ValidMind Platform. -To create a new test, you can use the create_new_test.py script to generate a metric or threshold test. This script will create a new test file in the appropriate directory and will also create a new test class in that file. It is registered as a console script in `pyproject.toml` and it can be used as follows: - -```bash -generate-test --help # see the usage instructions -generate-test # interactively create a new test (will prompt for the test type and ID) -generate-test --test_type metric --test_id validmind.model_validation.sklearn.MyNewMetric # create a new metric test for sklearn models -generate-test --test_type threshold_test --test_id validmind.data_validation.MyNewDataTest # create a new threshold test for data validation -``` +New tests should currently be created manually by adding a new file in the appropriate `validmind/tests/` subdirectory and implementing the matching test class or function in that file. Use the surrounding tests in the target directory as templates for naming, structure, and registration patterns. From a24ff8fbd66038c2af2af4ebef52100f69a5e78d Mon Sep 17 00:00:00 2001 From: Juan Date: Wed, 27 May 2026 09:14:26 +0200 Subject: [PATCH 2/2] 2.13.4 Co-authored-by: Cursor --- pyproject.toml | 2 +- r/validmind/DESCRIPTION | 2 +- uv.lock | 2 +- validmind/__version__.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ea2c967c5..3ffccdce8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "validmind" -version = "2.13.3" +version = "2.13.4" description = "ValidMind Library" readme = "README.pypi.md" requires-python = ">=3.9,<3.15" diff --git a/r/validmind/DESCRIPTION b/r/validmind/DESCRIPTION index 470383be9..c8ff9c220 100644 --- a/r/validmind/DESCRIPTION +++ b/r/validmind/DESCRIPTION @@ -1,7 +1,7 @@ Package: validmind Type: Package Title: Interface to the 'ValidMind' Platform -Version: 2.13.3 +Version: 2.13.4 Authors@R: c(person("Andres", "Rodriguez", role = c("aut", "cre","cph"), email = "andres@validmind.ai")) Maintainer: Andres Rodriguez diff --git a/uv.lock b/uv.lock index 91551f66f..ac9f7a89f 100644 --- a/uv.lock +++ b/uv.lock @@ -11297,7 +11297,7 @@ wheels = [ [[package]] name = "validmind" -version = "2.13.3" +version = "2.13.4" source = { editable = "." } dependencies = [ { name = "aiohttp", extra = ["speedups"] }, diff --git a/validmind/__version__.py b/validmind/__version__.py index 09c419b16..8f57b15e9 100644 --- a/validmind/__version__.py +++ b/validmind/__version__.py @@ -1 +1 @@ -__version__ = "2.13.3" +__version__ = "2.13.4"