Skip to content

Commit

Permalink
Update python support to 3.10, 3.11 and 3.12 (#73)
Browse files Browse the repository at this point in the history
* Update intro.txt

* Update setup.py

* Update README.md

* Update mypy.ini

* Update build_and_test.yml

* Update setup.py

* Update changelog.rst
  • Loading branch information
sjdilkes authored Jan 17, 2024
1 parent 13c3786 commit 71f0266
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 14 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,33 @@ jobs:
with:
fetch-depth: '0'
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* +refs/heads/*:refs/remotes/origin/*
- name: Set up Python 3.9
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Build and mypy (3.9)
python-version: '3.10'
- name: Build and mypy (3.10)
shell: bash
if: (matrix.os == 'macos-12') && (github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || github.event_name == 'release' || github.event_name == 'schedule' )
run: |
chmod +x ./.github/workflows/build-test
./.github/workflows/build-test mypy
- name: Set up Python 3.10
- name: Set up Python 3.11
if: github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'release' || github.event_name == 'schedule'
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Build (3.10)
python-version: '3.11'
- name: Build (3.11)
if: github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'release' || github.event_name == 'schedule'
shell: bash
run: |
chmod +x ./.github/workflows/build-test
./.github/workflows/build-test nomypy
- name: Set up Python 3.12
if: github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'release' || github.event_name == 'schedule'
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Build (3.12)
if: github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'release' || github.event_name == 'schedule'
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ implemented in the due course using `mpi4py` library.

## Getting started

`pytket-cutensornet` is available for Python 3.9, 3.10 and 3.11 on Linux.
`pytket-cutensornet` is available for Python 3.10, 3.11 and 3.12 on Linux.
In order to use it, you need access to a Linux machine with an NVIDIA GPU of
Compute Capability +7.0 (check it [here](https://developer.nvidia.com/cuda-gpus)) and first
install `cuQuantum Python` following their installation
Expand Down
8 changes: 8 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Changelog
~~~~~~~~~

Unreleased
----------

General:

* Python 3.12 support added, 3.9 dropped.
* Updated pytket version requirement to 1.24.

0.5.3 (January 2024)
--------------------

Expand Down
4 changes: 2 additions & 2 deletions docs/intro.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ We provide two core functionalities:
Currently, only single-GPU calculations are supported, but a multi-GPU execution will be
implemented in the due course using ``mpi4py`` library.

``pytket-cutensornet`` is available for Python 3.9, 3.10 and 3.11 on Linux.
``pytket-cutensornet`` is available for Python 3.10, 3.11 and 3.12 on Linux.
In order to use it, you need access to a Linux machine with an NVIDIA GPU of Compute Capability +7.0 (check it `here <https://developer.nvidia.com/cuda-gpus>`_) and first install ``cuQuantum Python`` following their installation
`instructions <https://docs.nvidia.com/cuda/cuquantum/latest/python/README.html#installation>`_.
This will include the necessary dependencies such as CUDA toolkit. Then, to install
Expand All @@ -30,4 +30,4 @@ This will include the necessary dependencies such as CUDA toolkit. Then, to inst

.. toctree::
api.rst
changelog.rst
changelog.rst
4 changes: 2 additions & 2 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[mypy]
python_version = 3.9
python_version = 3.10
warn_unused_configs = True

disallow_untyped_decorators = False
Expand All @@ -25,4 +25,4 @@ ignore_errors = True

[mypy-lark.*]
ignore_missing_imports = True
ignore_errors = True
ignore_errors = True
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
version=metadata["__extension_version__"],
author="TKET development team",
author_email="[email protected]",
python_requires=">=3.9",
python_requires=">=3.10",
project_urls={
"Documentation": "https://tket.quantinuum.com/extensions/pytket-cutensornet/index.html",
"Source": "https://github.com/CQCL/pytket-cutensornet",
Expand All @@ -42,12 +42,12 @@
license="Apache 2",
packages=find_namespace_packages(include=["pytket.*"]),
include_package_data=True,
install_requires=["pytket ~= 1.23"],
install_requires=["pytket ~= 1.24"],
classifiers=[
"Environment :: Console",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Intended Audience :: Developers",
Expand Down

0 comments on commit 71f0266

Please sign in to comment.