Skip to content

python pypi library mass version bump.

Lionel Flandrin buildroot 1 version New

Get series with b4
b4 am 20170220095246.ktazrkwdebnswnvv@ed

Versions newest first

  1. v1 Latest1 of 58 patches 0 repliesNew

1 of 58 patches is in this archive. The cover letter announces 58.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
55/58python-werkzeug: bump to version 0.11.15+0 -00 replies

Reviews trailers per patch

The patch has no Reviewed-by or Acked-by.

PatchLionel Flandrin
55/58T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Buildroot] [PATCH 00/58] python pypi library mass version bump.
Quoted 9 lines · Lionel Flandrin
Quoted 8 lines · Thomas Petazzoni

Hello,

Quoted 3 lines · Lionel Flandrin

Could we automate that somehow? Would simply importing the package be sufficient for a basic runtime test? Alternatively could we run the package-provided tests (if they exist)?

Quoted 7 lines
Quoted 7 lines

The idea for this automation is what I've posted a few weeks ago:

http://lists.busybox.net/pipermail/buildroot/2017-February/183326.html

It's a runtime testing infrastructure. For now, it only has a very small test for the Python interpreter itself, but we could very well have something that also tests Python packages.

Erf, I completely missed that part of the email for some reason. I'll give those patches a test. Ideally we'd want to run the package-provided tests though, I'm not sure what would be the best way to do that.

Quoted 73 lines
Quoted 13 lines
Quoted 6 lines

If you're writing any non-trivial python application with buildroot you're almost certain to hit missing and/or outdated packages. It's been my experience in the past few weeks, almost all the python packages I've wanted to use were either missing or outdated, some of them quite severely.

Quoted 6 lines

Furthermore as "embedded" platforms become less and less constrained more and more people will want to move to higher level languages like python.

In this situation how can buildroot integrate *and* maintain potentially thousands of python packages "by hand"?

Quoted 8 lines

Let me return you another question: what do you propose to do?

As you say, Python is going to be more and more widely used in embedded systems, and the Python culture is many small libraries/modules each providing a very specific set of functionality, hence a large number of libraries/modules. There's not much Buildroot can do about it. Should we not support Python at all? That doesn't seem like a reasonable option.

Oh absolutely not, I very much want BR to support python as I use it myself.

Quoted 5 lines

So, yes, there are lots of packages in Buildroot for Python modules. But while their number is large, their complexity is very very small compared to other packages. Their .mk file typically has zero logic beyond just calling the python-package infrastructure. We have a very convenient scanpypi script to generate/update them.

I actually didn't know about this script, I feel silly about doing it all by hand now.

Quoted 8 lines

So we already have
pretty good tools to handle this large number of packages, and those tools can be improved with:

1. A tool that automatically detects when new upstream versions are available.

2. The runtime test infrastructure.

Yeah that's what I had in mind, hence my question about attempting to import the module and/or run provided unit tests. Checking for new package versions shouldn't be difficult. Running tests more so. Are there any runtime tests in buildroot currently?

At the moment even if you do things manually it's pretty error prone, in particular you have to remember to test against both python 2 and 3 (I made this mistake not long ago with the gunicorn package).

Quoted 1 line

Of course, your help is more than welcome! :-)

And your work always appreciated,

Quoted 7 lines

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
Signature · 8 lines
Lionel Flandrin



_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 8 lines
Lionel Flandrin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170220/35223ab3/attachment.asc>