Skip to content
Merged
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
16 changes: 11 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,25 @@ jobs:
run: |
python -m pip install --require-hashes -r .github/requirements-build.lock

- name: Clean dist
run: rm -rf dist/* || true

- name: Build wheel
run: python -m build -o dist
run: pyproject-build -o dist

- name: Inspect wheel has package files
- name: Inspect wheel contents (show first 40 entries)
run: |
python - <<'PY'
import glob, zipfile
whl = glob.glob("dist/*.whl")[0]
print("Wheel:", whl)
with zipfile.ZipFile(whl) as z:
names = [n for n in z.namelist() if n.startswith("decision_security/")]
print("Files in package:", len(names))
assert names, "Wheel missing decision_security/*"
names = z.namelist()
pkg = [n for n in names if n.startswith("decision_security/")]
print("Files in package:", len(pkg))
print("\n".join(pkg[:40]))
assert pkg, "Wheel missing decision_security/*"
assert any(n.endswith(".dist-info/METADATA") for n in names), "Wheel missing .dist-info/METADATA"
PY

# Install runtime deps from HASHED lock, then install the local wheel WITH its hash
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "decision-security" # pip name (import is decision_security)
version = "0.1.0a8" # bump from prior version
version = "0.1.0a9" # bump from prior version
description = "Decision-science utilities for security: Monte Carlo, Bayes, Survival, Value of Information, causal helpers, and viz."
readme = "README.md"
requires-python = ">=3.9"
Expand Down Expand Up @@ -50,4 +50,4 @@ PyPI = "https://pypi.org/project/decision-security/"

[tool.setuptools]
package-dir = { "" = "src" }
packages = ["decision_security"]
packages = ["decision_security"]
Loading