Migrate to PEP 517/621 with src-layout#3
Open
alisterburt wants to merge 3 commits intomgflast:masterfrom
Open
Conversation
- Restructure package to use src/easymode/ layout - Replace setup.py with modern pyproject.toml - Add hatchling build backend with hatch-vcs versioning - Add comprehensive CI/CD via GitHub Actions - Add pre-commit hooks (ruff, mypy, validate-pyproject) - Add pytest testing infrastructure - Preserve GPL v3 license and all functionality - Version: v0.0.2 (managed via git tags) BREAKING CHANGES: - Minimum Python version now 3.10 (previously implicit 3.7+) - Package structure changed to src-layout (import paths unchanged)
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.
Hey! Not sure if this is welcome but this PR modernizes the packaging setup to follow current Python best practices
What's Changed
This was mainly done to enable end users to install/run easymode with uv which likes modern python packages. The end user experience then involves no python environment management, they just install uv then
The workflow for publishing is the biggest change, to use this deployment workflow you would need to set up a trusted publisher then pushing a tagged commit (
git tag -a v0.0.5 -m "v0.0.5"thengit push --follow-tags) will trigger the upload to pypi job in the action at.github/workflows/ci.ymlIt's quite nice as you see the test/build/deploy in the actions tab for your repo, e.g. https://github.com/teamtomo/starfile/actions/runs/15401045856