Skip to content

Commit

Permalink
constrain extra requirements files to main requirements.txt (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuadavidthomas authored Aug 5, 2024
1 parent 4d0e8bd commit 8d4170b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

### Changed

- Add `--constraint requirements.txt` to the compiling of the two extra requirements files, to constrain the dependencies to the versions specified in the primary requirements file.

## [2024.43]

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/django_twc_project/.just/documentation.just
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ install *ARGS:
# Generate documentation requirements
[no-cd]
lock *ARGS:
$python -m uv pip compile pyproject.toml --output-file docs/requirements.txt --generate-hashes --extra docs {{ ARGS }}
$python -m uv pip compile pyproject.toml --output-file docs/requirements.txt --generate-hashes --extra docs --constraint requirements.txt {{ ARGS }}

# Serve documentation locally
[no-cd]
Expand Down
2 changes: 1 addition & 1 deletion src/django_twc_project/.just/python.just.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ install *ARGS:
[no-cd]
lock *ARGS:
$python -m uv pip compile pyproject.toml --output-file requirements.txt --generate-hashes {% raw %}{{ ARGS }}{% endraw %}
$python -m uv pip compile pyproject.toml --output-file requirements.dev.txt --generate-hashes --extra dev {% raw %}{{ ARGS }}{% endraw %}
$python -m uv pip compile pyproject.toml --output-file requirements.dev.txt --generate-hashes --extra dev --constraint requirements.txt {% raw %}{{ ARGS }}{% endraw %}

# Run tests using pytest within the 'app' container, with optional arguments
[no-cd]
Expand Down

0 comments on commit 8d4170b

Please sign in to comment.