Skip to content

Commit

Permalink
Use pyproject.toml for prod requirements
Browse files Browse the repository at this point in the history
I accidentally swapped pyproject for the dev requirements instead of
prod 🤦
  • Loading branch information
ghickman committed Nov 3, 2023
1 parent c396bda commit fc2050f
Show file tree
Hide file tree
Showing 4 changed files with 507 additions and 247 deletions.
8 changes: 4 additions & 4 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ _compile src dst *args: virtualenv
$BIN/pip-compile --allow-unsafe --generate-hashes --output-file={{ dst }} {{ src }} {{ args }}


# update requirements.prod.txt if requirements.prod.in has changed
# update requirements.prod.txt if pyproject.toml has changed
requirements-prod *args:
"{{ just_executable() }}" _compile requirements.prod.in requirements.prod.txt {{ args }}
"{{ just_executable() }}" _compile pyproject.toml requirements.prod.txt {{ args }}


# update requirements.dev.txt if pyproject.toml has changed
# update requirements.dev.txt if requirements.dev.in has changed
requirements-dev *args: requirements-prod
"{{ just_executable() }}" _compile pyproject.toml requirements.dev.txt {{ args }}
"{{ just_executable() }}" _compile requirements.dev.in requirements.dev.txt {{ args }}


# ensure prod requirements installed and up to date
Expand Down
13 changes: 13 additions & 0 deletions requirements.dev.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
--constraint requirements.prod.txt

# Additional dev requirements
# To generate a requirements file that includes both prod and dev requirements, run:
# pip-compile --generate-hashes --output-file=requirements.dev.txt requirements.dev.in

black
coverage
pip-tools
pre-commit
pytest
pyyaml
ruff
Loading

0 comments on commit fc2050f

Please sign in to comment.