Skip to content

Commit 185bb11

Browse files
update deployment
1 parent a9f408e commit 185bb11

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

.github/workflows/conda-package-build.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,25 @@ jobs:
4848
cond: ${{ contains(github.ref, 'master') || startsWith(github.ref, 'refs/heads/v') }}
4949
if_true: 'true'
5050
if_false: 'false'
51+
- name: Determine NumPy Version
52+
id: set-numpy
53+
run: |
54+
if [[ "${{ matrix.python-minor-version }}" == "3.7" ]]; then
55+
echo "numpy-version=1.16.6" >> $GITHUB_ENV
56+
elif [[ "${{ matrix.python-minor-version }}" == "3.8" ]]; then
57+
echo "numpy-version=1.22.4" >> $GITHUB_ENV
58+
elif [[ "${{ matrix.python-minor-version }}" == "3.9" ]]; then
59+
echo "numpy-version=2.0.2" >> $GITHUB_ENV
60+
else
61+
echo "Unsupported Python version"
62+
exit 1
63+
fi
5164
- name: Build and Publish
5265
uses: openalea/action-build-publish-anaconda@main
5366
with:
5467
conda: conda
5568
mamba: true
56-
numpy: '16.6'
69+
numpy: ${{ env.numpy-version }}
5770
python: ${{ matrix.python-minor-version }}
5871
channels: amei, openalea3, conda-forge
5972
token: ${{ secrets.ANACONDA_TOKEN }}

conda/meta.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ requirements:
2828
{% if PY_VER.startswith("3.7") %}
2929
- numpy ==1.16.6 # For Python 3.7
3030
{% elif PY_VER.startswith("3.8") %}
31-
- numpy ==1.16.6 # For Python 3.8
31+
- numpy ==1.22.4 # For Python 3.8
3232
{% elif PY_VER.startswith("3.9") %}
3333
- numpy ==2.0.2 # For Python 3.9
3434
{% endif %}

src/pycropml/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
MINOR = 3
1212
"""(int) Version minor component."""
1313

14-
POST = 2
14+
POST = 3
1515
"""(int) Version post or bugfix component."""
1616

1717
__version__ = ".".join([str(s) for s in (MAJOR, MINOR, POST)])

0 commit comments

Comments
 (0)