Please check our website!
This project now uses pyproject.toml with setuptools (PEP 517).
- Clean previous build artifacts:
rm -rf build dist geomloss.egg-info
find . -type d -name "__pycache__" -prune -exec rm -rf {} +- Build distribution artifacts:
python -m pip install --upgrade build
python -m build- Inspect generated metadata (optional quick check):
python - <<'PY'
import zipfile
from pathlib import Path
wheel = max(Path("dist").glob("geomloss-*.whl"), key=lambda p: p.stat().st_mtime)
with zipfile.ZipFile(wheel) as zf:
meta = zf.read(next(n for n in zf.namelist() if n.endswith(".dist-info/METADATA"))).decode()
for line in meta.splitlines():
if line.startswith(("Name:", "Version:", "Requires-Python:", "Requires-Dist:", "Provides-Extra:")):
print(line)
PY- Test local installs:
python -m pip install .
python -m pip install ".[full]"- Smoke-test import:
python -c "import geomloss; print(geomloss.__version__)"