From 5cf8821df9fc1d965728f29ed3ef6ddd26f4dcb7 Mon Sep 17 00:00:00 2001 From: Nathan McDougall Date: Fri, 28 Feb 2025 12:01:06 +1300 Subject: [PATCH] Test installation --- README.md | 7 +++++-- pyproject.toml | 11 +++++++++++ tests/test_install.py | 4 ++++ tests/test_up_to_date.py | 3 +-- uv.lock | 28 ++++++++++++++++------------ 5 files changed, 37 insertions(+), 16 deletions(-) create mode 100644 tests/test_install.py diff --git a/README.md b/README.md index 1c572d5..0bda4bf 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ -# geospatial-wheels-windows-flatlinks -A simple webpage to help configure uv to install GDAL and other packages with pre-built Windows wheels from https://github.com/cgohlke/geospatial-wheels +# geopspatial-wheels Windows flatlinks + +A [simple webpage](https://nathanjmcdougall.github.io/geospatial-wheels-windows-flatlinks/) to help configure uv to install GDAL and other packages with pre-built Windows wheels from + +## Acknowledgements diff --git a/pyproject.toml b/pyproject.toml index 9a6fd32..baa2169 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,6 +14,7 @@ authors = [ requires-python = ">=3.13" classifiers = [ "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.13" ] dependencies = [ + "gdal>=3.10.1", "httpx>=0.28.1", ] @@ -43,3 +44,13 @@ filterwarnings = [ "error" ] [tool.uv] default-groups = [ "test", "dev" ] +find-links = [ "https://nathanjmcdougall.github.io/geospatial-wheels-windows-flatlinks" ] + +[tool.uv.sources] +gdal = [ + { index = "large_image_wheels" }, +] + +[[tool.uv.index]] +name = "large_image_wheels" +url = "https://girder.github.io/large_image_wheels" diff --git a/tests/test_install.py b/tests/test_install.py new file mode 100644 index 0000000..32df420 --- /dev/null +++ b/tests/test_install.py @@ -0,0 +1,4 @@ +def test_importable() -> None: + import osgeo + + assert osgeo.__version__ is not None diff --git a/tests/test_up_to_date.py b/tests/test_up_to_date.py index facce42..f487dc1 100644 --- a/tests/test_up_to_date.py +++ b/tests/test_up_to_date.py @@ -47,8 +47,7 @@ def test_up_to_date(tmp_path: Path) -> None: - -""" +""" ) html_file = tmp_path / "index.html" diff --git a/uv.lock b/uv.lock index 6b185e2..3d4569e 100644 --- a/uv.lock +++ b/uv.lock @@ -1,6 +1,6 @@ version = 1 revision = 1 -requires-python = ">=3.11.6" +requires-python = ">=3.13" [[package]] name = "anyio" @@ -9,7 +9,6 @@ source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "idna" }, { name = "sniffio" }, - { name = "typing-extensions", marker = "python_full_version < '3.13'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/a3/73/199a98fc2dae33535d6b8e8e6ec01f8c1d76c9adb096c6b7d64823038cde/anyio-4.8.0.tar.gz", hash = "sha256:1d9fe889df5212298c0c0723fa20479d1b94883a2df44bd3897aa91083316f7a", size = 181126 } wheels = [ @@ -34,11 +33,22 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335 }, ] +[[package]] +name = "gdal" +version = "3.10.1" +source = { registry = "https://nathanjmcdougall.github.io/geospatial-wheels-windows-flatlinks" } +wheels = [ + { url = "https://github.com/cgohlke/geospatial-wheels/releases/download/v2025.1.20/GDAL-3.10.1-cp313-cp313-win32.whl" }, + { url = "https://github.com/cgohlke/geospatial-wheels/releases/download/v2025.1.20/GDAL-3.10.1-cp313-cp313-win_amd64.whl" }, + { url = "https://github.com/cgohlke/geospatial-wheels/releases/download/v2025.1.20/GDAL-3.10.1-cp313-cp313-win_arm64.whl" }, +] + [[package]] name = "gdal-windows-whl-flatlinks" version = "0.1.0" source = { editable = "." } dependencies = [ + { name = "gdal" }, { name = "httpx" }, ] @@ -52,7 +62,10 @@ test = [ ] [package.metadata] -requires-dist = [{ name = "httpx", specifier = ">=0.28.1" }] +requires-dist = [ + { name = "gdal", specifier = ">=3.10.1", index = "https://girder.github.io/large_image_wheels" }, + { name = "httpx", specifier = ">=0.28.1" }, +] [package.metadata.requires-dev] dev = [ @@ -214,12 +227,3 @@ sdist = { url = "https://files.pythonhosted.org/packages/3a/7a/fca432020e0b2134f wheels = [ { url = "https://files.pythonhosted.org/packages/e8/7f/094a5d096adaf2a51de24c8650530625a262bef0c654fc981165ad45821f/toml_fmt_common-1.0.1-py3-none-any.whl", hash = "sha256:7a6542e36a7167fa94b8b997d3f8debadbb4ab757c7d78a77304579bd7a0cc7d", size = 5666 }, ] - -[[package]] -name = "typing-extensions" -version = "4.12.2" -source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/df/db/f35a00659bc03fec321ba8bce9420de607a1d37f8342eee1863174c69557/typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8", size = 85321 } -wheels = [ - { url = "https://files.pythonhosted.org/packages/26/9f/ad63fc0248c5379346306f8668cda6e2e2e9c95e01216d2b8ffd9ff037d0/typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d", size = 37438 }, -]