Skip to content

Commit

Permalink
use PyMieScatt from repo instead of PyPI; add P3.13 to macOS CI;
Browse files Browse the repository at this point in the history
  • Loading branch information
slayoo committed Dec 6, 2024
1 parent 6b412ca commit 463737a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .binder/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ ipywidgets
voila
open-atmos-jupyter-utils
PySDM
PyMieScatt
SciPy<1.14.0
git+https://github.com/bsumlin/PyMieScatt.git
SciPy
4 changes: 4 additions & 0 deletions .github/workflows/tests+pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,16 @@ jobs:
python-version: "3.11"
- platform: macos-13
python-version: "3.12"
- platform: macos-13
python-version: "3.13"
- platform: macos-14
python-version: "3.10"
- platform: macos-14
python-version: "3.11"
- platform: macos-14
python-version: "3.12"
- platform: macos-14
python-version: "3.13"
- manylinux: "manylinux2010_x86_64"
platform: ubuntu-latest
python-version: "3.8"
Expand Down
4 changes: 2 additions & 2 deletions examples/mie_optical.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
"if \"google.colab\" in sys.modules:\n",
" !pip --quiet install open-atmos-jupyter-utils\n",
" from open_atmos_jupyter_utils import pip_install_on_colab\n",
" pip_install_on_colab('PyPartMC', 'PyMieScatt')\n",
" pip_install_on_colab('PyPartMC', 'git+https://github.com/bsumlin/PyMieScatt.git')\n",
"elif 'JUPYTER_IMAGE' in os.environ and '.arm.gov' in os.environ['JUPYTER_IMAGE']:\n",
" !pip --quiet install PyPartMC PyMieScatt open_atmos_jupyter_utils\n",
" !pip --quiet install PyPartMC git+https://github.com/bsumlin/PyMieScatt.git open_atmos_jupyter_utils\n",
" _pypartmc_path = !pip show PyPartMC | fgrep Location | cut -f2 -d' '\n",
" sys.path.extend(_pypartmc_path if _pypartmc_path[0] not in sys.path else [])"
]
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ def build_extension(self, ext): # pylint: disable=too-many-branches
"pytest-order",
"fastcore!=1.5.8", # https://github.com/fastai/fastcore/issues/439
"ghapi",
# https://github.com/bsumlin/PyMieScatt/issues/25
"scipy" + ("<1.14.0" if "CI" in os.environ else ""),
"scipy",
]
},
)

0 comments on commit 463737a

Please sign in to comment.