Skip to content

Register MAgent2 environments with PettingZoo - #103

Open
entropy-z0 wants to merge 1 commit into
Farama-Foundation:mainfrom
entropy-z0:feat/101-pettingzoo-make
Open

Register MAgent2 environments with PettingZoo#103
entropy-z0 wants to merge 1 commit into
Farama-Foundation:mainfrom
entropy-z0:feat/101-pettingzoo-make

Conversation

@entropy-z0

Copy link
Copy Markdown

Description

Register all six MAgent2 environments with PettingZoo's environment registry
for both the AEC and parallel APIs.

After importing magent2, users can create environments through the new
Gymnasium-style API:

from pettingzoo import make
import magent2

env = make("aec", "magent2/battle-v4")

This also:

  • updates the minimum PettingZoo version to 1.27.0;
  • preserves the existing module-based constructors for compatibility;
  • documents the new creation API;
  • adds coverage for all registry entries and both environment interfaces.

Fixes #101

Validation

  • pre-commit run --files magent2/__init__.py pyproject.toml tests/test_magent2.py docs/introduction/basic_usage.md
  • resolved all 12 registered entry points
  • git diff --check

@entropy-z0
entropy-z0 force-pushed the feat/101-pettingzoo-make branch from 482d359 to afe4789 Compare September 11, 2026 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate to new pettingzoo .make environment creation method

1 participant