Repository: ambitioninc/django-restraint (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 54d7560..acba93c 100644
--- a/docs/release_notes.rst
+++ b/docs/release_notes.rst
@@ -1,6 +1,11 @@
 Release Notes
 =============
 
+v2.3.1
+------
+* Read the Docs config file v2
+* Github actions for testing psycopg3
+
 v2.3.0
 -------
 * Django 3.2 & 4.0 support
diff --git a/restraint/version.py b/restraint/version.py
index 8219039..1c4ddd3 100644
--- a/restraint/version.py
+++ b/restraint/version.py
@@ -1,1 +1,1 @@
-__version__ = '2.3.0'
+__version__ = '2.3.1'


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 23afe9b..d6ee8ec 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 7815922..36f4aa3 100644
--- a/requirements/requirements-testing.txt
+++ b/requirements/requirements-testing.txt
@@ -3,4 +3,3 @@ coveralls
 django-nose
 django-dynamic-fixture
 flake8
-psycopg2