Skip to content

Commit 6d0e5bf

Browse files
Fix build
* Make linters happy * Update CHANGELOG and version * Update CHANGELOG * Add Python 3.13, remove 3.8 * Remove Python 3.13 from build matrix Remove Python 3.13 from build matrix, as pydantic_core cannot be installed in it. However, the package should work fine as pydantic_core is only used in tests.
1 parent 2d131d3 commit 6d0e5bf

File tree

6 files changed

+22
-30
lines changed

6 files changed

+22
-30
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
23+
python-version: [3.9, "3.10", "3.11", "3.12"]
2424

2525
steps:
2626
- uses: actions/checkout@v1
@@ -33,27 +33,9 @@ jobs:
3333
with:
3434
python-version: ${{ matrix.python-version }}
3535

36-
- uses: actions/cache@v1
37-
id: depcache
38-
with:
39-
path: deps
40-
key: requirements-pip-${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }}
41-
42-
- name: Download dependencies
43-
if: steps.depcache.outputs.cache-hit != 'true'
44-
run: |
45-
pip download --dest=deps -r requirements.txt
46-
4736
- name: Install dependencies
4837
run: |
49-
PYVER=`python -V 2>&1`
50-
51-
if [ "${PYVER:0:-2}" == "Python 3.10" ]; then
52-
pip install -r requirements.txt
53-
else
54-
pip install -U --no-index --find-links=deps deps/*
55-
fi
56-
38+
pip install -r requirements.txt
5739
pip install black isort
5840
5941
- name: Run tests
@@ -84,18 +66,18 @@ jobs:
8466
8567
- name: Install distribution dependencies
8668
run: pip install build
87-
if: matrix.python-version == 3.11
69+
if: matrix.python-version == 3.12
8870

8971
- name: Create distribution package
9072
run: python -m build
91-
if: matrix.python-version == 3.11
73+
if: matrix.python-version == 3.12
9274

9375
- name: Upload distribution package
9476
uses: actions/upload-artifact@master
9577
with:
9678
name: dist
9779
path: dist
98-
if: matrix.python-version == 3.11
80+
if: matrix.python-version == 3.12
9981

10082
publish:
10183
runs-on: ubuntu-latest
@@ -108,10 +90,10 @@ jobs:
10890
name: dist
10991
path: dist
11092

111-
- name: Use Python 3.11
93+
- name: Use Python 3.12
11294
uses: actions/setup-python@v4
11395
with:
114-
python-version: '3.11'
96+
python-version: '3.12'
11597

11698
- name: Install dependencies
11799
run: |

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ __pycache__
88
_test_files/
99
dist/
1010
venv312/
11+
.local

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.1.0] - 2025-01-18
9+
10+
- Add additionalProperties to Schema object, by @tyzhnenko.
11+
- Upgrade package MarkupSafe to 3.0.1, by @stollero.
12+
- Remove Python 3.8 from the build matrix (EOF at the end of 2024).
13+
814
## [1.0.9] - 2023-11-20
915
- Adds support for Python 3.12.
1016
- Adds `MarkupSafe` among required dependencies (and not optional).

openapidocs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = "1.0.9"
1+
__version__ = "1.1.0"
22
VERSION = __version__

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ classifiers = [
1313
"Development Status :: 5 - Production/Stable",
1414
"License :: OSI Approved :: MIT License",
1515
"Programming Language :: Python :: 3",
16-
"Programming Language :: Python :: 3.8",
1716
"Programming Language :: Python :: 3.9",
1817
"Programming Language :: Python :: 3.10",
1918
"Programming Language :: Python :: 3.11",
2019
"Programming Language :: Python :: 3.12",
20+
"Programming Language :: Python :: 3.13",
2121
"Operating System :: OS Independent",
2222
]
2323
keywords = [

tests/test_v3.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ class FooParent:
9292

9393
class TestItem:
9494
@abstractmethod
95-
def get_instance(self) -> Any: ...
95+
def get_instance(self) -> Any:
96+
...
9697

9798
def expected_yaml(self) -> str:
9899
return dedent(self.yaml()).strip()
@@ -101,10 +102,12 @@ def expected_json(self) -> str:
101102
return dedent(self.json()).strip()
102103

103104
@abstractmethod
104-
def json(self) -> str: ...
105+
def json(self) -> str:
106+
...
105107

106108
@abstractmethod
107-
def yaml(self) -> str: ...
109+
def yaml(self) -> str:
110+
...
108111

109112

110113
class ParameterExample1(TestItem):

0 commit comments

Comments
 (0)