Skip to content

Commit 874d0e7

Browse files
committed
Bump to v0.0.2, drop Python 3.10
1 parent b112bf3 commit 874d0e7

3 files changed

Lines changed: 14 additions & 17 deletions

File tree

fjsplib/read.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from pathlib import Path
2-
from typing import Union
32

43
from fjsplib.Instance import Instance
54

@@ -90,7 +89,7 @@ def read(loc: Path) -> Instance:
9089
)
9190

9291

93-
def file2lines(loc: Union[Path, str]) -> list[list[int]]:
92+
def file2lines(loc: Path | str) -> list[list[int]]:
9493
with open(loc, "r") as fh:
9594
lines = [line for line in fh.readlines() if line.strip()]
9695

fjsplib/write.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
from pathlib import Path
2-
from typing import Union
32

43
from .Instance import Instance
54

65

7-
def write(where: Union[Path, str], instance: Instance):
6+
def write(where: Path | str, instance: Instance):
87
"""
98
Writes a problem instance to file in FJSPLIB format.
109

pyproject.toml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "fjsplib"
3-
version = "0.0.2a"
3+
version = "0.0.2"
44
description = "Python package to read and write FJSP instances."
55
authors = [
66
{ name = "Leon Lan", email = "l.lan@vu.nl"},
@@ -21,10 +21,8 @@ classifiers = [
2121
"License :: OSI Approved :: MIT License",
2222
"Programming Language :: Python :: 3",
2323
]
24-
requires-python = ">=3.9"
25-
dependencies = [
26-
"numpy>=1.26.0",
27-
]
24+
requires-python = ">=3.10"
25+
dependencies = []
2826

2927

3028
[project.urls]
@@ -33,13 +31,20 @@ Repository = "https://github.com/PyJobShop/FJSPLIB"
3331

3432
[dependency-groups]
3533
dev = [
34+
"numpy>=1.26.0",
3635
"pre-commit>=3.8.0",
3736
"pytest>=8.3.2",
3837
]
3938

4039

41-
[tool.uv]
42-
default-groups = ["dev"]
40+
[build-system]
41+
requires = ["uv_build>=0.8.10,<0.9.0"]
42+
build-backend = "uv_build"
43+
44+
45+
[tool.uv.build-backend]
46+
module-name = "fjsplib"
47+
module-root = ""
4348

4449

4550
[tool.mypy]
@@ -62,7 +67,6 @@ select = [
6267
"F", # pyflakes
6368
"I", # isort
6469
"C", # flake8-comprehensions
65-
"B", # flake8-bugbear
6670
]
6771
ignore = [
6872
"E741", # ambiguous variable name, needed for indexing
@@ -72,8 +76,3 @@ ignore = [
7276

7377
[tool.ruff.lint.per-file-ignores]
7478
"__init__.py" = ["F401"] # ignore unused module imports
75-
76-
77-
[build-system]
78-
requires = ["hatchling"]
79-
build-backend = "hatchling.build"

0 commit comments

Comments
 (0)