Skip to content

Commit 923f9cc

Browse files
committed
resolving weird pip issues, remove argparse as its built-in
1 parent b9b0d25 commit 923f9cc

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

.github/workflows/pr-preview.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,5 @@ jobs:
130130
tags: socketdev/cli:pr-${{ github.event.pull_request.number }}
131131
build-args: |
132132
CLI_VERSION=${{ env.VERSION }}
133-
PIP_INDEX_URL=https://test.pypi.org/simple
133+
PIP_INDEX_URL=https://test.pypi.org/simple
134+
PIP_EXTRA_INDEX_URL=https://pypi.org/simple

Dockerfile

+4-8
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,11 @@ FROM python:3-alpine
22
LABEL org.opencontainers.image.authors="socket.dev"
33
ARG CLI_VERSION
44
ARG PIP_INDEX_URL=https://pypi.org/simple
5+
ARG PIP_EXTRA_INDEX_URL=https://pypi.org/simple
6+
57
RUN apk update \
68
&& apk add --no-cache git nodejs npm yarn
79

8-
RUN pip install --index-url ${PIP_INDEX_URL} socketsecurity==$CLI_VERSION \
10+
RUN pip install --index-url ${PIP_INDEX_URL} --extra-index-url ${PIP_EXTRA_INDEX_URL} socketsecurity==$CLI_VERSION \
911
&& socketcli -v \
10-
&& socketcli -v | grep -q $CLI_VERSION
11-
12-
# !! Uncomment to test local build - requires running `python -m build` first (and correct version number)
13-
# COPY dist/socketsecurity-1.0.34-py3-none-any.whl /tmp/
14-
# RUN pip install /tmp/socketsecurity-1.0.34-py3-none-any.whl \
15-
# && socketcli -v \
16-
# && socketcli -v | grep -q $CLI_VERSION
12+
&& socketcli -v | grep -q $CLI_VERSION

pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ dependencies = [
1010
'requests',
1111
'mdutils',
1212
'prettytable',
13-
'argparse',
1413
'GitPython',
1514
'packaging',
1615
]

0 commit comments

Comments
 (0)