mirror of
https://github.com/grillazz/fastapi-sqlalchemy-asyncpg.git
synced 2025-08-26 16:40:40 +03:00
commit
d798635e3f
4
.github/workflows/build-and-test.yml
vendored
4
.github/workflows/build-and-test.yml
vendored
@ -12,8 +12,8 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python-version: [ "3.12" ]
|
||||
poetry-version: [ "1.8.3" ]
|
||||
python-version: [ "3.13" ]
|
||||
poetry-version: [ "1.8.5" ]
|
||||
|
||||
env:
|
||||
PYTHONDONTWRITEBYTECODE: 1
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM python:3.12-slim-bookworm AS base
|
||||
FROM python:3.13-slim-bookworm AS base
|
||||
RUN apt-get update \
|
||||
&& apt-get upgrade -y \
|
||||
&& apt-get install -y --no-install-recommends curl git build-essential \
|
||||
@ -10,7 +10,7 @@ FROM base AS install
|
||||
WORKDIR /home/code
|
||||
|
||||
# allow controlling the poetry installation of dependencies via external args
|
||||
ARG INSTALL_ARGS="--no-root"
|
||||
ARG INSTALL_ARGS="--no-root --no-interaction --no-ansi"
|
||||
ENV POETRY_HOME="/opt/poetry"
|
||||
ENV PATH="$POETRY_HOME/bin:$PATH"
|
||||
COPY pyproject.toml poetry.lock ./
|
||||
|
@ -128,7 +128,7 @@ Setup user authentication with JWT and Redis as token storage.
|
||||
### Local development with poetry
|
||||
|
||||
```shell
|
||||
pyenv install 3.12 && pyenv local 3.12
|
||||
pyenv install 3.13 && pyenv local 3.13
|
||||
```
|
||||
```shell
|
||||
poetry install --with dev
|
||||
@ -189,6 +189,7 @@ I've included a few of my favorites to kick things off!
|
||||
- **[JUN 8 2024]** implement asyncpg connection pool :fast_forward:
|
||||
- **[AUG 17 2024]** granian use case implemented with docker compose and rich logger :fast_forward:
|
||||
- **[OCT 16 2024]** apscheduler added to project :fast_forward:
|
||||
- **[DEC 16 2024]** bump project to Python 3.13 :fast_forward:
|
||||
|
||||
<p align="right">(<a href="#readme-top">back to top</a>)</p>
|
||||
|
||||
|
2492
poetry.lock
generated
2492
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@ -1,19 +1,20 @@
|
||||
[tool.poetry]
|
||||
name = "fastapi-sqlalchemy-asyncpg"
|
||||
version = "0.0.16"
|
||||
version = "0.0.17"
|
||||
description = ""
|
||||
authors = ["Jakub Miazek <the@grillazz.com>"]
|
||||
packages = []
|
||||
license = "MIT"
|
||||
package-mode = false
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.12"
|
||||
python = "^3.13"
|
||||
fastapi = {version = "^0.115.2", extras = ["all"]}
|
||||
pydantic = {version = "^2.9.2", extras = ["email"]}
|
||||
pydantic-settings = "^2.6.0"
|
||||
sqlalchemy = "^2.0.36"
|
||||
uvicorn = { version = "^0.32.0", extras = ["standard"]}
|
||||
asyncpg = "^0.29.0"
|
||||
asyncpg = "^0.30.0"
|
||||
alembic = "^1.13.3"
|
||||
httpx = "^0.27.2"
|
||||
pytest = "^8.3.3"
|
||||
@ -34,6 +35,7 @@ polyfactory = "^2.17.0"
|
||||
granian = "^1.6.1"
|
||||
transformers = "^4.45.2"
|
||||
apscheduler = {version = "^4.0.0a5", extras = ["redis,sqlalchemy"]}
|
||||
pendulum = {git = "https://github.com/sdispater/pendulum.git", rev="develop"}
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
devtools = { extras = ["pygments"], version = "^0.12.2" }
|
||||
@ -58,8 +60,8 @@ lint.ignore = ["E501"]
|
||||
|
||||
# Exclude a variety of commonly ignored directories.
|
||||
exclude = ["alembic",]
|
||||
# Assume Python 3.12
|
||||
target-version = "py312"
|
||||
# Assume Python 3.13
|
||||
target-version = "py313"
|
||||
|
||||
[tool.ruff.lint.flake8-quotes]
|
||||
docstring-quotes = "double"
|
||||
|
Loading…
x
Reference in New Issue
Block a user