Skip to content

Commit e6e257d

Browse files
authored
Merge branch 'master' into develop
2 parents c728480 + 834586e commit e6e257d

File tree

8 files changed

+81
-16
lines changed

8 files changed

+81
-16
lines changed

.github/workflows/release_climt.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,16 @@ jobs:
3232
- name: Build on Linux
3333
env:
3434
CIBW_BUILD: cp36-manylinux_x86_64 cp37-manylinux_x86_64 cp38-manylinux_x86_64
35-
CIBW_ENVIRONMENT: CC=gcc-7 FC=gfortran-7 CLIMT_ARCH=Linux
35+
CIBW_ENVIRONMENT: "CC=gcc FC=gfortran CLIMT_ARCH=Linux"
3636
if: ${{ runner.os == 'Linux' }}
3737
run: python -m cibuildwheel --output-dir wheelhouse
3838

3939

4040
- name: Build on macOS
4141
env:
4242
CIBW_BUILD: cp36-macosx_x86_64 cp37-macosx_x86_64 cp38-macosx_x86_64
43-
CIBW_ENVIRONMENT: CC=gcc-8 FC=gfortran-8 CLIMT_ARCH=Darwin
43+
CIBW_ENVIRONMENT: "CC=gcc-8 FC=gfortran-8 CLIMT_ARCH=Darwin"
44+
CIBW_BEFORE_ALL_MACOS: brew remove gcc; brew install gcc@8
4445
if: ${{ runner.os == 'macOS' }}
4546
run: python -m cibuildwheel --output-dir wheelhouse
4647

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# This workflow will install compilers and packges on windows platform
2+
3+
name: windows package
4+
5+
on:
6+
release:
7+
types: [published]
8+
9+
jobs:
10+
windows_package:
11+
runs-on: windows-2019
12+
defaults:
13+
run:
14+
shell: bash -l {0}
15+
strategy:
16+
matrix:
17+
python-version: ["3.6","3.7", "3.8"]
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: conda-incubator/setup-miniconda@v2
21+
with:
22+
auto-update-conda: true
23+
python-version: ${{ matrix.python-version }}
24+
- shell: bash -l {0}
25+
run: |
26+
export COMPILER_PATH=/c/Miniconda/envs/test/Library/mingw-w64/bin/
27+
export CLIMT_OPT_FLAGS=-fno-asynchronous-unwind-tables
28+
conda activate test
29+
which python
30+
conda install -c msys2 m2w64-gcc m2w64-gcc-fortran m2w64-winpthreads-git m2w64-openblas
31+
conda install libpython
32+
which gcc
33+
which gfortran
34+
cp $COMPILER_PATH/x86_64-w64-mingw32-gcc-ar.exe $COMPILER_PATH/x86_64-w64-mingw32-ar.exe
35+
printf '[build]\r\ncompiler=mingw32\r\n' > $HOME/pydistutils.cfg
36+
ls $HOME; cat $HOME/pydistutils.cfg
37+
python -m pip install -r requirements_dev.txt
38+
touch libmsvcr140.dll
39+
cp /c/Miniconda/envs/test/Library/bin/vcruntime140.dll /c/Miniconda/envs/test/Library/bin/msvcr140.dll
40+
ls -l
41+
python setup.py develop
42+
py.test -v
43+
44+
- if: ${{ matrix.python-version == '3.6' }}
45+
run: |
46+
export COMPILER_PATH=/c/Miniconda/envs/test/Library/mingw-w64/bin/
47+
python setup.py sdist
48+
49+
- if: ${{ github.event_name == 'release' }}
50+
env:
51+
TWINE_USERNAME: __token__
52+
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
53+
run: |
54+
export COMPILER_PATH=/c/Miniconda/envs/test/Library/mingw-w64/bin/
55+
export CLIMT_OPT_FLAGS=-fno-asynchronous-unwind-tables
56+
python setup.py bdist_wheel
57+
python -m pip install twine
58+
twine upload dist/*

.github/workflows/windows-package.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
push:
77
branches: [ master, without-dycore ]
88
pull_request:
9-
branches: [ master, develop ]
9+
branches: [ develop ]
1010

1111
jobs:
1212
windows_package:
@@ -23,31 +23,33 @@ jobs:
2323
with:
2424
auto-update-conda: true
2525
python-version: ${{ matrix.python-version }}
26-
- shell: bash -l {0}
26+
- shell: bash -l {0}
2727
run: |
28-
# export COMPILER_PATH=/c/Miniconda/envs/test/Library/mingw-w64/bin/
28+
export COMPILER_PATH=/c/Miniconda/envs/test/Library/mingw-w64/bin/
29+
export CLIMT_OPT_FLAGS=-fno-asynchronous-unwind-tables
2930
conda activate test
3031
which python
3132
# conda install -c msys2 m2w64-gcc m2w64-gcc-fortran m2w64-winpthreads-git m2w64-openblas
3233
conda install libpython
33-
# which gcc
34-
# which gfortran
35-
# cp $COMPILER_PATH/x86_64-w64-mingw32-gcc-ar.exe $COMPILER_PATH/x86_64-w64-mingw32-ar.exe
36-
# printf '[build]\r\ncompiler=mingw32\r\n' > $HOME/pydistutils.cfg
37-
# ls $HOME; cat $HOME/pydistutils.cfg
34+
which gcc
35+
which gfortran
36+
cp $COMPILER_PATH/x86_64-w64-mingw32-gcc-ar.exe $COMPILER_PATH/x86_64-w64-mingw32-ar.exe
37+
printf '[build]\r\ncompiler=mingw32\r\n' > $HOME/pydistutils.cfg
38+
ls $HOME; cat $HOME/pydistutils.cfg
3839
python -m pip install -r requirements_dev.txt
3940
touch libmsvcr140.dll
4041
# cp /c/Miniconda/envs/test/Library/bin/vcruntime140.dll /c/Miniconda/envs/test/Library/bin/msvcr140.dll
4142
# ls -l
4243
python setup.py develop
4344
py.test -v
44-
45+
4546
- if: ${{ github.event_name == 'release' }}
46-
env:
47+
env:
4748
TWINE_USERNAME: __token__
4849
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
4950
run: |
5051
export COMPILER_PATH=/c/Miniconda/envs/test/Library/mingw-w64/bin/
52+
export CLIMT_OPT_FLAGS=-fno-asynchronous-unwind-tables
5153
python setup.py bdist_wheel
5254
python setup.py sdist
5355
python -m pip install twine

HISTORY.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ Latest
77

88
* Removed dycore to move it to independent package
99

10+
v.0.16.15
11+
---------
12+
13+
* Move to Github Actions tentatively finished!
14+
1015
v.0.16.11
1116
---------
1217

climt/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@
2828
EmanuelConvection, SlabSurface, DcmipInitialConditions,
2929
IceSheet, Instellation, DryConvectiveAdjustment, BucketHydrology)
3030

31-
__version__ = '0.16.14'
31+
__version__ = '0.16.25'

climt/_lib/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ endif
2929

3030
all: simple_physics_lib emanuel_lib rrtmg_lw_lib rrtmg_sw_lib libdcmip
3131

32-
3332
# Simple Physics Configuration
3433

3534
simple_physics_lib: $(CLIMT_ARCH)/libsimple_physics.a

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.16.14
2+
current_version = 0.16.25
33
commit = True
44
tag = False
55

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def run(self):
236236

237237
setup(
238238
name='climt',
239-
version='0.16.14',
239+
version='0.16.25',
240240
description='CliMT is a Toolkit for building Earth system models in Python.',
241241
long_description=readme + '\n\n' + history,
242242
author="Rodrigo Caballero",

0 commit comments

Comments
 (0)