pytest needed as (runtime) requirement?
See original GitHub issuepytest is now listed as install_requires
in setup.py, and also included as ‘run requirement’ in the conda recipe. I think it’s better to use tests_require
(see http://setuptools.readthedocs.io/en/latest/setuptools.html) for setup.py, and not include it in the recipe. In general I don’t think test packages should be dependencies, people that want to test will either have this in their environment already, or will read the documentation.
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (13 by maintainers)
Top Results From Across the Web
Get Started — pytest documentation
pytest requires: Python 3.7+ or PyPy3. Run the following command in your command line: pip install -U pytest.
Read more >Effective Python Testing With Pytest
In this tutorial, you'll learn how to take your testing to the next level with pytest. You'll cover intermediate and advanced pytest ......
Read more >How to pass environment variables to pytest - Stack Overflow
If I hard code these environment variables, for eg: ENV_NAME = 'staging', ENV_NUMBER = '5' in my code and then run the tests...
Read more >pytest-dependency 0.5.1 documentation - Read the Docs
Using pytest-dependency¶ · Basic usage¶ · Naming tests¶ · Using test classes¶ · Parametrized tests¶ · Marking dependencies at runtime¶.
Read more >Python Friday #55: Separate Development From Runtime ...
requirements.txt as you know it · coverage==5.3. Flask==1.1.2. Jinja2==2.10.3. pytest==5.4.3. pytest-cov==2.10.1. pytest · html==3.1.1 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
That should be fixable in the conda recipe, which has a separate section for test requirements (that actually works as opposed to
tests_require
in setup.py).@mwcraig, @bsipocz if you’re willing to wait until #6606 is merged, then we can simply add
pytest-astropy
to the conda recipe test requirements.