* convert list to tuple

* use pathlib to read file data
This commit is contained in:
Jair Henrique 2022-12-11 12:15:20 -03:00 committed by GitHub
parent b9715d2264
commit ccbcc8f93d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 9 deletions

View file

@ -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"

View file

@ -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
)

View file

@ -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",