Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{
"name": "fastapi-37",
"image": "mcr.microsoft.com/devcontainers/python:3.12",
"name": "fastapi-38",
"image": "mcr.microsoft.com/devcontainers/python:1-3.8-bookworm",
"features": {
"ghcr.io/devcontainers/features/node:1": { "version": "latest" }
"ghcr.io/devcontainers/features/node:1": {
"version": "latest"
}
},
"postCreateCommand": "pipx install poetry && poetry install",
"forwardPorts": [2222]
}
"forwardPorts": [
2222
]
}
22 changes: 22 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
changelog:
exclude:
labels:
- ignore-for-release
categories:
- title: Breaking Changes 🛠
labels:
- Semver-Major
- breaking-change
- title: Exciting New Features 🎉
labels:
- Semver-Minor
- enhancement
- title: Other Changes
labels:
- "*"
exclude:
labels:
- dependencies
- title: 👒 Dependencies
labels:
- dependencies
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
max-parallel: 3
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v4
Expand All @@ -26,7 +26,7 @@ jobs:
uses: abatilo/actions-poetry@v3.0.0
with:
poetry-version: 1.5.1
- uses: actions/cache@v3
- uses: actions/cache@v4
id: cache-deps
with:
path: ~/.cache/pip
Expand All @@ -37,11 +37,11 @@ jobs:
- name: Install dependencies
run: poetry install -E session

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: .mypy_cache
key: mypy-${{ matrix.python-version }}
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: .pytest_cache
key: pytest-${{ matrix.python-version }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build-pull-request
name: tests-pull-request

on:
pull_request:
Expand All @@ -11,7 +11,7 @@ jobs:
strategy:
max-parallel: 3
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v4
Expand All @@ -24,7 +24,7 @@ jobs:
uses: abatilo/actions-poetry@v3.0.0
with:
poetry-version: 1.5.1
- uses: actions/cache@v3
- uses: actions/cache@v4
id: cache-deps
with:
path: ~/.cache/pip
Expand All @@ -34,11 +34,11 @@ jobs:

- name: Install dependencies
run: poetry install -E session
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: .mypy_cache
key: mypy-${{ matrix.python-version }}
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: .pytest_cache
key: pytest-${{ matrix.python-version }}
Expand Down
9 changes: 4 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ test:
format:
black $(all_src)
black -l 82 $(docs_src)
ruff --fix $(all_src)
ruff check --fix $(all_src)

.PHONY: lint
lint:
ruff $(all_src)
ruff check $(all_src)
black --check --diff $(all_src)
black -l 82 $(docs_src) --check --diff

Expand All @@ -47,11 +47,10 @@ testcov:
fi

.PHONY: ci-v1 ## Run all CI validation steps without making any changes to code in pydantic v1

ci-v1: install-v1 lint test


.PHONY: ci-v1 ## Run all CI validation steps without making any changes to code in pydantic v2
.PHONY: ci-v2 ## Run all CI validation steps without making any changes to code in pydantic v2
ci-v2: install-v2 lint mypy test


Expand Down Expand Up @@ -108,7 +107,7 @@ docs-build:

.PHONY: docs-format ## Format the python code that is part of the docs
docs-format:
ruff $(docs_src)
ruff check $(docs_src)
autoflake -r --remove-all-unused-imports --ignore-init-module-imports $(docs_src) -i
black -l 82 $(docs_src)

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
</p>
<p align="center">
<a href="https://github.com/dmontagu/fastapi-utils" target="_blank">
<img src="https://img.shields.io/github/last-commit/dmontagu/fastapi-utils.svg">
<img src="https://github.com/dmontagu/fastapi-utils/workflows/build/badge.svg" alt="Build CI">
<img src="https://img.shields.io/github/last-commit/dmontagu/fastapi-utils.svg">
<img src="https://github.com/dmontagu/fastapi-utils/workflows/build/badge.svg" alt="Build CI">
</a>
<a href="https://codecov.io/gh/dmontagu/fastapi-utils" target="_blank">
<img src="https://codecov.io/gh/dmontagu/fastapi-utils/branch/master/graph/badge.svg" alt="Coverage">
Expand All @@ -26,7 +26,7 @@

---

<a href="https://fastapi.tiangolo.com">FastAPI</a> is a modern, fast web framework for building APIs with Python 3.7+.
<a href="https://fastapi.tiangolo.com">FastAPI</a> is a modern, fast web framework for building APIs with Python 3.8+.

But if you're here, you probably already knew that!

Expand Down Expand Up @@ -57,7 +57,7 @@ See the [docs](https://fastapi-utils.davidmontague.xyz/) for more details and ex

## Requirements

This package is intended for use with any recent version of FastAPI (depending on `pydantic>=1.0`), and Python 3.7+.
This package is intended for use with any recent version of FastAPI (depending on `pydantic>=1.0`), and Python 3.8+.

## Installation

Expand Down
14 changes: 7 additions & 7 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
</p>
<p align="center">
<a href="https://github.com/dmontagu/fastapi-utils" target="_blank">
<img src="https://img.shields.io/github/last-commit/dmontagu/fastapi-utils.svg">
<img src="https://github.com/dmontagu/fastapi-utils/workflows/build/badge.svg" alt="Build CI">
<img src="https://img.shields.io/github/last-commit/dmontagu/fastapi-utils.svg">
<img src="https://github.com/dmontagu/fastapi-utils/workflows/build/badge.svg" alt="Build CI">
</a>
<a href="https://codecov.io/gh/dmontagu/fastapi-utils" target="_blank">
<img src="https://codecov.io/gh/dmontagu/fastapi-utils/branch/master/graph/badge.svg" alt="Coverage">
Expand All @@ -26,7 +26,7 @@

---

<a href="https://fastapi.tiangolo.com">FastAPI</a> is a modern, fast web framework for building APIs with Python 3.7+.
<a href="https://fastapi.tiangolo.com">FastAPI</a> is a modern, fast web framework for building APIs with Python 3.8+.

But if you're here, you probably already knew that!

Expand Down Expand Up @@ -57,16 +57,16 @@ See the [docs](https://https://fastapi-utils.davidmontague.xyz/) for more detail

## Requirements

This package is intended for use with any recent version of FastAPI (depending on `pydantic>=1.0`), and Python 3.7+.
This package is intended for use with any recent version of FastAPI (depending on `pydantic>=1.0`), and Python 3.8+.

## Installation

```bash
pip install fastapi-restful # For basic slim package :)
pip install fastapi-utils # For basic slim package :)

pip install fastapi-restful[session] # To add sqlalchemy session maker
pip install fastapi-utils[session] # To add sqlalchemy session maker

pip install fastapi-restful[all] # For all the packages
pip install fastapi-utils[all] # For all the packages
```

## License
Expand Down
Loading