Skip to content

Commit 1e7e8d4

Browse files
fixes for ununtu 24.04 and debian 12
1 parent 3704614 commit 1e7e8d4

File tree

4 files changed

+31
-8
lines changed

4 files changed

+31
-8
lines changed

.github/workflows/packing.yml

+25-4
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ jobs:
408408
if: (github.event_name == 'push') ||
409409
(github.event_name == 'pull_request' &&
410410
github.event.pull_request.head.repo.full_name != github.repository)
411-
runs-on: ubuntu-22.04
411+
runs-on: ubuntu-24.04
412412

413413
strategy:
414414
fail-fast: false
@@ -424,6 +424,7 @@ jobs:
424424
run: |
425425
sudo apt update
426426
sudo apt install -y devscripts equivs
427+
sudo apt install python3-setuptools python3-stdeb dh-python
427428
428429
- name: Make changelog entry for non-release build
429430
if: startsWith(github.ref, 'refs/tags') != true
@@ -515,24 +516,44 @@ jobs:
515516
apt install -y python3-venv
516517
python3 -m venv .venv
517518
519+
- name: Install test requirements
520+
run: |
521+
pip3 install -r requirements-test.txt
522+
if: matrix.target.dist != 'bookworm' && matrix.target.dist != 'noble'
523+
518524
- name: Install test requirements
519525
run: |
520526
. .venv/bin/activate
521527
pip3 install -r requirements-test.txt
528+
if: matrix.target.dist == 'bookworm' || matrix.target.dist == 'noble'
522529

523530
- name: Install the crud module for testing purposes
524531
run: |
525-
. .venv/bin/activate
526532
curl -L https://tarantool.io/release/2/installer.sh | bash
527533
apt install -y tt
528-
pip3 install cmake==3.15.3
529534
tt rocks install crud
535+
if: matrix.target.dist != 'bookworm' && matrix.target.dist != 'noble'
536+
537+
- name: Install the crud module for testing purposes
538+
run: |
539+
. .venv/bin/activate
540+
curl -L https://tarantool.io/release/3/installer.sh | bash
541+
apt install -y tt
542+
tt rocks install crud
543+
if: matrix.target.dist == 'bookworm' || matrix.target.dist == 'noble'
544+
545+
- name: Run tests
546+
run: |
547+
make test-pure-install
548+
if: matrix.target.dist != 'bookworm' && matrix.target.dist != 'noble'
530549

531550
- name: Run tests
532551
run: |
533552
. .venv/bin/activate
534-
pip3 install pyyaml
553+
export PYTHONPATH=$PYTHONPATH:/usr/lib/python3.11:/usr/lib/python3.12:/usr/bin:/usr/lib/python3/dist-packages:/usr/lib/python3/dist-packages/tarantool
554+
export PATH=$PATH:/usr/lib/python3/dist-packages
535555
make test-pure-install
556+
if: matrix.target.dist == 'bookworm' || matrix.target.dist == 'noble'
536557

537558
publish_deb:
538559
if: startsWith(github.ref, 'refs/tags')

.github/workflows/testing.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ jobs:
150150
tarantool:
151151
- bundle: 'sdk-gc64-2.11.0-0-r563.linux.x86_64'
152152
path: 'release/linux/x86_64/2.11/'
153-
python: ['3.11']
153+
- bundle: 'sdk-gc64-3.3.1-0-r55.linux.x86_64'
154+
path: 'release/linux/x86_64/3.3/'
155+
python: ['3.9', '3.11']
154156

155157
steps:
156158
- name: Clone the connector

debian/control

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Section: python
44
Priority: optional
55
# See https://github.com/astraw/stdeb/issues/175 for dependencies
66
Build-Depends: python3, python3-dev, python3-pip, python3-setuptools,
7-
python3-distutils, python3-wheel, python3-stdeb, dh-python,
7+
python3-wheel, python3-stdeb, dh-python,
88
debhelper (>= 10)
99
Standards-Version: 3.9.1
1010
Homepage: https://github.com/tarantool/tarantool-python

requirements-test.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
git+https://github.com/baztian/dbapi-compliance.git@ea7cb1b4#egg=dbapi-compliance
2-
pyyaml == 6.0.2
2+
pyyaml >= 6.0.2
33
importlib-metadata >= 1.0 ; python_version < '3.8'
44
pylint == 3.3.0 ; python_version >= '3.9'
55
pylint == 3.2.7 ; python_version == '3.8'
@@ -9,4 +9,4 @@ flake8 == 5.0.4 ; python_version < '3.8'
99
codespell == 2.3.0 ; python_version >= '3.8'
1010
codespell == 2.2.5 ; python_version < '3.8'
1111
setuptools >= 75.3.2
12-
tarantool >= 1.2.0
12+
cmake == 3.15.3

0 commit comments

Comments
 (0)