Skip to content

Commit 6555cd3

Browse files
committed
build: move all requirements.txt into pyproject.toml
1 parent 3ea339a commit 6555cd3

File tree

7 files changed

+1479
-45
lines changed

7 files changed

+1479
-45
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ LAStools.zip
2222
pcl.tar.gz
2323
ceres-solver.tar.gz
2424
*.pyc
25+
.python-version
2526
opencv.zip
2627
settings.yaml
2728
.setupdevenv

contrib/resize/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ Resizes images, keeps Exif data. The EXIF width and height attributes will be up
77
Usage:
88

99
```
10-
pip install -r requirements.txt
11-
python3 resize.py -i images/ -o resized/ 25%
12-
python3 resize.py -i images/1.JPG -o resized.JPG 25%
13-
python3 resize.py -i gcp_list.txt -o resized_gcp_list.txt
10+
uv sync --group resize
11+
uv run resize.py -i images/ -o resized/ 25%
12+
uv run resize.py -i images/1.JPG -o resized.JPG 25%
13+
uv run resize.py -i gcp_list.txt -o resized_gcp_list.txt
1414
```
1515

1616
Originally forked from https://github.com/pierotofy/exifimageresize

contrib/resize/requirements.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

contrib/resize/resize.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
import multiprocessing
88
from multiprocessing.pool import ThreadPool
99
import sys
10-
sys.path.append("../../")
10+
from pathlib import Path
11+
# Add project root to sys.path dynamically
12+
REPO_ROOT = Path(__file__).resolve().parents[2]
13+
sys.path.insert(0, str(REPO_ROOT))
1114
from opendm.gcp import GCPFile
1215

1316
parser = argparse.ArgumentParser(description='Exif Image Resize')

pyproject.toml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
[project]
2+
name = "ODM"
3+
version = "3.6.0"
4+
description = "A command line toolkit to generate maps, point clouds, 3D models and DEMs from drone, balloon or kite images."
5+
readme = "README.md"
6+
requires-python = ">=3.12"
7+
dependencies = [
8+
"appsettings==0.8",
9+
"beautifulsoup4==4.13.4",
10+
"python-dateutil==2.9.0",
11+
"edt==3.0.0",
12+
"ExifRead==3.5.1",
13+
"Fiona==1.10.1; sys_platform == 'linux'",
14+
"Fiona==1.10.1; sys_platform == 'darwin'",
15+
"joblib==1.5.1",
16+
"matplotlib==3.10.3",
17+
"numpy==2.3.2",
18+
"Pillow==11.3.0",
19+
"vmem==1.0.2",
20+
"pyodm==1.5.12",
21+
"pyproj==3.7.1",
22+
"Pysolar==0.13",
23+
"pytz==2025.2",
24+
"PyYAML==6.0.2",
25+
"rasterio==1.4.3; sys_platform == 'linux'",
26+
"rasterio==1.4.3; sys_platform == 'darwin'",
27+
"gdal[numpy]==3.8.4; sys_platform == 'linux'",
28+
"gdal[numpy]==3.8.4; sys_platform == 'darwin'",
29+
"repoze.lru==0.7",
30+
"scikit-learn==1.7.1",
31+
"scikit-image==0.25.2",
32+
"scipy==1.16.1",
33+
"xmltodict==0.14.2",
34+
"fpdf2==2.8.3",
35+
"Shapely==2.1.1",
36+
"onnxruntime==1.22.1",
37+
"pygltflib==1.16.5",
38+
"packaging==25.0",
39+
"codem==0.26.1",
40+
"trimesh==4.7.1",
41+
"piexif==1.1.3",
42+
"rawpy==0.25.0",
43+
]
44+
45+
[tool.uv]
46+
environments = [
47+
"sys_platform == 'darwin'",
48+
"sys_platform == 'linux'",
49+
"sys_platform == 'win32'",
50+
]
51+
[tool.uv.sources]
52+
# Windows specific binary wheels
53+
"Fiona" = { url = "https://github.com/OpenDroneMap/windows-deps/releases/download/2.6.0/fiona-1.10.1-cp312-cp312-win_amd64.whl", marker = "sys_platform == 'win32'" }
54+
"rasterio" = { url = "https://github.com/OpenDroneMap/windows-deps/releases/download/2.6.0/rasterio-1.4.3-cp312-cp312-win_amd64.whl", marker = "sys_platform == 'win32'" }
55+
# NOTE we are using GDAL 3.11.1 for Windows, but 3.8.4 for Linux/Mac due to underlying system libs
56+
"gdal" = { url = "https://github.com/OpenDroneMap/windows-deps/releases/download/2.6.0/gdal-3.11.1-cp312-cp312-win_amd64.whl", marker = "sys_platform == 'win32'" }
57+
58+
[dependency-groups]
59+
resize = [
60+
"piexif>=1.1.3",
61+
]

requirements.txt

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)