Skip to content

Commit

Permalink
Update mirror for nightlies (#324)
Browse files Browse the repository at this point in the history
* Update mirror for nightlies

* skip cython 3.0.4

* also skip in setup.py

* also environment.yml

* also build-wheel.yml

* we are going to get there. now windows

* update ci job

* not everything needs pyarrow

---------

Co-authored-by: Marc-Antoine Schmidt <marc-antoine.schmidt@quantco.com>
  • Loading branch information
jtilly and MarcAntoineSchmidtQC authored Oct 30, 2023
1 parent 34fded7 commit 6a17864
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
python-version: '3.10'

- name: Install build dependencies
run: python -m pip install setuptools setuptools-scm wheel mako numpy Cython
run: python -m pip install setuptools setuptools-scm wheel mako numpy 'Cython!=3.0.4'

- name: Build sdist
run: python setup.py sdist
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
schedule:
- cron: '0 5 * * *'
workflow_dispatch:
push:
paths:
- '.github/workflows/daily.yml'

jobs:
linux-daily-unittests:
Expand All @@ -28,12 +31,13 @@ jobs:
if: matrix.NOTE == 'Nightly Builds'
shell: bash -el {0}
run: |
PRE_WHEELS="https://pypi.anaconda.org/scipy-wheels-nightly/simple"
PRE_WHEELS="https://pypi.anaconda.org/scientific-python-nightly-wheels/simple/"
for pkg in numpy pandas scipy; do
echo "Installing $pkg nightly"
micromamba remove -y --force $pkg
pip install --pre --no-deps --only-binary :all: --upgrade --timeout=60 -i $PRE_WHEELS $pkg
done
micromamba list
- name: Install repository
shell: bash -el {0}
run: pip install --no-use-pep517 --no-deps --disable-pip-version-check -e .
Expand Down
4 changes: 2 additions & 2 deletions conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ requirements:
build:
- python # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- cython # [build_platform != target_platform]
- cython !=3.0.4 # [build_platform != target_platform]
- numpy # [build_platform != target_platform]
- {{ compiler("c") }}
- {{ compiler("cxx") }}
- llvm-openmp # [osx]
- libgomp # [linux]
host:
- python
- cython
- cython !=3.0.4
- jemalloc-local # [not win]
- llvm-openmp # [osx]
- mako
Expand Down
2 changes: 1 addition & 1 deletion environment-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies:
# build tools
- c-compiler
- cxx-compiler
- cython
- cython !=3.0.4
- make
- mako
- mkl-include
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies:
# build tools
- c-compiler
- cxx-compiler
- cython
- cython !=3.0.4
- jemalloc-local
- make
- mako
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ requires = [
'wheel',
'mako',
'oldest-supported-numpy',
'Cython',
'Cython != 3.0.4',
]

[tool.black]
Expand Down

0 comments on commit 6a17864

Please sign in to comment.