From fee0797087ac25d5bb402bdf199015a88e3e22bf Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 10 May 2024 08:20:44 +0200 Subject: [PATCH] DRAFT: GitHub Actions: Test on Python 3.13 beta release https://www.python.org/downloads/release/python-3130b1/ Like: * #9306 * #8777 * #6591 * #5992 * #4396 * #3926 * #2279 --- .github/workflows/build.yml | 11 ++++++++++- requirements.txt | 7 ++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a113b46086789..547ece29fee0b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,12 +12,21 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: 3.12 + python-version: 3.13 allow-prereleases: true - uses: actions/cache@v4 with: path: ~/.cache/pip key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} + # https://github.com/scipy/scipy/issues/16308#issuecomment-1140477372 + # https://lxml.de/installation.html#requirements + - run: | + sudo apt-get update -qq + # libgmp-dev for qiskit + # libhdf5-dev for keras + # libopenblas-dev for scipy + # libxml2 for lxml + sudo apt-get install --yes libgmp-dev libhdf5-dev libopenblas-dev libxml2 libxslt1-dev libxslt1.1 xsltproc - name: Install dependencies run: | python -m pip install --upgrade pip setuptools six wheel diff --git a/requirements.txt b/requirements.txt index bb3d671393b9a..608f3b59acb04 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,8 @@ beautifulsoup4 fake_useragent +git+https://github.com/cclauss/tweepy.git@patch-1 ; python_version >= '3.13' imageio -keras ; python_version < '3.12' +keras lxml matplotlib numpy @@ -17,8 +18,8 @@ rich scikit-learn statsmodels sympy -tensorflow -tweepy +tensorflow ; python_version < '3.13' +tweepy ; python_version < '3.13' # yulewalker # uncomment once audio_filters/equal_loudness_filter.py is fixed typing_extensions xgboost