Skip to content

Commit

Permalink
Better autoupdate
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatXliner committed Jan 5, 2025
1 parent f8bc2d4 commit e213f0b
Show file tree
Hide file tree
Showing 4 changed files with 1,999 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/autoupdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
python-version: 3.12
- name: Install dependencies
run: python3 -m pip install --upgrade pip copier poetry poetry-plugin-up
run: python3 -m pip install --upgrade pip copier poetry
- name: Update template
run: make all
- name: Check if we should commit
Expand Down
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ all:
$(MAKE) nodocs
clean:
rm -rf cool-example .copier-answers.yml
rm -rf 'template/{{ pypi_name }}/{% if add_docs %}poetry.lock{% endif %}' 'template/{{ pypi_name }}/{% if not add_docs %}poetry.lock{% endif %}'
setup-env:
echo '{"add_docs":true,"author":"Bryan Hu","email":"bryan.hu.2020@gmail.com","is_app":true,"module_name":"cool_example","project_description":"Example description.","project_name":"Cool Example","pypi_name":"cool-example","username":"ThatXliner"}' > .copier-answers.yml
run:
cd cool-example && poetry up && poetry install && poetry update && poetry lock
cd cool-example && poetry install
cd cool-example && poetry lock
cd cool-example && poetry install && poetry update --lock
docs: clean
$(MAKE) setup-env
copier copy gh:ThatXliner/pyt2 . -a .copier-answers.yml --defaults -d add_docs=true --vcs-ref HEAD
Expand Down
Loading

0 comments on commit e213f0b

Please sign in to comment.