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

Revert "Bump pyo3 from 0.12.4 to 0.13.1 (#224)" #237

Merged
merged 1 commit into from
Jan 23, 2021

Conversation

mtreinish
Copy link
Member

This commit reverts the version bumps for pyo3, numpy, and ndarray. The
3 changes here required increasing the minimum supported rust version
from 1.39.0 to 1.45.0. While for most developers and use cases this is
fine since 1.45.0 is > 6 months old and most packagers/distributors keep
the rust version up-to-date. One known exception to this though is the
debian 10 rustc package is at 1.41.0. This becomes an issue for
raspberry pi users running a 32bit operating system (the aarch64
manylinux wheels on PyPI work fine for 64bit OS rasberry pi users).
The piwheels project is using the debian 10 package which means to
provide prebuilt wheels of retworkx they need to be able to use rustc
1.41.0 to build.

When weighing the features of this version bump (the big thing for our
use case are better type error messages when calling retworkx from
python) that this version bump would require all raspberry pi users
to switch back to building retworkx from source on 32bit Raspberry Pi OS
when retworkx on piwheels was only a recent addition we should wait at
least one more release before bumping the minimum support rust version.
Hopefully the debian rustc version will be bumped to >=1.45.0 at some
point soon and then this issue goes away.

This reverts commit a3249f0.

This commit reverts the version bumps for pyo3, numpy, and ndarray. The
3 changes here required increasing the minimum supported rust version
from 1.39.0 to 1.45.0. While for most developers and use cases this is
fine since 1.45.0 is > 6 months old and most packagers/distributors keep
the rust version up-to-date. One known exception to this though is the
debian 10 rustc package is at 1.41.0. This becomes an issue for
raspberry pi users running a 32bit operating system (the aarch64
manylinux wheels on PyPI work fine for 64bit OS rasberry pi users).
The piwheels project is using the debian 10 package which means to
provide prebuilt wheels of retworkx they need to be able to use rustc
1.41.0 to build.

When weighing the features of this version bump (the big thing for our
use case are better type error messages when calling retworkx from
python) that this version bump would require all raspberry pi users
to switch back to building retworkx from source on 32bit Raspberry Pi OS
when retworkx on piwheels was only a recent addition we should wait at
least one more release before bumping the minimum support rust version.
Hopefully the debian rustc version will be bumped to >=1.45.0 at some
point soon and then this issue goes away.

This reverts commit a3249f0.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 506123504

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 94.845%

Totals Coverage Status
Change from base Build 502314076: 0.0%
Covered Lines: 3091
Relevant Lines: 3259

💛 - Coveralls

mtreinish added a commit to mtreinish/retworkx that referenced this pull request Jan 23, 2021
This commit restores the PyO3, rust-numpy, and ndarray bump to the
lastest versions. This was previously reverted in Qiskit#237 to avoid the
increase in the minimum supported rust version to enable builds on
piwheels. However, now that 0.8.0 has been released I think it's fine to
bump now.

This reverts commit 3beb8fb.
@mtreinish mtreinish merged commit fad5320 into Qiskit:master Jan 23, 2021
@mtreinish mtreinish deleted the revert-pyo3-bump branch January 23, 2021 18:21
mtreinish added a commit to mtreinish/retworkx that referenced this pull request Jan 23, 2021
This commit restores the PyO3, rust-numpy, and ndarray bump to the
latest versions. This was previously reverted in Qiskit#237 to avoid the
increase in the minimum supported rust version to enable builds on
piwheels. However, now that 0.8.0 has been released I think it's fine to
bump now.

This reverts commit 3beb8fb.
mtreinish added a commit that referenced this pull request Mar 17, 2021
* Revert "Revert "Bump pyo3 from 0.12.4 to 0.13.1 (#224)""

This commit restores the PyO3, rust-numpy, and ndarray bump to the
latest versions. This was previously reverted in #237 to avoid the
increase in the minimum supported rust version to enable builds on
piwheels. However, now that 0.8.0 has been released I think it's fine to
bump now.

This reverts commit 3beb8fb.

* Relax msrv to 1.42.0

* Update bump-msrv-d581a8cbeff8915b.yaml

* Update README.md

* Use rust-numpy 0.13.1 and bumpy MSRV to 1.41.1

As a conclusion to PyO3/rust-numpy#146 the MSRV for rust-numpy was
defined as matching PyO3 and being 1.41.1. The rust-numpy 0.13.1
release handled this and relaxed it's dependency on upstream
dependencies (namely ndarray) to enable building with rust 1.41.1. Since
rust 1.41.1 is what is shipped with Debian buster it will work for
retworkx (so we don't block piwheels which relies on the debian rustc
package). This commit bumps the rust-numpy version to the latest release
and correspondingly bumps the MSRV to match at 1.41.1 which also unblocks
the use of the latest PyO3 release.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants