Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
26bdfcf
Add CI wheel builds
mtreinish Sep 1, 2020
a4c39db
Fix some typos
mtreinish Sep 1, 2020
ca66204
Add lapack
mtreinish Sep 1, 2020
d49ab05
Pull submodules too
mtreinish Sep 1, 2020
9acfc0a
Adjust test path
mtreinish Sep 1, 2020
4869f45
Use a valid path
mtreinish Sep 1, 2020
fbcec1d
Try no wildcard for test path
mtreinish Sep 1, 2020
f5d6022
Try no openblas windows
mtreinish Sep 1, 2020
19968d8
Disable win32 builds
mtreinish Sep 1, 2020
123bfbc
Update openblas install workflow
mtreinish Oct 7, 2020
8c60a64
Fix syntax issue
mtreinish Oct 7, 2020
6ecb9fc
Fix typo
mtreinish Oct 7, 2020
db785c2
Fix another typo
mtreinish Oct 7, 2020
bc8e0df
Tweak things again
mtreinish Oct 7, 2020
caf9a4a
Switch env to variables
mtreinish Oct 7, 2020
daf69ca
move things around
mtreinish Oct 7, 2020
da7e705
Fix sytanx errors
mtreinish Oct 7, 2020
5e28315
Swap HOME for GITHUB_WORKSPACE
mtreinish Oct 7, 2020
9f6f7b1
Just work from repo root
mtreinish Oct 7, 2020
477dcd4
Simplify pwsh script to install openblas
mtreinish Oct 7, 2020
7c5f8fc
Remove msbuild usage, need gcc
mtreinish Oct 7, 2020
518c252
Add gcc to windows env
mtreinish Oct 7, 2020
5881d39
Fix whitespace
mtreinish Oct 7, 2020
7a9b526
Use vcpython27
mtreinish Oct 7, 2020
544deff
Split out windows wheels
mtreinish Oct 7, 2020
8d25e33
Fix title
mtreinish Oct 7, 2020
290f639
Add tests
mtreinish Oct 7, 2020
c1eb0c6
Fix msys vars
mtreinish Oct 7, 2020
3a661c0
Exclude python 3.9 for now
mtreinish Oct 7, 2020
3d854b7
Add update to msys install
mtreinish Oct 7, 2020
37b0f20
Remove msys2
mtreinish Oct 7, 2020
9600cb1
Remove msys2 shell
mtreinish Oct 8, 2020
2c2b338
Set shell to bash for test step on windows wheel job
mtreinish Oct 8, 2020
0f36b67
Install deps
mtreinish Oct 8, 2020
258562b
Scripts on windows not bin
mtreinish Oct 8, 2020
86b43a0
Simplify test step
mtreinish Oct 8, 2020
86ba61a
Actually build wheel
mtreinish Oct 8, 2020
95b8523
Fix test path on windows job
mtreinish Oct 8, 2020
353fa34
Try using conda to build wheels for windows
mtreinish Oct 8, 2020
b89239c
Fix whitespace
mtreinish Oct 8, 2020
c53b0c3
Set miniconda version too
mtreinish Oct 8, 2020
56057c4
Try to fix miniconda 32bit
mtreinish Oct 8, 2020
c8fb93d
Fix version string
mtreinish Oct 8, 2020
6ac6842
Pip install virtualenv
mtreinish Oct 9, 2020
edcf40b
Try using conda env instead of virtualenv
mtreinish Dec 9, 2020
703ab7b
Bump ci versions
mtreinish Dec 9, 2020
1f15125
Try to use more conda
mtreinish Dec 9, 2020
625f49b
Fix syntax error
mtreinish Dec 9, 2020
bdbe565
Fix conda syntax
mtreinish Dec 9, 2020
e1bb5b3
Fix typo
mtreinish Dec 9, 2020
58d6056
Add Python 3.9 to builds
mtreinish Dec 9, 2020
6560254
Remove 3.9 windows jobs
mtreinish Dec 9, 2020
3df87ab
Add conda mkl
mtreinish May 3, 2021
c0d8a82
Add miniconda version
mtreinish May 3, 2021
441c721
Use explicit version for win32 miniconda version
mtreinish May 3, 2021
35a6522
Pivot to cibuildwheel action
mtreinish May 3, 2021
91f1e17
Add pyproject.toml to preinstall build reqs
mtreinish May 3, 2021
ab9d2f2
Use scipy openblas script
mtreinish May 15, 2021
ab6c99a
Use env vars
mtreinish May 15, 2021
ca99e38
Tweak path
mtreinish May 15, 2021
874ccd6
Merge branch 'master' into build-wheels-github-actions
mtreinish May 18, 2021
1dcfa66
Remove failed attempt to use prebuilt openblas for windows
mtreinish May 18, 2021
2bcb646
Use pytest for tests now
mtreinish May 18, 2021
5e16478
Try building wheels for windows like windows ci test job
mtreinish Jun 7, 2021
6b51fbe
Try not using conda for windows whell test phase
mtreinish Jun 7, 2021
70e29f1
Try adding delvewheel to bundle DLLs
mtreinish Jun 7, 2021
8383754
Fix pyproject.toml
mtreinish Jun 7, 2021
5485b27
Merge branch 'master' into build-wheels-github-actions
mtreinish Jun 7, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 83 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
---
name: Build

on: [push, pull_request]

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]

steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build wheels
uses: pypa/cibuildwheel@v1.11.1
env:
CIBW_SKIP: "cp27-* cp34-* cp35-* pp*"
CIBW_BEFORE_ALL_LINUX: "yum install -y openblas-devel liblapack-dev"
CIBW_BEFORE_ALL_MACOS: "brew install openblas lapack"
CIBW_TEST_COMMAND: "pytest {project}/test"
CIBW_TEST_REQUIRES: pytest
- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl
build_wheels_windows:
name: Build wheels on windows Python-${{ matrix.python-version }} ${{ matrix.arch }}
runs-on: windows-latest
strategy:
matrix:
arch: [x64] #, x86]
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
with:
submodules: true

- uses: conda-incubator/setup-miniconda@v2
if: matrix.arch == 'x64'
with:
activate-environment: scs
auto-update-conda: true
channels: conda-forge,anaconda
python-version: ${{ matrix.python-version }}
miniconda-version: "latest"
- uses: conda-incubator/setup-miniconda@v2
if: matrix.arch == 'x86'
with:
activate-environment: scs
miniconda-version: "4.5.12"
auto-update-conda: true
channels: conda-forge,ana
python-version: ${{ matrix.python-version }}
architecture: x86
- name: Install Deps
run: conda install numpy scipy nose mkl openblas lapack
- name: Build Wheel
run: python setup.py bdist_wheel
- name: Repair Wheel
shell: bash -l {0}
run: |
set -e
pip install delvewheel
delvewheel repair dist/*whl
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.arch }}
- name: Run tests
shell: bash
run: |
set -e
which python
pip install wheelhouse/*whl
pip install pytest
pytest
- uses: actions/upload-artifact@v2
with:
path: ./dist/*.whl
11 changes: 4 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
[build-system]
requires = [
"numpy>=1.17,<1.18; python_version=='3.5'",
"numpy>=1.17,<1.18; python_version=='3.6'",
"numpy>=1.17,<1.18; python_version=='3.7'",
"numpy>=1.17,<1.18; python_version=='3.8'",
"numpy>=1.19,<1.20; python_version=='3.9'",
"setuptools",
"wheel",
"setuptools",
"wheel",
"oldest-supported-numpy",
]
build-backend = "setuptools.build_meta"