Skip to content

Commit 2aa3334

Browse files
authored
Merge pull request #36 from lincolnloop/pydantic2
Pydantic 2 conversion
2 parents 0e157b2 + e709a2e commit 2aa3334

File tree

12 files changed

+236
-165
lines changed

12 files changed

+236
-165
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-20.04
1414
strategy:
1515
matrix:
16-
python: ["3.8", "3.9", "3.10", "3.11", "3.12"]
16+
python: ["3.9", "3.10", "3.11", "3.12"]
1717
env:
1818
PYTHON: ${{ matrix.python }}
1919
steps:

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ repos:
1010
rev: v3.15.0
1111
hooks:
1212
- id: pyupgrade
13-
args: ["--py38-plus"]
13+
args: ["--py39-plus"]

CHANGES.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Change Log
33
==========
44

5+
5.0.0 (13 August 2024)
6+
========================
7+
8+
- upgraded to pydantic2
9+
- Removed official support for Python 3.8
510

611
4.0.3 (13 August 2024)
712
========================

README.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ First, create a ``conf.py`` file in your project's directory, next to
5656
description="Used for cryptographic signing. "
5757
"https://docs.djangoproject.com/en/2.0/ref/settings/#secret-key")
5858
59-
class Config:
60-
default_files = ["/etc/myproject/myproject.yaml", "myproject.yaml"]
59+
model_config = {"default_files": ["/etc/myproject/myproject.yaml", "myproject.yaml"]}
6160
6261
config = AppConfig()
6362
@@ -90,7 +89,7 @@ Usage
9089
``GoodConf``
9190
^^^^^^^^^^^^
9291

93-
Your subclassed ``GoodConf`` object can include a ``Config`` class with the following
92+
Your subclassed ``GoodConf`` object can include a ``model_config`` dictionary with the following
9493
attributes:
9594

9695
``file_env_var``

0 commit comments

Comments
 (0)