Coder Social home page Coder Social logo

Comments (6)

devpi-bot avatar devpi-bot commented on May 24, 2024

Original comment by @hpk42

It should always do appropriate logging, however. And "generic" exception catching is a critical. Let's rather look at exactly goes wrong and report about the case.

from devpi.

devpi-bot avatar devpi-bot commented on May 24, 2024

Original comment by @AvdN

If you have a directory with old stuff downloaded from PYPI, then I expect upload to upload anything it can and skip the rest.
Why some packages are not handled by pkginfo is e.g.:

  • No PKG-INFO in archive [ rst2pdf-0.92, rst2pdf-0.16, docutils-0.9, dulwich 0.8.6, eyeD3, rdiff-backup, html5lib, uwsgi]
  • Not a known archive format: [ various .egg files: Extremes, pylint 0.18, WebOb, DecoratorTools]
    Maybe the No PKG Info should be handled differently and should the .egg files not be offered to pkginfo at all (I got the idea they all fail to be uploaded).
    Is there already a unitttest for uploading that downloads a set of files and tries to upload them?

from devpi.

devpi-bot avatar devpi-bot commented on May 24, 2024

Original comment by @hpk42

It seems we just need to use pkginfo.get_metadata which will also read egg files correctly (i used pkginfo.SDist which is too specific, there also is pkginfo.BDist etc. and the get_metadata is the generic entry point it seems) . As for the remaining packages which don't have a PKG-INFO we can fallback to parse the filename to obtain name/version info. This is enough for devpi's "submit" action.

Are you up for a little PR doing this?

from devpi.

devpi-bot avatar devpi-bot commented on May 24, 2024

Original comment by @AvdN

I will do that ( I Have the material to test ;-) )

from devpi.

devpi-bot avatar devpi-bot commented on May 24, 2024

Original comment by @hpk42

resolve issue3 - also print an error message in case we don't find a PKGINFO file.

→ <>

from devpi.

devpi-bot avatar devpi-bot commented on May 24, 2024

Original comment by @hpk42

automatically start server for install and other commands, fixes issue3

→ <>

from devpi.

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.