Skip to content

Commit

Permalink
Build wheels on CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
hameerabbasi committed Jul 28, 2019
1 parent 50d16e8 commit 0c6ad15
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 10 deletions.
4 changes: 4 additions & 0 deletions MANIFEST.in
@@ -1,2 +1,6 @@
include versioneer.py
recursive-include uarray *.py
include LICENSE
recursive-include uarray *.cxx
include requirements.txt
recursive-include requirements *.txt
12 changes: 11 additions & 1 deletion ci/azure-steps-macos.yml
@@ -1,4 +1,14 @@
steps:
- task: UsePythonVersion@0
- bash: |
python -m pip install --upgrade pip
pip install cibuildwheel==0.11.1
export CIBW_TEST_COMMAND="pip install -r requirements/tests.txt && pytest"
export CIBW_BUILD=cp3?-* CIBW_SKIP=cp34-*
cibuildwheel --output-dir wheelhouse .
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'wheelhouse'}

- bash: |
echo "##vso[task.prependpath]$CONDA/bin"
sudo chown -R $USER $CONDA
Expand All @@ -24,4 +34,4 @@ steps:
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: "$(System.DefaultWorkingDirectory)/**/coverage.xml"
summaryFileLocation: "$(System.DefaultWorkingDirectory)/**/coverage.xml"
17 changes: 16 additions & 1 deletion ci/azure-steps-windows.yml
@@ -1,4 +1,19 @@
steps:
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.5', architecture: x86}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.5', architecture: x64}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.6', architecture: x86}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.6', architecture: x64}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x86}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x64}}
- bash: |
python -m pip install --upgrade pip
pip install cibuildwheel==0.11.1
export CIBW_TEST_COMMAND="pip install -r requirements/tests.txt && pytest"
export CIBW_BUILD=cp3?-* CIBW_SKIP=cp34-*
cibuildwheel --output-dir wheelhouse .
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'wheelhouse'}

- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Add conda to PATH

Expand All @@ -25,4 +40,4 @@ steps:
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: "$(System.DefaultWorkingDirectory)/**/coverage.xml"
summaryFileLocation: "$(System.DefaultWorkingDirectory)/**/coverage.xml"
13 changes: 12 additions & 1 deletion ci/azure-steps.yml
@@ -1,4 +1,15 @@
steps:
- task: UsePythonVersion@0
- bash: |
python -m pip install --upgrade pip
pip install cibuildwheel==0.11.1
export CIBW_TEST_COMMAND="pip install -r requirements/tests.txt && pytest"
export CIBW_BUILD=cp3?-* CIBW_SKIP=cp34-*
export CIBW
cibuildwheel --output-dir wheelhouse .
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'wheelhouse'}

- bash: |
echo "##vso[task.prependpath]$CONDA/bin"
sudo chown -R $USER $CONDA
Expand All @@ -24,4 +35,4 @@ steps:
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: "$(System.DefaultWorkingDirectory)/**/coverage.xml"
summaryFileLocation: "$(System.DefaultWorkingDirectory)/**/coverage.xml"
1 change: 0 additions & 1 deletion requirements/all.txt
@@ -1,4 +1,3 @@
-r backends.txt
-r optional.txt
-r tests.txt
-r docs.txt
6 changes: 0 additions & 6 deletions requirements/backends.txt

This file was deleted.

1 change: 1 addition & 0 deletions requirements/tests.txt
Expand Up @@ -2,3 +2,4 @@ pytest>=3.5
pytest-flake8
pytest-cov
pytest-mypy
pytest-black; python_version >= '3.6'

0 comments on commit 0c6ad15

Please sign in to comment.