diff --git a/python-cassandra-driver.changes b/python-cassandra-driver.changes index eeaa840..bd0965e 100644 --- a/python-cassandra-driver.changes +++ b/python-cassandra-driver.changes @@ -1,7 +1,7 @@ ------------------------------------------------------------------- Thu Feb 8 09:38:13 UTC 2024 - Markéta Machová -- Require backport of the asyncore library on Python 3.12+ +- Fix tests on Python 3.12 ------------------------------------------------------------------- Sun Jun 25 19:02:15 UTC 2023 - Dirk Müller diff --git a/python-cassandra-driver.spec b/python-cassandra-driver.spec index 6586dc7..96d72e1 100644 --- a/python-cassandra-driver.spec +++ b/python-cassandra-driver.spec @@ -34,7 +34,6 @@ BuildRequires: %{python_module eventlet} BuildRequires: %{python_module geomet >= 0.1} BuildRequires: %{python_module gevent} BuildRequires: %{python_module pure-sasl} -BuildRequires: %{python_module pyasyncore if %python-base > 3.11} BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytz} BuildRequires: %{python_module setuptools} @@ -43,6 +42,7 @@ BuildRequires: %{python_module sure} BuildRequires: fdupes BuildRequires: libev-devel BuildRequires: python-rpm-macros +BuildRequires: python312-pyasyncore Requires: python-Cython Requires: python-geomet >= 0.1 Requires: python-six >= 1.9 @@ -77,6 +77,8 @@ rm -rf tests/unit/cython rm -f tests/unit/test_types.py # fix hardcoded cython dep sed -i -e 's:Cython>=0.20,!=0.25,<0.29:Cython:g' setup.py +# fix tests on Python 3.12 +sed -i 's/assertRaisesRegexp/assertRaisesRegex/' tests/unit/test_response_future.py %build export CFLAGS="%{optflags}"