diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index b2b403193..dfecf93de 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -26,10 +26,10 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 - - name: Set up Python 3.9 + - name: Set up Python 3.11 uses: actions/setup-python@v1 with: - python-version: 3.9 + python-version: 3.11 - uses: actions/cache@v1 with: path: ~/.cache/pip diff --git a/.github/workflows/strings.yml b/.github/workflows/strings.yml index 472c4ffed..34484e068 100644 --- a/.github/workflows/strings.yml +++ b/.github/workflows/strings.yml @@ -24,10 +24,10 @@ jobs: name: Check gettext syntax steps: - uses: actions/checkout@v2 - - name: Set up Python 3.9 + - name: Set up Python 3.11 uses: actions/setup-python@v1 with: - python-version: 3.9 + python-version: 3.11 - uses: actions/cache@v1 with: path: ~/.cache/pip @@ -50,10 +50,10 @@ jobs: name: Spellcheck steps: - uses: actions/checkout@v2 - - name: Set up Python 3.9 + - name: Set up Python 3.11 uses: actions/setup-python@v1 with: - python-version: 3.9 + python-version: 3.11 - uses: actions/cache@v1 with: path: ~/.cache/pip diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index adb00778e..c78ed6f94 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -24,10 +24,10 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 - - name: Set up Python 3.9 + - name: Set up Python 3.11 uses: actions/setup-python@v1 with: - python-version: 3.9 + python-version: 3.11 - uses: actions/cache@v1 with: path: ~/.cache/pip @@ -45,10 +45,10 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 - - name: Set up Python 3.9 + - name: Set up Python 3.11 uses: actions/setup-python@v1 with: - python-version: 3.9 + python-version: 3.11 - uses: actions/cache@v1 with: path: ~/.cache/pip @@ -66,10 +66,10 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 - - name: Set up Python 3.9 + - name: Set up Python 3.11 uses: actions/setup-python@v1 with: - python-version: 3.9 + python-version: 3.11 - name: Install Dependencies run: pip3 install licenseheaders - name: Run licenseheaders diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 65f384790..8b05bb6bc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,22 +24,22 @@ jobs: name: Tests strategy: matrix: - python-version: ["3.7", "3.9", "3.10"] + python-version: ["3.9", "3.10", "3.11"] database: [sqlite, postgres, mysql] exclude: - - database: mysql - python-version: "3.10" - database: mysql python-version: "3.9" + - database: mysql + python-version: "3.11" - database: sqlite - python-version: "3.7" + python-version: "3.9" - database: sqlite python-version: "3.10" steps: - uses: actions/checkout@v2 - uses: getong/mariadb-action@v1.1 with: - mariadb version: '10.4' + mariadb version: '10.10' mysql database: 'pretix' mysql root password: '' if: matrix.database == 'mysql' @@ -83,4 +83,4 @@ jobs: file: src/coverage.xml token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: true - if: matrix.database == 'postgres' && matrix.python-version == '3.10' + if: matrix.database == 'postgres' && matrix.python-version == '3.11' diff --git a/Dockerfile b/Dockerfile index d398bfa00..c106edecf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.9-bullseye +FROM python:3.11-bullseye RUN apt-get update && \ apt-get install -y --no-install-recommends \ diff --git a/doc/admin/installation/manual_smallscale.rst b/doc/admin/installation/manual_smallscale.rst index 8bb09b6c5..5e00c81bd 100644 --- a/doc/admin/installation/manual_smallscale.rst +++ b/doc/admin/installation/manual_smallscale.rst @@ -23,7 +23,7 @@ installation guides): * A SMTP server to send out mails, e.g. `Postfix`_ on your machine or some third-party server you have credentials for * A HTTP reverse proxy, e.g. `nginx`_ or Apache to allow HTTPS connections -* A `PostgreSQL`_ 9.6+ database server +* A `PostgreSQL`_ 11+ database server * A `redis`_ server * A `nodejs`_ installation @@ -127,7 +127,7 @@ We now install pretix, its direct dependencies and gunicorn:: (venv)$ pip3 install pretix gunicorn -Note that you need Python 3.7 or newer. You can find out your Python version using ``python -V``. +Note that you need Python 3.9 or newer. You can find out your Python version using ``python -V``. We also need to create a data directory:: diff --git a/src/setup.cfg b/src/setup.cfg index aa63cf035..3da723965 100644 --- a/src/setup.cfg +++ b/src/setup.cfg @@ -26,6 +26,8 @@ filterwarnings = ignore::DeprecationWarning:markdown ignore::DeprecationWarning:celery ignore::DeprecationWarning:kombu + ignore::DeprecationWarning:django + ignore::DeprecationWarning:cgi ignore:the load_module.* method is deprecated:DeprecationWarning ignore::ImportWarning ignore::ResourceWarning diff --git a/src/setup.py b/src/setup.py index 897b47d29..e2a6dccd4 100644 --- a/src/setup.py +++ b/src/setup.py @@ -53,7 +53,7 @@ except: raise CURRENT_PYTHON = sys.version_info[:2] -REQUIRED_PYTHON = (3, 6) +REQUIRED_PYTHON = (3, 9) if CURRENT_PYTHON < REQUIRED_PYTHON: sys.stderr.write(""" ========================== @@ -150,9 +150,9 @@ setup( 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', 'Environment :: Web Environment', 'License :: OSI Approved :: GNU Affero General Public License v3', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', + 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', 'Framework :: Django :: 3.2' ],