Repository: rm-hull/luma.core (language: python)

Issue:
remove usage of OrderedDict
dict gained the [ability to remember insertion order in py3.7](https://docs.python.org/3.8/library/collections.html#ordereddict-objects), so this OrderedDict usage isn't needed any longer


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 6e8ebb3..db88b14 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -12,7 +12,7 @@ jobs:
     strategy:
       matrix:
         os: [ubuntu-latest]
-        python-minor-version: [7, 8, 9, 10, 11, 12, 13-dev]
+        python-minor-version: [8, 9, 10, 11, 12, 13-dev]
     name: Python 3.${{ matrix.python-minor-version }}
     steps:
       - uses: actions/checkout@v3
@@ -40,7 +40,6 @@ jobs:
           python_env=$(echo $TOX_ENV | sed -e s/-dev$//)
           python -m tox -e ${python_env}
       - name: QA
-        if: ${{ steps.setuppy.outputs.python-version > 7 }}
         env:
           TOX_ENV: qa,doc
         run: python -m tox -e $TOX_ENV
diff --git a/CHANGES.rst b/CHANGES.rst
index 4f22446..47c81df 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -4,6 +4,8 @@ ChangeLog
 +------------+---------------------------------------------------------------------+------------+
 | Version    | Description                                                         | Date       |
 +============+=====================================================================+============+
+| **2.5.0**  | * Drop support for Python 3.7                                       | TBD        |
++------------+---------------------------------------------------------------------+------------+
 | **2.4.2**  | * Add support for spi-mode in cmdline                               | 2024/01/30 |
 +------------+---------------------------------------------------------------------+------------+
 | **2.4.1**  | * Adjust type check                                                 | 2023/09/01 |
diff --git a/README.rst b/README.rst
index f591eda..7290adc 100644
--- a/README.rst
+++ b/README.rst
@@ -80,7 +80,7 @@ License
 -------
 The MIT License (MIT)
 
-Copyright (c) 2017-2022 Richard Hull and contributors
+Copyright (c) 2017-2024 Richard Hull and contributors
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
diff --git a/setup.cfg b/setup.cfg
index 39bd819..be854eb 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -18,7 +18,6 @@ classifiers =
     Topic :: System :: Hardware
     Topic :: System :: Hardware :: Hardware Drivers
     Programming Language :: Python :: 3
-    Programming Language :: Python :: 3.7
     Programming Language :: Python :: 3.8
     Programming Language :: Python :: 3.9
     Programming Language :: Python :: 3.10
@@ -28,7 +27,7 @@ classifiers =
 [options]
 zip_safe = False
 packages = find_namespace:
-python_requires = >=3.7, <4
+python_requires = >=3.8, <4
 install_requires =
     pillow>=9.2.0
     smbus2
diff --git a/tox.ini b/tox.ini
index 3c02e4e..0fcf668 100644
--- a/tox.ini
+++ b/tox.ini
@@ -2,7 +2,7 @@
 # See LICENSE.rst for details.
 
 [tox]
-envlist = py{37,38,39,310,311,312,313},qa,doc
+envlist = py{38,39,310,311,312,313},qa,doc
 skip_missing_interpreters = True
 
 [testenv]


Test patch:
diff --git a/tests/helpers.py b/tests/helpers.py
index 3fe0bf9..124e79f 100644
--- a/tests/helpers.py
+++ b/tests/helpers.py
@@ -1,5 +1,5 @@
 # -*- coding: utf-8 -*-
-# Copyright (c) 2017-2022 Richard Hull and contributors
+# Copyright (c) 2017-2024 Richard Hull and contributors
 # See LICENSE.rst for details.
 
 """
@@ -76,7 +76,7 @@ def assert_identical_image(reference, target, img_path):
     :type img_path: str
     """
     bbox = ImageChops.difference(reference, target).getbbox()
-    #target.save(img_path)
+    # target.save(img_path)
     assert bbox is None, f'{img_path} is not identical to generated image'