Skip to content

Commit

Permalink
Support Python 3.9-3.13 (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
sloria authored Oct 18, 2024
1 parent 4c11666 commit d9a526f
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
fail-fast: false
matrix:
include:
- { name: "3.8-ipython8", python: "3.8", tox: py38-ipython8 }
- { name: "3.12-ipython8", python: "3.12", tox: py12-ipython8 }
- { name: "3.9-ipython8", python: "3.9", tox: py39-ipython8 }
- { name: "3.13-ipython8", python: "3.13", tox: py13-ipython8 }
steps:
- uses: actions/[email protected]
- uses: actions/setup-python@v5
Expand All @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.13"
- name: Install pypa/build
run: python -m pip install build
- name: Build a binary wheel and a source tarball
Expand All @@ -53,7 +53,7 @@ jobs:
- uses: actions/[email protected]
- uses: actions/setup-python@v5
with:
python-version: "3.11"
python-version: "3.13"
- run: python -m pip install tox
- run: python -m tox -elint
publish-to-pypi:
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Changelog
---------

5.2.0 (unreleased)
******************

Other changes:

- Drop support for Python 3.8.
- Test against Python 3.13.

5.1.0 (2024-02-02)
******************

Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"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",
"Environment :: Console",
]
keywords = ["doitlive", "cli", "live", "coding", "presentations", "shell"]
requires-python = ">=3.8"
requires-python = ">=3.9"
dependencies = [
"click>=8.0,<9",
"click-completion>=0.3.1",
Expand Down
7 changes: 4 additions & 3 deletions tests/test_doitlive.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,9 +300,10 @@ def test_record_content(self, runner):
assert 'echo "bar"' in content

def test_header_content(self, runner):
with recording_session(runner, args=["--shell", "/bin/bash"]), open(
"session.sh"
) as fp:
with (
recording_session(runner, args=["--shell", "/bin/bash"]),
open("session.sh") as fp,
):
content = fp.read()
assert "#doitlive shell: /bin/bash" in content

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = lint,docs,py3{8,9,10,11,12}-ipython8
envlist = lint,docs,py3{9,10,11,12,13}-ipython8

[testenv]
deps:
Expand Down

0 comments on commit d9a526f

Please sign in to comment.