From c34368fbdc1b7344a35d114c4fde0d77516f1860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kl=C3=B6tzke?= Date: Fri, 2 Aug 2024 17:48:00 +0200 Subject: [PATCH] setup: require at least Python 3.7 Python 3.6 is end-of-life since 2021-12-23. Even though 3.7 is also not supported any more, Debian oldoldstable is still using it. We don't gain much by dropping its support so let's keep it for the time being. --- .github/workflows/workflow.yaml | 4 +--- doc/installation.rst | 2 +- pym/bob/develop/version.py | 4 ++-- setup.py | 5 ++--- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index f5f70430c..6676f1e27 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -8,7 +8,7 @@ jobs: timeout-minutes: 15 strategy: matrix: - python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] fail-fast: false steps: @@ -45,8 +45,6 @@ jobs: python3 setup.py bdist_wheel --plat-name manylinux1_x86_64 - name: Upload coverage to Codecov - # Coverage is not complete on Python <3.7 (see pym/bob/utils.py) - if: matrix.python-version != '3.6' uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} diff --git a/doc/installation.rst b/doc/installation.rst index 81c5d9dfb..c6cb20cad 100644 --- a/doc/installation.rst +++ b/doc/installation.rst @@ -4,7 +4,7 @@ Installation Dependencies ============ -Bob is built with Python3 (>=3.6). Some additional Python packages are +Bob is built with Python3 (>=3.7). Some additional Python packages are required. They are installed automatically as dependencies. Apart from the Python dependencies additional run time dependencies could arise, diff --git a/pym/bob/develop/version.py b/pym/bob/develop/version.py index 1a29c3a69..fa2f63483 100644 --- a/pym/bob/develop/version.py +++ b/pym/bob/develop/version.py @@ -9,8 +9,8 @@ if sys.version_info.major != 3: print("Bob requires Python 3") sys.exit(1) -elif sys.version_info.minor < 6: - print("Bob requires at least Python 3.6") +elif sys.version_info.minor < 7: + print("Bob requires at least Python 3.7") sys.exit(1) def getVersion(): diff --git a/setup.py b/setup.py index 8286c1ca0..3e189531e 100644 --- a/setup.py +++ b/setup.py @@ -129,7 +129,7 @@ class build(build_orig): cmdclass = cmdclass, # Our runtime dependencies - python_requires = '>=3.6', + python_requires = '>=3.7', install_requires = [ 'PyYAML', 'schema', @@ -144,8 +144,7 @@ class build(build_orig): # Installation time dependencies only needed by setup.py setup_requires = [ - 'setuptools_scm<7', # automatically get package version - # TODO: remove constraint when Python 3.7 is required + 'setuptools_scm', # automatically get package version ], # Provide executables