-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #533 from nicoddemus/drop-py37-add-py312
Drop Python 3.7 and add official 3.12 support
- Loading branch information
Showing
8 changed files
with
63 additions
and
46 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 |
---|---|---|
|
@@ -7,30 +7,38 @@ on: | |
|
||
jobs: | ||
|
||
package: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build and Check Package | ||
uses: hynek/[email protected] | ||
|
||
deploy: | ||
needs: [package] | ||
|
||
if: github.repository == 'pytest-dev/pytest-qt' | ||
|
||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
id-token: write # For PyPI trusted publishers. | ||
contents: write # For release. | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v3 | ||
- name: Download Package | ||
uses: actions/download-artifact@v3 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Build package | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build | ||
python -m build | ||
name: Packages | ||
path: dist | ||
|
||
- name: Publish package to PyPI | ||
uses: pypa/[email protected] | ||
uses: pypa/[email protected] | ||
|
||
- name: GitHub Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.pypi_token }} | ||
body_path: scripts/latest-release-notes.md | ||
files: dist/* |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: build | ||
name: test | ||
|
||
on: [push, pull_request] | ||
|
||
|
@@ -8,42 +8,49 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
package: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Build and Check Package | ||
uses: hynek/[email protected] | ||
|
||
test: | ||
|
||
needs: [package] | ||
|
||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
|
||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | ||
qt-lib: [pyqt5, pyqt6, pyside2, pyside6] | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
include: | ||
- python-version: "3.7" | ||
tox-env: "py37" | ||
- python-version: "3.8" | ||
tox-env: "py38" | ||
- python-version: "3.9" | ||
tox-env: "py39" | ||
- python-version: "3.10" | ||
tox-env: "py310" | ||
- python-version: "3.11" | ||
tox-env: "py311" | ||
exclude: | ||
# Not installable: | ||
# ERROR: Could not find a version that satisfies the requirement pyside2 (from versions: none) | ||
- python-version: "3.11" | ||
qt-lib: pyside2 | ||
os: windows-latest | ||
- python-version: "3.12" | ||
qt-lib: pyside2 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
- name: Download Package | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: Packages | ||
path: dist | ||
|
||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox | ||
|
@@ -52,6 +59,8 @@ jobs: | |
sudo apt-get install -y libgles2-mesa-dev | ||
fi | ||
shell: bash | ||
- name: Test with tox | ||
|
||
- name: Test | ||
shell: bash | ||
run: | | ||
tox -e ${{ matrix.tox-env }}-${{ matrix.qt-lib }} -- -ra --color=yes | ||
tox -e py-${{ matrix.qt-lib }} --installpkg `find dist/*.tar.gz` -- -ra |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,23 +18,25 @@ | |
author_email="[email protected]", | ||
description="pytest support for PyQt and PySide applications", | ||
long_description=Path("README.rst").read_text(encoding="UTF-8"), | ||
long_description_content_type="text/x-rst", | ||
license="MIT", | ||
keywords="pytest qt test unittest", | ||
url="http://github.com/pytest-dev/pytest-qt", | ||
use_scm_version={"write_to": "src/pytestqt/_version.py"}, | ||
setup_requires=["setuptools_scm"], | ||
python_requires=">=3.7", | ||
python_requires=">=3.8", | ||
classifiers=[ | ||
"Development Status :: 5 - Production/Stable", | ||
"Framework :: Pytest", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Topic :: Desktop Environment :: Window Managers", | ||
"Topic :: Software Development :: Quality Assurance", | ||
"Topic :: Software Development :: Testing", | ||
|
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