Skip to content

Commit

Permalink
Pin numpy in setup.py to pre 2.0 (#5579)
Browse files Browse the repository at this point in the history
### 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](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:** With the numpy 2.0 release coming soon, we will aim to pin
PennyLane until post-release validation can be performed.

**Description of the Change:** As above.

**Benefits:**

**Possible Drawbacks:**

**Related GitHub Issues:**

Co-authored-by: Astral Cai <[email protected]>
  • Loading branch information
mlxd and astralcai authored Apr 26, 2024
1 parent 85c8528 commit dc65906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
version = f.readlines()[-1].split()[-1].strip("\"'")

requirements = [
"numpy",
"numpy<2.0",
"scipy",
"networkx",
"rustworkx",
Expand Down

0 comments on commit dc65906

Please sign in to comment.