From 4e33e328c9d3ac80e2c975f07b68684a3ff3844a Mon Sep 17 00:00:00 2001 From: Boldi Date: Fri, 27 Oct 2023 13:51:27 +0100 Subject: [PATCH] feat!: Add Python 3.11 and drop Python 3.7 support --- .github/workflows/tests.yml | 2 +- README.md | 2 +- setup.py | 6 +++--- tox.ini | 6 ++++-- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 54bf3ae6..10580a0f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10"] + python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index c32a4cf9..3d2b5d78 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ Tests and additional checks can be run using `tox`. After installation, run the following command: ``` -tox -e py310 +tox -e py311 ``` Alternatively, you can run only the tests using `pytest`. After installation, run the diff --git a/setup.py b/setup.py index 2dde348e..cb7a9770 100644 --- a/setup.py +++ b/setup.py @@ -31,9 +31,9 @@ url="https://github.com/Budapest-Quantum-Computing-Group/piquasso", keywords=["python", "piquasso"], install_requires=[ - 'theboss==2.0.3; python_version >= "3.7"', - 'numpy>=1.19.5; python_version >= "3.7"', - 'scipy>=1.5.4; python_version >= "3.7"', + 'theboss==2.0.3; python_version >= "3.8"', + 'numpy>=1.19.5; python_version >= "3.8"', + 'scipy>=1.5.4; python_version >= "3.8"', "quantum-blackbird==0.5.0", ], extras_require={ diff --git a/tox.ini b/tox.ini index b016024d..b2e1e94e 100644 --- a/tox.ini +++ b/tox.ini @@ -4,14 +4,16 @@ # and then run "tox" from this directory. [tox] -envlist = py37, py38, py39, py310 +requires = + tox>=4 +env_list = py{37,38,39,310,311} [gh-actions] python = - 3.7: py37 3.8: py38 3.9: py39 3.10: py310 + 3.11: py311 [testenv] extras = tensorflow