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

Bump versions of setuptools and pip #1499

Merged
merged 5 commits into from
Sep 25, 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
4 changes: 2 additions & 2 deletions client/qiskit_serverless/core/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class BaseClient(JsonSerializable):
>>> )
"""

def __init__(
def __init__( # pylint: disable=too-many-positional-arguments
self,
name: str,
host: Optional[str] = None,
Expand Down Expand Up @@ -386,7 +386,7 @@ class ServerlessClient(BaseClient):
>>> )
"""

def __init__(
def __init__( # pylint: disable=too-many-positional-arguments
self,
name: Optional[str] = None,
host: Optional[str] = None,
Expand Down
5 changes: 3 additions & 2 deletions client/qiskit_serverless/utils/runtime_service_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class ServerlessRuntimeService(QiskitRuntimeService):
QiskitRuntimeService (QiskitRuntimeService): Qiskit runtime service object.
"""

def run(
def run( # pylint: disable=too-many-positional-arguments
self,
program_id: str,
inputs: Dict,
Expand All @@ -105,7 +105,8 @@ def run(
session_id: Optional[str] = None,
start_session: Optional[bool] = False,
) -> Union[RuntimeJob, RuntimeJobV2]:
runtime_job = super().run(
"""Run a serverless Runtime service job."""
runtime_job = super()._run(
program_id,
inputs,
options,
Expand Down
7 changes: 7 additions & 0 deletions gateway/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ COPY gateway .
RUN chown -R 1000:100 /usr/src/app &&\
mkdir /usr/src/app/media && chown 1000:100 /usr/src/app/media

# Need versions of pip/setuptools more recent than provided by UBI image
RUN python3.11 -m ensurepip --upgrade

# hadolint ignore=DL3013
RUN pip install --upgrade --no-cache-dir pip>=24.2 &&\
pip install --upgrade --no-cache-dir setuptools>=72.1.0

USER 1000:100
RUN sed -i 's/\r$//g' /usr/src/app/entrypoint.sh &&\
chmod +x /usr/src/app/entrypoint.sh
Expand Down