Repository: ambitioninc/django-manager-utils (language: python)

Issue:
rtd v2 and github actions for psycopg3



Discussion / hints:

Fix patch:
diff --git a/.readthedocs.yaml b/.readthedocs.yaml
new file mode 100644
index 0000000..e4c8723
--- /dev/null
+++ b/.readthedocs.yaml
@@ -0,0 +1,14 @@
+version: 2
+
+build:
+  os: ubuntu-22.04
+  tools:
+    python: "3.8"
+
+sphinx:
+  configuration: docs/conf.py
+
+python:
+  install:
+    - requirements: requirements/docs.txt
+    - requirements: requirements/requirements.txt
diff --git a/docs/release_notes.rst b/docs/release_notes.rst
index cdefd2a..30198fc 100644
--- a/docs/release_notes.rst
+++ b/docs/release_notes.rst
@@ -1,6 +1,15 @@
 Release Notes
 =============
 
+v3.1.2
+------
+* Bump django-query-builder for psycopg3 support
+
+v3.1.1
+------
+* Read the Docs config file v2
+* Github actions for testing psycopg3
+
 v3.1.0
 ------
 * Drop django 2.2
diff --git a/manager_utils/version.py b/manager_utils/version.py
index 7f5601d..f71b21a 100644
--- a/manager_utils/version.py
+++ b/manager_utils/version.py
@@ -1,1 +1,1 @@
-__version__ = '3.1.0'
+__version__ = '3.1.2'
diff --git a/requirements/requirements.txt b/requirements/requirements.txt
index e4fd913..1c964bd 100644
--- a/requirements/requirements.txt
+++ b/requirements/requirements.txt
@@ -1,2 +1,3 @@
 Django>=3.2
-django-query-builder>=3.1.0
+django-query-builder>=3.2.0
+django-timezone-field<6
\ No newline at end of file


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 7b09081..d98e09a 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -22,6 +22,9 @@ jobs:
         - 'Django~=4.0.0'
         - 'Django~=4.1.0'
         - 'Django~=4.2.0'
+        psycopg:
+        - 'psycopg2==2.9.6'
+        - 'psycopg==3.1.10'
         experimental: [false]
         exclude:
         - python: '3.7'
@@ -30,6 +33,12 @@ jobs:
           django: 'Django~=4.1.0'
         - python: '3.7'
           django: 'Django~=4.2.0'
+        - psycopg: 'psycopg==3.1.10'
+          django: 'Django~=3.2.0'
+        - psycopg: 'psycopg==3.1.10'
+          django: 'Django~=4.0.0'
+        - psycopg: 'psycopg==3.1.10'
+          django: 'Django~=4.1.0'
     services:
       postgres:
         image: postgres:latest
@@ -56,6 +65,7 @@ jobs:
         pip install -r requirements/requirements.txt
         pip install -r requirements/requirements-testing.txt
         pip install "${{ matrix.django }}"
+        pip install "${{ matrix.psycopg }}"
         pip freeze
     - name: Run tests
       env:
diff --git a/requirements/requirements-testing.txt b/requirements/requirements-testing.txt
index 86b18e3..ba133b4 100644
--- a/requirements/requirements-testing.txt
+++ b/requirements/requirements-testing.txt
@@ -1,5 +1,4 @@
 coverage
-psycopg2
 django-nose>=1.3
 django-dynamic-fixture
 pytz