Comments (8)
Original comment by Jason R. Coombs (Bitbucket: jaraco, GitHub: jaraco):
I agree it would be a nice enhancement to be able to handle some of these cases better. I think it's unfair to assume the spec for setuptools is "do anything a packaging user might ever want" and then to consider every possible improvement a defect that "needs fixing". Like most projects, you start with an approach and iterate on it.
I disagree; this issue is not (yet) a good practical example of a potential improvement, because the issue doesn't describe what behavior would be desirable or how that might be implemented.
For example, I could imagine taking a very narrow scope and adding 'pytest' support to the setuptools 'test' command (essentially obviating the need for pytest-runner). Alternatively, one could define a new mechanism for any setup_requires to only be relevant when certain commands are present. Still, that doesn't achieve the goal stated in the OP.
Regardless, for anything to happen, we need someone to own the challenge, file the ticket(s), design a solution, and implement it. I welcome the contribution.
from pytest-runner.
Original comment by Ronny Pfannschmidt (Bitbucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt):
i'd love to see this on hold and fixing in setuptools command handling
i think this issue is a giid practical example of things that need fixing in setuptools as well
from pytest-runner.
Original comment by Jason R. Coombs (Bitbucket: jaraco, GitHub: jaraco):
I don't think what you describe is possible, but if you can provide an example of what you're envisioning, I'm happy to reconsider.
from pytest-runner.
Original comment by Jason R. Coombs (Bitbucket: jaraco, GitHub: jaraco):
pytest-runner
is an alternative/replacement for the setuptools/distutils test command. The test command as implemented doesn't provide the necessary hooks to invoke arbitrary behavior such as to invoke pytest. Therefore, it's necessary to have a separate command, and that's what pytest-runner
implements. Because it's a separate command, it must be added prior to being invoked, so must be in setup_requires.
from pytest-runner.
Original comment by Ronny Pfannschmidt (Bitbucket: RonnyPfannschmidt, GitHub: RonnyPfannschmidt):
that was a miss-communication, what i meant was putting even pytest_runner into tests_require
from pytest-runner.
Original comment by Jason R. Coombs (Bitbucket: jaraco, GitHub: jaraco):
Add inline example. Fixes #4
from pytest-runner.
Original comment by Jason R. Coombs (Bitbucket: jaraco, GitHub: jaraco):
I lie. It's not in the readme. I'll update that.
from pytest-runner.
Original comment by Jason R. Coombs (Bitbucket: jaraco, GitHub: jaraco):
Can you clarify? What behavior are you expecting? What are you experiencing instead? pytest-runner supports tests_require and specifies the support in the readme.
from pytest-runner.
Related Issues (20)
- [Py3.3] AttributeError: type object 'test' has no attribute 'install_dists' HOT 6
- Declare Setuptools dependency HOT 4
- Fails to download from pypi.org HOT 4
- setup.py uses obsolete setup_requires HOT 2
- Declarative config breaks installs for old setuptools HOT 9
- Using test=pytest in setup.cfg gives "ModuleNotFoundError: No module named 'ptr'" HOT 2
- extras argument can't be set to False in setup.cfg HOT 1
- Support setup.py test arguments HOT 2
- Using setup_requires(['pytest-runner']) gives pkg_resources.DistributionNotFound: The 'pytest-runner' distribution was not found and is required by the application HOT 6
- Version 5.0 causes pkg_resources.DistributionNotFound HOT 9
- setup.py test is going to be deprecated HOT 5
- Please leave PYTHONPATH alone / provide a way to override your code that modifies it HOT 16
- .whl file in pypi.org contains underscore instead of dash HOT 3
- 5.2: test suite is failing HOT 5
- How do I setup pytest-runner correctly HOT 1
- 5.3.1: sphinx 4.0.3 warning HOT 2
- flake8 safety reports error HOT 4
- set development status to inactive 7
- 6.0.0: pytest is failing in two units HOT 10
- Make a new "inactive" release and archive the repository HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytest-runner.