Skip to content

Commit 5f0c1b4

Browse files
authored
Merge pull request diffpy#137 from bobleesj/gooey-ci-build
Support 3.12 CI - conda install `wxPython`, pip install `gooey` - to prevent building `wxPython`
2 parents a2572da + c8ae738 commit 5f0c1b4

File tree

4 files changed

+10
-24
lines changed

4 files changed

+10
-24
lines changed

.github/workflows/matrix-and-codecov-on-merge-to-main.yml

+5-14
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
24-
python-version: ["3.11", "3.12", "3.13"]
24+
python-version: ["3.11", "3.12"]
2525
env:
26-
LATEST_PYTHON_VERSION: "3.13"
26+
LATEST_PYTHON_VERSION: "3.12"
2727
steps:
2828
- name: Check out diffpy.labpdfproc
2929
uses: actions/checkout@v4
@@ -42,20 +42,11 @@ jobs:
4242
conda config --set always_yes yes
4343
--set changeps1 no
4444
45-
- name: Install diffpy.labpdfproc and requirements for Linux
46-
if: runner.os == 'Linux'
45+
- name: Install diffpy.labpdfproc and requirements
4746
run: |
48-
sudo apt-get update
49-
sudo apt-get install -y libgtk-3-dev
5047
conda install --file requirements/test.txt
51-
pip install -r requirements/pip.txt
52-
python -m pip install . --no-deps
53-
54-
- name: Install diffpy.labpdfproc and requirements for non-Linux
55-
if: runner.os != 'Linux'
56-
run: |
57-
conda install --file requirements/test.txt
58-
pip install -r requirements/pip.txt
48+
conda install --file requirements/conda.txt
49+
pip install gooey
5950
python -m pip install . --no-deps
6051
6152
- name: Validate diffpy.labpdfproc

.github/workflows/tests-on-pr.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,18 @@ jobs:
2525
auto-update-conda: true
2626
environment-file: environment.yml
2727
auto-activate-base: false
28-
python-version: 3.13
28+
python-version: 3.12
2929

3030
- name: Conda config
3131
run: >-
3232
conda config --set always_yes yes
3333
--set changeps1 no
3434
35-
- name: Install libgtk for Linux
36-
run: |
37-
sudo apt-get update
38-
sudo apt-get install -y libgtk-3-dev
39-
4035
- name: Install diffpy.labpdfproc and requirements
4136
run: |
4237
conda install --file requirements/test.txt
43-
pip install -r requirements/pip.txt
38+
conda install --file requirements/conda.txt
39+
pip install gooey
4440
python -m pip install . --no-deps
4541
4642

pyproject.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ maintainers = [
1414
description = "Tools for processing x-ray powder diffraction data from laboratory sources."
1515
keywords = ['powder xrd', 'absorption correction', 'pdf', 'diffpy']
1616
readme = "README.rst"
17-
requires-python = ">=3.11, <3.14"
17+
requires-python = ">=3.11, <3.13"
1818
classifiers = [
1919
'Development Status :: 5 - Production/Stable',
2020
'Environment :: Console',
@@ -27,7 +27,6 @@ classifiers = [
2727
'Operating System :: Unix',
2828
'Programming Language :: Python :: 3.11',
2929
'Programming Language :: Python :: 3.12',
30-
'Programming Language :: Python :: 3.13',
3130
'Topic :: Scientific/Engineering :: Physics',
3231
'Topic :: Scientific/Engineering :: Chemistry',
3332
]

requirements/conda.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ numpy
22
diffpy.utils
33
pandas
44
scipy
5-
gooey
5+
wxpython

0 commit comments

Comments
 (0)