Skip to content

Commit 3718ca6

Browse files
authored
Merge pull request #226 from hasanjawad001/jawad-dev
Fixed python compatibility and support for (3.10-3.13), added utility for BEPS/loop fitting, and fixed missing fitter imports
2 parents 8853256 + 11073fb commit 3718ca6

File tree

5 files changed

+784
-11
lines changed

5 files changed

+784
-11
lines changed

.github/workflows/actions.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: build
22

33
env:
4-
PYTHON_MAIN_VERSION: 3.9
4+
PYTHON_MAIN_VERSION: "3.10"
55

66
on:
77
pull_request:
@@ -19,14 +19,14 @@ jobs:
1919
strategy:
2020
max-parallel: 5
2121
matrix:
22-
python-version: [3.9, "3.10", "3.11"]
22+
python-version: ["3.10", "3.11", "3.12", "3.13"]
2323

2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v4
2626

2727
- name: Set up Python ${{ matrix.python-version }}
2828

29-
uses: actions/setup-python@v3
29+
uses: actions/setup-python@v5
3030
with:
3131
python-version: ${{ matrix.python-version }}
3232
- name: Install dependencies
@@ -57,8 +57,9 @@ jobs:
5757
pytest --cov=./ --cov-report=xml
5858
5959
- name: Upload coverage to Codecov
60-
if: ${{ matrix.python-version == env.PYTHON_MAIN_VERSION }}
61-
uses: codecov/codecov-action@v3
60+
# if: ${{ matrix.python-version == env.PYTHON_MAIN_VERSION }}
61+
if: ${{ github.repository == 'pycroscopy/sidpy' && matrix.python-version == env.PYTHON_MAIN_VERSION }}
62+
uses: codecov/codecov-action@v4
6263
with:
6364
token: ${{ secrets.CODECOV_TOKEN }}
6465
files: ./coverage.xml

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,4 @@ test_scripts/
110110
/docs/source/_autosummary/
111111
/docs/source/notebooks/
112112
tests/test.h5
113+
tests/proc/inputs/

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
'toolz', # dask installation failing without this
1616
'cytoolz', # dask installation failing without this
1717
'dask',
18-
'dask-ml',
18+
'dask-ml>=2025.1.0',
1919
'h5py>=2.6.0',
2020
'matplotlib>=2.0.0',
2121
'distributed>=2.0.0',
@@ -24,11 +24,12 @@
2424
'ipywidgets',
2525
'ipykernel',
2626
'ipython', # Beginning with IPython 6.0, Python 3.3 and above is required.
27-
'scikit-learn',
27+
'scikit-learn>=1.6.1',
2828
'scipy',
2929
'ase',
3030
'ipympl',
31-
'dill'
31+
'dill',
32+
'pyswarms>=1.3.0'
3233
]
3334

3435
setup(

0 commit comments

Comments
 (0)