• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Qiskit / rustworkx / 8855940251
94%

Build:
DEFAULT BRANCH: main
Ran 27 Apr 2024 12:54AM UTC
Jobs 1
Files 98
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Apr 2024 12:42AM UTC coverage: 96.554% (+0.03%) from 96.529%
8855940251

push

github

web-flow
Relax numpy upper version cap (#1172)

* Relax numpy upper version cap

In #1012 we added an upper version cap to numpy to prevent it from
installing numpy 2.0 before we confirmed that rustworkx was compatible
with it. Now that numpy 2.0.0rc1 has been released we're able to confirm
that rustworkx works fine with numpy 2.0. This commit raises the upper
bound on the numpy version to < 3 to enable installing numpy 2.0 with
rustworkx.

* Handle new __array__ API in numpy 2.0

While we didn't have any test coverage for this looking at the numpy 2.0
migration guide one thing we'll have to handle is the new copy kwarg on
array:

https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword

This commit updates the sole use of __array__ we have on custom sequence
return types so that if copy=False is passed in we raise a ValueError.
Additionally, the dtype handling is done directly in the rustworkx code
now to ensure we don't have any issues with numpy 2.0.

* Fix __array__ stubs

* Update src/iterators.rs

* Pin ruff to 0.4.1

---------

Co-authored-by: Ivan Carvalho <8753214+IvanIsCoding@users.noreply.github.com>

17 of 17 new or added lines in 1 file covered. (100.0%)

2 existing lines in 1 file now uncovered.

17344 of 17963 relevant lines covered (96.55%)

1172950.28 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
79.43
-0.63% rustworkx-core/src/generators/random_graph.rs
Jobs
ID Job ID Ran Files Coverage
1 8855940251.1 27 Apr 2024 12:54AM UTC 98
96.55
GitHub Action Run
Source Files on build 8855940251
  • Tree
  • List 98
  • Changed 23
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #8855940251
  • a6c9849e on github
  • Prev Build on main (#8826490220)
  • Next Build on main (#8885832633)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc