Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pyinstaller exe error #15

Merged
merged 3 commits into from
Jan 15, 2020
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
4 changes: 4 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ test_script:
after_test:
- pyinstaller malstroem.spec
- ps: ls dist
# Check that malstroem.exe works
- conda deactivate
- ps: md test_outdir
- ps: dist/malstroem complete -dem tests/data/dtm.tif -outdir test_outdir -r 10

artifacts:
- path: dist\*
1 change: 1 addition & 0 deletions environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies:
- pytest
- python=3.7
- scipy
- setuptools==44.0.0
- pip:
- click-log==0.1.8

6 changes: 4 additions & 2 deletions tests/test_raster_dem.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import numpy as np

from osgeo import osr
from malstroem import dem, io
from data.fixtures import dtmfile, filledfile, flowdirnoflatsfile

Expand Down Expand Up @@ -27,7 +27,9 @@ def assert_rasters_are_equal(file1, file2):
reader2 = io.RasterReader(file2)

assert reader1.transform == reader2.transform
assert reader1.crs == reader2.crs
sr1 = osr.SpatialReference(reader1.crs)
sr2 = osr.SpatialReference(reader2.crs)
assert sr1.IsSame(sr2), f"CRSs are different: sr1: {sr1.ExportToWkt()} sr2: {sr2.ExportToWkt()}"

data1 = reader1.read()
data2 = reader2.read()
Expand Down