diff --git a/.github/actions/run-tests/action.yml b/.github/actions/run-tests/action.yml index 27c0ab967..024881103 100644 --- a/.github/actions/run-tests/action.yml +++ b/.github/actions/run-tests/action.yml @@ -38,7 +38,7 @@ runs: if [ "${{ inputs.event-name }}" == "schedule" ] || [ "${{ inputs.run-slow }}" == "true" ]; then export QISKIT_TESTS="run_slow" fi - if [ "${{ inputs.os }}" == "ubuntu-latest" ] && [ "${{ inputs.python-version }}" == "3.8" ]; then + if [ "${{ inputs.os }}" == "ubuntu-latest" ] && [ "${{ inputs.python-version }}" == "3.9" ]; then export PYTHON="coverage3 run --source qiskit_nature --omit */gauopen/* --parallel-mode" fi stestr --test-path test run 2> >(tee /dev/stderr out.txt > /dev/null) diff --git a/.github/workflows/deploy-code.yml b/.github/workflows/deploy-code.yml index ad80409ba..8ad17587e 100644 --- a/.github/workflows/deploy-code.yml +++ b/.github/workflows/deploy-code.yml @@ -25,7 +25,7 @@ jobs: id-token: write strategy: matrix: - python-version: [3.8] + python-version: [3.9] steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 14e64ba62..cc8a537c5 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8] + python-version: [3.9] steps: - uses: actions/checkout@v4 with: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e8687ab24..48cc03dcb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,7 +36,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - python-version: [3.8] + python-version: [3.9] steps: - name: Print Concurrency Group env: @@ -149,14 +149,14 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - python-version: [3.8, 3.9, '3.10', 3.11, 3.12] + python-version: [3.9, '3.10', 3.11, 3.12] include: - os: macos-latest - python-version: 3.8 + python-version: 3.9 - os: macos-latest python-version: 3.12 - os: windows-latest - python-version: 3.8 + python-version: 3.9 - os: windows-latest python-version: 3.12 steps: @@ -177,14 +177,11 @@ jobs: if: ${{ matrix.os == 'macos-latest' }} - name: Create conda environment run: | - echo user $USER - echo conda_dir $CONDA output_complete - which conda if [ "${{ matrix.os }}" == "macos-latest" ]; then sudo chown -R $USER: "$CONDA" fi source "$CONDA/etc/profile.d/conda.sh" - if [ "${{ matrix.python-version }}" >= "3.9" ]; then + if [ "${{ matrix.python-version }}" >= "3.11" ]; then conda create -y -n psi4env python=${{ matrix.python-version }} -c conda-forge else conda create -y -n psi4env python=${{ matrix.python-version }} @@ -204,11 +201,6 @@ jobs: - uses: ./.github/actions/install-nature with: use-conda: "true" - - name: Set up problem matches - run: | - echo "::add-matcher::./.github/problem_matchers/pylint.json" - echo "::add-matcher::./.github/problem_matchers/mypy.json" - if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == 3.8 }} - name: Run lint run: | source "$CONDA/etc/profile.d/conda.sh" @@ -254,7 +246,7 @@ jobs: conda activate psi4env coverage3 combine mv .coverage ./ci-artifact-data/nat.dat - if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == 3.8 }} + if: ${{ matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9 }} shell: bash - uses: actions/upload-artifact@v4 with: @@ -283,7 +275,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - python-version: [3.8, 3.12] + python-version: [3.9, 3.12] steps: - uses: actions/checkout@v4 with: @@ -350,30 +342,26 @@ jobs: cd docs/_build/html mkdir artifacts tar -zcvf artifacts/tutorials.tar.gz --exclude=./artifacts . - if: ${{ matrix.python-version == 3.8 && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }} + if: ${{ matrix.python-version == 3.9 && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }} shell: bash - name: Run upload stable tutorials uses: actions/upload-artifact@v4 with: name: tutorials-stable${{ matrix.python-version }} path: docs/_build/html/artifacts/tutorials.tar.gz - if: ${{ matrix.python-version == 3.8 && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }} + if: ${{ matrix.python-version == 3.9 && !startsWith(github.ref, 'refs/heads/stable') && !startsWith(github.base_ref, 'stable/') }} Deprecation_Messages_and_Coverage: if: github.repository_owner == 'qiskit-community' needs: [Checks, Nature, Tutorials] runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8] + python-version: [3.9] steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - uses: actions/download-artifact@v4 - with: - name: ubuntu-latest-3.8 - path: /tmp/u38 - uses: actions/download-artifact@v4 with: name: ubuntu-latest-3.9 @@ -392,16 +380,16 @@ jobs: path: /tmp/u312 - uses: actions/download-artifact@v4 with: - name: macos-latest-3.8 - path: /tmp/m38 + name: macos-latest-3.9 + path: /tmp/m39 - uses: actions/download-artifact@v4 with: name: macos-latest-3.12 path: /tmp/m312 - uses: actions/download-artifact@v4 with: - name: windows-latest-3.8 - path: /tmp/w38 + name: windows-latest-3.9 + path: /tmp/w39 - uses: actions/download-artifact@v4 with: name: windows-latest-3.12 diff --git a/.mergify.yml b/.mergify.yml index d9a318886..ca27e5964 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -1,12 +1,12 @@ queue_rules: - name: automerge conditions: - - check-success=Deprecation_Messages_and_Coverage (3.8) + - check-success=Deprecation_Messages_and_Coverage (3.9) pull_request_rules: - name: automatic merge on CI success and review conditions: - - check-success=Deprecation_Messages_and_Coverage (3.8) + - check-success=Deprecation_Messages_and_Coverage (3.9) - "#approved-reviews-by>=1" - label=automerge - label!=on hold diff --git a/setup.py b/setup.py index 33f36a9eb..8a9e469cd 100644 --- a/setup.py +++ b/setup.py @@ -62,7 +62,6 @@ "Operating System :: MacOS", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", @@ -73,7 +72,7 @@ packages=setuptools.find_packages(include=["qiskit_nature", "qiskit_nature.*"]), install_requires=REQUIREMENTS, include_package_data=True, - python_requires=">=3.8", + python_requires=">=3.9", extras_require={ "pyscf": ["pyscf; sys_platform != 'win32'"], "mpl": ["matplotlib>=3.3"],