From ee2aeeada028fd2a18e33d5d9c4925e8257efa87 Mon Sep 17 00:00:00 2001 From: Irina Truong Date: Tue, 4 Mar 2025 16:58:21 -0800 Subject: [PATCH 1/4] Drop support got python 3.8. --- .github/workflows/ci.yml | 2 +- README.rst | 5 ++++- changelog.rst | 5 +++++ pyproject.toml | 4 ++-- tox.ini | 2 +- 5 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5321f42c3..572f0bc3e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] services: postgres: diff --git a/README.rst b/README.rst index 76bfa703c..231de2c00 100644 --- a/README.rst +++ b/README.rst @@ -352,7 +352,10 @@ choice: In [3]: my_result = _ -Pgcli dropped support for Python<3.8 as of 4.0.0. If you need it, install ``pgcli <= 4.0.0``. +Pgcli dropped support for: + +* Python<3.8 as of 4.0.0. +* Python<3.9 as of 4.2.0. Thanks: ------- diff --git a/changelog.rst b/changelog.rst index 8e7a8aed5..ce991a390 100644 --- a/changelog.rst +++ b/changelog.rst @@ -10,6 +10,11 @@ Bug fixes: ---------- * Avoid raising `NameError` when exiting unsuccessfully in some cases +Internal: +--------- + +* Drop support for Python 3.8 and add 3.13. + 4.1.0 (2024-03-09) ================== diff --git a/pyproject.toml b/pyproject.toml index 84afc1b38..d714282a3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,11 +10,11 @@ classifiers = [ "Operating System :: Unix", "Programming Language :: Python", "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", + "Programming Language :: Python :: 3.13", "Programming Language :: SQL", "Topic :: Database", "Topic :: Database :: Front-Ends", @@ -22,7 +22,7 @@ classifiers = [ "Topic :: Software Development :: Libraries :: Python Modules", ] urls = { Homepage = "https://pgcli.com" } -requires-python = ">=3.8" +requires-python = ">=3.9" dependencies = [ "pgspecial>=2.0.0", "click >= 4.1", diff --git a/tox.ini b/tox.ini index 7d336986a..554d66d8f 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py38, py39, py310, py311, py312 +envlist = py39, py310, py311, py312, py313 [testenv] deps = pytest>=2.7.0,<=3.0.7 mock>=1.0.1 From d4d759039991783189fcb4e431c7b0fa3f848cfd Mon Sep 17 00:00:00 2001 From: Irina Truong Date: Tue, 4 Mar 2025 17:14:19 -0800 Subject: [PATCH 2/4] xterm. --- .github/workflows/ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 572f0bc3e..2a65a10e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -77,10 +77,11 @@ jobs: - name: Run unit tests run: coverage run --source pgcli -m pytest - # - name: Run integration tests - # env: - # PGUSER: postgres - # PGPASSWORD: postgres + - name: Run integration tests + env: + PGUSER: postgres + PGPASSWORD: postgres + TERM: xterm # run: behave tests/features --no-capture From 1fe54118fd492abca81473c20f63af89dcbab44b Mon Sep 17 00:00:00 2001 From: Irina Truong Date: Tue, 4 Mar 2025 17:43:42 -0800 Subject: [PATCH 3/4] Re-enable tests. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a65a10e5..6ea35faa1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -83,7 +83,7 @@ jobs: PGPASSWORD: postgres TERM: xterm - # run: behave tests/features --no-capture + run: behave tests/features --no-capture - name: Check changelog for ReST compliance run: docutils --halt=warning changelog.rst >/dev/null From 089371899167b984bfdb11f49d46fba51d00af93 Mon Sep 17 00:00:00 2001 From: Irina Truong Date: Tue, 4 Mar 2025 18:23:41 -0800 Subject: [PATCH 4/4] Re-disable. --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ea35faa1..227047dbc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -77,13 +77,13 @@ jobs: - name: Run unit tests run: coverage run --source pgcli -m pytest - - name: Run integration tests - env: - PGUSER: postgres - PGPASSWORD: postgres - TERM: xterm + # - name: Run integration tests + # env: + # PGUSER: postgres + # PGPASSWORD: postgres + # TERM: xterm - run: behave tests/features --no-capture + # run: behave tests/features --no-capture - name: Check changelog for ReST compliance run: docutils --halt=warning changelog.rst >/dev/null