Code Monkey home page Code Monkey logo

Comments (13)

asottile avatar asottile commented on May 30, 2024 1

via af71d7e: The search has been expanded to include the Framework :: Pytest classifier

from plugincompat.

jaraco avatar jaraco commented on May 30, 2024

http://stackoverflow.com/questions/18338178/how-to-propose-a-new-trove-classifier-on-pypi

from plugincompat.

jaraco avatar jaraco commented on May 30, 2024

I suggest "Framework :: Pytest :: Plugin"

from plugincompat.

nicoddemus avatar nicoddemus commented on May 30, 2024

Thanks for the suggestion!

I like the idea, but I would like to keep the current behavior of considering "pytest-" as plugins, even with some false positives. It also seems very easy to implement.

@hpk42, any comments here?

from plugincompat.

hpk42 avatar hpk42 commented on May 30, 2024

On Fri, Jun 12, 2015 at 12:09 -0700, Jason R. Coombs wrote:

Currently, plugincompat uses a heuristic that plugins are all named with a "pytest-" prefix. However, the plugin API allows any package to advertise itself as a plugin by exposing a suitable entry point. As a result, some projects which have useful plugins aren't included (e.g. backports.unittest_mock or jaraco.mongodb. I guess one could just create a slim wrapper around those in another package called "pytest-backports-unittest-mock" or similar, but that seems messy.

i think that plugincompat could be refined to grep entrypoint information
out of projects, filtering out false positives, no?

holger

Furethermore, some packages like pytest-runner aren't pytest plugins, but appear to be so according to the heuristic.

How about instead considering a technique whereby a project can declare it's "Pytest Plugin-ness" through package metadata? Since entry points aren't readily visible in package metadata, perhaps consider creating a Trove Classifier to authoritatively and cleanly indicate the presence of a pytest plugin?


Reply to this email directly or view it on GitHub:
#16

about me: http://holgerkrekel.net/about-me/
contracting: http://merlinux.eu

from plugincompat.

jaraco avatar jaraco commented on May 30, 2024

I should think that locating/downloading the source tarball would be a substantial amount of work than querying the metadata from PyPI. Perhaps PyPI should include the entry points in the advertised metadata. Until it does, I'd recommend using the metadata that is advertised.

from plugincompat.

nicoddemus avatar nicoddemus commented on May 30, 2024

@jaraco is correct, there's direct support for querying PyPI for classifiers, while trying to parse entrypoints it would have to download the source for all packages.

What you guys think, should I move this forward? Seems like a good idea to me. 😄

from plugincompat.

flub avatar flub commented on May 30, 2024

Seems like a good idea to me, I think it'd be great if you went ahead and applied for it. I wouldn't expect the pypi maintainers to have serious objections.

from plugincompat.

hpk42 avatar hpk42 commented on May 30, 2024

Sure, makes sense to have trove classifier and then advertise it and have it used for all pytest-dev plugins.

from plugincompat.

tarpas avatar tarpas commented on May 30, 2024

I definitely like it.

from plugincompat.

nicoddemus avatar nicoddemus commented on May 30, 2024

I will move this forward then, thanks for the feedback!

from plugincompat.

nicoddemus avatar nicoddemus commented on May 30, 2024

Created a request for this on the pypa repository, if anyone wants to watch/vote for. 😉

from plugincompat.

obestwalter avatar obestwalter commented on May 30, 2024

oops, thought it was doing this already ... thanks @asottile :)

from plugincompat.

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.