diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 16851e1..ae35ef7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,19 +16,24 @@ jobs: django-version: 4.0 fail-fast: false steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} + cache: 'pip' - name: Install dependencies run: | - pip install -U pip + pip install -r requirements.txt pip install "Django~=${{ matrix.django-version }}.0" . - name: Run Tests run: | echo "$(python --version) / Django $(django-admin --version)" - python -m unittest discover + coverage run --source=dj_database_url --branch -m unittest discover + coverage report + coverage xml + + - uses: codecov/codecov-action@v2 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index c8edb01..0000000 --- a/.travis.yml +++ /dev/null @@ -1,41 +0,0 @@ -dist: xenial -language: python -python: - - 2.7 - - 3.4 - - 3.5 - - 3.6 - - 3.7 - -env: - matrix: - - DJANGO="Django>=1.11,<2.0" - - DJANGO="Django>=2.0,<2.1" - - DJANGO="Django>=2.1,<2.2" - - DJANGO="Django>=2.2a1,<3.0" - - DJANGO="https://github.com/django/django/archive/master.tar.gz" - -matrix: - fast_finish: true - exclude: - # Django 2 dropped support for Python 2. - - python: 2.7 - env: DJANGO="Django>=2.0,<2.1" - - python: 2.7 - env: DJANGO="Django>=2.1,<2.2" - - python: 2.7 - env: DJANGO="Django>=2.2a1,<3.0" - - python: 2.7 - env: DJANGO="https://github.com/django/django/archive/master.tar.gz" - # Django 2.1 dropped support for Python 3.4. - - python: 3.4 - env: DJANGO="Django>=2.1,<2.2" - - python: 3.4 - env: DJANGO="Django>=2.2a1,<3.0" - - python: 3.4 - env: DJANGO="https://github.com/django/django/archive/master.tar.gz" - allow_failures: - - env: DJANGO="https://github.com/django/django/archive/master.tar.gz" - -install: pip install . $DJANGO -script: make test diff --git a/manifest.in b/manifest.in deleted file mode 100644 index 1aba38f..0000000 --- a/manifest.in +++ /dev/null @@ -1 +0,0 @@ -include LICENSE diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..4ebc8ae --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +coverage diff --git a/setup.py b/setup.py index 5cafa50..74bf726 100644 --- a/setup.py +++ b/setup.py @@ -7,25 +7,22 @@ setup( name="dj-database-url", version="0.5.0", - url="https://github.com/jacobian/dj-database-url", + url="https://github.com/jazzband/dj-database-url", license="BSD", author="Kenneth Reitz", author_email="me@kennethreitz.com", description="Use Database URLs in your Django Application.", long_description=readme, py_modules=["dj_database_url"], - install_requires=["Django>1.11"], + install_requires=["Django>3.2"], zip_safe=False, include_package_data=True, platforms="any", classifiers=[ "Environment :: Web Environment", "Framework :: Django", - "Framework :: Django :: 1.11", - "Framework :: Django :: 2.0", - "Framework :: Django :: 2.1", - "Framework :: Django :: 2.2", - "Framework :: Django :: 3.0", + "Framework :: Django :: 3.2", + "Framework :: Django :: 4.0", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", @@ -33,12 +30,10 @@ "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules", "Programming Language :: Python", - "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.4", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", ], )