Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
Merge pull request #289 from kjaymiller/kjaymiller-renames-dev.txt
Browse files Browse the repository at this point in the history
Kjaymiller renames dev.txt
  • Loading branch information
kjaymiller authored Nov 30, 2023
2 parents 0ac0a99 + 9580fb9 commit 36ef5ad
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,17 @@
"ghcr.io/azure/azure-dev/azd:latest": {}
},
{% if cookiecutter.project_backend == "django" %}
"postCreateCommand": "python -m pip install -r requirements-dev.in && python src/manage.py migrate && python src/manage.py loaddata src/seed_data.json"
"postCreateCommand": "python -m pip install -r requirements-dev.txt && python src/manage.py migrate && python src/manage.py loaddata src/seed_data.json"
{% endif %}
{% if cookiecutter.project_backend == "flask" %}
{% if 'postgres' in cookiecutter.db_resource %}
"postCreateCommand": "pip install -r requirements-dev.in && pip install -e src && python3 -m flask --app src/flaskapp db upgrade --directory src/flaskapp/migrations && python3 -m flask --app src/flaskapp seed --filename src/seed_data.json"
"postCreateCommand": "pip install -r requirements-dev.txt && pip install -e src && python3 -m flask --app src/flaskapp db upgrade --directory src/flaskapp/migrations && python3 -m flask --app src/flaskapp seed --filename src/seed_data.json"
{% else %}
"postCreateCommand": "pip install -r requirements-dev.in && pip install -e src && python3 -m flask --app src/flaskapp seed --filename src/seed_data.json --drop"
"postCreateCommand": "pip install -r requirements-dev.txt && pip install -e src && python3 -m flask --app src/flaskapp seed --filename src/seed_data.json --drop"
{% endif %}
{% endif %}
{% if cookiecutter.project_backend == "fastapi" %}
"postCreateCommand": "pip install -r requirements-dev.in && pip install -e src && python3 src/fastapi_app/seed_data.py"
"postCreateCommand": "pip install -r requirements-dev.txt && pip install -e src && python3 src/fastapi_app/seed_data.py"
{% endif %}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,6 @@ jobs:
URI: ${{needs.build.outputs.uri}}
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements-dev.in
python3 -m pip install -r requirements-dev.txt
python3 -m playwright install --with-deps
python3 -m pytest --exitfirst src/tests/smoke/smoketests.py --live-server-url $URI
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
python-version: "3.10"

- name: Install Cruft
run: pip3 install -r requirements-dev.in
run: pip3 install -r requirements-dev.txt

- name: Check if update is available
continue-on-error: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.in
pip install -r requirements-dev.txt
- name: Lint with ruff
run: |
ruff check .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements-dev.in
python3 -m pip install -r requirements-dev.txt
playwright install --with-deps
{% if cookiecutter.project_backend in ("flask", "fastapi") %}
python3 -m pip install -e src
Expand Down
2 changes: 1 addition & 1 deletion {{cookiecutter.__src_folder_name}}/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ python3 src/manage.py createsuperuser
2. Install the development requirements:
```sh
python3 -m pip install -r requirements-dev.in
python3 -m pip install -r requirements-dev.txt
python3 -m playwright install --with-deps
```
Expand Down

0 comments on commit 36ef5ad

Please sign in to comment.