⬆️ Drop support for Python 3.7, require Python 3.8 or above (#1316)

This commit is contained in:
Sofie Van Landeghem
2025-03-16 21:32:07 +01:00
committed by GitHub
parent de78b8c7bc
commit b66ec8eed3
11 changed files with 15 additions and 33 deletions

View File

@ -342,7 +342,7 @@ And as we created the **engine** with `echo=True`, we can see the SQL statements
////
//// tab | Python 3.7+
//// tab | Python 3.8+
```Python
{!./docs_src/tutorial/automatic_id_none_refresh/tutorial002.py!}

View File

@ -562,7 +562,7 @@ Now, let's give the code a final look:
////
//// tab | Python 3.7+
//// tab | Python 3.8+
```{.python .annotate}
{!./docs_src/tutorial/create_db_and_table/tutorial003.py!}

View File

@ -227,7 +227,7 @@ Now let's review all that code:
////
//// tab | Python 3.7+
//// tab | Python 3.8+
```{ .python .annotate hl_lines="72-90" }
{!./docs_src/tutorial/delete/tutorial002.py!}

View File

@ -356,7 +356,7 @@ Now we can run the tests with `pytest` and see the results:
$ pytest
============= test session starts ==============
platform linux -- Python 3.7.5, pytest-6.2.4, py-1.10.0, pluggy-0.13.1
platform linux -- Python 3.10.0, pytest-7.4.4, pluggy-1.5.0
rootdir: /home/user/code/sqlmodel-tutorial
<b>collected 7 items </b>

View File

@ -39,7 +39,7 @@ This is the code we had to create the database and table, nothing new here:
////
//// tab | Python 3.7+
//// tab | Python 3.8+
```{.python .annotate hl_lines="22" }
{!./docs_src/tutorial/create_db_and_table/tutorial003.py[ln:1-20]!}
@ -343,7 +343,7 @@ Let's focus on the new code:
////
//// tab | Python 3.7+
//// tab | Python 3.8+
```{.python .annotate }
{!./docs_src/tutorial/insert/tutorial003.py!}

View File

@ -273,7 +273,7 @@ Let's review the code up to this point:
////
//// tab | Python 3.7+
//// tab | Python 3.8+
```{ .python .annotate }
{!./docs_src/tutorial/select/tutorial002.py!}

View File

@ -236,7 +236,7 @@ Now let's review all that code:
////
//// tab | Python 3.7+
//// tab | Python 3.8+
```{ .python .annotate hl_lines="44-55" }
{!./docs_src/tutorial/update/tutorial002.py!}
@ -272,7 +272,7 @@ This also means that you can update several fields (attributes, columns) at once
////
//// tab | Python 3.7+
//// tab | Python 3.8+
```{ .python .annotate hl_lines="15-17 19-21 23" }
# Code above omitted 👆
@ -296,7 +296,7 @@ This also means that you can update several fields (attributes, columns) at once
////
//// tab | Python 3.7+
//// tab | Python 3.8+
```Python
{!./docs_src/tutorial/update/tutorial004.py!}