We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8eb90a commit b3c8e58Copy full SHA for b3c8e58
.github/workflows/ci_psycopg2_gis.yml
@@ -0,0 +1,68 @@
1
+name: CI-psycopg2-gis
2
+'on':
3
+ push:
4
+ branches:
5
+ - master
6
+ pull_request:
7
8
9
+jobs:
10
+ build:
11
+ env:
12
+ POSTGRES_USER: postgres
13
+ PGPASSWORD: postgres
14
+ runs-on: '${{ matrix.os }}'
15
+ strategy:
16
+ matrix:
17
+ include:
18
+ - os: ubuntu-latest
19
+ python-version: '3.8'
20
+ django-version: '3.2.23'
21
22
+ python-version: '3.9'
23
24
25
+ python-version: '3.10'
26
27
28
29
+ django-version: '4.2.9'
30
31
32
33
34
35
36
37
+ python-version: '3.11'
38
39
40
+ python-version: '3.12'
41
42
+ services:
43
+ postgres:
44
+ image: postgis/postgis
45
46
47
+ POSTGRES_PASSWORD: postgres
48
+ options: >-
49
+ --health-cmd pg_isready
50
+ --health-interval 10s
51
+ --health-timeout 5s
52
+ --health-retries 5
53
+ ports:
54
+ - 5432:5432
55
+ steps:
56
+ - name: 'Set up Python ${{ matrix.python-version }}'
57
+ uses: actions/setup-python@v5
58
+ with:
59
+ python-version: '${{ matrix.python-version }}'
60
+ - uses: actions/checkout@v4
61
+ - run: sudo apt-get install gdal-bin libgdal-dev
62
+ - run: pip install django==${{ matrix.django-version}}
63
+ - run: pip install psycopg2
64
+ - run: pip install psycogreen
65
+ - run: pip install gevent
66
+ - run: pip install gdal==3.4.1
67
+ - run: pip install .
68
+ - run: python runtests_psycopg2_gis.py
.github/workflows/ci_psycopg3_gis.yml
@@ -0,0 +1,58 @@
+name: CI-psycopg3-gis
+ - run: pip install psycopg[binary]
+ - run: python runtests_psycopg3_gis.py
django_db_geventpool/__init__.py
@@ -1 +1 @@
-version = 'v4.0.5'
+version = 'v4.0.6'
runtests_psycopg3_gis.py
@@ -0,0 +1,37 @@
+#!/usr/bin/env python
+import sys
+import gevent.monkey
+
+gevent.monkey.patch_all()
+import django
+from django.conf import settings
+from django.test.runner import DiscoverRunner
+settings.configure(
+ DEBUG=True,
+ DATABASES={
+ "default": {
+ "ENGINE": "django_db_geventpool.backends.postgis",
+ "NAME": "test",
+ "USER": "postgres",
+ "PASSWORD": "postgres",
+ "ATOMIC_REQUESTS": False,
+ "CONN_MAX_AGE": 0,
+ "HOST": "localhost",
+ }
+ },
+ INSTALLED_APPS=(
+ "tests",
+ "django_db_geventpool",
+ ),
+ USE_TZ=True,
+)
+django.setup()
+test_runner = DiscoverRunner(verbosity=2)
+failures = test_runner.run_tests(["tests"])
+if failures:
+ sys.exit(failures)
tox.ini
@@ -8,9 +8,9 @@ python =
[tox]
envlist =
- py3{8,9,10,11,12}-dj{32,42}-pg{is,2}
- py3{8,9,10,11,12}-dj{42}-pg{3}
- py3{10,11,12}-dj{50}-pg{is,2,3}
+ py3{8,9,10,11,12}-dj{32,42}-pg{2-gis,2}
+ py3{8,9,10,11,12}-dj{42}-pg{3-gis,3}
+ py3{10,11,12}-dj{50}-pg{2-gis,2,3-gis,3}
[testenv]
deps =
@@ -19,11 +19,13 @@ deps =
dj32: django~=3.2
dj42: django~=4.2
dj50: django~=5.0
- pgis: psycopg2-binary
+ pg2-gis: psycopg2-binary
pg2: psycopg2-binary
+ pg3-gis: psycopg[binary,pool]
pg3: psycopg[binary,pool]
commands =
- pgis: python -Wall runtests_psycopg2_gis.py
+ pg2-gis: python -Wall runtests_psycopg2_gis.py
pg2: python -Wall runtests_psycopg2.py
+ pg3-gis:python -Wall runtests_psycopg3_gis.py
pg3: python -Wall runtests_psycopg3.py
0 commit comments