Skip to content

Commit

Permalink
Update underlying template to v0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dalito committed Feb 8, 2025
1 parent ac0d450 commit f422b80
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: v0.1.2
_commit: v0.1.3
_src_path: gh:dalito/linkml-project-copier
copyright_year: '2023'
create_python_classes: 'Yes'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
pipx inject poetry poetry-dynamic-versioning
- name: Install dependencies
run: poetry install -E docs
run: poetry install docs

- name: Build documentation
run: |
Expand Down
22 changes: 19 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,29 @@ _git-commit:
_git-status:
git status

_clean_project:
#!{{shebang}}
import shutil, pathlib
# remove the generated project files
for d in pathlib.Path("{{dest}}").iterdir():
if d.is_dir():
print(f'removing "{d}"')
shutil.rmtree(d, ignore_errors=True)
# remove the generated python data model
for d in pathlib.Path("{{pymodel}}").iterdir():
if str(d) == "__init__.py":
continue
print(f'removing "{d}"')
if d.is_dir():
shutil.rmtree(d, ignore_errors=True)
else:
d.unlink()

# Clean all generated files
[group('project management')]
clean:
rm -rf {{dest}}
clean: _clean_project
rm -rf tmp
rm -rf {{docdir}}/*
rm -rf {{pymodel}}

# Private recipes
_ensure_pymodel_dir:
Expand Down

0 comments on commit f422b80

Please sign in to comment.