Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor model classes and provide to_dict method #160

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Drop 3.8 support
oschwald committed Jan 16, 2025
commit 04048a2d681c4b1076810995d8fe86f4b8e85f6f
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8, 3.9, "3.10", 3.11, 3.12, 3.13]
python-version: [3.9, "3.10", 3.11, 3.12, 3.13]

name: Python ${{ matrix.python-version }} on ${{ matrix.platform }}
runs-on: ${{ matrix.platform }}
2 changes: 2 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -12,6 +12,8 @@ History
classes are no longer immutable. For most users, these differences should
not impact their integration.
* BREAKING CHANGE: Model attributes that were formerly tuples are now lists.
* IMPORTANT: Python 3.9 or greater is required. If you are using an older
version, please use an earlier release.
* Added ``to_dict`` methods to the model classes. These return a dict version
of the object that is suitable for serialization. It recursively calls
``to_dict`` or the equivalent on all objects contained within the object.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -307,7 +307,7 @@ For asynchronous reporting:
Requirements
------------

Python 3.8 or greater is required. Older versions are not supported.
Python 3.9 or greater is required. Older versions are not supported.

Versioning
----------
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ dependencies = [
"requests>=2.24.0,<3.0.0",
"voluptuous",
]
requires-python = ">=3.8"
requires-python = ">=3.9"
readme = "README.rst"
license = {text = "Apache License 2.0"}
classifiers = [
@@ -22,7 +22,6 @@ classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
3 changes: 1 addition & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -3,11 +3,10 @@
max-line-length = 88

[tox:tox]
envlist = {py38,py39,py310,py311,py313}-test,py313-{black,lint,flake8,mypy}
envlist = {py39,py310,py311,py313}-test,py313-{black,lint,flake8,mypy}

[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311