Modernize project packaging: migrate to pyproject.toml#93
Merged
Conversation
- Replace setup.py with modern pyproject.toml using hatchling as build backend - Add comprehensive ruff configuration for linting and formatting - Simplify version.py for better compatibility with modern tooling - Update .gitignore with common Python development patterns - Remove obsolete MANIFEST.in (handled by hatchling configuration) - Add Python 3.11 and 3.12 to classifiers - Maintain all existing dependencies and optional dependencies - Configure pytest settings in pyproject.toml This modernizes the project's packaging infrastructure to use current Python packaging best practices while maintaining full backwards compatibility. Closes #52
Resolved conflict by incorporating the fickling>=0.1.3 version update from master into pyproject.toml (setup.py was removed in this branch).
ESultanik
approved these changes
Aug 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR modernizes the project's packaging infrastructure by migrating from the legacy
setup.pyto the modernpyproject.tomlstandard, usinghatchlingas the build backend.Motivation
Issue #52 requested switching to
pyproject.tomlas it has become the standard for Python packaging. This brings the project up to date with modern Python packaging best practices.Changes
setup.pywithpyproject.toml: Usinghatchlingas the build backend (the modern successor to flit)ruffconfiguration: Comprehensive linting and formatting rules configured directly inpyproject.tomlversion.py: Made it compatible with modern tooling while maintaining backwards compatibility.gitignore: Added common Python development patterns and tool cachesMANIFEST.in: No longer needed as hatchling handles file inclusion through configurationKey improvements
uv,pip,pipx, etc.)ruffTesting
pyproject.tomlhas been validated and parses correctlyversion.pyBackwards Compatibility
This change maintains full backwards compatibility:
graphtagepip install .orpip install graphtageCloses #52