Skip to content

Commit

Permalink
remove uv
Browse files Browse the repository at this point in the history
  • Loading branch information
gtfierro committed Sep 18, 2024
1 parent 3a03f24 commit f5d9897
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ jobs:
with:
python-version: 3.11

- uses: yezz123/setup-uv@v4

- name: install dependencies
run: |
pip install -r requirements.txt
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ COMPILED_MODELS := $(patsubst models/%.ttl,models/compiled/%.ttl,$(MODEL_SOURCES
# 'tools/compile.py' ensures the compile script is present, but should be a prerequisite only if you want to track changes on it.
# 'ontologies/*.ttl' captures changes in any .ttl file in the ontologies directory.
models/compiled/%.ttl: models/%.ttl tools/compile.py
uv run python tools/compile.py -r -i -o $@ $<
python tools/compile.py -r -i -o $@ $<
#ontologies/223p.ttl

# The compile-models target will "make" all of the COMPILED_MODELS.
compile-models: $(COMPILED_MODELS)

install-kernel:
uv run python -m ipykernel install --user --name=python3
python -m ipykernel install --user --name=python3

# Rule to clean up the compiled models.
clean:
Expand Down
12 changes: 6 additions & 6 deletions build_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -x

# run the tools/make_model_formats.py script on the models directory
uv run python tools/make_model_formats.py models
python tools/make_model_formats.py models

# for each filename in the examples/ directory, look for a corresponding .ttl file in the
# models directory. If it exists, run the tools/make_count_table.py script as
Expand All @@ -24,15 +24,15 @@ for filename in examples/*.md; do
md_filename="examples/$(basename "${filename%.md}.md")"
echo " Writing to $md_filename"

uv run python tools/make_count_table.py "$ttl_filename" "$md_filename"
uv run python tools/make-notebook.py "$ttl_filename" "$md_filename"
uv run python tools/mark-out-of-date.py "$ttl_filename" "$md_filename"
python tools/make_count_table.py "$ttl_filename" "$md_filename"
python tools/make-notebook.py "$ttl_filename" "$md_filename"
python tools/mark-out-of-date.py "$ttl_filename" "$md_filename"
done

# build queries
uv run python tools/generate-queries.py
python tools/generate-queries.py

# for each filename in the models/ directory, run tools/compile.py -o models/compiled/<filename>.ttl
mkdir -p models/compiled
make -j 4 compile-models
uv run jb build .
jb build .

0 comments on commit f5d9897

Please sign in to comment.