Skip to content

Commit

Permalink
Merge branch 'main' into golovin_pysdm
Browse files Browse the repository at this point in the history
  • Loading branch information
slayoo authored Dec 23, 2024
2 parents 638255d + 88bc802 commit 93ec020
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 212 deletions.
7 changes: 4 additions & 3 deletions .binder/requirements.txt
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
65 changes: 32 additions & 33 deletions .github/workflows/tests+pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Loading

0 comments on commit 93ec020

Please sign in to comment.