diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..558b033 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,15 @@ +# Description + +Please summarise the changes. + +# Related issues + +Please mention any github issues addressed by this PR. + +# Checklist + +- [ ] I have performed a self-review of my code. +- [ ] I have commented hard-to-understand parts of my code. +- [ ] I have made corresponding changes to the public API documentation. +- [ ] I have added tests that prove my fix is effective or that my feature works. +- [ ] I have updated the changelog with any user-facing changes. diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 2969677..93cd6ef 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -39,7 +39,7 @@ jobs: - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* +refs/heads/*:refs/remotes/origin/* - name: Set up Python 3.9 if: github.event_name == 'push' || github.event_name == 'schedule' - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.9' - name: Build and test (3.9) @@ -48,7 +48,7 @@ jobs: run: | ./.github/workflows/build-test nomypy numpy - name: Set up Python 3.10 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' - name: Build and test including remote checks (3.10) mypy @@ -66,7 +66,7 @@ jobs: PYTKET_RUN_REMOTE_TESTS: 1 - name: Set up Python 3.11 if: github.event_name == 'push' || github.event_name == 'pull_request' || github.event_name == 'schedule' - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.11' - name: Build and test (3.11) - macos and ubuntu @@ -79,10 +79,10 @@ jobs: shell: bash run: | ./.github/workflows/build-test nomypy numpyfix - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: github.event_name == 'release' || contains(github.ref, 'refs/heads/wheel') with: - name: artefacts + name: artefact-${{ matrix.os }} path: wheelhouse/ - name: Install docs dependencies if: (matrix.os == 'ubuntu-22.04') && (github.event_name == 'pull_request') @@ -101,9 +101,13 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Download all wheels - uses: actions/download-artifact@v3 + # downloading all three files into the wheelhouse + # all files are identical, so there will only be one file + uses: actions/download-artifact@v4 with: path: wheelhouse + pattern: artefact-* + merge-multiple: true - name: Put them all in the dist folder run: | mkdir dist @@ -125,11 +129,11 @@ jobs: with: fetch-depth: '0' - name: Set up Python 3.10 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' - name: Download all wheels - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: path: wheelhouse - name: Install pip, wheel @@ -146,7 +150,7 @@ jobs: mkdir extensions ./build-docs -d ${GITHUB_WORKSPACE}/.github/workflows/docs/extensions/api - name: Upload docs as artefact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: path: .github/workflows/docs/extensions @@ -164,4 +168,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4.0.1 diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 567d43e..e90bee6 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python 3.10 - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.10' - name: Upgrade pip and install wheel @@ -30,7 +30,7 @@ jobs: cd .github/workflows/docs mkdir extensions ./build-docs -d ${GITHUB_WORKSPACE}/.github/workflows/docs/extensions - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: pytket-extension-docs path: .github/workflows/docs/extensions/ diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index bed8273..8af01e0 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python 3.x - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.x' - name: Update pip diff --git a/_metadata.py b/_metadata.py index e6f85bf..4ef18e9 100644 --- a/_metadata.py +++ b/_metadata.py @@ -1,2 +1,2 @@ -__extension_version__ = "0.32.0" +__extension_version__ = "0.33.0" __extension_name__ = "pytket-braket" diff --git a/docs/changelog.rst b/docs/changelog.rst index 068c6c4..0ab0fbc 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -1,6 +1,11 @@ Changelog ~~~~~~~~~ +0.33.0 (January 2024) +--------------------- + +* Updated pytket version requirement to 1.23. + 0.32.0 (November 2023) ---------------------- diff --git a/setup.py b/setup.py index 1306409..f872419 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ author_email="tket-support@cambridgequantum.com", python_requires=">=3.9", project_urls={ - "Documentation": "https://tket.quantinuum.com/extensions/pytket-braket/api/index.html", + "Documentation": "https://tket.quantinuum.com/extensions/pytket-braket/index.html", "Source": "https://github.com/CQCL/pytket-braket", "Tracker": "https://github.com/CQCL/pytket-braket/issues", }, @@ -43,7 +43,7 @@ packages=find_namespace_packages(include=["pytket.*"]), include_package_data=True, install_requires=[ - "pytket ~= 1.22", + "pytket ~= 1.23", "amazon-braket-sdk ~= 1.53", "amazon-braket-schemas ~= 1.19", "amazon-braket-default-simulator ~= 1.20",