A Python library for hedonic games.
pip install hedonicimport igraph as ig
from hedonic import Game
g = ig.Graph.Famous("Zachary") # sample graph: Zachary's karate club
h = Game(g)This project uses uv for dependency management and building.
To set up development environment:
uv venv
source .venv/bin/activate
uv syncTo build the package:
uv buildTo publish to PyPI:
uv publish --token <your-pypi-token>This repository includes GitHub Actions workflows for automated publishing:
- TestPyPI workflow: Currently active, publishes to TestPyPI on
v*tags - PyPI workflow: Currently disabled (can be re-enabled later)
- Automatic publishing when you push version tags
- Manual publishing from the Actions tab
- Secure authentication using OIDC for TestPyPI
# Bump version and prepare release
./scripts/release.sh patch # or minor/major
# Push everything (triggers TestPyPI workflow)
git push origin main && git push origin v0.0.2patch:0.0.1→0.0.2(bug fixes, small changes)minor:0.0.1→0.1.0(new features, backward compatible)major:0.0.1→1.0.0(breaking changes)
- TestPyPI: ✅ Active - publishes on
v*tags - PyPI: ❌ Disabled - workflow file is commented out
When you're ready to publish to PyPI:
- Rename
.github/workflows/publish-pypi.yml.disabledtopublish-pypi.yml - Add
PYPI_API_TOKENsecret to your GitHub repository - Both workflows will then be active with different tag patterns
For detailed setup instructions, see docs/OIDC_SETUP.md.