File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -47,3 +47,10 @@ Repository = "https://github.com/security-decision-science/decision-security"
4747Issues = " https://github.com/security-decision-science/decision-security/issues"
4848Documentation = " https://github.com/security-decision-science/security-decision-science"
4949PyPI = " 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*" ]
You can’t perform that action at this time.
0 commit comments