diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b4effa0..c69c6e7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,12 +9,6 @@ jobs: python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] django-version: ["3.2", "4.0", "4.1"] exclude: - # Python 3.6 is not compatible with 4.0 - - python-version: "3.6" - django-version: "4.0" - # Python 3.6 is not compatible with 4.1 - - python-version: "3.6" - django-version: "4.1" # Python 3.7 is not compatible with 4.0 - python-version: "3.7" django-version: "4.0" diff --git a/dj_database_url.py b/dj_database_url.py index c9198e2..bfba749 100644 --- a/dj_database_url.py +++ b/dj_database_url.py @@ -102,7 +102,7 @@ def parse(url, engine=None, conn_max_age=0, ssl_require=False): port = ( str(url.port) if url.port - and engine in [SCHEMES["oracle"], SCHEMES["mssql"], SCHEMES["mssqlms"]] + and engine in (SCHEMES["oracle"], SCHEMES["mssql"], SCHEMES["mssqlms"]) else url.port ) diff --git a/setup.py b/setup.py index 21bc2b7..05b9df5 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,8 @@ +from pathlib import Path + from setuptools import setup -with open("README.rst") as readme_rst: - readme = readme_rst.read() +readme = Path("README.rst").read_text() setup( name="dj-database-url",