Skip to content

Commit

Permalink
requirements/setup/github: drop requirements/setup.{py,cfg}, switch t…
Browse files Browse the repository at this point in the history
…o pyproject.toml

Signed-off-by: Bastian Krause <[email protected]>
  • Loading branch information
Bastian-Krause committed Nov 3, 2022
1 parent 45e4a7d commit cb1039f
Show file tree
Hide file tree
Showing 25 changed files with 12 additions and 173 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Install system dependencies
run: |
sudo apt install -yq python3-pip
python3 -m pip install --upgrade pip setuptools wheel
python3 -m pip install setuptools_scm
- name: Login to DockerHub
uses: docker/login-action@v2
with:
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('*requirements.txt') }}
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install system dependencies
Expand All @@ -37,12 +37,10 @@ jobs:
ssh -o StrictHostKeyChecking=no localhost echo OK
- name: Install python dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install flake8 pytest
pip install -r ci-requirements.txt
python -m pip install --upgrade pip codecov coveralls
- name: Install labgrid
run: |
pip install -e .
pip install -e ".[dev]"
- name: Lint with pylint
run: |
pylint --list-msgs-enabled
Expand All @@ -66,7 +64,7 @@ jobs:
- name: Install system dependencies
run: |
sudo apt install -yq python3-pip
python3 -m pip install --upgrade pip setuptools wheel
python3 -m pip install setuptools_scm
- name: Build docker images
run: |
./dockerfiles/build.sh
Expand Down
3 changes: 0 additions & 3 deletions ci-requirements.txt

This file was deleted.

5 changes: 0 additions & 5 deletions crossbar-requirements.txt

This file was deleted.

4 changes: 0 additions & 4 deletions deb-requirements.txt

This file was deleted.

2 changes: 1 addition & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ override_dh_virtualenv:
--python /usr/bin/python3 \
--builtin-venv \
--preinstall 'setuptools>=38.0.0' \
--requirements deb-requirements.txt \
--extras deb \
--extra-pip-arg='--no-binary' \
--extra-pip-arg='cffi,numpy'
19 changes: 0 additions & 19 deletions dev-requirements.txt

This file was deleted.

3 changes: 0 additions & 3 deletions doc-requirements.txt

This file was deleted.

2 changes: 1 addition & 1 deletion doc/RELEASE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Check your commit mail and name:
1. Freeze Dependencies
======================

Freeze the dependencies into the `requirements.txt` file and update the separate
Freeze the dependencies into the `pyproject.toml` file and update the separate
feature requirements files.
This ensures that known good dependencies are available for every release.

Expand Down
1 change: 0 additions & 1 deletion docker-requirements.txt

This file was deleted.

11 changes: 4 additions & 7 deletions dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ COPY ./ /opt/labgrid/

RUN set -e ;\
apt update -q=2 ;\
apt install -q=2 --yes --no-install-recommends python3 python3-dev python3-pip python3-setuptools python3-wheel git build-essential libsnappy-dev ;\
apt install -q=2 --yes --no-install-recommends python3 python3-dev python3-pip python3-setuptools git build-essential libsnappy-dev ;\
pip3 install -U pip;\
apt clean ;\
rm -rf /var/lib/apt/lists/* ;\
Expand All @@ -23,8 +23,7 @@ ARG VERSION
RUN set -e ;\
cd /opt/labgrid ;\
pip3 install yq ;\
pip3 install --no-cache-dir -r requirements.txt ;\
SETUPTOOLS_SCM_PRETEND_VERSION="$VERSION" python3 setup.py install ;\
SETUPTOOLS_SCM_PRETEND_VERSION="$VERSION" pip3 install --no-cache-dir . ;\
apt update -q=2 ;\
apt install -q=2 --yes --no-install-recommends microcom openssh-client rsync jq qemu-system qemu-utils ;\
apt clean ;\
Expand All @@ -42,8 +41,7 @@ ENV CROSSBAR_DIR=/opt/crossbar

RUN set -e ;\
cd /opt/labgrid ;\
pip3 install --no-cache-dir -r crossbar-requirements.txt ;\
SETUPTOOLS_SCM_PRETEND_VERSION="$VERSION" python3 setup.py install
SETUPTOOLS_SCM_PRETEND_VERSION="$VERSION" pip3 install --no-cache-dir ".[crossbar]"

VOLUME /opt/crossbar

Expand Down Expand Up @@ -109,8 +107,7 @@ COPY dockerfiles/exporter/entrypoint.sh /entrypoint.sh

RUN set -e ;\
cd /opt/labgrid ;\
pip3 install --no-cache-dir -r requirements.txt ;\
SETUPTOOLS_SCM_PRETEND_VERSION="$VERSION" python3 setup.py install ;\
SETUPTOOLS_SCM_PRETEND_VERSION="$VERSION" pip3 install --no-cache-dir . ;\
apt update -q=2 ;\
apt install -q=2 --yes --no-install-recommends \
libyaml-0-2 \
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [ -z ${DOCKER} ]; then
fi
export DOCKER_BUILDKIT=1

VERSION="$(./setup.py --version | tail -1)"
VERSION="$(python -m setuptools_scm)"

for t in client exporter coordinator; do
${DOCKER} build --build-arg VERSION="$VERSION" \
Expand Down
1 change: 0 additions & 1 deletion graph-requirements.txt

This file was deleted.

1 change: 0 additions & 1 deletion kasa-requirements.txt

This file was deleted.

1 change: 0 additions & 1 deletion modbus-requirements.txt

This file was deleted.

1 change: 0 additions & 1 deletion modbusrtu-requirements.txt

This file was deleted.

1 change: 0 additions & 1 deletion mqtt-requirements.txt

This file was deleted.

1 change: 0 additions & 1 deletion onewire-requirements.txt

This file was deleted.

2 changes: 0 additions & 2 deletions pyvisa-requirements.txt

This file was deleted.

14 changes: 0 additions & 14 deletions requirements.txt

This file was deleted.

5 changes: 0 additions & 5 deletions setup.cfg

This file was deleted.

90 changes: 0 additions & 90 deletions setup.py

This file was deleted.

2 changes: 0 additions & 2 deletions snmp-requirements.txt

This file was deleted.

1 change: 0 additions & 1 deletion vxi11-requirements.txt

This file was deleted.

1 change: 0 additions & 1 deletion xena-requirements.txt

This file was deleted.

0 comments on commit cb1039f

Please sign in to comment.