File tree Expand file tree Collapse file tree 5 files changed +30
-5
lines changed
Expand file tree Collapse file tree 5 files changed +30
-5
lines changed Original file line number Diff line number Diff line change 77 run-tox-env :
88 strategy :
99 matrix :
10- toxenv : [mypy, twine-check]
10+ toxenv : [mypy, twine-check, check-sdist ]
1111 py : ["3.x"]
1212 include :
1313 - toxenv : py-mindeps
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ Unreleased
1717 all errors are reported but the checked filenames are no longer displayed. The
1818 list of filenames checked is now emitted at the second verbosity level (`-vv `)
1919 and above. (:issue: `648 `)
20+ - `check-jsonschema `'s sdist contents are now validated with `check-sdist `, and missing
21+ files have been added.
2022
21230.36.2
2224------
Original file line number Diff line number Diff line change 22
33# data files in the distribution
44include src/check_jsonschema/builtin_schemas/vendor/*
5+ include src/check_jsonschema/builtin_schemas/vendor/licenses/*
6+ include src/check_jsonschema/builtin_schemas/vendor/sha256/*
57include src/check_jsonschema/builtin_schemas/custom/*.json
68
79## Testing Requirements
810
911# include all test files and test data files
10- recursive-include tests *.py *.json *.yaml *.yml *.json5 *.toml
12+ recursive-include tests *.py *.json *.yaml *.yml *.json5 *.toml *.cff
1113
1214# the test runner
1315include tox.ini
1416
1517# needed as a data file for the tests (several tests check integrity
1618# against this file)
1719include .pre-commit-hooks.yaml
20+
21+ # tools, automation, and project maintenance
22+ include CHANGELOG.rst
23+ include CONTRIBUTING.md
24+ include justfile
25+ include scripts/*.py
26+ include .coveragerc
27+ include .flake8
Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ docs = [
1616 " sphinx-issues<6" ,
1717 " furo==2025.12.19" ,
1818]
19+ check-package-metadata = [
20+ " build" ,
21+ " twine" ,
22+ " check-sdist" ,
23+ ]
1924
2025[project ]
2126name = " check-jsonschema"
@@ -57,6 +62,9 @@ include-package-data = true
5762where = [" src" ]
5863namespaces = false
5964
65+ [tool .check-sdist ]
66+ git-only = [" RELEASING.md" , " .gitignore" , " docs/*" ]
67+
6068[tool .isort ]
6169profile = " black"
6270
Original file line number Diff line number Diff line change @@ -81,16 +81,21 @@ commands_pre = rm -rf _build/
8181commands = sphinx-build -d _build/doctrees -b dirhtml -W . _build/dirhtml {posargs}
8282
8383[testenv:twine-check]
84- description = " check the metadata on a package build"
84+ description = " check the metadata on a package build using twine "
8585skip_install = true
86- deps = twine
87- build
86+ dependency_groups = check-package-metadata
8887allowlist_externals = rm
8988commands_pre = rm -rf dist/
9089# check that twine validating package data works
9190commands = python -m build
9291 twine check dist/*
9392
93+ [testenv:check-sdist]
94+ description = " check the package contents using check-sdist"
95+ skip_install = true
96+ dependency_groups = check-package-metadata
97+ commands = check-sdist --inject-junk
98+
9499[testenv:vendor-schemas]
95100description = " update the vendored schemas"
96101deps = pre-commit
You can’t perform that action at this time.
0 commit comments