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

Kjaymiller renames dev.txt #289

Merged
merged 4 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading