Skip to content

Conversation

@pydanny
Copy link
Contributor

@pydanny pydanny commented Oct 18, 2025

Note

This PR is the first of several pull requests whose intent is to modernize this library so current FastAPI projects can leverage the excellent asyncpg library in a consistent manner.

This change is designed to bring fastapi-asyncpg into the realm of modern Python tooling. It did require dropping support of py3.6, py3.7, and py3.8, however, those versions haven't been officially supported in years.

Notably, this follows this replacement chart, embracing the same pattern used by FastAPI, Pydantic, and the growing majarity of the Python world:

Old Tool New Tool
tox uv+Makefile
flake8 ruff
isort ruff
black ruff
setup.py pyproject.toml
setup.cfg pyproject.toml

A summary of changes:

  • Dropped support py3.6, py3.7, and py3.8 as supporting them in 2025 is very challenging
  • Added support for py3.10
  • Replaced setup.py, setup.cfg, and tox.ini with pyproject.toml for modern packaging and configuration.
  • Updated CI workflow to test on Python 3.9 and 3.10
  • added .python-version
  • Added test command to Makefile, which uses uv instead of tox for testing multiple python versions
  • Adjusted Makefiel to use ruff instead of black, isort, and flake8
  • Refactored code for improved type hinting and formatting consistency.

- Dropped support py3.6, py3.7, and py3.8 as supporting them in 2025 is very challenging
- Added support for py3.10
- Replaced setup.py, setup.cfg, and tox.ini with pyproject.toml for modern packaging and configuration.
- Updated CI workflow to test on Python 3.9 and 3.10
- added .python-version
- Added test command to Makefile, which uses uv instead of tox for testing multiple python versions
- Adjusted Makefiel to use ruff instead of black, isort, and flake8
- Refactored code for improved type hinting and formatting consistency.
@jordic
Copy link
Owner

jordic commented Oct 19, 2025

Seems like there are some format issues

@pydanny pydanny force-pushed the modernize-tooling-plus-python-version-changes branch from 322168f to 0f4e4e3 Compare October 20, 2025 03:58
@pydanny
Copy link
Contributor Author

pydanny commented Oct 20, 2025

Formatting issues and that my Python matrix design of 3.10 was read by GH as 3.1. 🤣

This should work now. I created a standalone repo unconnected to this one where I could trigger actions at will. This new workflow design was able to identify bad code.

Once this PR is accepted my pull requests won't need your approval, so this should go faster. 😄

@jordic jordic merged commit 101aa6f into jordic:master Oct 20, 2025
3 checks passed
@pydanny
Copy link
Contributor Author

pydanny commented Oct 20, 2025

By approval, I mean in order to run GH actions...

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.

2 participants