Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support other languages #3

Open
jayvdb opened this issue Jul 7, 2019 · 5 comments
Open

Support other languages #3

jayvdb opened this issue Jul 7, 2019 · 5 comments

Comments

@jayvdb
Copy link

jayvdb commented Jul 7, 2019

It would be useful to have this type of functionality for other languages/package managers too.

pip is the most obvious candidate, given this is a Python library.

I think another which would be useful is Ruby bundler/ Gemfile.

Through https://github.com/coala/coala-quickstart/ I am familiar with https://gitlab.com/balasankarc/gemfileparser / https://github.com/balasankarc/gemfileparser for Gemfile parsing.

@DanielVenturini
Copy link
Owner

Hi @jayvdb. I'm sorry for the delay, Github didn't send me an email.
This is really a great idea. I never thought of that before, but it's very useful.

Do you think of something like that?:

lamp --language file

For example:

lamp --ruby path/to/Gemfile
lamp --js path/to/package.json

Thanks for the issue.

@jayvdb
Copy link
Author

jayvdb commented Jul 16, 2019

IMO the language can usually be detected by the filename, so shorthand cli syntax for the language isnt worth it. --language=js would suffice. Also many languages have multiple formats for their requirement files. e.g. requirements.txt, Pipfile, pyproject.toml, etc. Gemfile, foo.gemspec, etc , so the "language" might actually be better as "format".

I strongly recommend using @dephell , especially for Python because it handles all of the Python file types. But it also handles non-Python requirement types. c.f. dephell/dephell_specifier#3

So this library could have custom parsers for the file structures were necessary and then have a common class system for the important data. And also the maintainer(s) of dephell has been very helpful, and they dont mind the scope expanding beyond Python even if they do not intend to focus on non-Python needs at the moment.

I raised gemfileparser/gemfileparser#6 for Gemfile parsing related issues.

@DanielVenturini
Copy link
Owner

IMO the language can usually be detected by the filename [...] so the "language" might actually be better as "format".

Yes, it's true. I hadn't think about it, but it's really the better way to detect the language.

I strongly recommend using @dephell

I saw about this and it's the better way to check the ranges specifications to package.json and Gemfile.

Do you know how to get the release times from the Gem API?

@jayvdb
Copy link
Author

jayvdb commented Jul 17, 2019

I haven't investigated the Gem API much.

I do know how to obtain that information from the PyPI clients, at least using the google bigdataset. I did a survey of clients at hugovk/top-pypi-packages#4 (comment)

@DanielVenturini
Copy link
Owner

Ok, @jayvdb thanks for the information. I'll do some of the investigations and start work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants