From d158a06d257596b9383ccaa2a96a564b914533ce Mon Sep 17 00:00:00 2001 From: Tyler Kennedy Date: Thu, 19 May 2022 17:10:08 -0400 Subject: [PATCH] Avoid py3.7 on Mac OS 11. --- .github/workflows/release.yml | 25 ++++++++++++------------- README.md | 19 +++++++++++++++++++ requirements.txt | 2 +- requirements_test.txt | 2 +- 4 files changed, 33 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6509cbe4f..4bb84aa13 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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_BUILD: "pip install -r requirements_dev.txt" + 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/cibuildwheel@v2.4.0 - 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: @@ -70,7 +69,7 @@ jobs: strategy: fail-fast: false matrix: - py: ["cp37", "cp38", "cp39", "cp310"] + py: ["cp38", "cp39", "cp310"] arch: [aarch64, ppc64le] steps: diff --git a/README.md b/README.md index 33a9b84bc..95203adb7 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/requirements.txt b/requirements.txt index cfaed5af0..70bf4e3ba 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -numpy<=1.21 +numpy Cython diff --git a/requirements_test.txt b/requirements_test.txt index 6a8206003..99cdf3df9 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -1,4 +1,4 @@ -r requirements.txt -pandas<=1.3 +pandas pytest flake8