Implement clean up strategies#128
Conversation
|
I'm OK with the |
|
why are we renaming |
turbomam
left a comment
There was a problem hiding this comment.
- I'm OK with the
examples-for-discussion→examplesdirectory name change, but I don't remember any discussions bout it. Didn't somebody from outside of the tools group create that directory or contribute to it? Is everyone involved OK with the name change? - why are we renaming
model/→linkml_model? Is this something that we're going to start doing for most linkml projects that BBOPers contribute to?
| # Generate LinkML schema from Google Sheet data model using sheet2linkml. | ||
| generate-model: install install-dev | ||
| CDM_GOOGLE_SHEET_ID=$(CDM_GOOGLE_SHEET_ID) $(RUN) python vendor/sheet2linkml/sheet2linkml.py --output model/schema/crdch_model.yaml | ||
| CDM_GOOGLE_SHEET_ID=$(CDM_GOOGLE_SHEET_ID) $(RUN) sheet2linkml --output linkml_model/schema/crdch_model.yaml --logging-config ./logging.ini |
There was a problem hiding this comment.
I haven't run this within this repo, but I have run it directly in cancerDHC/sheet2linkml, so I trust it
There was a problem hiding this comment.
I think the output file should be --output model/schema/crdch_model.yaml, unless we're moving the directory we store crdch_model.yaml in?
turbomam
left a comment
There was a problem hiding this comment.
BTW I'm glad you're taking the initiative to cleanup, @sujaypatil96
Hm, I think I did bring it up during one of our meetings, but there wasn't a particularly long discussion about it. That makes sense, I CC the people involved and check if they're okay with the name change. Edit: There's a discussion thread for the above here.
I though it'd be a good idea to rename it to |
|
Might overlap with #125 |
gaurav
left a comment
There was a problem hiding this comment.
I would stick with model/ instead of linkml_model/ as the directory for the model -- partially because I think of linkml-model as being the only true "linkml model", but mostly because I think we should follow linkml-model-template in referring to this as the "model" directory. I think the best name for this directory might be "src", but if so, that change should be made in linkml-model-template before it propagates down to us, so that all LinkML models can share a similar directory structure, making it easy for LinkML users to jump between them.
| # Generate LinkML schema from Google Sheet data model using sheet2linkml. | ||
| generate-model: install install-dev | ||
| CDM_GOOGLE_SHEET_ID=$(CDM_GOOGLE_SHEET_ID) $(RUN) python vendor/sheet2linkml/sheet2linkml.py --output model/schema/crdch_model.yaml | ||
| CDM_GOOGLE_SHEET_ID=$(CDM_GOOGLE_SHEET_ID) $(RUN) sheet2linkml --output linkml_model/schema/crdch_model.yaml --logging-config ./logging.ini |
There was a problem hiding this comment.
I think the output file should be --output model/schema/crdch_model.yaml, unless we're moving the directory we store crdch_model.yaml in?
There was a problem hiding this comment.
I don't have 3.7, so tox skipped that. 3.8 and 3.9 passed.
Maybe somebody can teach me how to install an old version of Python in a virtual environment for more thorough tox testing. I haven't been in the habit of installing old Python versions into my global environment.
Also, why does the 3.8 test bundle work on my computer but not within the GH action?
This PR seeks to implement some of the repo clean up strategies discussed in issue #105. The major change in this PR is the integration of the
sheet2linkmlpackage as a dependency in the project, and the consequent removal of thevendordirectory which previously housedsheet2linkml.