diff --git a/ocr-correction-viklofg-sweocr/Makefile b/ocr-correction-viklofg-sweocr/Makefile index 070771c..a294af0 100644 --- a/ocr-correction-viklofg-sweocr/Makefile +++ b/ocr-correction-viklofg-sweocr/Makefile @@ -150,8 +150,8 @@ publish: prepare-release: update-changelog tests/requirements-testing.lock # we use lock extension so that dependabot doesn't pick up changes in this file -tests/requirements-testing.lock: tests/requirements-testing.in pyproject.toml - uv pip compile $^ --output-file $@ +tests/requirements-testing.lock: pyproject.toml + uv pip compile $< --group dev --output-file $@ .PHONY: update-changelog update-changelog: CHANGELOG.md diff --git a/ocr-correction-viklofg-sweocr/pyproject.toml b/ocr-correction-viklofg-sweocr/pyproject.toml index 089ffca..78da709 100644 --- a/ocr-correction-viklofg-sweocr/pyproject.toml +++ b/ocr-correction-viklofg-sweocr/pyproject.toml @@ -57,8 +57,8 @@ packages = ["src/sbx_ocr_correction_viklofg_sweocr"] [tool.hatch.metadata] allow-direct-references = true -[tool.uv] -dev-dependencies = [ +[dependency-groups] +dev = [ "pytest>=8.3.3", "syrupy>=4.7.2", "sparv-pipeline-testing @ git+https://github.com/spraakbanken/sparv-pipeline-testing.git@v0.1.7", diff --git a/pyproject.toml b/pyproject.toml index 814fd83..82db8e4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,8 +6,8 @@ readme = "README.md" requires-python = ">=3.9" dependencies = [] -[tool.uv] -dev-dependencies = [ +[dependency-groups] +dev = [ "bump-my-version>=0.28.0", "mypy>=1.12.1", "pytest>=8.3.3", @@ -17,5 +17,7 @@ dev-dependencies = [ "sparv-pipeline-testing @ git+https://github.com/spraakbanken/sparv-pipeline-testing.git@v0.1.7", ] +[tool.uv] + [tool.uv.workspace] members = ["ocr-correction-viklofg-sweocr"] diff --git a/uv.lock b/uv.lock index 79cb0d8..8cf8588 100644 --- a/uv.lock +++ b/uv.lock @@ -1,7 +1,8 @@ version = 1 requires-python = ">=3.9" resolution-markers = [ - "python_full_version < '3.13'", + "python_full_version < '3.12'", + "python_full_version == '3.12.*'", "python_full_version >= '3.13'", ] @@ -1953,6 +1954,14 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/da/b1/e0ee90f9cee49b217f3dbf757b0fe8e18f6cf5a1c76d712521ec51ba3d17/sparv_pipeline-5.2.0-py3-none-any.whl", hash = "sha256:1334808b7b7dd15463decec95871c4e8427dbedd9f6f9b64c16e9224e66507c6", size = 286681 }, ] +[[package]] +name = "sparv-pipeline-testing" +version = "0.1.7" +source = { git = "https://github.com/spraakbanken/sparv-pipeline-testing.git?rev=v0.1.7#dd72b2f202e1164f6d1a4d731a81e9341d54dc13" } +dependencies = [ + { name = "sparv-pipeline" }, +] + [[package]] name = "sparv-sbx-ocr-correction-viklofg-sweocr" version = "0.3.0" @@ -1966,6 +1975,7 @@ dependencies = [ [package.dev-dependencies] dev = [ { name = "pytest" }, + { name = "sparv-pipeline-testing" }, { name = "syrupy" }, ] @@ -1979,6 +1989,7 @@ requires-dist = [ [package.metadata.requires-dev] dev = [ { name = "pytest", specifier = ">=8.3.3" }, + { name = "sparv-pipeline-testing", git = "https://github.com/spraakbanken/sparv-pipeline-testing.git?rev=v0.1.7" }, { name = "syrupy", specifier = ">=4.7.2" }, ] @@ -1994,6 +2005,7 @@ dev = [ { name = "pytest" }, { name = "pytest-cov" }, { name = "ruff" }, + { name = "sparv-pipeline-testing" }, { name = "syrupy" }, ] @@ -2006,6 +2018,7 @@ dev = [ { name = "pytest", specifier = ">=8.3.3" }, { name = "pytest-cov", specifier = ">=5.0.0" }, { name = "ruff", specifier = ">=0.7.0" }, + { name = "sparv-pipeline-testing", git = "https://github.com/spraakbanken/sparv-pipeline-testing.git?rev=v0.1.7" }, { name = "syrupy", specifier = ">=4.7.2" }, ]