Skip to content

Commit 2a7a348

Browse files
authored
Drop Python 3.7 (#885)
2 parents fe13fb3 + b20a67b commit 2a7a348

File tree

15 files changed

+304
-385
lines changed

15 files changed

+304
-385
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
- name: Install poetry
3838
if: env.PUBLISH == 'true'
39-
run: pipx install "poetry==1.5.1"
39+
run: pipx install "poetry==1.6.1"
4040

4141
- name: Set up Python ${{ matrix.python-version }}
4242
uses: actions/setup-python@v4

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ jobs:
1414
tmux-version: [ '2.6', '2.7', '2.8', '3.0a', '3.1b', '3.2a', '3.3a', 'master' ]
1515
# balance ci coverage across supported python/tmux versions with CI speed
1616
include:
17-
- python-version: '3.7'
17+
- python-version: '3.8'
1818
tmux-version: '2.6'
19-
- python-version: '3.7'
19+
- python-version: '3.8'
2020
tmux-version: 'master'
2121
steps:
2222
- uses: actions/checkout@v3
2323

2424
- name: Install poetry
25-
run: pipx install "poetry==1.5.1"
25+
run: pipx install "poetry==1.6.1"
2626

2727
- name: Set up Python ${{ matrix.python-version }}
2828
uses: actions/setup-python@v4
@@ -96,7 +96,7 @@ jobs:
9696
- uses: actions/checkout@v3
9797

9898
- name: Install poetry
99-
run: pipx install "poetry==1.5.1"
99+
run: pipx install "poetry==1.6.1"
100100

101101
- name: Set up Python ${{ matrix.python-version }}
102102
uses: actions/setup-python@v4

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
poetry 1.5.1
1+
poetry 1.6.1
22
python 3.11.5 3.10.13 3.9.18 3.8.18 3.7.17

CHANGES

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ $ pipx install --suffix=@next 'tmuxp' --pip-args '\--pre' --force
1919

2020
<!-- Maintainers, insert changes / features for the next release here -->
2121

22+
### Breaking changes
23+
24+
- Python 3.7 Dropped (#885)
25+
26+
### Development
27+
28+
- Poetry 1.5.1 -> 1.6.1 (#885)
29+
2230
## tmuxp 1.30.1 (2023-09-09)
2331

2432
_Maintenance only, no bug fixes or new features_

poetry.lock

Lines changed: 267 additions & 352 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ classifiers = [
1212
"Environment :: Web Environment",
1313
"Intended Audience :: Developers",
1414
"Programming Language :: Python",
15-
"Programming Language :: Python :: 3.7",
1615
"Programming Language :: Python :: 3.8",
1716
"Programming Language :: Python :: 3.9",
1817
"Programming Language :: Python :: 3.10",
@@ -46,7 +45,7 @@ Changes = "https://github.com/tmux-python/tmuxp/blob/master/CHANGES"
4645
tmuxp = 'tmuxp:cli.cli'
4746

4847
[tool.poetry.dependencies]
49-
python = "^3.7"
48+
python = "^3.8"
5049
libtmux = "~0.23.2"
5150
colorama = ">=0.3.9"
5251
PyYAML = "^6.0"
@@ -58,11 +57,11 @@ sphinx = "*"
5857
aafigure = ">=0.6"
5958
pillow = "*"
6059
furo = "*"
61-
gp-libs = "~0.0.1"
60+
gp-libs = "~0.0.2"
6261
sphinx-autobuild = "*"
6362
sphinx-autodoc-typehints = "*"
6463
sphinx-argparse = "*"
65-
sphinx-inline-tabs = "<2023.4.21" # For Python 3.7 support
64+
sphinx-inline-tabs = "*"
6665
sphinxext-opengraph = "<0.8" # https://github.com/wpilibsuite/sphinxext-opengraph/issues/100
6766
sphinx-copybutton = "*"
6867
sphinxext-rediraffe = "*"
@@ -156,7 +155,7 @@ module = [
156155
ignore_missing_imports = true
157156

158157
[tool.ruff]
159-
target-version = "py37"
158+
target-version = "py38"
160159
select = [
161160
"E", # pycodestyle
162161
"F", # pyflakes

src/tmuxp/cli/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@
3535
logger = logging.getLogger(__name__)
3636

3737
if t.TYPE_CHECKING:
38-
from typing_extensions import Literal, TypeAlias
38+
from typing_extensions import TypeAlias
3939

40-
CLIVerbosity: TypeAlias = Literal["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]
41-
CLISubparserName: TypeAlias = Literal[
40+
CLIVerbosity: TypeAlias = t.Literal["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]
41+
CLISubparserName: TypeAlias = t.Literal[
4242
"ls", "load", "convert", "edit", "import", "shell", "debug-info"
4343
]
44-
CLIImportSubparserName: TypeAlias = Literal["teamocil", "tmuxinator"]
44+
CLIImportSubparserName: TypeAlias = t.Literal["teamocil", "tmuxinator"]
4545

4646

4747
def create_parser() -> argparse.ArgumentParser:

src/tmuxp/cli/convert.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
from .utils import prompt_yes_no
1111

1212
if t.TYPE_CHECKING:
13-
from typing_extensions import Literal
14-
15-
AllowedFileTypes = Literal["json", "yaml"]
13+
AllowedFileTypes = t.Literal["json", "yaml"]
1614

1715

1816
def create_convert_subparser(

src/tmuxp/cli/freeze.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
from .utils import prompt, prompt_choices, prompt_yes_no
1616

1717
if t.TYPE_CHECKING:
18-
from typing_extensions import Literal, TypeAlias, TypeGuard
18+
from typing_extensions import TypeAlias, TypeGuard
1919

20-
CLIOutputFormatLiteral: TypeAlias = Literal["yaml", "json"]
20+
CLIOutputFormatLiteral: TypeAlias = t.Literal["yaml", "json"]
2121

2222

2323
class CLIFreezeNamespace(argparse.Namespace):

src/tmuxp/cli/load.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
from .utils import prompt_choices, prompt_yes_no, style, tmuxp_echo
2727

2828
if t.TYPE_CHECKING:
29-
from typing_extensions import Literal, NotRequired, TypeAlias, TypedDict
29+
from typing_extensions import NotRequired, TypeAlias, TypedDict
3030

31-
CLIColorsLiteral: TypeAlias = Literal[56, 88]
31+
CLIColorsLiteral: TypeAlias = t.Literal[56, 88]
3232

3333
class OptionOverrides(TypedDict):
3434
detached: NotRequired[bool]

src/tmuxp/cli/shell.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
from .._compat import PY3, PYMINOR
1010

1111
if t.TYPE_CHECKING:
12-
from typing_extensions import Literal, TypeAlias
12+
from typing_extensions import TypeAlias
1313

14-
CLIColorsLiteral: TypeAlias = Literal[56, 88]
15-
CLIShellLiteral: TypeAlias = Literal[
14+
CLIColorsLiteral: TypeAlias = t.Literal[56, 88]
15+
CLIShellLiteral: TypeAlias = t.Literal[
1616
"best", "pdb", "code", "ptipython", "ptpython", "ipython", "bpython"
1717
]
1818

src/tmuxp/config_reader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import yaml
66

77
if t.TYPE_CHECKING:
8-
from typing_extensions import Literal, TypeAlias
8+
from typing_extensions import TypeAlias
99

10-
FormatLiteral = Literal["json", "yaml"]
10+
FormatLiteral = t.Literal["json", "yaml"]
1111

1212
RawConfigData: TypeAlias = t.Dict[t.Any, t.Any]
1313

src/tmuxp/shell.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
logger = logging.getLogger(__name__)
1313

1414
if t.TYPE_CHECKING:
15-
from typing_extensions import Literal, TypeAlias
15+
from typing_extensions import TypeAlias
1616

17-
CLIShellLiteral: TypeAlias = Literal[
17+
CLIShellLiteral: TypeAlias = t.Literal[
1818
"best", "pdb", "code", "ptipython", "ptpython", "ipython", "bpython"
1919
]
2020

src/tmuxp/workspace/finders.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
logger = logging.getLogger(__name__)
1313

1414
if t.TYPE_CHECKING:
15-
from typing_extensions import Literal, TypeAlias
15+
from typing_extensions import TypeAlias
1616

17-
ValidExtensions: TypeAlias = Literal[".yml", ".yaml", ".json"]
17+
ValidExtensions: TypeAlias = t.Literal[".yml", ".yaml", ".json"]
1818

1919

2020
def is_workspace_file(

tests/workspace/test_builder.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@
2727

2828
if t.TYPE_CHECKING:
2929
from libtmux.server import Server
30-
from typing_extensions import Protocol
3130

32-
class AssertCallbackProtocol(Protocol):
31+
class AssertCallbackProtocol(t.Protocol):
3332
def __call__(self, cmd: str, hist: str) -> bool:
3433
...
3534

0 commit comments

Comments
 (0)