diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6e96013..7afd251 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.8, 3.9, "3.10", "3.11", "3.12"] + python-version: [3.9, "3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v1 @@ -33,27 +33,9 @@ jobs: with: python-version: ${{ matrix.python-version }} - - uses: actions/cache@v1 - id: depcache - with: - path: deps - key: requirements-pip-${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }} - - - name: Download dependencies - if: steps.depcache.outputs.cache-hit != 'true' - run: | - pip download --dest=deps -r requirements.txt - - name: Install dependencies run: | - PYVER=`python -V 2>&1` - - if [ "${PYVER:0:-2}" == "Python 3.10" ]; then - pip install -r requirements.txt - else - pip install -U --no-index --find-links=deps deps/* - fi - + pip install -r requirements.txt pip install black isort - name: Run tests @@ -84,18 +66,18 @@ jobs: - name: Install distribution dependencies run: pip install build - if: matrix.python-version == 3.11 + if: matrix.python-version == 3.12 - name: Create distribution package run: python -m build - if: matrix.python-version == 3.11 + if: matrix.python-version == 3.12 - name: Upload distribution package uses: actions/upload-artifact@master with: name: dist path: dist - if: matrix.python-version == 3.11 + if: matrix.python-version == 3.12 publish: runs-on: ubuntu-latest @@ -108,10 +90,10 @@ jobs: name: dist path: dist - - name: Use Python 3.11 + - name: Use Python 3.12 uses: actions/setup-python@v4 with: - python-version: '3.11' + python-version: '3.12' - name: Install dependencies run: | diff --git a/.gitignore b/.gitignore index c8496ae..5181ab0 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ __pycache__ _test_files/ dist/ venv312/ +.local diff --git a/CHANGELOG.md b/CHANGELOG.md index 5387ada..7cf86b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.0] - 2025-01-18 + +- Add additionalProperties to Schema object, by @tyzhnenko. +- Upgrade package MarkupSafe to 3.0.1, by @stollero. +- Remove Python 3.8 from the build matrix (EOF at the end of 2024). + ## [1.0.9] - 2023-11-20 - Adds support for Python 3.12. - Adds `MarkupSafe` among required dependencies (and not optional). diff --git a/openapidocs/__init__.py b/openapidocs/__init__.py index 38cedf9..43d7d68 100644 --- a/openapidocs/__init__.py +++ b/openapidocs/__init__.py @@ -1,2 +1,2 @@ -__version__ = "1.0.9" +__version__ = "1.1.0" VERSION = __version__ diff --git a/pyproject.toml b/pyproject.toml index 4d888a6..0bdddfa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,11 +13,11 @@ classifiers = [ "Development Status :: 5 - Production/Stable", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Operating System :: OS Independent", ] keywords = [ diff --git a/tests/test_v3.py b/tests/test_v3.py index d8b8200..a90fa1e 100644 --- a/tests/test_v3.py +++ b/tests/test_v3.py @@ -92,7 +92,8 @@ class FooParent: class TestItem: @abstractmethod - def get_instance(self) -> Any: ... + def get_instance(self) -> Any: + ... def expected_yaml(self) -> str: return dedent(self.yaml()).strip() @@ -101,10 +102,12 @@ def expected_json(self) -> str: return dedent(self.json()).strip() @abstractmethod - def json(self) -> str: ... + def json(self) -> str: + ... @abstractmethod - def yaml(self) -> str: ... + def yaml(self) -> str: + ... class ParameterExample1(TestItem):