Skip to content

Commit a4c8f8e

Browse files
committed
tests: install pymssql dependencies on python 3.8
pymssql there are no wheels for 3.8, needs to be built install required header files fixes certtools#2539
1 parent 1a45d0b commit a4c8f8e

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/workflows/scripts/setup-full.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# SPDX-FileCopyrightText: 2020 Birger Schacht
2+
# SPDX-FileCopyrightText: 2020 Birger Schacht, 2024 Institute for Common Good Technology
33
# SPDX-License-Identifier: AGPL-3.0-or-later
44

55
set -x
@@ -14,6 +14,12 @@ echo -e '-XX:+DisableExplicitGC\n-Djdk.io.permissionsUseCanonicalPath=true\n-Dlo
1414
sudo chown -R elasticsearch:elasticsearch /etc/default/elasticsearch
1515
sudo systemctl start elasticsearch
1616

17+
sudo apt update
18+
if [ $python_version == '3.8' ]; then
19+
# for pymssql there are no wheels for 3.8 https://github.com/certtools/intelmq/issues/2539
20+
DEBIAN_FRONTEND="noninteractive" sudo -E apt install -y build-essential freetds-dev libssl-dev libkrb5-dev
21+
fi
22+
1723
# Install the dependencies of all the bots
1824
pip install wheel
1925
for file in intelmq/bots/*/*/REQUIREMENTS.txt; do

.github/workflows/unittests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
PGPORT: 5432
6060
PGUSER: intelmq
6161
PGPASSWORD: intelmq
62+
python_version: ${{ matrix.python-version }}
6263
run: bash .github/workflows/scripts/setup-full.sh
6364

6465
- name: Install test dependencies

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
### Packaging
4141

4242
### Tests
43+
- Install build dependencies for `pymssql` on Python 3.8 as there are no wheels available for this Python version (PR#2542 by Sebastian Wagner).
4344

4445
### Tools
4546

0 commit comments

Comments
 (0)