Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ jobs:
- name: Install system dependencies
run: >-
sudo apt-get install --no-install-recommends --yes \
libgdal-dev \
libproj-dev

- name: Checkout repository
Expand Down
4 changes: 4 additions & 0 deletions bats_ai/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from django.core.exceptions import ImproperlyConfigured
import django_stubs_ext
from environ import Env
import osgeo
from resonant_settings.allauth import *
from resonant_settings.celery import *
from resonant_settings.django import *
Expand Down Expand Up @@ -123,3 +124,6 @@
'schedule': 86400, # every 24 hours (in seconds)
},
}

GDAL_LIBRARY_PATH = osgeo.GDAL_LIBRARY_PATH
GEOS_LIBRARY_PATH = osgeo.GEOS_LIBRARY_PATH
Comment on lines +128 to +129
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 changes: 0 additions & 2 deletions dev/django.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ RUN set -ex \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
gcc \
g++ \
libgdal36 \
libc6-dev \
libpq-dev \
libsndfile1-dev \
ca-certificates \
&& apt-get clean \
Expand Down
2 changes: 0 additions & 2 deletions prod/django.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ RUN set -ex \
gcc \
g++ \
libc6-dev \
libgdal36 \
libgdal-dev \
libsndfile1-dev \
ca-certificates \
&& apt-get clean \
Expand Down
9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ dependencies = [
"opencv-python-headless",
"tqdm",
# guano metadata
"gdal",
"guano",
"django_celery_results",
# Production-only
Expand Down Expand Up @@ -111,6 +112,14 @@ constraint-dependencies = [
"numba >= 0.61.0",
]

[[tool.uv.index]]
name = "large_image_wheels"
url = "https://girder.github.io/large_image_wheels/"
explicit = true

[tool.uv.sources]
gdal = { index = "large_image_wheels" }

[tool.black]
line-length = 100
skip-string-normalization = true
Expand Down
25 changes: 24 additions & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.