dockta icon indicating copy to clipboard operation
dockta copied to clipboard

PythonParser: should parse Pipfiles

Open nokome opened this issue 7 years ago • 5 comments

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

nokome avatar Oct 15 '18 20:10 nokome

... 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.

nokome avatar Oct 29 '18 02:10 nokome

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.

giorgiosironi avatar Oct 30 '18 09:10 giorgiosironi

@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.

nokome avatar Nov 01 '18 03:11 nokome

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

remram44 avatar May 20 '20 15:05 remram44

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

nokome avatar May 20 '20 19:05 nokome