File tree 3 files changed +16
-3
lines changed
3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -48,12 +48,25 @@ jobs:
48
48
cond : ${{ contains(github.ref, 'master') || startsWith(github.ref, 'refs/heads/v') }}
49
49
if_true : ' true'
50
50
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
51
64
- name : Build and Publish
52
65
uses : openalea/action-build-publish-anaconda@main
53
66
with :
54
67
conda : conda
55
68
mamba : true
56
- numpy : ' 16.6 '
69
+ numpy : ${{ env.numpy-version }}
57
70
python : ${{ matrix.python-minor-version }}
58
71
channels : amei, openalea3, conda-forge
59
72
token : ${{ secrets.ANACONDA_TOKEN }}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ requirements:
28
28
{% if PY_VER.startswith("3.7") %}
29
29
- numpy ==1.16.6 # For Python 3.7
30
30
{% elif PY_VER.startswith("3.8") %}
31
- - numpy ==1.16.6 # For Python 3.8
31
+ - numpy ==1.22.4 # For Python 3.8
32
32
{% elif PY_VER.startswith("3.9") %}
33
33
- numpy ==2.0.2 # For Python 3.9
34
34
{% endif %}
Original file line number Diff line number Diff line change 11
11
MINOR = 3
12
12
"""(int) Version minor component."""
13
13
14
- POST = 2
14
+ POST = 3
15
15
"""(int) Version post or bugfix component."""
16
16
17
17
__version__ = "." .join ([str (s ) for s in (MAJOR , MINOR , POST )])
You can’t perform that action at this time.
0 commit comments