Skip to content

Conversation

rsmith49
Copy link
Contributor

Description of proposed changes

According to #1689, numpy versions lower than 1.21 are not supported by the new Mac M1 chips. Bumping the upper bound of numpy to accommodate this.

Related issue(s)

Fixes #1689

Test plan

Checklist

Need help on these? Just ask!

  • I have read the CONTRIBUTING document.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • I have run tox -e complex and/or tox -e spark if appropriate.
  • [] All new and existing tests passed.

@rsmith49 rsmith49 force-pushed the update-numpy-version branch from fb42ee9 to cec6723 Compare April 11, 2022 19:30
@bhancock8
Copy link
Member

Let's rebase now that #1696 is merged, then note on #1695 that this is now resolved.

zexuan-zhou and others added 3 commits April 12, 2022 13:48
* update python version

* py38 test now passes

* fix mypy check errors

* add more comment in code
@zexuan-zhou
Copy link
Contributor

@rsmith49 I think merging this PR will help py37 and py38 CI builds

zexuan-zhou and others added 2 commits April 12, 2022 16:10
* update python version

* py38 test now passes

* fix mypy check errors

* add more comment in code

* fix mypy error

* remove unused import
@rsmith49
Copy link
Contributor Author

@zexuan-zhou thanks for all the dev effort here! Looks like we addressed the mypy issues - ready for a review @bhancock8

@rsmith49 rsmith49 requested a review from humzaiqbal April 12, 2022 23:40
Copy link
Member

@bhancock8 bhancock8 left a comment

Choose a reason for hiding this comment

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

Changes lgtm! And proof is in the pudding—no changes to logic, only dependencies and types, and mypy is now satisfied (with helpful docstrings explaining conversions along the way). Ship it!

@rsmith49 rsmith49 merged commit 96a537f into master Apr 13, 2022
@rsmith49 rsmith49 deleted the update-numpy-version branch April 13, 2022 04:21
@zexuan-zhou
Copy link
Contributor

@bhancock8 @rsmith49 Will there be a version release for this or what version should I use to install the latest version. Thank you

@humzaiqbal humzaiqbal mentioned this pull request Apr 14, 2022
5 tasks
akode pushed a commit to akode/snorkel that referenced this pull request Jun 10, 2022
* Bumping numpy version for Mac M1 compat

* update python version

* fix mypy check errors


Co-authored-by: Bruce Zhou <[email protected]>
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.

Upgrade numpy from <=1.20.0 to 1.21.5 to support M1 Macs
3 participants