Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update python dependencies #1596

Merged
merged 1 commit into from
Dec 18, 2024
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
7 changes: 4 additions & 3 deletions bin/check-pinned-requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ def extract_pinned(requirements_file):
pinned_deps = {}
with open(requirements_file) as file:
for line in file:
line = line.strip().lower()
# Skip comments and empty lines
if line.strip() and not line.startswith("#"):
if line and not line.startswith("#"):
# Match lines with version constraints (pinned dependencies) using non-capturing groups for the operator
pinned_match = re.match(r"^(\S+)(?:==|>=)(\S+)", line.strip())
pinned_match = re.match(r"^(\S+)(?:==|>=)(\S+)", line)
if pinned_match:
pkg_name = pinned_match.group(1)
version = pinned_match.group(2)
Expand All @@ -36,7 +37,7 @@ def get_outdated_packages():
if line:
parts = line.split()
if len(parts) >= 3:
package_name = parts[0]
package_name = parts[0].lower()
latest_version = parts[2]
outdated[package_name] = latest_version
return raw, outdated
Expand Down
4 changes: 2 additions & 2 deletions requirements/dev.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pytest-django==4.9.0
pytest-mock==3.14.0
pytest==8.3.4
requests-mock==1.12.1
ruff==0.8.2
ruff==0.8.3
urlwait==1.0
uv==0.5.8
uv==0.5.10
watchfiles==1.0.3 # required for `granian --reload`
Loading
Loading