Skip to content

Commit

Permalink
Update makes, shell scripts, etc.
Browse files Browse the repository at this point in the history
Also updated Pipfile and requirements.txt to remove a whole lot of unneeded dependencies
  • Loading branch information
hsolbrig committed Jul 14, 2021
1 parent b64ee4e commit bc87528
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 18 deletions.
11 changes: 4 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ SCHEMA_NAMES = $(patsubst $(SCHEMA_DIR)/%.yaml, %, $(SOURCE_FILES))
SCHEMA_NAME = meta
SCHEMA_SRC = $(SCHEMA_DIR)/$(SCHEMA_NAME).yaml
PKG_TGTS = graphql json jsonld jsonschema owl rdf shex
TGTS = docs model python $(PKG_TGTS)
TGTS = docs python $(PKG_TGTS)

# Run a linkml package
RUN =
Expand Down Expand Up @@ -61,7 +61,6 @@ clean:
# ---------------------------------------
squeaky-clean: clean $(patsubst %,squeaky-clean-%,$(PKG_TGTS))
find docs/* ! -name 'README.*' -exec rm -rf {} +
find $(PKG_DIR)/model/schema ! -name 'README.*' -type f -exec rm -f {} +
find $(PKG_DIR) -name "*.py" ! -name "__init__.py" ! -name "linkml_files.py" -exec rm -f {} +
rm -rf .venv

Expand Down Expand Up @@ -105,11 +104,9 @@ target/docs/index.md: $(SCHEMA_DIR)/$(SCHEMA_NAME).yaml tdir-docs install
# ---------------------------------------
# YAML source
# ---------------------------------------
gen-model: $(patsubst %, $(PKG_DIR)/model/schema/%.yaml, $(SCHEMA_NAMES))

$(PKG_DIR)/model/schema/%.yaml: model/schema/%.yaml
cp $< $@
.PHONY: gen-linkml_model
# YAML source is no longewr copied to the output directory. Instead, it is placed there via setup.cfg
gen-model:
.PHONY: gen-model

# ---------------------------------------
# python source
Expand Down
2 changes: 2 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ name = "pypi"
linkml-runtime = "~=1.0, >=1.0.10"

[dev-packages]
linkml = "~=1.0, >=1.0.1"
mkdocs = "*"

[pipenv]
5 changes: 3 additions & 2 deletions checkout_outputs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
# checkout (update) all of the outputs to revert to what is on github
. ./targets.sh
git checkout $TGTS

git checkout docs
ls linkml_model | grep -v model | xargs git checkout
6 changes: 0 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,4 @@
# `Pipfile.lock` and then regenerate `requirements*.txt`.
################################################################################

jsonasobj2~=1.0, >=1.0.3
linkml-runtime~=1.0, >=1.0.10
linkml~=1.0
mkdocs
pyldmod
rdflib~=5.0
requests
3 changes: 1 addition & 2 deletions show_test_changes.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
# Make all of the test output changes visible to git
. ./targets.sh
git ls-files -z $TGTS | tr '\n' ' ' | xargs git update-index --no-assume-unchanged
git ls-files -z docs linkml_model | tr '\n' ' ' | xargs git update-index --no-assume-unchanged

2 changes: 1 addition & 1 deletion targets.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
# Generate a variable that establishes all of the target directories
export TGTS="docs graphql json jsonld jsonschema owl linkml_model rdf shex"
export TGTS="docs graphql json jsonld jsonschema owl rdf shex"

0 comments on commit bc87528

Please sign in to comment.