Skip to content

Commit 1a43350

Browse files
committed
Remove 3.8 support
1 parent cd4921f commit 1a43350

File tree

5 files changed

+5
-20
lines changed

5 files changed

+5
-20
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
config:
22-
- {os: ubuntu-latest, py: '3.8'}
2322
- {os: ubuntu-latest, py: '3.9'}
2423
- {os: ubuntu-latest, py: '3.10'}
2524
- {os: ubuntu-latest, py: '3.11'}

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "pyorderly"
77
dynamic = ["version"]
88
description = "Reproducible and collaborative reporting"
99
readme = "README.md"
10-
requires-python = ">=3.7"
10+
requires-python = ">=3.9"
1111
license = "MIT"
1212
keywords = []
1313
authors = [
@@ -16,11 +16,12 @@ authors = [
1616
classifiers = [
1717
"Development Status :: 4 - Beta",
1818
"Programming Language :: Python",
19-
"Programming Language :: Python :: 3.7",
2019
"Programming Language :: Python :: 3.8",
2120
"Programming Language :: Python :: 3.9",
2221
"Programming Language :: Python :: 3.10",
2322
"Programming Language :: Python :: 3.11",
23+
"Programming Language :: Python :: 3.12",
24+
"Programming Language :: Python :: 3.13",
2425
"Programming Language :: Python :: Implementation :: CPython",
2526
"Programming Language :: Python :: Implementation :: PyPy",
2627
]
@@ -78,7 +79,7 @@ generate-docs = [
7879
]
7980

8081
[[tool.hatch.envs.all.matrix]]
81-
python = ["3.7", "3.8", "3.9", "3.10", "3.11"]
82+
python = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
8283

8384
[tool.hatch.envs.lint]
8485
extra-dependencies = [

src/pyorderly/outpack/location_ssh.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from pyorderly.outpack.location_driver import LocationDriver
1414
from pyorderly.outpack.metadata import MetadataCore, PacketFile, PacketLocation
1515
from pyorderly.outpack.static import LOCATION_LOCAL
16-
from pyorderly.outpack.util import removeprefix
1716

1817

1918
def parse_ssh_url(url):
@@ -35,7 +34,7 @@ def parse_ssh_url(url):
3534
msg = "No path specified for SSH location"
3635
raise Exception(msg)
3736

38-
path = removeprefix(parts.path, "/")
37+
path = parts.path.removeprefix("/")
3938
return parts.username, parts.hostname, parts.port, path
4039

4140

src/pyorderly/outpack/util.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,3 @@ def as_posix_path(paths):
217217
return [as_posix_path(v) for v in paths]
218218
else:
219219
return PurePath(paths).as_posix()
220-
221-
222-
# Starting with Python 3.9 this exists as a method on str
223-
def removeprefix(s: str, prefix: str) -> str:
224-
if s.startswith(prefix):
225-
return s[len(prefix) :]
226-
else:
227-
return s

tests/outpack/test_util.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
partition,
2020
pl,
2121
read_string,
22-
removeprefix,
2322
time_to_num,
2423
)
2524

@@ -234,8 +233,3 @@ def test_as_posix_path():
234233
"here/aaa": "there/bbb",
235234
"foo/bar": "baz/qux",
236235
}
237-
238-
239-
def test_removeprefix():
240-
assert removeprefix("foobar", "foo") == "bar"
241-
assert removeprefix("foobar", "xxx") == "foobar"

0 commit comments

Comments
 (0)