Skip to content

Commit

Permalink
Fix build wheel (#8)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
qianduoduo0904 and mergify[bot] authored Mar 9, 2023
1 parent 41727fa commit ed64970
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/build-wheel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,13 @@ jobs:
with:
platforms: all

- name: Build web
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
pip install -r CI/requirements-wheel.txt
cd python && python setup.py build_web
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ENVIRONMENT_LINUX: NO_WEB_UI=1
CIBW_ENVIRONMENT_PASS_LINUX: NO_WEB_UI
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_PROJECT_REQUIRES_PYTHON: ${{ matrix.requires-python }}
CIBW_BEFORE_BUILD_MACOS: pip install -r CI/requirements-wheel.txt && cd python && python setup.py build_web
CIBW_BEFORE_BUILD_WINDOWS: pip install -r CI/requirements-wheel.txt && cd python && python setup.py build_web
CIBW_BEFORE_BUILD_MACOS: pip install -r CI/requirements-wheel.txt
CIBW_BEFORE_BUILD_WINDOWS: pip install -r CI/requirements-wheel.txt
CIBW_TEST_COMMAND: pytest {project}/CI/test_functionality.py
CIBW_TEST_REQUIRES: pytest requests
CIBW_BUILD_VERBOSITY: 1
Expand All @@ -88,11 +80,6 @@ jobs:
fetch-depth: 0
submodules: recursive

- name: Build web
run: |
pip install -r CI/requirements-wheel.txt
cd python && python setup.py build_web
- name: Build sdist
run: cd python && pipx run build --sdist

Expand Down
2 changes: 1 addition & 1 deletion CI/requirements-wheel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ oldest-supported-numpy
pandas==1.0.4; python_version<'3.9' and platform_machine!='aarch64'
pandas==1.1.3; python_version<'3.9' and platform_machine=='aarch64'
pandas==1.2.2; python_version>='3.9' and python_version<'3.10'
pandas==1.3.4; python_version>='3.10' and python_version<'3.11'"
pandas==1.3.4; python_version>='3.10' and python_version<'3.11'
pandas==1.5.0; python_version>='3.11'

scipy==1.4.1; python_version<'3.9' and platform_machine!='aarch64'
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ markers = [

[tool.cibuildwheel]
build = ["cp38-*", "cp39-*", "cp310-*", "cp311-*"]
skip = "pp* *musllinux* *i686 cp36* cp310-win32"
skip = "pp* *musllinux* *i686 cp36* cp310-win32 cp311-win32"
manylinux-x86_64-image = "manylinux2014"
3 changes: 2 additions & 1 deletion python/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ packages = find:
install_requires =
numpy>=1.14.0
pandas>=1.0.0
scipy>=1.0.0
scipy>=1.0.0; sys_platform!="win32" or python_version>="3.10"
scipy>=1.0.0,<=1.9.1; sys_platform=="win32" and python_version<"3.10"
cloudpickle>=1.5.0
psutil>=5.9.0
tblib>=1.7.0
Expand Down

0 comments on commit ed64970

Please sign in to comment.