From 6856ef83b4b13d795df7b4138fbbca8f268fb75a Mon Sep 17 00:00:00 2001 From: M1ha-Shvn Date: Thu, 4 Jan 2024 12:53:57 +0500 Subject: [PATCH 1/2] 1. Added django 5.0 CI 2. Removed psycopg2 from dependencies --- .github/workflows/python-tests.yml | 14 +++++++++++++- README.md | 4 +++- requirements.txt | 1 - 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index caefdb0..3b9cd53 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -13,7 +13,7 @@ jobs: matrix: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] postgres-version: ["9.6", "10", "11", "12", "13", "14", "15"] - django-version: ["3.1", "3.2", "4.0", "4.1", "4.2"] + django-version: ["3.1", "3.2", "4.0", "4.1", "4.2", "5.0"] exclude: # Django 4.0+ doesn't support PostgreSQL 9.6 - django-version: "4.0" @@ -22,16 +22,28 @@ jobs: postgres-version: "9.6" - django-version: "4.2" postgres-version: "9.6" + - django-version: "5.0" + postgres-version: "9.6" # Django 4.1+ doesn't support PostgreSQL 10 - django-version: "4.1" postgres-version: "10" - django-version: "4.2" postgres-version: "10" + - django-version: "5.0" + postgres-version: "10" # Django 4.2+ doesn't support PostgreSQL 11 - django-version: "4.2" postgres-version: "11" + - django-version: "5.0" + postgres-version: "11" + + # Django 5.0+ does not support python 3.8, 3.9 + - django-version: "5.0" + python-version: "3.8" + - django-version: "5.0" + python-version: "3.9" services: postgres: diff --git a/README.md b/README.md index f65c892..0e730bc 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,9 @@ Django extension to update multiple table records with similar (but not equal) c django.postgres.contrib.JSONField is supported since django 1.9 * pytz for python before 3.3 * typing for python before 3.5 -* psycopg2 +* psycopg2 or psycopg2-binary + This library is not added to requirements file as it is not used directly (thorugh django cursor only). + Any form of psycopg2 installation can be used. * PostgreSQL 9.4+ Previous versions may also work, but haven't been tested. JSONB operations are available for PostgreSQL 9.4+. diff --git a/requirements.txt b/requirements.txt index 73d965e..195d520 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,3 @@ django>=1.7 -psycopg2 pytz; python_version < '3.3' typing; python_version < '3.5' From fe30eec8762a765b42e6458a24db53d71cf1337f Mon Sep 17 00:00:00 2001 From: M1ha-Shvn Date: Thu, 4 Jan 2024 12:54:51 +0500 Subject: [PATCH 2/2] Bumped version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 3fda75a..51c8dbc 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ setup( name='django-pg-bulk-update', - version='3.7.1', + version='3.7.2', packages=['django_pg_bulk_update'], package_dir={'': 'src'}, url='https://github.com/M1hacka/django-pg-bulk-update',