Skip to content

Modernize - #6

Merged
ForeverWintr merged 21 commits into
masterfrom
modernize
Nov 15, 2026
Merged

ForeverWintr merged 21 commits into
masterfrom
modernize

Conversation

@ForeverWintr

Copy link
Copy Markdown
Owner

No description provided.

ForeverWintr and others added 20 commits October 31, 2026 11:57
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- Use uv_build backend and a PEP 735 dev dependency group
- Replace poetry.lock with uv.lock; ignore .venv/
- Exclude stray .mypy_cache from built distributions
- Catch pickle.PicklingError (raised for local objects on 3.14+)
  alongside AttributeError when pickling exceptions
- Update AGENTS.md commands for uv

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Runs pytest via uv across Python 3.11-3.14 on GitHub Actions.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
- Run tests on ubuntu-latest and macos-latest
- Also trigger on pushes to master
- Add a lint job running ruff and mypy

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Adds a 'test and lint pass' job that succeeds only if all test and
lint jobs succeed, for use as a single required check on PRs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
setup-uv no longer publishes floating major-version tags after v7, so
@v10 failed to resolve.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Raise requires-python to >=3.13, relock, and drop 3.11/3.12 from the
CI test matrix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Move the implementation to fork_map/core.py and re-export fork_map
  from the package, so 'from fork_map import fork_map' returns the
  function (as in the README and demo)
- Update tests to import core
- Add 'from __future__ import annotations' to tests so Queue[...]
  annotations don't fail at runtime on Python 3.13
- Update AGENTS.md for the new layout

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues requiring resolution.

No open issues 🎉

What changed in this PR

Modernizes fork_map’s packaging, development workflow, and Python compatibility while retaining its fork-based mapping approach.

Changes:

  • Migrates from Poetry to uv and raises the minimum Python version to 3.13.
  • Exports the public function, improves type annotations, and handles newer pickle exceptions.
  • Adds automated testing, linting, dependency updates, and contributor guidance.
File Description
uv.lock Adds locked runtime and development dependencies.
README.md Documents uv setup and development commands.
pyproject.toml Adopts uv builds and dependency groups; requires Python 3.13+.
poetry.lock Removes the superseded Poetry lockfile.
fork_map/​tests/​test_fork_map.py Updates imports, annotations, and pickle exception expectations.
fork_map/​core.py Improves typing, pickle error handling, and default worker selection.
fork_map/​__init__.py Re-exports the public fork_map function.
fork_map.wpr Updates the Wing project format version.
demo.py Adds a lint suppression for the intentionally delayed import.
CLAUDE.md Points to shared agent guidance.
AGENTS.md Documents architecture, commands, and fork-specific constraints.
.gitignore Ignores the uv environment and private Wing task files.
.github/​workflows/​tests.yml Adds Linux/macOS tests, linting, type checks, and a combined status check.
.github/​dependabot.yml Configures grouped monthly uv and GitHub Actions updates.

Review effort: Balanced

@ForeverWintr
ForeverWintr merged commit 3afd218 into master Nov 15, 2026
8 checks passed
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.

2 participants