Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update python support to 3.10, 3.11 and 3.12 #125

Merged
merged 7 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 10 additions & 15 deletions .github/workflows/build_and_test.yml
cqc-alec marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -37,48 +37,43 @@ 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
if: github.event_name == 'push' || github.event_name == 'schedule'
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Build and test (3.9)
python-version: '3.10'
- name: Build and test (3.10)
if: github.event_name == 'push' || github.event_name == 'schedule'
shell: bash
run: |
./.github/workflows/build-test nomypy numpy
- name: Set up Python 3.10
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Build and test including remote checks (3.10) mypy
python-version: '3.11'
- name: Build and test including remote checks (3.11) mypy
if: (matrix.os == 'macos-12') && ((github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) || github.event_name == 'release' || contains(github.ref, 'refs/heads/wheel') || github.event_name == 'schedule')
run: |
./.github/workflows/build-test mypy numpy
env:
PYTKET_RUN_REMOTE_TESTS: 1
- name: Build and test including remote checks (3.10) nomypy
- name: Build and test including remote checks (3.11) nomypy
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')
shell: bash
run: |
./.github/workflows/build-test nomypy numpy
env:
PYTKET_RUN_REMOTE_TESTS: 1
- name: Set up Python 3.11
- name: Set up Python 3.12
if: github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'schedule'
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Build and test (3.11) - macos and ubuntu
python-version: '3.12'
- name: Build and test (3.12) - macos and ubuntu
if: (matrix.os != 'windows-2022') && (github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'schedule')
shell: bash
run: |
./.github/workflows/build-test nomypy numpy
- name: Build and test (3.11) - windows
cqc-alec marked this conversation as resolved.
Show resolved Hide resolved
if: (matrix.os == 'windows-2022') && (github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'schedule')
shell: bash
run: |
./.github/workflows/build-test nomypy numpyfix
- uses: actions/upload-artifact@v4
if: github.event_name == 'release' || contains(github.ref, 'refs/heads/wheel')
with:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Some useful links:

## Getting started

`pytket-braket` is available for Python 3.9, 3.10 and 3.11, on Linux, MacOS
and Windows. To install, run:
`pytket-braket` is available for Python 3.10 and 3.11, on Linux, MacOS
and Windows, and Python 3.12 on Linux and MacOS. To install, run:

```shell
pip install pytket-braket
Expand Down
9 changes: 9 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
Changelog
~~~~~~~~~

Unreleased
----------

General:

* Python 3.12 support added, 3.9 dropped.
* pytket dependency updated to 1.24


0.33.0 (January 2024)
---------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/intro.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pytket-braket
``pytket-braket`` is an extension to ``pytket`` that allows ``pytket`` circuits to
be executed on gate-model quantum devices and simulators via Amazon's Braket service.

``pytket-braket`` is available for Python 3.9, 3.10 and 3.11, on Linux, MacOS
``pytket-braket`` is available for Python 3.10, 3.11 and 3.12, on Linux, MacOS
and Windows. To install, run:

::
Expand Down
2 changes: 1 addition & 1 deletion 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 Down
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="tket-support@cambridgequantum.com",
python_requires=">=3.9",
python_requires=">=3.10",
project_urls={
"Documentation": "https://tket.quantinuum.com/extensions/pytket-braket/index.html",
"Source": "https://github.com/CQCL/pytket-braket",
Expand All @@ -43,17 +43,17 @@
packages=find_namespace_packages(include=["pytket.*"]),
include_package_data=True,
install_requires=[
"pytket ~= 1.23",
"pytket ~= 1.24",
"amazon-braket-sdk ~= 1.53",
"amazon-braket-schemas ~= 1.19",
"amazon-braket-default-simulator ~= 1.20",
"boto3-stubs",
],
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 :: MacOS :: MacOS X",
"Operating System :: POSIX :: Linux",
Expand Down