On Tue, Sep 28, 2021 at 10:39 PM Aaron Meurer <asmeu...@gmail.com> 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 <ralf.gomm...@gmail.com> > 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