devpi - how to get “root/<package>/json” served
Hello, I'm not sure if this the right place to ask, but I need to get the following issue to be solved. *Goal:* Setup a devpi server and install packages on micropython devices with micropython upip. *Issue:* devpi-server does not serve http://<mypc>:3141/testuser/dev/<mypackage>/json, which is required by upip. What I want to return is something like this: curl -H "Accept: application/json" https://micropython.org/pi/micropython-pystone_lowmem/json {"info": {"version": "3.4.2.post4"}, "releases": {"3.4.2.post4": [{"url": "https://micropython.org/pi/pystone_lowmem/pystone_lowmem-3.4.2.post4.tar.gz"}]}} *Help:* I'm for now not sure if a whole devpi-plugin is required or if there is a more simple way to achieve this. If yes, how can I debug and develop efficiently a plugin? I tried to start from devpi-lockdown project, but a all I get is a struggling server. *Unsuccessful trials so far:* - Making upip to request "application/json" returns a huge JSON block which can probably not handled by a memory limited device, especially if there comes a lengthy "long_description". *side information* network and devpi-server is Ok, so the socket can be opened and I get initial data. The only thing that is missing: getting this simple json structure. Thanks for any help, Axel PS: I also posted my question on stackoverflow: https://stackoverflow.com/questions/63711923/devpi-how-to-get-root-package-j...
I have commented on stackoverflow and I think we should continue there to keep it in one place. I guess the proper answer should be self contained and not use a gist. Regards, Florian Schulze On 6 Sep 2020, at 9:17, Axel wrote:
Hello,
I'm not sure if this the right place to ask, but I need to get the following issue to be solved.
*Goal:* Setup a devpi server and install packages on micropython devices with micropython upip.
*Issue:* devpi-server does not serve http://<mypc>:3141/testuser/dev/<mypackage>/json, which is required by upip.
What I want to return is something like this: curl -H "Accept: application/json" https://micropython.org/pi/micropython-pystone_lowmem/json
{"info": {"version": "3.4.2.post4"}, "releases": {"3.4.2.post4": [{"url": "https://micropython.org/pi/pystone_lowmem/pystone_lowmem-3.4.2.post4.tar.gz"}]}}
*Help:* I'm for now not sure if a whole devpi-plugin is required or if there is a more simple way to achieve this. If yes, how can I debug and develop efficiently a plugin? I tried to start from devpi-lockdown project, but a all I get is a struggling server.
*Unsuccessful trials so far:*
- Making upip to request "application/json" returns a huge JSON block which can probably not handled by a memory limited device, especially if there comes a lengthy "long_description".
*side information*
network and devpi-server is Ok, so the socket can be opened and I get initial data. The only thing that is missing: getting this simple json structure.
Thanks for any help,
Axel
PS: I also posted my question on stackoverflow:
https://stackoverflow.com/questions/63711923/devpi-how-to-get-root-package-j... _______________________________________________ devpi-dev mailing list -- devpi-dev@python.org To unsubscribe send an email to devpi-dev-leave@python.org https://mail.python.org/mailman3/lists/devpi-dev.python.org/ Member address: mail@florian-schulze.net
participants (2)
-
Axel
-
Florian Schulze