Skip to content

Commit dd2a015

Browse files
authored
Include downstream tests and require a license-aware Flit backend (#72)
Fixes #59. Include tests/ in Flit's sdist so downstream packagers receive the Python import test and both notebook fixtures. The current source archive omits all three files. Also raise the Flit minimum from 3.2 to 3.11: this pyproject already uses PEP 639 license-expression and license-files fields, which require Flit 3.11. See https://flit.pypa.io/en/stable/pyproject_toml.html Validation: built before/after source archives, checked the added files byte-for-byte, built a wheel using exactly flit_core 3.11.0, and ran the import test from the extracted new archive (one passed on Python 3.11/Matplotlib 3.11.2). Notebook execution was not run. git diff --check passes. Runtime package code is unchanged. AI assistance: OpenAI Codex helped prepare and validate this change under the contributor's supervision.
2 parents 6371d40 + c7a219d commit dd2a015

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎pyproject.toml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
build-backend = "flit_core.buildapi"
3-
requires = ["flit_core>=3.2"]
3+
requires = ["flit_core>=3.11"]
44

55
[project]
66
name = "matplotlib-inline"
@@ -62,6 +62,9 @@ Homepage = "https://github.com/ipython/matplotlib-inline"
6262
[tool.setuptools.dynamic]
6363
version = {attr = "matplotlib_inline.__version__"}
6464

65+
[tool.flit.sdist]
66+
include = ["tests/"]
67+
6568
[tool.pytest.ini_options]
6669
xfail_strict = true
6770
log_cli_level = "info"

0 commit comments

Comments
 (0)