Coder Social home page Coder Social logo

tests_require support about pytest-runner HOT 8 CLOSED

pytest-dev avatar pytest-dev commented on August 17, 2024
tests_require support

from pytest-runner.

Comments (8)

jaraco avatar jaraco commented on August 17, 2024

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.

jaraco avatar jaraco commented on August 17, 2024

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.

jaraco avatar jaraco commented on August 17, 2024

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.

jaraco avatar jaraco commented on August 17, 2024

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.

jaraco avatar jaraco commented on August 17, 2024

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.

jaraco avatar jaraco commented on August 17, 2024

Original comment by Jason R. Coombs (Bitbucket: jaraco, GitHub: jaraco):


Add inline example. Fixes #4

from pytest-runner.

jaraco avatar jaraco commented on August 17, 2024

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.

jaraco avatar jaraco commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.