-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Python 3.13 compatibility + Remove Python 3.9 (#538)
* Add Python 3.13 / remove 3.9 support * pyupgrade 3.10+ * Run mypy without dedicated action * don't fail caching fast * ci: bump Python * bump versions * fix mypy
- Loading branch information
1 parent
27aa5df
commit 27d9b8a
Showing
80 changed files
with
129 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,9 +17,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
name: Build Python package cache | ||
strategy: | ||
fail-fast: true | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.9", "3.10", "3.11", "3.12" ] | ||
python-version: [ "3.10", "3.11", "3.12", "3.13" ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
|
@@ -85,21 +85,30 @@ jobs: | |
typechecks: | ||
runs-on: ubuntu-latest | ||
name: Type checks | ||
needs: cache | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.9", "3.10", "3.11", "3.12" ] | ||
python-version: [ "3.10", "3.11", "3.12", "3.13" ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
- uses: theCapypara/mypy-check@rust-support | ||
name: Run type checks | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
path: 'skytemple_files' | ||
mypy_flags: '--config-file mypy.ini --junit-xml mypy-${{ matrix.python-version }}.xml' | ||
requirements: '-r requirements.txt' | ||
python_version: '${{ matrix.python-version }}' | ||
python-version: ${{ matrix.python-version }} | ||
- uses: actions/cache@v4 | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: py${{ matrix.python-version }}-${{ github.run_id }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools | ||
pip install -r requirements.txt mypy | ||
- name: Run type checks | ||
run: | | ||
mypy --config-file mypy.ini --junit-xml mypy-${{ matrix.python-version }}.xml skytemple_files | ||
- name: Upload Unit Test Results | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
|
@@ -114,7 +123,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.9", "3.10", "3.11", "3.12" ] | ||
python-version: [ "3.10", "3.11", "3.12", "3.13" ] | ||
native: [true, false] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -155,7 +164,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.9" ] | ||
python-version: [ "3.10" ] | ||
native: [true, false] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -218,9 +227,9 @@ jobs: | |
run: | | ||
echo "PACKAGE_VERSION=$(tomlq '.project.version' pyproject.toml -r)" >> $GITHUB_ENV | ||
- name: Build Python wheels | ||
uses: RalfG/[email protected]_x86_64 | ||
with: | ||
python-versions: 'cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312' | ||
run: | | ||
python3 -m pip install --upgrade build | ||
python3 -m build | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,33 +4,33 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "skytemple-files" | ||
version = "1.8.3" | ||
version = "1.8.4" | ||
authors = [ | ||
{name = 'Marco "Capypara" Köpcke', email = "[email protected]"}, | ||
# see About dialog or GitHub contributors list for additional people. | ||
] | ||
description = "Python library to edit the ROM of Pokémon Mystery Dungeon Explorers of Sky" | ||
readme = "README.rst" | ||
requires-python = ">=3.9" | ||
requires-python = ">=3.10" | ||
keywords = ["rom-hacking", "game-modding", "skytemple"] | ||
license = {text = "GPL-3.0-or-later"} | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Programming Language :: Python", | ||
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", | ||
"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", | ||
] | ||
dependencies = [ | ||
"pmdsky-debug-py == 10.0.21", | ||
"ndspy >= 3.0.0", | ||
"range-typed-integers >= 1.0.1", | ||
"Pillow >= 6.1.0", | ||
"appdirs >= 1.4.0", | ||
"explorerscript >= 0.2.1, < 0.3.0", | ||
"skytemple-rust >= 1.8.2, < 1.9.0", | ||
"explorerscript >= 0.2.2, < 0.3.0", | ||
"skytemple-rust >= 1.8.4, < 1.9.0", | ||
'pyobjc==10.3.2; sys_platform == "darwin"', | ||
"dungeon-eos==0.0.5", | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.