docker, gitlab-ci: use pip --break-system-packages until we figure out pip packaging
This commit is contained in:
parent
8376725652
commit
16f351a41c
2 changed files with 6 additions and 5 deletions
|
@ -7,7 +7,7 @@ format:
|
||||||
stage: check
|
stage: check
|
||||||
image: python
|
image: python
|
||||||
before_script:
|
before_script:
|
||||||
- pip install yapf autoflake
|
- pip install yapf autoflake --break-system-packages
|
||||||
script:
|
script:
|
||||||
- ./format.sh --check
|
- ./format.sh --check
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ typecheck:
|
||||||
stage: check
|
stage: check
|
||||||
image: python
|
image: python
|
||||||
before_script:
|
before_script:
|
||||||
- pip install mypy
|
- pip install mypy --break-system-packages
|
||||||
script:
|
script:
|
||||||
- ./typecheck.sh --non-interactive --junit-xml mypy-report.xml
|
- ./typecheck.sh --non-interactive --junit-xml mypy-report.xml
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -27,7 +27,7 @@ pytest:
|
||||||
image: archlinux
|
image: archlinux
|
||||||
before_script:
|
before_script:
|
||||||
- pacman -Sy --noconfirm --needed archlinux-keyring && pacman -Su --noconfirm python python-pip sudo git base-devel arch-install-scripts rsync
|
- pacman -Sy --noconfirm --needed archlinux-keyring && pacman -Su --noconfirm python python-pip sudo git base-devel arch-install-scripts rsync
|
||||||
- pip install -r test_requirements.txt -r requirements.txt
|
- pip install -r test_requirements.txt -r requirements.txt --break-system-packages
|
||||||
- 'echo "kupfer ALL = (ALL) NOPASSWD: ALL" > /etc/sudoers.d/kupfer_all'
|
- 'echo "kupfer ALL = (ALL) NOPASSWD: ALL" > /etc/sudoers.d/kupfer_all'
|
||||||
- useradd -m kupfer
|
- useradd -m kupfer
|
||||||
- chmod 777 .
|
- chmod 777 .
|
||||||
|
@ -77,7 +77,7 @@ push_docker:
|
||||||
DOCS_MAKE_TARGET: "html"
|
DOCS_MAKE_TARGET: "html"
|
||||||
DOCS_MAKE_THREADS: 6
|
DOCS_MAKE_THREADS: 6
|
||||||
before_script: &docs_before_script
|
before_script: &docs_before_script
|
||||||
- pip install -r requirements.txt -r docs/requirements.txt
|
- pip install -r requirements.txt -r docs/requirements.txt --break-system-packages
|
||||||
script: &docs_script
|
script: &docs_script
|
||||||
- make -C docs -j$DOCS_MAKE_THREADS SPHINXARGS="$DOCS_SPHINXARGS" $DOCS_MAKE_TARGET
|
- make -C docs -j$DOCS_MAKE_THREADS SPHINXARGS="$DOCS_SPHINXARGS" $DOCS_MAKE_TARGET
|
||||||
- mv "docs/$DOCS_MAKE_TARGET" public
|
- mv "docs/$DOCS_MAKE_TARGET" public
|
||||||
|
|
|
@ -21,7 +21,8 @@ ENV PATH=/app/bin:/app/local/bin:$PATH
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install -r requirements.txt
|
# TODO: pip packaging so we don't need --break-system-packages
|
||||||
|
RUN pip install -r requirements.txt --break-system-packages
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue