From 7fec6f7b372dc7c7738f148ec773ca3d2a8f0913 Mon Sep 17 00:00:00 2001 From: Thijs Triemstra Date: Sun, 27 Oct 2024 09:06:04 +0100 Subject: [PATCH] release: 3.14.0 (#392) * release: 3.14.0 * happy new year * ci: update deps * bump version: 3.14.0 * fix lint error * ci: update deps * update changelog * Update main.yml * add py3.13 --- .github/workflows/main.yml | 8 ++++---- .github/workflows/publish-to-pypi.yml | 8 ++++---- CHANGES.rst | 2 +- LICENSE.rst | 2 +- luma/oled/__init__.py | 4 ++-- setup.cfg | 1 + tests/test_ssd1351.py | 4 ++-- 7 files changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e8fed7a..09a729d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,12 +12,12 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-minor-version: [8, 9, 10, 11, 12, 13-dev] + python-minor-version: [8, 9, 10, 11, 12, 13] name: Python 3.${{ matrix.python-minor-version }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup pip cache - uses: actions/cache@v3 + uses: actions/cache@v4 id: pipcache with: path: ~/.cache/pip @@ -27,7 +27,7 @@ jobs: - name: Install system dependencies run: sudo apt-get install graphviz - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: 3.${{ matrix.python-minor-version }} check-latest: true diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 6539575..a57de50 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -13,11 +13,11 @@ jobs: name: Build and publish Python package runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.9 - uses: actions/setup-python@v4 + - uses: actions/checkout@v4 + - name: Set up Python 3.10 + uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: "3.10" - name: Install pypa/build run: | python -m pip install --upgrade setuptools pip wheel twine diff --git a/CHANGES.rst b/CHANGES.rst index cb7888a..3e910e5 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,7 @@ ChangeLog +------------+---------------------------------------------------------------------+------------+ | Version | Description | Date | +============+=====================================================================+============+ -| **3.14.0** | * Drop support for Python 3.7 | TBD | +| **3.14.0** | * Drop support for Python 3.7 | 2024/10/26 | +------------+---------------------------------------------------------------------+------------+ | **3.13.0** | * Add support for 128x128 SH1107 | 2023/08/12 | +------------+---------------------------------------------------------------------+------------+ diff --git a/LICENSE.rst b/LICENSE.rst index dff35ca..849d3e6 100644 --- a/LICENSE.rst +++ b/LICENSE.rst @@ -1,7 +1,7 @@ The MIT License (MIT) --------------------- -Copyright (c) 2014-2023 Richard Hull and contributors +Copyright (c) 2014-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/luma/oled/__init__.py b/luma/oled/__init__.py index 495bf3b..dd45504 100644 --- a/luma/oled/__init__.py +++ b/luma/oled/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2014-2023 Richard Hull and contributors +# Copyright (c) 2014-2024 Richard Hull and contributors # See LICENSE.rst for details. """ @@ -7,4 +7,4 @@ SSD1351, SSD1362, SH1106 and SH1107 devices. """ -__version__ = '3.13.0' +__version__ = '3.14.0' diff --git a/setup.cfg b/setup.cfg index 39dc799..f91ec12 100644 --- a/setup.cfg +++ b/setup.cfg @@ -23,6 +23,7 @@ classifiers = Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 Programming Language :: Python :: 3.12 + Programming Language :: Python :: 3.13 [options] zip_safe = False diff --git a/tests/test_ssd1351.py b/tests/test_ssd1351.py index de6a4cd..50bad1b 100644 --- a/tests/test_ssd1351.py +++ b/tests/test_ssd1351.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# Copyright (c) 2017-18 Richard Hull and contributors +# Copyright (c) 2017-2024 Richard Hull and contributors # See LICENSE.rst for details. import pytest @@ -215,7 +215,7 @@ def command(*cmd): assert recordings == get_reference_data('demo_ssd1351') -@ pytest.mark.parametrize("bit,expected_16_bit_color", [ +@pytest.mark.parametrize("bit,expected_16_bit_color", [ (7, [0b10000100, 0b00010000]), (6, [0b01000010, 0b00001000]), (5, [0b00100001, 0b00000100]),