Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and adrien-berchet committed Oct 30, 2024
1 parent dc421b1 commit 77d096b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/test_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ jobs:
${{ matrix.python-version.pkg_name }}
libgdal
libspatialite==5.0.1
pyproj
rasterio<1.4
pyproj<=3.6.0
rasterio<=1.3.8
condarc: |
channels:
- conda-forge
Expand Down Expand Up @@ -161,6 +161,8 @@ jobs:
- name: Run the tests
env:
SPATIALITE_LIBRARY_PATH: /home/runner/micromamba/envs/test_${{ matrix.python-version.flag }}/lib/mod_spatialite.so
PROJ_DATA: /home/runner/micromamba/envs/test_${{ matrix.python-version.flag }}/share/proj
PROJ_LIB: /home/runner/micromamba/envs/test_${{ matrix.python-version.flag }}/share/proj
COVERAGE_FILE: .coverage
PYTEST_MYSQL_DB_URL: mysql://gis:gis@127.0.0.1:3307/gis
PYTEST_MARIADB_DB_URL: mariadb://gis:gis@127.0.0.1:3308/gis
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ pytest
pytest-cov
pytest-html
pytest-mypy
rasterio>=1.2,<1.4
rasterio>=1.2,<=1.3.8
6 changes: 2 additions & 4 deletions tests/gallery/test_insert_raster.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ def input_img(self, conn, tmpdir, request):
with open(filename, "wb") as f:
f.write(data.tobytes())
return filename, pixel_type

def test_insert_raster(self, session, conn, input_img):
"""Insert a TIFF image into a raster column."""
filename, pixel_type = input_img
Expand All @@ -223,10 +224,7 @@ def test_insert_raster(self, session, conn, input_img):

# Load the image and transform it into a WKB
print("# ######################################################## #")
from osgeo import osr
print(osr.GetPROJVersionMajor())
print(osr.GetPROJVersionMinor())
print(osr.GetPROJSearchPaths())
print(rasterio.show_versions())
print("# ######################################################## #")
with rasterio.open(str(filename), "r+") as dataset:
dataset.crs = rasterio.crs.CRS.from_epsg(4326)
Expand Down

0 comments on commit 77d096b

Please sign in to comment.