Skip to content

Commit

Permalink
Merge branch 'main' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
munkm committed Jul 6, 2021
2 parents ca3be0d + e8416fc commit 785befa
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 4 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/wheels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Build CI Wheels

on:
push:
branches:
- main
- stable
tags:
- 'yt-*'

jobs:
build_wheels:
name: Wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, windows-latest, macos-latest]
fail-fast: false

steps:
- uses: actions/setup-python@v2
name: Install Python
with:
python-version: 3.9

- uses: s-weigand/setup-conda@v1
if: matrix.os == 'windows-latest'
with:
update-conda: true
conda-channels: conda-forge
activate-conda: true
python-version: 3.9

- uses: actions/checkout@v2
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==1.9.0

- name: Install dependencies and yt
shell: bash
env:
dependencies: "full"
LDFLAGS: "-static-libstdc++"
run: source ./tests/ci_install.sh

- name: Build wheels for CPython
run: |
python -m cibuildwheel --output-dir dist
env:
CIBW_BUILD: "cp36-* cp37-* cp38-* cp39-*"
CIBW_ARCHS_LINUX: "x86_64"
CIBW_ARCHS_MACOS: "x86_64"
CIBW_ARCHS_WINDOWS: "auto"
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_MANYLINUX_I686_IMAGE: manylinux2014
CIBW_ENVIRONMENT: "LDFLAGS='-static-libstdc++'"

- uses: actions/upload-artifact@v2
with:
name: wheels
path: ./dist/*.whl
11 changes: 10 additions & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
include README* CREDITS COPYING.txt CITATION setupext.py CONTRIBUTING.rst
include yt/visualization/mapserver/html/map.js
include yt/visualization/mapserver/html/map_index.html
include yt/visualization/mapserver/html/Leaflet.Coordinates-0.1.5.css
include yt/visualization/mapserver/html/Leaflet.Coordinates-0.1.5.src.js
include yt/utilities/tests/cosmology_answers.yml
include yt/utilities/mesh_types.yaml
exclude scripts/pr_backport.py
recursive-include yt *.py *.pyx *.pxd *.h *.hpp README* *.txt LICENSE* *.cu
exclude yt/utilities/lib/cykdtree/c_kdtree.cpp
prune tests
prune docker
prune answer-store
recursive-include yt *.py *.pyx *.pxi *.pxd *.h *.hpp README* *.txt LICENSE* *.cu
recursive-include doc *.rst *.txt *.py *.ipynb *.png *.jpg *.css *.html
recursive-include doc *.h *.c *.sh *.svgz *.pdf *.svg *.pyx
include doc/README doc/activate doc/activate.csh doc/cheatsheet.tex
Expand All @@ -13,5 +19,8 @@ prune doc/source/reference/api/generated
prune doc/build
recursive-include yt/visualization/volume_rendering/shaders *.fragmentshader *.vertexshader
include yt/sample_data_registry.json
include conftest.py
prune yt/frontends/_skeleton
recursive-include yt/frontends/amrvac *.par
exclude .codecov.yml .coveragerc .git-blame-ignore-revs .gitmodules .hgchurn .mailmap
exclude .pre-commit-config.yaml clean.sh nose_answer.cfg nose_unit.cfg
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[build-system]
# See https://github.com/scipy/scipy/pull/10431 for the AIX issue.
requires = [
"setuptools>=19.6",
# see https://github.com/numpy/numpy/pull/18389
Expand All @@ -11,8 +10,7 @@ requires = [
# we forbid it until we can properly test against it
"Cython>=0.26.1,<3.0; python_version=='3.6'",
"Cython>=0.29.21,<3.0; python_version>='3.7'",
"numpy==1.13.3; python_version=='3.6' and platform_system!='AIX'",
"numpy>=1.19.2; python_version>='3.7' and platform_system!='AIX'",
"oldest-supported-numpy",
]

[tool.black]
Expand Down

0 comments on commit 785befa

Please # to comment.