Refactor pyproject.toml to use standard PEP 621 and setuptools#20
Merged
Conversation
Migrated the package configuration to be fully compliant with modern Python packaging standards (PEP 621, PEP 517). - Replaced the Poetry-specific dependency management (`[tool.poetry]`) with the standard `[project].dependencies` and `[project.optional-dependencies]` tables. - Switched the build system from `poetry.core.masonry.api` to the standard `setuptools.build_meta`. - Ensured the `src` layout is correctly configured for package discovery using `[tool.setuptools.packages.find]`. - Verified that the package builds, installs, and tests correctly after the changes.
- Corrected the `[project.dependencies]` syntax in `pyproject.toml` to be a valid empty array, resolving the CI error. - Updated the `.github/workflows/ci-cd.yml` to remove Poetry and use a standard `pip` and `build` based workflow. - Replaced `poetry install` with `pip install -e .[dev]`. - Replaced `poetry build` with `python -m build`. - Adjusted the CI caching mechanism to work with `pip` instead of Poetry. This completes the migration to a fully PEP-compliant packaging setup and ensures the CI pipeline is aligned with the new tooling.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Migrated the package configuration to be fully compliant with modern Python packaging standards (PEP 621, PEP 517).
[tool.poetry]) with the standard[project].dependenciesand[project.optional-dependencies]tables.poetry.core.masonry.apito the standardsetuptools.build_meta.srclayout is correctly configured for package discovery using[tool.setuptools.packages.find].