Giter VIP home page Giter VIP logo

sopel-pypi's Introduction

sopel-pypi

A Sopel plugin to show information about linked PyPI packages.

sopel-pypi's People

Contributors

dgw avatar

Watchers

 avatar  avatar  avatar

sopel-pypi's Issues

Potential output improvements

For newer packages using pyproject.toml and other more-modern systems for embedding metadata, sometimes details like the "author" wind up empty or weirdly formatted.

Sopel 8.0.0, for example, is on track to have an "Author" name field that effectively contains ', '.join(author_list). In other cases, such as when both a name and email are specified for a single author, the "Author" name field is empty and both the name & email end up in the "Author-Email" field. (The latter case has this plugin show "(unknown name)", because the name-only field is empty.)

pypi/warehouse#9400 and pypi/warehouse#14813 describe the odd behaviors we (the loose collective of Sopel core & plugin maintainers) have noticed, and it doesn't seem like there is yet any real motivation to mitigate them on the PyPI side. In lieu, we might need to make sopel-pypi itself "smarter" about extracting useful metadata and/or displaying it in a useful way on IRC.

Comma-separated lists of authors could benefit from at least converting the final , into &, or perhaps from capping the author list with et al. if there are a lot of entries (to leave more room for the package description).

Empty "Author" fields could pull from the "Author-Email" and extract only the names… which could be complicated if some entries consist only of email addresses, but those entries could use a fallback value like the email username.

Packaging modernization needed

I can't get to all of the plugins at once, and we think this is a lesser-used one. But I intend to get to them all Eventually™ and creating an issue that I can self-assign helps with that.

This plugin also doesn't cap the version of sopel it requires to <8, so it won't refuse to work on the new Sopel 8 release or cause pip to silently downgrade an existing bot—which pushes it down the priority list, below other plugins that do do that.

(The project doesn't collect any analytics, so we have only anecdotal evidence and guesses to figure out which plugins are frequently used. Guessing is probably good enough. Probably.)

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.