Skip to content

Commit

Permalink
build(python): avoid using requirements.in (reanahub#448)
Browse files Browse the repository at this point in the history
Pass the correct extras to `pip-compile` instead of duplicating
requirements in `requirements.in`.
  • Loading branch information
mdonadoni committed Aug 9, 2024
1 parent f646fbe commit 48c58d9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
8 changes: 0 additions & 8 deletions requirements.in

This file was deleted.

6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is autogenerated by pip-compile with Python 3.12
# by the following command:
#
# pip-compile --annotation-style=line --output-file=requirements.txt requirements.in setup.py
# pip-compile --annotation-style=line --extra=ssh --output-file=requirements.txt setup.py
#
alembic==1.13.2 # via reana-db
amqp==5.2.0 # via kombu
Expand All @@ -28,7 +28,7 @@ fqdn==1.5.1 # via jsonschema
fs==2.4.16 # via reana-commons, reana-job-controller (setup.py)
google-auth==2.32.0 # via kubernetes
greenlet==3.0.3 # via sqlalchemy
gssapi==1.8.2 # via -r requirements.in, paramiko
gssapi==1.8.2 # via paramiko, reana-job-controller (setup.py)
idna==3.7 # via jsonschema, requests
importlib-resources==6.4.0 # via swagger-spec-validator
isoduration==20.11.0 # via jsonschema
Expand All @@ -48,7 +48,7 @@ monotonic==1.6 # via bravado
msgpack==1.0.8 # via bravado-core
msgpack-python==0.5.6 # via bravado
oauthlib==3.2.2 # via requests-oauthlib
paramiko[gssapi]==3.0.0 # via -r requirements.in
paramiko[gssapi]==3.0.0 # via reana-job-controller (setup.py)
psycopg2-binary==2.9.9 # via reana-db
pyasn1==0.6.0 # via paramiko, pyasn1-modules, rsa
pyasn1-modules==0.4.0 # via google-auth
Expand Down
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of REANA.
# Copyright (C) 2017, 2018, 2019, 2020, 2021, 2022, 2023 CERN.
# Copyright (C) 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024 CERN.
#
# REANA is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
Expand Down Expand Up @@ -39,7 +39,10 @@
"tests": [
"pytest-reana>=0.95.0a2,<0.96.0",
],
"ssh": ["paramiko[gssapi]>=3.0.0"],
"ssh": [
"paramiko[gssapi]>=3.0.0",
"gssapi==1.8.2", # matches version in Dockerfile
],
}

# Python tests need SSH dependencies for imports
Expand Down

0 comments on commit 48c58d9

Please sign in to comment.