diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ed8ad7c..1e9e654 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -43,7 +43,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v2 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -54,7 +54,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v1 + uses: github/codeql-action/autobuild@v2 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -68,4 +68,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/run-entry-points.yml b/.github/workflows/run-entry-points.yml index 3bfed15..6c08323 100644 --- a/.github/workflows/run-entry-points.yml +++ b/.github/workflows/run-entry-points.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8] + python-version: [3.11, 3.12, 3.13, 3.14] steps: - uses: actions/checkout@v2 diff --git a/CHANGELOG.md b/CHANGELOG.md index 4818852..5e877e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/). ## [Unreleased] +### Changed +- roll python version support to current (3.11--14) +- updated asyncio commands to avoid deprecated ones (`get_event_loop`) + ## [2022.8.0] ### Changed diff --git a/pyproject.toml b/pyproject.toml index 43235db..b2091b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,8 +17,10 @@ classifiers = [ "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", "Topic :: Scientific/Engineering", ] diff --git a/yaqd_wright/_wright_aerotech.py b/yaqd_wright/_wright_aerotech.py index 579873b..000a671 100644 --- a/yaqd_wright/_wright_aerotech.py +++ b/yaqd_wright/_wright_aerotech.py @@ -24,7 +24,7 @@ def direct_serial_write(self, message): self._serial_port.write(message.encode()) def home(self): - loop = asyncio.get_event_loop() + loop = asyncio.get_running_loop() loop.create_task(self._home()) async def _home(self): diff --git a/yaqd_wright/_wright_stepper_box.py b/yaqd_wright/_wright_stepper_box.py index f8ad2f7..a272870 100644 --- a/yaqd_wright/_wright_stepper_box.py +++ b/yaqd_wright/_wright_stepper_box.py @@ -53,7 +53,7 @@ def direct_serial_write(self, message): self._serial_port.write(message) def home(self): - loop = asyncio.get_event_loop() + loop = asyncio.get_running_loop() loop.create_task(self._home()) async def _home(self):