stencila / dockta

🐳 A Docker image builder for researchers
https://stencila.github.io/dockta/
Apache License 2.0
121 stars 12 forks source link

PythonParser: should parse Pipfiles #4

Open nokome opened 5 years ago

nokome commented 5 years ago

The PythonParser should be able to parse Pipfiles https://github.com/pypa/pipfile

nokome commented 5 years ago

... or Pipfile.lock if it exists. There's a JS TOML parser (the Pipfile format) and Pipfile.lock is just JSON so, this shouldn't be too difficult.

giorgiosironi commented 5 years ago

Just to clarify, what is the purpose of parsing the file? It could be treated as a black box for the purposes of just installing the dependencies, as it can be passed directly to pipenv.

nokome commented 5 years ago

@giorgiosironi : yes, that's a good question. The only reason that we do it is so we can generate a meta-data tree (environ.jsonld) containing information on the project's dependencies. From that you could generate a software citation list for your project or publish a more structured, semantic, and language agnostic representation of your project and it's dependencies.

remram44 commented 4 years ago

Also consider supporting pyproject.toml (or poetry.lock), see PEP 518 and Poetry

nokome commented 4 years ago

Thanks @remram44 👋. Yep agreed, that would be good to add.