Skip to content
Open
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 pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ maintainers = [
]
description = "Apache Burr (incubating) makes it easy to develop applications that make decisions (chatbots, agents, simulations, etc...) from simple python building blocks."
readme = "README.md"
license-files = ["LICENSE-wheel", "NOTICE", "DISCLAIMER"]
license-files = ["LICENSE", "LICENSE-wheel", "NOTICE", "DISCLAIMER"]
keywords = ["mlops", "data", "state-machine", "llmops"]
classifiers = [
"Development Status :: 4 - Beta",
Expand Down
14 changes: 14 additions & 0 deletions tests/test_release_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,17 @@ def test_examples_include_exclude_coverage():
errors.append(summary)

assert not errors, "\n".join(errors)


@pytest.mark.skipif(sys.version_info < (3, 11), reason="tomllib requires Python 3.11+")
def test_license_files_include_combined_project_license():
"""Ensure package metadata advertises the combined project license file."""
project_root = Path(__file__).parent.parent
pyproject_path = project_root / "pyproject.toml"

with open(pyproject_path, "rb") as f:
config = tomllib.load(f)

license_files = config.get("project", {}).get("license-files", [])

assert license_files == ["LICENSE", "LICENSE-wheel", "NOTICE", "DISCLAIMER"]
Loading