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

Remove Python 3.9 in favour of 3.10 as minimum #6223

Merged
merged 17 commits into from
Sep 6, 2024
Merged

Conversation

mlxd
Copy link
Member

@mlxd mlxd commented Sep 5, 2024

Before submitting

Please complete the following checklist when submitting a PR:

  • All new features must include a unit test.
    If you've fixed a bug or added code that should be tested, add a test to the
    test directory!

  • All new functions and code must be clearly commented and documented.
    If you do make documentation changes, make sure that the docs build and
    render correctly by running make docs.

  • Ensure that the test suite passes, by running make test.

  • Add a new entry to the doc/releases/changelog-dev.md file, summarizing the
    change, and including a link back to the PR.

  • The PennyLane source code conforms to
    PEP8 standards.
    We check all of our code against Pylint.
    To lint modified files, simply pip install pylint, and then
    run pylint pennylane/path/to/file.py.

When all the above are checked, delete everything above the dashed
line and fill in the pull request template.


Context: Remove Py 3.9 from the CI runners and package metadata.

Description of the Change:

Benefits:

Possible Drawbacks:

Related GitHub Issues:

@mlxd
Copy link
Member Author

mlxd commented Sep 5, 2024

[sc-65091]

Copy link
Contributor

github-actions bot commented Sep 5, 2024

Hello. You may have forgotten to update the changelog!
Please edit doc/releases/changelog-dev.md with:

  • A one-to-two sentence description of the change. You may include a small working example for new features.
  • A link back to this PR.
  • Your name (or GitHub username) in the contributors section.

@mlxd mlxd marked this pull request as ready for review September 5, 2024 18:19
@mlxd
Copy link
Member Author

mlxd commented Sep 5, 2024

Copy link

codecov bot commented Sep 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.60%. Comparing base (b37234d) to head (fffe9c8).
Report is 348 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6223      +/-   ##
==========================================
- Coverage   99.65%   99.60%   -0.06%     
==========================================
  Files         446      445       -1     
  Lines       42536    42362     -174     
==========================================
- Hits        42390    42193     -197     
- Misses        146      169      +23     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@astralcai
Copy link
Contributor

Starting Python 3.10 we can use | to replace Union in type hints, and types from typing can directly be used in isinstance checks. We can potentially update the code base to take advantage of this.

@mlxd
Copy link
Member Author

mlxd commented Sep 6, 2024

Note: all CI test labels will be updated before merging.

@mlxd mlxd requested review from mudit2812 and astralcai September 6, 2024 13:06
Copy link
Contributor

@mudit2812 mudit2812 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm surprised pylint isn't breaking. Maybe worth running CI with the full suite before merging.

@astralcai
Copy link
Contributor

Do we want to pin python_requires in setup.py?

@mlxd mlxd added the ci:run-full-test-suite Run the full test-suite on the pull request label Sep 6, 2024
@mlxd
Copy link
Member Author

mlxd commented Sep 6, 2024

I'm surprised pylint isn't breaking. Maybe worth running CI with the full suite before merging.

Yep, good call. I'll add the label and retrigger.

@mlxd
Copy link
Member Author

mlxd commented Sep 6, 2024

Do we want to pin python_requires in setup.py?

I think this is fine to leave free for now.

@mlxd mlxd enabled auto-merge (squash) September 6, 2024 15:08
@mlxd mlxd merged commit 713a33d into master Sep 6, 2024
58 checks passed
@mlxd mlxd deleted the dep/remove_py_39 branch September 6, 2024 17:55
mlxd added a commit to PennyLaneAI/catalyst that referenced this pull request Sep 6, 2024
**Context:** This PR removes support for Python 3.9 and migrates to 3.10
as the oldest supported version.

**Description of the Change:**

**Benefits:** 

**Possible Drawbacks:**

**Related GitHub Issues:**
PennyLaneAI/pennylane-lightning#891
PennyLaneAI/pennylane#6223
mudit2812 pushed a commit that referenced this pull request Sep 10, 2024
### Before submitting

Please complete the following checklist when submitting a PR:

- [x] All new features must include a unit test.
If you've fixed a bug or added code that should be tested, add a test to
the
      test directory!

- [x] All new functions and code must be clearly commented and
documented.
If you do make documentation changes, make sure that the docs build and
      render correctly by running `make docs`.

- [x] Ensure that the test suite passes, by running `make test`.

- [x] Add a new entry to the `doc/releases/changelog-dev.md` file,
summarizing the
      change, and including a link back to the PR.

- [x] The PennyLane source code conforms to
      [PEP8 standards](https://www.python.org/dev/peps/pep-0008/).
We check all of our code against [Pylint](https://www.pylint.org/).
      To lint modified files, simply `pip install pylint`, and then
      run `pylint pennylane/path/to/file.py`.

When all the above are checked, delete everything above the dashed
line and fill in the pull request template.


------------------------------------------------------------------------------------------------------------

**Context:** Remove Py 3.9 from the CI runners and package metadata.

**Description of the Change:**

**Benefits:**

**Possible Drawbacks:**

**Related GitHub Issues:**
mudit2812 pushed a commit that referenced this pull request Sep 12, 2024
### Before submitting

Please complete the following checklist when submitting a PR:

- [x] All new features must include a unit test.
If you've fixed a bug or added code that should be tested, add a test to
the
      test directory!

- [x] All new functions and code must be clearly commented and
documented.
If you do make documentation changes, make sure that the docs build and
      render correctly by running `make docs`.

- [x] Ensure that the test suite passes, by running `make test`.

- [x] Add a new entry to the `doc/releases/changelog-dev.md` file,
summarizing the
      change, and including a link back to the PR.

- [x] The PennyLane source code conforms to
      [PEP8 standards](https://www.python.org/dev/peps/pep-0008/).
We check all of our code against [Pylint](https://www.pylint.org/).
      To lint modified files, simply `pip install pylint`, and then
      run `pylint pennylane/path/to/file.py`.

When all the above are checked, delete everything above the dashed
line and fill in the pull request template.


------------------------------------------------------------------------------------------------------------

**Context:** Remove Py 3.9 from the CI runners and package metadata.

**Description of the Change:**

**Benefits:**

**Possible Drawbacks:**

**Related GitHub Issues:**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:run-full-test-suite Run the full test-suite on the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants