Skip to content

Commit 3e40ee8

Browse files
committed
fully update
1 parent 2f5f889 commit 3e40ee8

31 files changed

Lines changed: 42 additions & 215 deletions

File tree

.github/actions/comment-docs-preview-in-pr/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.7
1+
FROM python:3.8
22

33
RUN pip install httpx "pydantic==1.5.1" pygithub
44

.github/actions/watch-previews/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.7
1+
FROM python:3.8
22

33
RUN pip install httpx PyGithub "pydantic==1.5.1"
44

.github/workflows/build-docs.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,9 @@ jobs:
3737
key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-root-docs
3838
- name: Install poetry
3939
if: steps.cache.outputs.cache-hit != 'true'
40-
# TODO: remove python -m pip install --force git+https://github.com/python-poetry/poetry-core.git@ad33bc2
41-
# once there's a release of Poetry 1.2.x including poetry-core > 1.1.0a6
42-
# Ref: https://github.com/python-poetry/poetry-core/pull/188
4340
run: |
4441
python -m pip install --upgrade pip
45-
python -m pip install --force git+https://github.com/python-poetry/poetry-core.git@ad33bc2
46-
python -m pip install "poetry==1.2.0a2"
42+
python -m pip install poetry
4743
python -m poetry plugin add poetry-version-plugin
4844
- name: Configure poetry
4945
run: python -m poetry config virtualenvs.create false

.github/workflows/publish.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Python
2020
uses: actions/setup-python@v4
2121
with:
22-
python-version: "3.7"
22+
python-version: "3.8"
2323
# Allow debugging with tmate
2424
- name: Setup tmate session
2525
uses: mxschmitt/action-tmate@v3
@@ -33,13 +33,9 @@ jobs:
3333
key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-root
3434
- name: Install poetry
3535
if: steps.cache.outputs.cache-hit != 'true'
36-
# TODO: remove python -m pip install --force git+https://github.com/python-poetry/poetry-core.git@ad33bc2
37-
# once there's a release of Poetry 1.2.x including poetry-core > 1.1.0a6
38-
# Ref: https://github.com/python-poetry/poetry-core/pull/188
3936
run: |
4037
python -m pip install --upgrade pip
41-
python -m pip install --force git+https://github.com/python-poetry/poetry-core.git@ad33bc2
42-
python -m pip install "poetry==1.2.0a2"
38+
python -m pip install poetry
4339
python -m poetry plugin add poetry-version-plugin
4440
- name: Configure poetry
4541
run: python -m poetry config virtualenvs.create false

.github/workflows/test.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,16 @@ jobs:
4040
key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-root
4141
- name: Install poetry
4242
if: steps.cache.outputs.cache-hit != 'true'
43-
# TODO: remove python -m pip install --force git+https://github.com/python-poetry/poetry-core.git@ad33bc2
44-
# once there's a release of Poetry 1.2.x including poetry-core > 1.1.0a6
45-
# Ref: https://github.com/python-poetry/poetry-core/pull/188
4643
run: |
4744
python -m pip install --upgrade pip
48-
python -m pip install --force git+https://github.com/python-poetry/poetry-core.git@ad33bc2
49-
python -m pip install "poetry==1.2.0a2"
45+
python -m pip install poetry
5046
python -m poetry plugin add poetry-version-plugin
5147
- name: Configure poetry
5248
run: python -m poetry config virtualenvs.create false
5349
- name: Install Dependencies
5450
if: steps.cache.outputs.cache-hit != 'true'
5551
run: python -m poetry install
5652
- name: Lint
57-
if: ${{ matrix.python-version != '3.6.15' }}
5853
run: python -m poetry run bash scripts/lint.sh
5954
- run: mkdir coverage
6055
- name: Test

docs/advanced/asyncio.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,6 @@ Running an asynchronous function (python3.7+)
8080
{!./docs_src/advanced/asyncio/tutorial001.py[ln:53-55]!}
8181
```
8282

83-
Running an asynchronous function (python3.6)
84-
85-
```Python
86-
{!./docs_src/advanced/asyncio/tutorial001_py36.py[ln:53-56]!}
87-
```
88-
8983
Full example.
9084

9185
```Python

docs/advanced/index.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ At some point it will include:
77
* How to use `async` and `await` with the async session.
88
* See: `docs_src\tutorial_async` for working examples as equivalents to `docs_src\tutorial`
99
* Also see `tests\tutorial_async` for fully functioning pytest tests against the examples
10-
*
11-
* These examples and tests are also passing `mypy` static checking if #PR58 addressing Issue#54 is included
12-
* also note the TODO: for PR#435 subclassing the SQLAlchemey requirements fully into SQLModel
13-
*
1410
* How to run migrations.
1511
* How to combine **SQLModel** models with SQLAlchemy.
1612
* ...and more. 🤓

docs/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ If you already cloned the repository and you know that you need to deep dive in
88

99
### Python
1010

11-
SQLModel supports Python 3.8 and above, but for development you should have at least **Python 3.7**.
11+
SQLModel supports Python 3.8 and above.
1212

1313
### Poetry
1414

docs/tutorial/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ $ cd sqlmodel-tutorial
6464

6565
Make sure you have an officially supported version of Python.
6666

67-
Currently it is **Python 3.8** and above (Python 3.6 and 3.7 was already deprecated).
67+
Currently it is **Python 3.8** and above (Python 3.6 and 3.7 were already deprecated).
6868

6969
You can check which version you have with:
7070

docs_src/tutorial/code_structure/tutorial001/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from pydantic import condecimal
21
from typing import List, Optional
32

3+
from pydantic import condecimal
44
from sqlmodel import Field, Relationship, SQLModel
55

66

0 commit comments

Comments
 (0)