Skip to main content

A Python library for hedonic games

Project description

Hedonic

A Python library for hedonic games.

Installation

pip install hedonic

Usage

import igraph as ig 
from hedonic import Game

g = ig.Graph.Famous("Zachary")  # sample graph: Zachary's karate club
h = Game(g)

Development

This project uses uv for dependency management and building.

To set up development environment:

uv venv
source .venv/bin/activate
uv sync

To build the package:

uv build

To publish to PyPI:

uv publish --token <your-pypi-token>

GitHub Actions Publishing

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

Quick Release

# 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.2

Version Types

  • patch: 0.0.10.0.2 (bug fixes, small changes)
  • minor: 0.0.10.1.0 (new features, backward compatible)
  • major: 0.0.11.0.0 (breaking changes)

Current Status

  • TestPyPI: ✅ Active - publishes on v* tags
  • PyPI: ❌ Disabled - workflow file is commented out

Enabling PyPI Publishing Later

When you're ready to publish to PyPI:

  1. Rename .github/workflows/publish-pypi.yml.disabled to publish-pypi.yml
  2. Add PYPI_API_TOKEN secret to your GitHub repository
  3. Both workflows will then be active with different tag patterns

For detailed setup instructions, see docs/OIDC_SETUP.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hedonic-0.0.10.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hedonic-0.0.10-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file hedonic-0.0.10.tar.gz.

File metadata

  • Download URL: hedonic-0.0.10.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hedonic-0.0.10.tar.gz
Algorithm Hash digest
SHA256 090a74c2bd4cfc1473bb26b33b7004e81750a8ff2eb17833c57fbaad9daefc8a
MD5 9fce02c46b54cba69b6a16494b93c3d7
BLAKE2b-256 0af7321fc5ea44f0e82a663428b93e3745b22731c1ec3845f2671ec7916268e2

See more details on using hashes here.

File details

Details for the file hedonic-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: hedonic-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hedonic-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 091acb4fefcf090a513bb30ad49ee362b4dc54b9b1ad2dfb4967240fbfecc46a
MD5 79a111bac2b2a8b6d3954aefda9bf6cd
BLAKE2b-256 343c483046e4ca012a385640e01b20443f5995618eb4fa24237c584b2e89c260

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page