Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
run-tox-env:
strategy:
matrix:
toxenv: [mypy, twine-check]
toxenv: [mypy, twine-check, check-sdist]
py: ["3.x"]
include:
- toxenv: py-mindeps
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Unreleased
all errors are reported but the checked filenames are no longer displayed. The
list of filenames checked is now emitted at the second verbosity level (`-vv`)
and above. (:issue:`648`)
- `check-jsonschema`'s sdist contents are now validated with `check-sdist`, and missing
files have been added.

0.36.2
------
Expand Down
12 changes: 11 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,26 @@

# data files in the distribution
include src/check_jsonschema/builtin_schemas/vendor/*
include src/check_jsonschema/builtin_schemas/vendor/licenses/*
include src/check_jsonschema/builtin_schemas/vendor/sha256/*
include src/check_jsonschema/builtin_schemas/custom/*.json

## Testing Requirements

# include all test files and test data files
recursive-include tests *.py *.json *.yaml *.yml *.json5 *.toml
recursive-include tests *.py *.json *.yaml *.yml *.json5 *.toml *.cff

# the test runner
include tox.ini

# needed as a data file for the tests (several tests check integrity
# against this file)
include .pre-commit-hooks.yaml

# tools, automation, and project maintenance
include CHANGELOG.rst
include CONTRIBUTING.md
include justfile
include scripts/*.py
include .coveragerc
include .flake8
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ docs = [
"sphinx-issues<6",
"furo==2025.12.19",
]
check-package-metadata = [
"build",
"twine",
"check-sdist",
]

[project]
name = "check-jsonschema"
Expand Down Expand Up @@ -57,6 +62,9 @@ include-package-data = true
where = ["src"]
namespaces = false

[tool.check-sdist]
git-only = ["RELEASING.md", ".gitignore", "docs/*"]

[tool.isort]
profile = "black"

Expand Down
11 changes: 8 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,21 @@ commands_pre = rm -rf _build/
commands = sphinx-build -d _build/doctrees -b dirhtml -W . _build/dirhtml {posargs}

[testenv:twine-check]
description = "check the metadata on a package build"
description = "check the metadata on a package build using twine"
skip_install = true
deps = twine
build
dependency_groups = check-package-metadata
allowlist_externals = rm
commands_pre = rm -rf dist/
# check that twine validating package data works
commands = python -m build
twine check dist/*

[testenv:check-sdist]
description = "check the package contents using check-sdist"
skip_install = true
dependency_groups = check-package-metadata
commands = check-sdist --inject-junk

[testenv:vendor-schemas]
description = "update the vendored schemas"
deps = pre-commit
Expand Down
Loading