[Numpy-discussion] Re: Running numpy.test() after pip install
On Wed, Sep 29, 2021 at 9:54 PM Robert Kern wrote: > On Wed, Sep 29, 2021 at 3:50 PM Ralf Gommers > wrote: > >> >> On Tue, Sep 28, 2021 at 10:39 PM Aaron Meurer wrote: >> >>> Could numpy include a variant (I'm not sure what setuptools calls >>> this) so that 'pip install numpy[tests]' installs those extra >>> dependencies? >>> >> >> I'd prefer not to, those things aren't great for maintenance/testing, and >> if you have to read the docs to know how to spell `numpy[tests]` you may >> just as well write it `pip install numpy pytest hypothesis`. There's also >> no one set of extra dependencies people will want - what about running >> benchmarks, optional test dependencies, etc.? >> > > I think Bennet's request to add this to the `long_description` that shows > up on PyPI is eminently reasonable, though. > Yes I agree. We should fix the description in the main README (hypothesis is missing there), and then sync the README content to `long_description`. Ralf > >> If adding them as dependencies seems to heavy weight, or is otherwised >>> >> deemed undesirable, perhaps just a note in the Project Description at >>> >> https://pypi.org/project/numpy/ to say that, if you want to run >>> tests, >>> >> those two packages will be needed? >>> >> >>> >> Thanks,-- bennet >> >> > -- > Robert Kern > ___ > NumPy-Discussion mailing list -- numpy-discussion@python.org > To unsubscribe send an email to numpy-discussion-le...@python.org > https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ > Member address: ralf.gomm...@googlemail.com > ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com
[Numpy-discussion] Re: Running numpy.test() after pip install
On Wed, Sep 29, 2021 at 3:50 PM Ralf Gommers wrote: > > On Tue, Sep 28, 2021 at 10:39 PM Aaron Meurer wrote: > >> Could numpy include a variant (I'm not sure what setuptools calls >> this) so that 'pip install numpy[tests]' installs those extra >> dependencies? >> > > I'd prefer not to, those things aren't great for maintenance/testing, and > if you have to read the docs to know how to spell `numpy[tests]` you may > just as well write it `pip install numpy pytest hypothesis`. There's also > no one set of extra dependencies people will want - what about running > benchmarks, optional test dependencies, etc.? > I think Bennet's request to add this to the `long_description` that shows up on PyPI is eminently reasonable, though. >> If adding them as dependencies seems to heavy weight, or is otherwised >> >> deemed undesirable, perhaps just a note in the Project Description at >> >> https://pypi.org/project/numpy/ to say that, if you want to run tests, >> >> those two packages will be needed? >> >> >> >> Thanks,-- bennet > > -- Robert Kern ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com
[Numpy-discussion] Re: Running numpy.test() after pip install
On Tue, Sep 28, 2021 at 10:39 PM Aaron Meurer wrote: > Could numpy include a variant (I'm not sure what setuptools calls > this) so that 'pip install numpy[tests]' installs those extra > dependencies? > I'd prefer not to, those things aren't great for maintenance/testing, and if you have to read the docs to know how to spell `numpy[tests]` you may just as well write it `pip install numpy pytest hypothesis`. There's also no one set of extra dependencies people will want - what about running benchmarks, optional test dependencies, etc.? Cheers, Ralf > Aaron Meurer > > On Tue, Sep 28, 2021 at 11:33 AM Ralf Gommers > wrote: > > > > > > > > On Tue, Sep 28, 2021 at 7:07 PM Kevin Sheppard < > kevin.k.shepp...@gmail.com> wrote: > >> > >> I think NumPy has always tried to have effectively no install > dependencies at least when installed from source (minimal install from git > only requires Cython). This seems like a good goal to me and there are > scenarios where extra packages are a burden (e.g., Amazon Lambda). AFAICT > pretty much every package in the numerical python ecosystem excludes test > dependencies from setup requires or install requires. > > > > > > Agreed. We don't want to make any changes here, if you want to run the > tests you can just install pytest and hypothesis. > > > > Cheers, > > Ralf > > > >> > >> > >> Kevin > >> > >> > >> > >> > >> > >> From: Bennet Fauber > >> Sent: Tuesday, September 28, 2021 6:00 PM > >> To: numpy-discussion@python.org > >> Subject: [Numpy-discussion] Running numpy.test() after pip install > >> > >> > >> > >> I just installed NumPy using pip and Python 3.9.7 on CentOS 7.9. > >> > >> Installation went fine, but when I ran > >> > >> > >> > >> >>> import numpy > >> > >> >>> numpy.test() > >> > >> > >> > >> I got a traceback, and this summary. > >> > >> > >> > >> === short test summary info > > >> > >> ERROR - ModuleNotFoundError: No module named 'hypothesis' > >> > >> Interrupted: 1 error during collection > > >> > >> > >> > >> It seems that both hypothesis and pytest are needed to run numpy.test(). > >> > >> > >> > >> We like to be able to run all the tests even after a pip install, and > >> > >> being able to run some of the tests from pip-installed numpy is useful > >> > >> as well. > >> > >> > >> > >> May I suggest you add those two packages as dependencies for NumPy at > >> > >> PyPi? Neither are particularly large, both are generally useful, and > >> > >> I think the potential utility for those who would ike to check on > >> > >> their own system for anomalies outweighs the minimal impact on the > >> > >> majority of users who would not use it but would also probably not > >> > >> notice their presence. > >> > >> > >> > >> If adding them as dependencies seems to heavy weight, or is otherwised > >> > >> deemed undesirable, perhaps just a note in the Project Description at > >> > >> https://pypi.org/project/numpy/ to say that, if you want to run tests, > >> > >> those two packages will be needed? > >> > >> > >> > >> Thanks,-- bennet > >> > >> ___ > >> > >> NumPy-Discussion mailing list -- numpy-discussion@python.org > >> > >> To unsubscribe send an email to numpy-discussion-le...@python.org > >> > >> https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ > >> > >> Member address: kevin.k.shepp...@gmail.com > >> > >> > >> > >> ___ > >> NumPy-Discussion mailing list -- numpy-discussion@python.org > >> To unsubscribe send an email to numpy-discussion-le...@python.org > >> https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ > >> Member address: ralf.gomm...@gmail.com > > > > ___ > > NumPy-Discussion mailing list -- numpy-discussion@python.org > > To unsubscribe send an email to numpy-discussion-le...@python.org > > https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ > > Member address: asmeu...@gmail.com > ___ > NumPy-Discussion mailing list -- numpy-discussion@python.org > To unsubscribe send an email to numpy-discussion-le...@python.org > https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ > Member address: ralf.gomm...@gmail.com > ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com
[Numpy-discussion] Re: Running numpy.test() after pip install
Could numpy include a variant (I'm not sure what setuptools calls this) so that 'pip install numpy[tests]' installs those extra dependencies? Aaron Meurer On Tue, Sep 28, 2021 at 11:33 AM Ralf Gommers wrote: > > > > On Tue, Sep 28, 2021 at 7:07 PM Kevin Sheppard > wrote: >> >> I think NumPy has always tried to have effectively no install dependencies >> at least when installed from source (minimal install from git only requires >> Cython). This seems like a good goal to me and there are scenarios where >> extra packages are a burden (e.g., Amazon Lambda). AFAICT pretty much every >> package in the numerical python ecosystem excludes test dependencies from >> setup requires or install requires. > > > Agreed. We don't want to make any changes here, if you want to run the tests > you can just install pytest and hypothesis. > > Cheers, > Ralf > >> >> >> Kevin >> >> >> >> >> >> From: Bennet Fauber >> Sent: Tuesday, September 28, 2021 6:00 PM >> To: numpy-discussion@python.org >> Subject: [Numpy-discussion] Running numpy.test() after pip install >> >> >> >> I just installed NumPy using pip and Python 3.9.7 on CentOS 7.9. >> >> Installation went fine, but when I ran >> >> >> >> >>> import numpy >> >> >>> numpy.test() >> >> >> >> I got a traceback, and this summary. >> >> >> >> === short test summary info >> >> >> ERROR - ModuleNotFoundError: No module named 'hypothesis' >> >> Interrupted: 1 error during collection >> >> >> >> >> It seems that both hypothesis and pytest are needed to run numpy.test(). >> >> >> >> We like to be able to run all the tests even after a pip install, and >> >> being able to run some of the tests from pip-installed numpy is useful >> >> as well. >> >> >> >> May I suggest you add those two packages as dependencies for NumPy at >> >> PyPi? Neither are particularly large, both are generally useful, and >> >> I think the potential utility for those who would ike to check on >> >> their own system for anomalies outweighs the minimal impact on the >> >> majority of users who would not use it but would also probably not >> >> notice their presence. >> >> >> >> If adding them as dependencies seems to heavy weight, or is otherwised >> >> deemed undesirable, perhaps just a note in the Project Description at >> >> https://pypi.org/project/numpy/ to say that, if you want to run tests, >> >> those two packages will be needed? >> >> >> >> Thanks,-- bennet >> >> ___ >> >> NumPy-Discussion mailing list -- numpy-discussion@python.org >> >> To unsubscribe send an email to numpy-discussion-le...@python.org >> >> https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ >> >> Member address: kevin.k.shepp...@gmail.com >> >> >> >> ___ >> NumPy-Discussion mailing list -- numpy-discussion@python.org >> To unsubscribe send an email to numpy-discussion-le...@python.org >> https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ >> Member address: ralf.gomm...@gmail.com > > ___ > NumPy-Discussion mailing list -- numpy-discussion@python.org > To unsubscribe send an email to numpy-discussion-le...@python.org > https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ > Member address: asmeu...@gmail.com ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com
[Numpy-discussion] Re: Running numpy.test() after pip install
On Tue, Sep 28, 2021 at 7:07 PM Kevin Sheppard wrote: > I think NumPy has always tried to have effectively no install dependencies > at least when installed from source (minimal install from git only requires > Cython). This seems like a good goal to me and there are scenarios where > extra packages are a burden (e.g., Amazon Lambda). AFAICT pretty much > every package in the numerical python ecosystem excludes test dependencies > from setup requires or install requires. > Agreed. We don't want to make any changes here, if you want to run the tests you can just install pytest and hypothesis. Cheers, Ralf > > Kevin > > > > > > *From: *Bennet Fauber > *Sent: *Tuesday, September 28, 2021 6:00 PM > *To: *numpy-discussion@python.org > *Subject: *[Numpy-discussion] Running numpy.test() after pip install > > > > I just installed NumPy using pip and Python 3.9.7 on CentOS 7.9. > > Installation went fine, but when I ran > > > > >>> import numpy > > >>> numpy.test() > > > > I got a traceback, and this summary. > > > > === short test summary info > > > ERROR - ModuleNotFoundError: No module named 'hypothesis' > > Interrupted: 1 error during collection > > > > > It seems that both hypothesis and pytest are needed to run numpy.test(). > > > > We like to be able to run all the tests even after a pip install, and > > being able to run some of the tests from pip-installed numpy is useful > > as well. > > > > May I suggest you add those two packages as dependencies for NumPy at > > PyPi? Neither are particularly large, both are generally useful, and > > I think the potential utility for those who would ike to check on > > their own system for anomalies outweighs the minimal impact on the > > majority of users who would not use it but would also probably not > > notice their presence. > > > > If adding them as dependencies seems to heavy weight, or is otherwised > > deemed undesirable, perhaps just a note in the Project Description at > > https://pypi.org/project/numpy/ to say that, if you want to run tests, > > those two packages will be needed? > > > > Thanks,-- bennet > > ___ > > NumPy-Discussion mailing list -- numpy-discussion@python.org > > To unsubscribe send an email to numpy-discussion-le...@python.org > > https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ > > Member address: kevin.k.shepp...@gmail.com > > > ___ > NumPy-Discussion mailing list -- numpy-discussion@python.org > To unsubscribe send an email to numpy-discussion-le...@python.org > https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ > Member address: ralf.gomm...@gmail.com > ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com
[Numpy-discussion] Re: Running numpy.test() after pip install
I think NumPy has always tried to have effectively no install dependencies at least when installed from source (minimal install from git only requires Cython). This seems like a good goal to me and there are scenarios where extra packages are a burden (e.g., Amazon Lambda). AFAICT pretty much every package in the numerical python ecosystem excludes test dependencies from setup requires or install requires. Kevin From: Bennet FauberSent: Tuesday, September 28, 2021 6:00 PMTo: numpy-discussion@python.orgSubject: [Numpy-discussion] Running numpy.test() after pip install I just installed NumPy using pip and Python 3.9.7 on CentOS 7.9.Installation went fine, but when I ran >>> import numpy>>> numpy.test() I got a traceback, and this summary. === short test summary info ERROR - ModuleNotFoundError: No module named 'hypothesis' Interrupted: 1 error during collection It seems that both hypothesis and pytest are needed to run numpy.test(). We like to be able to run all the tests even after a pip install, andbeing able to run some of the tests from pip-installed numpy is usefulas well. May I suggest you add those two packages as dependencies for NumPy atPyPi? Neither are particularly large, both are generally useful, andI think the potential utility for those who would ike to check ontheir own system for anomalies outweighs the minimal impact on themajority of users who would not use it but would also probably notnotice their presence. If adding them as dependencies seems to heavy weight, or is otherwiseddeemed undesirable, perhaps just a note in the Project Description athttps://pypi.org/project/numpy/ to say that, if you want to run tests,those two packages will be needed? Thanks, -- bennet___NumPy-Discussion mailing list -- numpy-discussion@python.orgTo unsubscribe send an email to numpy-discussion-le...@python.orghttps://mail.python.org/mailman3/lists/numpy-discussion.python.org/Member address: kevin.k.shepp...@gmail.com ___ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com