1
1
name : Wheels
2
2
on :
3
- release :
4
- types :
5
- - published
3
+ # release:
4
+ # types:
5
+ # - published
6
6
push :
7
7
branches :
8
8
- wheeltest
9
9
10
10
env :
11
11
CIBW_BUILD : " cp3?-*"
12
- CIBW_SKIP : " *-win32 *-manylinux_i686"
12
+ CIBW_SKIP : " *-win32 *-manylinux_i686 cp35-* "
13
13
CIBW_MANYLINUX_X86_64_IMAGE : manylinux2014
14
14
15
15
jobs :
16
- build_wheels :
17
- name : Build ${{ matrix.python-version }} wheels on ${{ matrix.os }}
18
- runs-on : ${{ matrix.os }}
16
+ # build_nix_wheels:
17
+ # name: Build ${{ matrix.python-version }} wheels on ${{ matrix.os }}
18
+ # runs-on: ${{ matrix.os }}
19
+ # strategy:
20
+ # fail-fast: false
21
+ # matrix:
22
+ # os: [ubuntu-18.04, macos-latest]
23
+
24
+ # steps:
25
+ # - uses: actions/checkout@v2
26
+ # with:
27
+ # fetch-depth: 0
28
+ # - uses: actions/setup-python@v2
29
+ # name: Install Python
30
+ # with:
31
+ # # Note: cibuildwheel builds for many Python versions beyond this one
32
+ # python-version: "3.7"
33
+
34
+ # # Mac:
35
+ # - name: Setup Mac
36
+ # if: runner.os == 'macOS'
37
+ # run: |
38
+ # brew install gsl
39
+
40
+ # # Ubuntu:
41
+ # - name: Setup Linux
42
+ # if: runner.os == 'Linux'
43
+ # run: |
44
+ # sudo apt-get install gsl-bin libgsl0-dev
45
+
46
+ # - name: Build wheels
47
+ # run: |
48
+ # python -m pip install cibuildwheel==1.5.2
49
+ # python -m cibuildwheel --output-dir wheelhouse
50
+
51
+ # - uses: actions/upload-artifact@v2
52
+ # with:
53
+ # path: ./wheelhouse/*.whl
54
+
55
+ build_win_wheels :
56
+ name : Build ${{ matrix.python-version }} wheels on Windows
57
+ runs-on : windows-latest
19
58
strategy :
20
59
matrix :
21
- os : [ubuntu-18.04, windows-latest, macos-latest]
22
- python-version : ["3.7", "3.8"]
60
+ # python-version: [3.6, 3.7, 3.8]
61
+ python-version : [3.7]
62
+ fail-fast : false
23
63
24
64
steps :
25
65
- uses : actions/checkout@v2
26
66
with :
27
- submodules : true
28
-
67
+ fetch-depth : 0
29
68
- uses : goanpeca/setup-miniconda@v1
30
69
with :
31
70
auto-update-conda : true
32
71
python-version : ${{ matrix.python-version }}
72
+ activate-environment : gala-wheels
33
73
34
74
- name : Install dependencies
75
+ shell : bash -l {0}
35
76
run : |
36
- conda create -n gala-wheels python=${{ matrix.python-version }} -q -c conda-forge
37
- conda activate gala-wheels
38
77
conda install -c conda-forge -q gsl libpython
39
- python -m pip install cibuildwheel==1.5.1
78
+ gsl-config --version
40
79
41
- - name : Install Visual C++ for Python 3.7
42
- if : runner.os == 'Windows'
43
- run : |
44
- choco install vcpython37 -f -y
80
+ # - name: Set environment variables on Windows
81
+ # shell: bash -l {0}
82
+ # run: |
83
+ # # echo ::set-env name=INCLUDE::$CONDA_PREFIX\\Library\\include
84
+ # # echo ::set-env name=LIB::$CONDA_PREFIX\\Library\\lib
85
+ # # echo ::set-env name=LIBPATH::$CONDA_PREFIX\\Library\\lib
86
+ # gsl-config --version
45
87
46
88
- name : Build wheels
89
+ shell : bash -l {0}
47
90
run : |
48
- python -m cibuildwheel --output-dir wheelhouse
91
+ which gsl-config
92
+ export GALA_GSL_VERSION=$(gsl-config --version)
93
+ # export GALA_GSL_PREFIX=$(gsl-config --prefix)
94
+ export GALA_GSL_PREFIX="/c/Miniconda/envs/gala-wheels/Library/"
95
+ # pip install pep517
96
+ # python -m pep517.build -o wheelhouse .
97
+
98
+ pip install setuptools setuptools_scm wheel extension-helpers
99
+ conda install astropy # because there is no wheel for py38 on windows!
100
+ pip install -r requirements.txt
101
+ python setup.py build_ext
102
+ python setup.py bdist_wheel
49
103
50
104
- uses : actions/upload-artifact@v2
51
105
with :
@@ -57,39 +111,34 @@ jobs:
57
111
steps :
58
112
- uses : actions/checkout@v2
59
113
with :
60
- submodules : true
61
-
62
- - uses : goanpeca/setup-miniconda@v1
114
+ fetch-depth : 0
115
+ - uses : actions/setup-python@v2
116
+ name : Install Python
63
117
with :
64
- auto-update-conda : true
65
- python-version : ${{ matrix.python-version }}
66
-
67
- - name : Install dependencies
68
- run : |
69
- conda create -n gala-wheels python=${{ matrix.python-version }} -q -c conda-forge
70
- conda activate gala-wheels
71
- conda install -c conda-forge -q gsl libpython
72
- python -m pip install cibuildwheel==1.5.1
118
+ python-version : " 3.7"
73
119
74
120
- name : Build sdist
75
- run : python setup.py sdist
121
+ run : |
122
+ sudo apt-get install gsl-bin libgsl0-dev
123
+ pip install pep517
124
+ python -m pep517.build -s .
76
125
77
126
- uses : actions/upload-artifact@v2
78
127
with :
79
128
path : dist/*.tar.gz
80
129
81
- upload_pypi :
82
- needs : [build_wheels, build_sdist]
83
- runs-on : ubuntu-latest
84
- if : github.event_name == 'release' && github.event.action == 'published'
85
- steps :
86
- - uses : actions/download-artifact@v2
87
- with :
88
- name : artifact
89
- path : dist
130
+ # upload_pypi:
131
+ # needs: [build_wheels, build_sdist]
132
+ # runs-on: ubuntu-latest
133
+ # if: github.event_name == 'release' && github.event.action == 'published'
134
+ # steps:
135
+ # - uses: actions/download-artifact@v2
136
+ # with:
137
+ # name: artifact
138
+ # path: dist
90
139
91
- - uses : pypa/gh-action-pypi-publish@master
92
- with :
93
- user : __token__
94
- password : ${{ secrets.pypi_password }}
95
- # To test: repository_url: https://test.pypi.org/legacy/
140
+ # - uses: pypa/gh-action-pypi-publish@master
141
+ # with:
142
+ # user: __token__
143
+ # password: ${{ secrets.pypi_password }}
144
+ # # To test: repository_url: https://test.pypi.org/legacy/
0 commit comments