From 88cefdc4816e1cc023d8a8ca802e2bedd4748cdd Mon Sep 17 00:00:00 2001 From: ecogels Date: Wed, 10 May 2023 14:29:13 +0200 Subject: [PATCH] update pypi py to 3.11 and installation instructions --- .github/workflows/pypi-test.yml | 4 ++-- .github/workflows/pypi.yml | 4 ++-- README.md | 12 ++++++++---- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pypi-test.yml b/.github/workflows/pypi-test.yml index dc865bf..3832583 100644 --- a/.github/workflows/pypi-test.yml +++ b/.github/workflows/pypi-test.yml @@ -10,10 +10,10 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - - name: Set up Python 3.8 + - name: Set up Python 3.11 uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: 3.11 - name: Install pypa/build run: python -m pip install build - name: Build a binary wheel and a source tarball diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 2d91db6..1e2e525 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -10,10 +10,10 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 - - name: Set up Python 3.8 + - name: Set up Python 3.11 uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: 3.11 - name: Install pypa/build run: python -m pip install build - name: Build a binary wheel and a source tarball diff --git a/README.md b/README.md index 1dec4b6..62435e8 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # SQL Server backend for Django >=3.2 - django 4 - django 3.2 (pypi package version 0.1) -- tested and used with SQL Server 2017 +- tested and used with SQL Server 2017 and for version 4.2 with python 3.11 only ## Warning - There is an official package supported by microsoft, microsoft/mssql-django. - This package does not need pyodbc nor the microsoft odbc driver, only pytds. -- This passes about 15000 tests from the django test suite but I personally use the django ORM mostly in a basic way and +- This passes about 15000 tests from the django test suite, but I personally use the django ORM in a basic way and don't use most of the features. ## Requirements @@ -14,8 +14,9 @@ don't use most of the features. - optional: - bitarray, recommended by python-tds for performance - - for regex support you need to compile `clr/django_clr.cs` and install the resulting assembly or read and then run the `tds_django/sql/clr.sql` script. - - for date "math" as well as bitshift operations you need to read and run the `tds_django/sql/init.sql` script. + - for regex support you need to compile `clr/django_clr.cs` and install the resulting assembly or read and then run +the `tds_django/sql/clr.sql` script. + - for date "math" as well as bit-shift operations you need to read and run the `tds_django/sql/init.sql` script. ## Unsupported - JSON @@ -27,6 +28,9 @@ don't use most of the features. - this one uses `uniqueidentifier` field for UUIDField while others may have used nvarchar. # Installation +For django 4.2 +`pip install bitarray python-tds tds_django==4.2.0` + For django 4.1 `pip install bitarray python-tds tds_django==4.1.0`