Skip to content

Commit

Permalink
build(python): drop support for Python 3.6 and 3.7 (reanahub#793)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: drop support for Python 3.6 and 3.7

Closes reanahub#784
  • Loading branch information
mdonadoni committed May 29, 2024
1 parent b4f4633 commit 6300614
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: "3.8"

- name: Check Python code formatting
run: |
Expand All @@ -71,7 +71,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: "3.8"

- name: Check compliance with pep8, pyflakes and circular complexity
run: |
Expand All @@ -88,7 +88,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: "3.8"

- name: Check compliance with Python docstring conventions
run: |
Expand All @@ -104,7 +104,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: "3.8"

- name: Check Python manifest completeness
run: |
Expand All @@ -120,7 +120,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: "3.8"

- name: Install system dependencies
run: |
Expand All @@ -138,17 +138,14 @@ jobs:

python-tests:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: "3.8"

- name: Install Python dependencies
run: |
Expand All @@ -160,7 +157,6 @@ jobs:
run: ./run-tests.sh --check-pytest

- name: Codecov Coverage
if: matrix.python-version == 3.8
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
6 changes: 2 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# This file is part of REANA.
# Copyright (C) 2017, 2018, 2019, 2020, 2021, 2022, 2023 CERN.
# Copyright (C) 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024 CERN.
#
# REANA is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
Expand Down Expand Up @@ -79,6 +79,7 @@
"reana-benchmark = reana.reana_benchmark.cli:reana_benchmark",
],
},
python_requires=">=3.8",
extras_require=extras_require,
install_requires=install_requires,
setup_requires=setup_requires,
Expand All @@ -90,10 +91,7 @@
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
Expand Down

0 comments on commit 6300614

Please sign in to comment.