File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from pathlib import Path
2- from typing import Union
32
43from 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
Original file line number Diff line number Diff line change 11from pathlib import Path
2- from typing import Union
32
43from .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
Original file line number Diff line number Diff line change 11[project ]
22name = " fjsplib"
3- version = " 0.0.2a "
3+ version = " 0.0.2 "
44description = " Python package to read and write FJSP instances."
55authors = [
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 ]
3533dev = [
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]
6771ignore = [
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"
You can’t perform that action at this time.
0 commit comments