Skip to content

Commit cd34253

Browse files
committed
fix: align package license with repository
1 parent b9396b5 commit cd34253

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version = "0.1.0"
88
description = "OpenFeature provider for the FeatBit Python server SDK"
99
readme = "README.md"
1010
requires-python = ">=3.10,<3.13"
11-
license = "MIT"
11+
license = "Apache-2.0"
1212
authors = [{name = "FeatBit"}]
1313
dependencies = [
1414
"openfeature-sdk>=0.10,<1",

‎tests/test_packaging_metadata.py‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
from pathlib import Path
2+
3+
4+
ROOT = Path(__file__).parent.parent
5+
6+
7+
def test_project_license_matches_repository_license():
8+
pyproject = ROOT.joinpath("pyproject.toml").read_text(encoding="utf-8")
9+
license_text = ROOT.joinpath("LICENSE").read_text(encoding="utf-8")
10+
11+
assert 'license = "Apache-2.0"' in pyproject
12+
assert "Apache License" in license_text
13+
assert "Version 2.0" in license_text

0 commit comments

Comments
 (0)