pure-data / deken

Externals wrangler for Pure Data
Other
145 stars 17 forks source link

search github for packages #41

Open umlaeute opened 9 years ago

umlaeute commented 9 years ago

make this configurable, so multiple projects can be used as package providers

umlaeute commented 9 years ago

the biggest problem I expect is: how to enable multiple projects?

chr15m commented 9 years ago

I was thinking a bit about this and had a look at the Github API. It's possible to search issues, but not releases. I think we can search all of Github as follows:

It's a hack and maybe too onerous, I am not sure.

umlaeute commented 9 years ago

accessing https://api.github.com/repos/${USER}/${PROJECT}/releases gives me a nice json with all the releases and the attached files. i thought about using that, and doing a dumb pattern matching.

it's not exactly search, but we have to pattern match anyhow, to get the architecture. (I was really assuming that the files must follow the same naming-scheme as on puredata.info).

umlaeute commented 9 years ago

but using your idea, how about this:

thus each repo-owner only needs to create a single issue, marking their repository as "to-be-included"; and from then everything works as if it were puredata.info...

chr15m commented 9 years ago

Great!

umlaeute commented 9 years ago

for performance (crawling through multiple webpages) and implementation reasons (parsing json in tcl), I wonder whether the collecting should actually be done on some server (e.g. a cron-job on puredata.info).

chr15m commented 9 years ago

I feel like that gives us a single point of failure when having multiple backends seems like a way to avoid points of failure. If we require the user to create an issue for each release with the name of the package, not just one, then the performance hit would not be large as we can also add a search string. So I don't know.

pierreguillot commented 8 years ago

Hi, I manage to deploy my PD libraries on Github with Travis CI and Appveyor. Here is a dummy repository for testing. It would be great if the Github binaries could also be available via Deken, do you have any news about this? One problem would be their naming because Github doesn't support parentheses but this could be solved by using another character. Anyway thanks for your work !

umlaeute commented 7 years ago

Rather than putting that logic into the plugin, i think a better place to implement this would be the webinterface (https://deken.puredata.info/). This way, older plugins would automatically benefit from whatever additional source (also, it is much easier to write code in Python than in in Tcl).

Apart from that, no progress has been made on this topic.

umlaeute commented 2 years ago

sidenote: i guess most Pd installations out there do not have https enabled, so these wouldn't be able to download files from github (and i don't really feel like setting up a proxy, that could be abused for all kinds of things)