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

chore: fix NumPy bound & noxfile installs #1913

Merged
merged 2 commits into from
Nov 25, 2022
Merged

Conversation

agoose77
Copy link
Collaborator

@agoose77 agoose77 commented Nov 24, 2022

The NumPy lower bound for Awkward increased when we moved to python_version>=3.7. We made this fix in the CI, but not in the packaging metadata.

We also didn't test the tests or coverage Nox sessions, as they don't work with scikit-build-core out of the box. I'll follow up with @henryiii, but in the mean time we can at least ensure that they try to install the right package 🤦


📚 The documentation for this PR will be available at https://awkward-array.readthedocs.io/en/agoose77-fix-pytest/ once Read the Docs has finished building 🔨

@codecov
Copy link

codecov bot commented Nov 24, 2022

Codecov Report

Merging #1913 (049a758) into main (c4da619) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

@@ -23,7 +23,7 @@ def tests(session):
"""
Run the unit and regular tests.
"""
session.install("-r", "requirements-test.txt", "./awkward-cpp", "./awkward")
session.install("-r", "requirements-test.txt", "./awkward-cpp", ".")
Copy link
Member

@henryiii henryiii Nov 24, 2022

Choose a reason for hiding this comment

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

This needs to be in two lines, I think. Same below.

Suggested change
session.install("-r", "requirements-test.txt", "./awkward-cpp", ".")
session.install("-r", "requirements-test.txt", "./awkward-cpp")
session.install(".")

Also, I think if you reuse sessions it won't rebuild if the version doesn't change. I think.

@agoose77 agoose77 merged commit 2dbaf51 into main Nov 25, 2022
@agoose77 agoose77 deleted the agoose77/fix-pytest branch November 25, 2022 12:19
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.

3 participants