Skip to content

Commit 21409a4

Browse files
authored
Update pyproject.toml (#16)
* Update pyproject.toml * Update release.yml
1 parent 74c9694 commit 21409a4

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,17 @@ jobs:
4545
- name: Build distributions
4646
run: pyproject-build -o dist # pipx-installed CLI
4747

48+
- name: Inspect wheel metadata
49+
run: |
50+
python - <<'PY'
51+
import glob, zipfile
52+
whl = glob.glob("dist/*.whl")[0]
53+
with zipfile.ZipFile(whl) as z:
54+
names = z.namelist()
55+
assert any(n.endswith(".dist-info/METADATA") for n in names), "Wheel missing .dist-info/METADATA"
56+
print("Wheel metadata present.")
57+
PY
58+
4859
- name: Twine check
4960
run: twine check dist/*
5061

pyproject.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,10 @@ Repository = "https://github.com/security-decision-science/decision-security"
4747
Issues = "https://github.com/security-decision-science/decision-security/issues"
4848
Documentation = "https://github.com/security-decision-science/security-decision-science"
4949
PyPI = "https://pypi.org/project/decision-security/"
50+
51+
[tool.setuptools]
52+
package-dir = { "" = "src" }
53+
54+
[tool.setuptools.packages.find]
55+
where = ["src"]
56+
include = ["decision_security*"]

0 commit comments

Comments
 (0)