-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into golovin_pysdm
- Loading branch information
Showing
8 changed files
with
51 additions
and
212 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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
PyPartMC>=0.0.19 | ||
matplotlib | ||
matplotlib!=3.10.0 | ||
ipywidgets | ||
voila | ||
open-atmos-jupyter-utils | ||
numba>=0.61.0rc1; python_version >= '3.13' | ||
PySDM | ||
PyMieScatt | ||
SciPy<1.14.0 | ||
git+https://github.com/bsumlin/PyMieScatt.git | ||
SciPy |
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 |
---|---|---|
|
@@ -39,8 +39,6 @@ jobs: | |
strategy: | ||
matrix: | ||
include: | ||
- platform: windows-latest | ||
python-version: "3.7" | ||
- platform: windows-latest | ||
python-version: "3.8" | ||
- platform: windows-latest | ||
|
@@ -49,21 +47,28 @@ jobs: | |
python-version: "3.10" | ||
- platform: windows-latest | ||
python-version: "3.11" | ||
- platform: macos-12 | ||
python-version: "3.7" | ||
- platform: macos-12 | ||
- platform: windows-latest | ||
python-version: "3.12" | ||
- platform: macos-13 | ||
python-version: "3.8" | ||
- platform: macos-12 | ||
- platform: macos-13 | ||
python-version: "3.9" | ||
- platform: macos-12 | ||
- platform: macos-13 | ||
python-version: "3.10" | ||
- platform: macos-12 | ||
- platform: macos-13 | ||
python-version: "3.11" | ||
- platform: macos-13 | ||
python-version: "3.12" | ||
- platform: macos-13 | ||
python-version: "3.13" | ||
- platform: macos-14 | ||
python-version: "system" | ||
- manylinux: "manylinux2010_x86_64" | ||
platform: ubuntu-latest | ||
python-version: "3.7" | ||
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" | ||
|
@@ -73,9 +78,6 @@ jobs: | |
- manylinux: "manylinux2010_x86_64" | ||
platform: ubuntu-latest | ||
python-version: "3.10" | ||
- manylinux: "manylinux_2_24_x86_64" | ||
platform: ubuntu-latest | ||
python-version: "3.7" | ||
- manylinux: "manylinux_2_24_x86_64" | ||
platform: ubuntu-latest | ||
python-version: "3.8" | ||
|
@@ -124,18 +126,10 @@ jobs: | |
submodules: recursive | ||
fetch-depth: 0 # https://github.com/pypa/setuptools_scm/issues/480 | ||
|
||
- if: matrix.python-version != 'system' | ||
uses: actions/setup-python@v4 | ||
- uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- if: matrix.python-version == 'system' | ||
run: | | ||
sudo ln -s `which python3` /usr/local/bin/python | ||
echo PIP_INSTALL_OPTS=--break-system-packages >> $GITHUB_ENV | ||
- if: matrix.python-version != 'system' | ||
run: python -m pip install --upgrade pip==22.1.2 | ||
- run: python -m pip install --upgrade pip==24.3.1 | ||
|
||
- run: python -m pip install $PIP_INSTALL_OPTS "build<1.1" wheel | ||
- run: cmake --version | ||
|
@@ -144,15 +138,17 @@ jobs: | |
python -m build 2>&1 | tee build.log | ||
exit `fgrep -i warning build.log | grep -v "WARNING setuptools_scm" | grep -v "-warnings" | grep -v "All Warnings are enabled" | wc -l` | ||
- if: startsWith(matrix.platform, 'macos-') && matrix.python-version == '3.11' | ||
# TODO #387 | ||
- if: ${{ (matrix.platform == 'macos-13' && matrix.python-version == '3.11') || matrix.platform == 'macos-14' }} | ||
run: | | ||
# workaround for buggy universal2 wheel name with Python 3.11 (contains x86_64 binary only) | ||
# workaround for buggy universal2 wheel names (contain single arch binary only!) | ||
for whl in dist/*_universal2.whl; do | ||
export whl_new=${whl/_universal2/_x86_64}; | ||
export arch=`python -c 'import platform; print(platform.machine())'`; | ||
export whl_new=${whl/_universal2/_$arch}; | ||
mv $whl $whl_new; | ||
python -m wheel unpack $whl_new; | ||
export whl_new_unpacked=`basename $whl_new | cut -d- -f-2`; | ||
sed -i '' 's/_universal2/_x86_64/g' $whl_new_unpacked/$whl_new_unpacked.dist-info/WHEEL; | ||
sed -i '' 's/_universal2/_$arch/g' $whl_new_unpacked/$whl_new_unpacked.dist-info/WHEEL; | ||
python -m wheel pack $whl_new_unpacked; | ||
done | ||
|
@@ -206,7 +202,7 @@ jobs: | |
python -m pytest --durations=10 -v -s -We -p no:unraisableexception . | ||
cd .. | ||
- if: matrix.python-version != '3.7' | ||
- if: ${{ !(matrix.platform == 'macos-14' && matrix.python-version == '3.13') }} | ||
run: | | ||
python -m pip install $PIP_INSTALL_OPTS -r gitmodules/devops_tests/requirements.txt | ||
ex -sc 'g/^PyPartMC/d' -cx .binder/requirements.txt | ||
|
@@ -223,7 +219,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: [build] | ||
steps: | ||
- uses: actions/setup-python@v2 | ||
- uses: actions/setup-python@v5.0.0 | ||
with: | ||
python-version: "3.11" | ||
- run: pip install twine auditwheel | ||
|
@@ -247,14 +243,17 @@ jobs: | |
merge-multiple: true | ||
path: dist | ||
- if: github.event_name == 'push' && github.ref == 'refs/heads/main' | ||
uses: pypa/gh-action-pypi-publish@unstable/v1 | ||
uses: pypa/gh-action-pypi-publish@release/v1.12 | ||
with: | ||
repository_url: https://test.pypi.org/legacy/ | ||
attestations: false | ||
- run: | | ||
echo "github.event_name:" ${{ github.event_name }} | ||
echo "github.event.action:" ${{ github.event.action }} | ||
echo "github.event.prerelease:" ${{ github.event.prerelease }} | ||
echo "env.GITHUB_REF:" ${{ env.GITHUB_REF }} | ||
echo "env.GITHUB_REF:" ${{ env.GITHUB_REF_NAME }} | ||
- if: github.event_name == 'release' && github.event.prerelease == false | ||
uses: pypa/gh-action-pypi-publish@unstable/v1 | ||
uses: pypa/gh-action-pypi-publish@release/v1.12 | ||
with: | ||
attestations: false |
Oops, something went wrong.