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

main/python-numpy: make tests depend on parent + checkdepends #3474

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

z-erica
Copy link
Contributor

@z-erica z-erica commented Jan 17, 2025

this time for real i prommy

@z-erica
Copy link
Contributor Author

z-erica commented Jan 17, 2025

hm no, should prolly be all of checkdepends

@z-erica z-erica changed the title main/python-numpy: make tests depend on pytest main/python-numpy: make tests depend on parent + checkdepends Jan 17, 2025
@@ -101,7 +101,10 @@ def post_install(self):
@subpackage("python-numpy-tests")
def _(self):
self.subdesc = "tests"
self.depends += ["python"]
self.depends = [
*self.parent.checkdepends,
Copy link
Member

Choose a reason for hiding this comment

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

this can be just checkdepends...

Copy link
Contributor Author

@z-erica z-erica Jan 19, 2025

Choose a reason for hiding this comment

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

the reason for this is trying

$ python
Python 3.12.8 (main, Jan 14 2025, 23:43:09) [Clang 19.1.6] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.test()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.12/site-packages/numpy/_pytesttester.py", line 126, in __call__
    import pytest
ModuleNotFoundError: No module named 'pytest'

after purposefully installing python-numpy-tests

Copy link
Member

Choose a reason for hiding this comment

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

no i mean

you can write just checkdepends instead of self.parent.checkdepends

Copy link
Contributor Author

Choose a reason for hiding this comment

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

o yeah

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