Skip to content

Refactor pyproject.toml to use standard PEP 621 and setuptools#20

Merged
gowthamrao merged 2 commits into
developfrom
modernize-packaging
Oct 26, 2025
Merged

Refactor pyproject.toml to use standard PEP 621 and setuptools#20
gowthamrao merged 2 commits into
developfrom
modernize-packaging

Conversation

@gowthamrao
Copy link
Copy Markdown
Contributor

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.

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
Copy link
Copy Markdown

codecov Bot commented Oct 26, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@gowthamrao gowthamrao merged commit 0f2ef04 into develop Oct 26, 2025
13 checks passed
@gowthamrao gowthamrao deleted the modernize-packaging branch October 26, 2025 01:20
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.

1 participant