Skip to content

Commit 70cc0c9

Browse files
authored
Drop support for Python 3.7
* Drop support for Python 3.7, closes #616 * Bumped versions on a whole lot of GitHub Actions
1 parent ff57a97 commit 70cc0c9

File tree

6 files changed

+24
-29
lines changed

6 files changed

+24
-29
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ jobs:
99
runs-on: ${{ matrix.os }}
1010
strategy:
1111
matrix:
12-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
12+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1313
os: [ubuntu-latest, windows-latest, macos-latest]
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
- name: Set up Python ${{ matrix.python-version }}
17-
uses: actions/setup-python@v4
17+
uses: actions/setup-python@v5
1818
with:
1919
python-version: ${{ matrix.python-version }}
20-
- uses: actions/cache@v3
20+
- uses: actions/cache@v4
2121
name: Configure pip caching
2222
with:
2323
path: ~/.cache/pip
@@ -34,12 +34,12 @@ jobs:
3434
runs-on: ubuntu-latest
3535
needs: [test]
3636
steps:
37-
- uses: actions/checkout@v3
37+
- uses: actions/checkout@v4
3838
- name: Set up Python
39-
uses: actions/setup-python@v4
39+
uses: actions/setup-python@v5
4040
with:
4141
python-version: '3.12'
42-
- uses: actions/cache@v3
42+
- uses: actions/cache@v4
4343
name: Configure pip caching
4444
with:
4545
path: ~/.cache/pip

.github/workflows/spellcheck.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ jobs:
66
spellcheck:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
10-
- name: Set up Python ${{ matrix.python-version }}
11-
uses: actions/setup-python@v2
9+
- uses: actions/checkout@v4
10+
- name: Set up Python
11+
uses: actions/setup-python@v5
1212
with:
13-
python-version: 3.9
14-
- uses: actions/cache@v2
13+
python-version: "3.12"
14+
- uses: actions/cache@v4
1515
name: Configure pip caching
1616
with:
1717
path: ~/.cache/pip

.github/workflows/test-coverage.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Check out repo
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v4
1616
- name: Set up Python
17-
uses: actions/setup-python@v2
17+
uses: actions/setup-python@v5
1818
with:
19-
python-version: 3.9
20-
- uses: actions/cache@v2
19+
python-version: "3.11"
20+
- uses: actions/cache@v4
2121
name: Configure pip caching
2222
with:
2323
path: ~/.cache/pip

.github/workflows/test.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ jobs:
1010
runs-on: ${{ matrix.os }}
1111
strategy:
1212
matrix:
13-
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
13+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1414
numpy: [0, 1]
1515
os: [ubuntu-latest, macos-latest, windows-latest]
1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v4
19+
uses: actions/setup-python@v5
2020
with:
2121
python-version: ${{ matrix.python-version }}
22-
- uses: actions/cache@v3
22+
- uses: actions/cache@v4
2323
name: Configure pip caching
2424
with:
2525
path: ~/.cache/pip
@@ -29,8 +29,7 @@ jobs:
2929
- name: Install dependencies
3030
run: |
3131
pip install -e '.[test,mypy,flake8]'
32-
- name: Optionally install tui dependencies (not 3.7)
33-
if: matrix.python-version != '3.7'
32+
- name: Optionally install tui dependencies
3433
run: pip install -e '.[tui]'
3534
- name: Optionally install numpy
3635
if: matrix.numpy == 1
@@ -50,12 +49,10 @@ jobs:
5049
pytest -v
5150
- name: run mypy
5251
run: mypy sqlite_utils tests
53-
- name: run flake8 if Python 3.8 or higher
54-
if: matrix.python-version >= 3.8
52+
- name: run flake8
5553
run: flake8
5654
- name: Check formatting
5755
run: black . --check
5856
- name: Check if cog needs to be run
59-
if: matrix.python-version != '3.7'
6057
run: |
6158
cog --check README.md docs/*.rst

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,14 @@ def get_long_description():
6464
"Issues": "https://github.com/simonw/sqlite-utils/issues",
6565
"CI": "https://github.com/simonw/sqlite-utils/actions",
6666
},
67-
python_requires=">=3.7",
67+
python_requires=">=3.8",
6868
classifiers=[
6969
"Development Status :: 5 - Production/Stable",
7070
"Intended Audience :: Developers",
7171
"Intended Audience :: Science/Research",
7272
"Intended Audience :: End Users/Desktop",
7373
"Topic :: Database",
7474
"License :: OSI Approved :: Apache Software License",
75-
"Programming Language :: Python :: 3.7",
7675
"Programming Language :: Python :: 3.8",
7776
"Programming Language :: Python :: 3.9",
7877
"Programming Language :: Python :: 3.10",

sqlite_utils/db.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -457,8 +457,7 @@ def register(fn):
457457
fn_name, arity, fn, **dict(kwargs, deterministic=True)
458458
)
459459
registered = True
460-
except (sqlite3.NotSupportedError, TypeError):
461-
# TypeError is Python 3.7 "function takes at most 3 arguments"
460+
except sqlite3.NotSupportedError:
462461
pass
463462
if not registered:
464463
self.conn.create_function(fn_name, arity, fn, **kwargs)

0 commit comments

Comments
 (0)