biolink / biolinkml

DEPRECATED: replaced by linkml
https://github.com/linkml/linkml
Creative Commons Zero v1.0 Universal
23 stars 12 forks source link

create gen-* modules as separate pip installs #336

Closed wdduncan closed 3 years ago

wdduncan commented 3 years ago

Is it possible to create packages for the gen-* (e.g., gen-markdown) modules as separate packages that can be installed using pip?

My use case:
In the github action for creating the NMDC documentation (here), we have to install all of biolinkml in order to run gen-markdown. E.g.:

# install dependencies
- run: pip install --upgrade pip
- run: pip install mkdocs
- run: pip install biolinkml

# generate markdown files
- run: gen-markdown --dir docs schema/nmdc.yaml

I would nice to only have to install gen-markdown.

cc @cmungall @deepakunni3 @dwinston

wdduncan commented 3 years ago

Just to be clear:
It would be good to only have to load gen-markdown in the gh action rather than all of linkml. I.e., make the gh action less computationally expensive.

cmungall commented 3 years ago

we chatted about this and it's not a priority for now. It would be quite hard to refactor the codebase into different repos/packages and the gains in install time would not be huge.