Skip to content

Commit

Permalink
remove subdependancies from deps, replace pydatic-geojson with geojso…
Browse files Browse the repository at this point in the history
…n pydantic, see if we can make this work
  • Loading branch information
sevcikp committed Jul 25, 2024
1 parent 7869993 commit 43c40db
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@ jobs:
sudo apt-add-repository -y ppa:ubuntugis/ubuntugis-unstable
sudo apt-get -y update
sudo apt-get install -y gdal-bin python-tk libgdal-dev libproj-dev libgeos-dev
GDAL_VERSION=`gdalinfo --version | grep -Eo "[0-9]\.[0-9]\.[0-9]+"`
python -m pip install --upgrade pip wheel
pip install -r test/requirements.txt
pip install gdal==${GDAL_VERSION} -e .[complete]
pip install -e .[complete]
pip freeze
- name: Start containers
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ Changelog
* core

* fix annotation of `test/test_io_raster.py::test_read_raster` and split it into `test/test_io_raster.py::test_read_raster` and `test/test_io_raster.py::test_read_remote_raster`
* in `mapchete.geometry.types` try using `geojson-pydantic`

* packaging
* replace `pydantic-geojson` with `geojson-pydantic`

* align dependencies `requirements.txt`, `requirements-dev.txt` with `pyproject.toml` with `hatch` package

Expand Down
2 changes: 1 addition & 1 deletion mapchete/geometry/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
runtime_checkable,
)

from pydantic_geojson import GeometryType as GeoJSONGeometryType
from geojson_pydantic import FeatureCollection as GeoJSONGeometryType
from shapely.geometry import (
GeometryCollection,
LinearRing,
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@ dependencies = [
"distributed",
"fiona>=1.8.13.post1",
"fsspec",
"gdal>=3.6.4",
"geojson-pydantic",
"importlib-metadata",
"importlib-resources",
"numpy>=1.16",
"oyaml",
"pydantic>=2.3.0",
"pydantic-geojson",
"pydantic_settings>=2.0.0",
"pyproj",
"python-dateutil",
Expand Down Expand Up @@ -80,7 +79,6 @@ profiling = [
]
s3 = [
"aiobotocore>=1.1.2",
"aioitertools>=0.7.0",
"boto3>=1.14.44",
"fsspec[s3]",
"s3fs!=2023.9.0",
Expand Down
4 changes: 1 addition & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
aiobotocore>=1.1.2
aiohttp
aioitertools>=0.7.0
boto3>=1.14.44
cachetools
click-plugins
Expand All @@ -15,15 +14,14 @@ fsspec
fsspec[http,s3]>=2023.12.0
fsspec[http]
fsspec[s3]
gdal>=3.6.4
geojson-pydantic
importlib-metadata
importlib-resources
lxml
matplotlib
memray
numpy>=1.16
oyaml
pydantic-geojson
pydantic-settings>=2.0.0
pydantic>=2.3.0
pyproj
Expand Down

0 comments on commit 43c40db

Please sign in to comment.