Skip to content

Commit

Permalink
Avoid py3.7 on Mac OS 11.
Browse files Browse the repository at this point in the history
  • Loading branch information
TkTech committed May 19, 2022
1 parent 0e23258 commit 8c2ce0b
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 15 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,27 +37,26 @@ jobs:
build_wheels:
name: "[${{ strategy.job-index }}/${{ strategy.job-total }}] py${{ matrix.py }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
env:
CIBW_BUILD: "${{ matrix.py }}-*"
CIBW_ARCHS_LINUX: auto
CIBW_ARCHS_MACOS: auto universal2
CIBW_ARCHS_WINDOWS: auto
CIBW_BEFORE_TEST: "pip install pytest flake8"
CIBW_TEST_COMMAND: "pytest {project}/tests"
# Can't test cross-compiled Mac OS builds.
CIBW_TEST_SKIP: "*_arm64 *_universal2:arm64"
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2019, macos-10.15]
py: ["cp37", "cp38", "cp39", "cp310"]
os: [ubuntu-20.04, windows-2019, macos-11]
py: ["cp38", "cp39", "cp310"]

steps:
- uses: actions/checkout@v2

- name: Building binary wheels
uses: pypa/[email protected]
env:
CIBW_BUILD: "${{ matrix.py }}-*"
CIBW_ARCHS_LINUX: auto
CIBW_ARCHS_MACOS: auto universal2
CIBW_ARCHS_WINDOWS: auto
CIBW_BEFORE_BUILD: "pip install -r requirements_dev.txt"
CIBW_BEFORE_TEST: "pip install -r requirements_test.txt"
CIBW_TEST_COMMAND: "pytest"
# Can't test cross-compiled Mac OS builds.
CIBW_TEST_SKIP: "*_arm64 *_universal2:arm64"

- uses: actions/upload-artifact@v2
with:
Expand All @@ -70,7 +69,7 @@ jobs:
strategy:
fail-fast: false
matrix:
py: ["cp37", "cp38", "cp39", "cp310"]
py: ["cp38", "cp39", "cp310"]
arch: [aarch64, ppc64le]

steps:
Expand Down
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,25 @@ Unofficial packages are available on
$ conda install -c conda-forge ta-lib
```

Binary packages are provided for the following setups. Older version of Python
and other architectures may be supported, but will require a C compiler when
installing:

| | Python 3.8 | Python 3.9 | Python 3.10 |
|---------------------|------------|------------|-------------|
| Linux (x86) ||||
| Linux (x86_64) ||||
| Linux (aarch64) ||||
| Linux (ppc64le) ||||
| Mac OS (x86_64) ||||
| Mac OS (M1/aarch64) ||||
| Windows (x86) ||||
| Windows (x86_64) ||||

Support is primarily limited by what versions of Python are supported by recent
versions of numpy. When building locally, make sure you're using a version of
numpy that supports your Python version.

## Function API

Similar to TA-Lib, the Function API provides a lightweight wrapper of the
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
numpy<=1.21
numpy
Cython
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-r requirements.txt
pandas<=1.3
pandas
pytest
flake8

0 comments on commit 8c2ce0b

Please sign in to comment.