Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/master' into qps_mo…
Browse files Browse the repository at this point in the history
…difications

# Conflicts:
#	pyqtgraph/__init__.py
  • Loading branch information
jakimowb committed Jun 7, 2024
2 parents cb3bac4 + f6db6ec commit da35c3a
Show file tree
Hide file tree
Showing 209 changed files with 15,720 additions and 7,385 deletions.
14 changes: 14 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# These are supported funding model platforms

github: [j9ac9k] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
polar: # Replace with a single Polar username
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
44 changes: 0 additions & 44 deletions .github/pull_request_template.md

This file was deleted.

110 changes: 110 additions & 0 deletions .github/workflows/check_prereleases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
name: check_qt_prereleases

on: workflow_dispatch

env:
PIP_DISABLE_PIP_VERSION_CHECK: 1

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
test-qt-prerelease:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
qt-lib: [pyqt6, pyside]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: "Install Linux VirtualDisplay"
if: runner.os == 'Linux'
run: |
sudo apt-get update -y --allow-releaseinfo-change
sudo apt-get install --no-install-recommends -y \
libxkbcommon-x11-0 \
x11-utils \
libyaml-dev \
libegl1-mesa \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-randr0 \
libxcb-render-util0 \
libxcb-xinerama0 \
libopengl0 \
libxcb-cursor0 \
- name: "Install Windows-Mesa OpenGL DLL"
if: runner.os == 'Windows'
run: |
curl -L --output mesa.7z --url https://github.com/pal1000/mesa-dist-win/releases/download/24.0.6/mesa3d-24.0.6-release-msvc.7z
7z x mesa.7z -o*
powershell.exe mesa\systemwidedeploy.cmd 1
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install PySide6
if: matrix.qt-lib == 'pyside'
run: |
python -m pip install --no-index \
--find-links https://download.qt.io/snapshots/ci/pyside/dev/latest/pyside6/ \
--pre \
PySide6_Essentials
shell: bash
- name: Install PyQt6
if: matrix.qt-lib == 'pyqt6'
run: |
python -m pip install --index-url https://www.riverbankcomputing.com/pypi/simple/ \
--pre \
--only-binary=PyQt6 \
PyQt6
shell: bash
- name: Install Regular Dependencies
run: |
python -m pip install --pre numpy scipy pyopengl pytest .
- name: Install pytest-xvfb
run: |
python -m pip install pytest-xvfb
if: runner.os == 'Linux'
- name: 'Debug Info'
run: |
echo python location: `which python`
echo python version: `python --version`
echo pytest location: `which pytest`
echo installed packages
python -m pip list
echo pyqtgraph system info
python -c "import pyqtgraph as pg; pg.systemInfo()"
shell: bash
env:
QT_DEBUG_PLUGINS: 1
- name: 'XVFB Display Info'
run: |
xvfb-run --server-args="-screen 0, 1920x1200x24 -ac +extension GLX +render -noreset" python -m pyqtgraph.util.glinfo
xvfb-run --server-args="-screen 0, 1920x1200x24 -ac +extension GLX +render -noreset" python -m pyqtgraph.util.get_resolution
if: runner.os == 'Linux'
- name: 'Display Info'
run: |
python -m pyqtgraph.util.glinfo
python -m pyqtgraph.util.get_resolution
if: runner.os != 'Linux'
- name: Run Tests
run: |
mkdir "$SCREENSHOT_DIR"
pytest tests -v
pytest pyqtgraph/examples -v
shell: bash
- name: Upload Screenshots
if: failure()
uses: actions/upload-artifact@v4
with:
name: Screenshots - Qt-Bindings ${{ matrix.qt-lib }} - ${{ matrix.os }})
path: ${{ env.SCREENSHOT_DIR }}
if-no-files-found: ignore
env:
SCREENSHOT_DIR: screenshots
1 change: 0 additions & 1 deletion .github/workflows/etc/environment-pyqt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ channels:
- conda-forge
dependencies:
- pyqt
- qt-main
- numpy
- nomkl
- scipy
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/etc/environment-pyside.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ name: test
channels:
- conda-forge
dependencies:
- pyside2
- qt-main
- pyside6
- numpy
- nomkl
- scipy
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/etc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# numpy based on python version and NEP-29 requirements
numpy; python_version == '3.10'
numpy; python_version == '3.11'
numpy~=1.22.0; python_version == '3.9'
numpy; python_version == '3.12'
numpy~=1.23.0; python_version == '3.10'

# image testing
scipy==1.11.2
scipy==1.13.1

# optional high performance paths
numba==0.57.1; python_version == '3.9'
numba==0.59.1; python_version == '3.10'

# optional 3D
pyopengl==3.1.7

# supplimental tools
matplotlib==3.7.2
h5py==3.9.0
matplotlib==3.9.0
h5py==3.11.0

# testing
pytest==7.4.0
pytest-xdist==3.3.1
pytest==8.2.2
pytest-xdist==3.6.1
pytest-xvfb==3.0.0; sys_platform == 'linux'
Loading

0 comments on commit da35c3a

Please sign in to comment.