From 5347deddb66f6d599bd7b59f3805ebe12926fb62 Mon Sep 17 00:00:00 2001 From: Alexandra Bruckner Date: Thu, 8 Feb 2024 13:11:33 +0100 Subject: [PATCH] Update minimum requirements django 3.2 and min python 3.8 --- .github/workflows/db-logger.yml | 28 +++++++--------------- .github/workflows/publish-to-pypi.yml | 4 ++-- .github/workflows/publish-to-test-pypi.yml | 4 ++-- README.rst | 4 ++-- setup.py | 7 ++++-- 5 files changed, 19 insertions(+), 28 deletions(-) diff --git a/.github/workflows/db-logger.yml b/.github/workflows/db-logger.yml index 682e68c..db28aea 100644 --- a/.github/workflows/db-logger.yml +++ b/.github/workflows/db-logger.yml @@ -7,35 +7,23 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.7', '3.8', '3.9'] - django-version: ['1.9', '1.10', '1.11.17', '2.0', '2.2', '3.1', '3.2'] + python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + django-version: ['3.2', '4.2', '5.0'] exclude: - - django-version: '2.0' - python-version: '2.7' - - django-version: '2.2' - python-version: '2.7' - - django-version: '3.1' - python-version: '2.7' - - django-version: '3.2' - python-version: '2.7' - - django-version: '1.9' + - django-version: '5.0' python-version: '3.8' - - django-version: '1.10' - python-version: '3.8' - - django-version: '1.9' - python-version: '3.9' - - django-version: '1.10' + - django-version: '5.0' python-version: '3.9' steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Upgrade Pip run: pip install -U pip - - name: Install six - run: pip install six + - name: Install six and setuptools + run: pip install six setuptools - name: Install Django run: pip install Django==${{ matrix.django-version }} - name: Test diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 428864c..12fbf94 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -12,12 +12,12 @@ jobs: environment: Pypi steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: # fetch with tags https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches fetch-depth: 0 - name: Set up Python 3.9 - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: 3.9 - name: Install pypa/build diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml index 0062260..df5151e 100644 --- a/.github/workflows/publish-to-test-pypi.yml +++ b/.github/workflows/publish-to-test-pypi.yml @@ -14,12 +14,12 @@ jobs: TestPypi: yes steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: # fetch with tags https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches fetch-depth: 0 - name: Set up Python 3.9 - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: 3.9 - name: Install pypa/build diff --git a/README.rst b/README.rst index 61b9f52..a8e9789 100644 --- a/README.rst +++ b/README.rst @@ -15,8 +15,8 @@ Screenshot Dependency ---------- -* Django>=1.9 -* Python 2.7+/3.6+ +* Django>=3.2 +* Python 3.8+ License ------- diff --git a/setup.py b/setup.py index 17ae9e8..7b248a4 100755 --- a/setup.py +++ b/setup.py @@ -25,7 +25,7 @@ def local_scheme(version): url='https://github.com/CiCiUi/django-db-logger', author='zhangshine', author_email='zhangshine0125@gmail.com', - install_requires=['django>=1.9', 'six'], + install_requires=['django>=3.2', 'six'], classifiers=[ 'Environment :: Web Environment', 'Framework :: Django', @@ -33,9 +33,12 @@ def local_scheme(version): 'License :: OSI Approved :: MIT License', 'Operating System :: OS Independent', 'Programming Language :: Python', - 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Topic :: Internet :: WWW/HTTP', 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', ],