-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ffe73c
commit b9fddf5
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,10 @@ jobs: | |
- name: Install dependencies | ||
run: python3 -m pip install --upgrade pip copier poetry poethepoet | ||
- name: Create default options | ||
run: echo '{"add_docs":true,"author":"Bryan Hu","email":"[email protected]","is_app":true,"module_name":"cool_example","project_description":"","project_name":"Cool Example","pypi_name":"cool-example","username":"ThatXliner"}' > env.yml | ||
run: echo '{"add_docs":true,"author":"Bryan Hu","email":"[email protected]","is_app":true,"module_name":"cool_example","project_description":"","project_name":"Cool Example","pypi_name":"cool-example","username":"ThatXliner"}' > .copier-answers.yml | ||
|
||
- name: Build example template | ||
run: copier copy gh:ThatXliner/pyt2 . -a env.yml --defaults | ||
run: copier copy gh:ThatXliner/pyt2 . -a .copier-answers.yml --defaults | ||
- name: Build example | ||
run: | | ||
cd cool-example | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,18 +4,18 @@ all: | |
clean: | ||
rm -rf cool-example env.yml | ||
setup-env: | ||
echo '{"add_docs":true,"author":"Bryan Hu","email":"[email protected]","is_app":true,"module_name":"cool_example","project_description":"","project_name":"Cool Example","pypi_name":"cool-example","username":"ThatXliner"}' > env.yml | ||
echo '{"add_docs":true,"author":"Bryan Hu","email":"[email protected]","is_app":true,"module_name":"cool_example","project_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 | ||
docs: clean | ||
$(MAKE) setup-env | ||
copier copy gh:ThatXliner/pyt2 . -a env.yml --defaults -d add_docs=true | ||
copier copy gh:ThatXliner/pyt2 . -a .copier-answers.yml --defaults -d add_docs=true | ||
$(MAKE) run | ||
cp cool-example/poetry.lock 'template/{{ pypi_name }}/{% if add_docs %}poetry.lock{% endif %}' | ||
$(MAKE) clean | ||
nodocs: clean | ||
$(MAKE) setup-env | ||
copier copy gh:ThatXliner/pyt2 . -a env.yml --defaults -d add_docs=false | ||
copier copy gh:ThatXliner/pyt2 . -a .copier-answers.yml --defaults -d add_docs=false | ||
$(MAKE) run | ||
cp cool-example/poetry.lock 'template/{{ pypi_name }}/{% if not add_docs %}poetry.lock{% endif %}' | ||
$(MAKE) clean |