microsoft / microsoft/mssql-python
Add pyproject.toml for modern Python packaging
Open
@bewithgaurav is already working on this.
Since Sep 24, 2025.
area: packaging-platform
enhancement
- Dominant language
- Python
- Stars
- 472
- Forks
- 60
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 36
Description
Describe the enhancement
The mssql-python project currently uses setup.py for packaging configuration. Modern Python packaging standards recommend using pyproject.toml as the primary configuration file for build systems, dependencies, and project metadata. This change would improve maintainability, standardize the build process, and align with current Python packaging best practices.
Benefits of migrating to pyproject.toml
- Modern Standard:
pyproject.tomlis the current standard defined by PEP 518, PEP 621, and PEP 660 - Declarative Configuration: Cleaner, more readable configuration format
- Tool Integration: Better support for development tools (black, flake8, pytest, mypy, etc.)
- Build System Isolation: Proper build dependency specification
- IDE Support: Enhanced IDE integration and tooling support
Proposed changes
- Create
pyproject.tomlwith project metadata - refer https://peps.python.org/pep-0621/
Referenced from #242 on versioning discussion
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.