Skip to content

Commit eef3dc3

Browse files
require spatialist>=0.15.1, req. file restructuring
1 parent 4e1342e commit eef3dc3

File tree

5 files changed

+41
-47
lines changed

5 files changed

+41
-47
lines changed

.github/workflows/conda-install.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on: [ push ]
55
jobs:
66
build-linux:
77
runs-on: ubuntu-latest
8+
defaults:
9+
run:
10+
shell: micromamba-shell {0}
811
services:
912
postgres:
1013
image: postgis/postgis:16-3.4
@@ -15,10 +18,13 @@ jobs:
1518
steps:
1619
- uses: actions/checkout@v3
1720
- name: Set up Python 3.10
18-
uses: conda-incubator/setup-miniconda@v3
21+
uses: mamba-org/setup-micromamba@v2
1922
with:
20-
auto-update-conda: true
21-
python-version: '3.10'
23+
environment-file: environment.yml
24+
cache-environment: true
25+
init-shell: bash
26+
generate-run-shell: true
27+
post-cleanup: 'all'
2228
- name: Install ESA SNAP
2329
run: |
2430
wget -nv https://download.esa.int/step/snap/12.0/installers/esa-snap_all_linux-12.0.0.sh
@@ -30,8 +36,8 @@ jobs:
3036
echo "PROJ_DATA=$CONDA/share/proj" >> $GITHUB_ENV
3137
- name: Install python packages
3238
run: |
33-
conda install -y python=3.10 flake8 pytest coverage
34-
conda env update --file environment.yml --name base
39+
micromamba install -y python=3.10 flake8 -n ps_test
40+
micromamba env update --file environment-dev.yml -n ps_test
3541
- name: Lint with flake8
3642
run: |
3743
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
@@ -42,13 +48,15 @@ jobs:
4248
- name: Test with pytest
4349
run: |
4450
coverage run -m pytest
51+
coverage xml
4552
env:
4653
PGUSER: postgres
4754
PGPASSWORD: Password12!
4855
- name: Publish to coveralls.io
4956
uses: coverallsapp/github-action@v2
5057
with:
5158
github-token: ${{ github.token }}
59+
format: cobertura
5260

5361
build-windows:
5462
runs-on: windows-latest
@@ -62,7 +70,7 @@ jobs:
6270
activate-environment: ps_test_dev
6371
auto-update-conda: true
6472
python-version: '3.12'
65-
environment-file: environment-dev.yml
73+
environment-file: environment.yml
6674
auto-activate-base: false
6775
- uses: nyurik/action-setup-postgis@v2
6876
with:
@@ -76,6 +84,9 @@ jobs:
7684
echo %CONDA%\Scripts>> %GITHUB_PATH%
7785
echo C:\esa-snap\bin>> %GITHUB_PATH%
7886
echo PROJ_DATA=%CONDA%\share\proj>> %GITHUB_ENV%
87+
- name: Install python packages
88+
run: |
89+
conda env update --file environment-dev.yml --name ps_test_dev
7990
- name: Install pyroSAR
8091
run: |
8192
pip install .

environment-dev.yml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,5 @@ channels:
33
- conda-forge
44
- defaults
55
dependencies:
6-
- python>=3.8
7-
- progressbar2
8-
- numpy<2.0
9-
- spatialist>=0.15.0
10-
- pyyaml
11-
- requests
12-
- psycopg2
13-
- sqlalchemy>=1.4,<2.0
14-
- sqlalchemy-utils>=0.37
15-
- geoalchemy2<0.14.0
16-
- gdal>=2.4
17-
- libgdal
18-
- pillow
19-
- lxml
20-
- packaging
21-
- libspatialite>=5.1.0
22-
- coveralls
236
- coverage
24-
- pytest
7+
- pytest

environment.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ channels:
33
- conda-forge
44
- defaults
55
dependencies:
6-
- python>=3.8
7-
- progressbar2
8-
- numpy<2.0
9-
- spatialist>=0.15.0
10-
- pyyaml
11-
- requests
12-
- psycopg2
13-
- sqlalchemy>=1.4,<2.0
14-
- sqlalchemy-utils>=0.37
15-
- geoalchemy2<0.14.0
166
- gdal>=2.4
7+
- geoalchemy2<0.14.0
178
- libgdal
18-
- pillow
9+
- libspatialite>=5.1.0
1910
- lxml
11+
- numpy<2.0
2012
- packaging
21-
- libspatialite>=5.1.0
13+
- pillow
14+
- progressbar2
15+
- psycopg2
16+
- python>=3.8
17+
- pyyaml
18+
- requests
19+
- spatialist>=0.15.1
20+
- sqlalchemy>=1.4,<2.0
21+
- sqlalchemy-utils>=0.37

readthedocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
version: 2
22

33
build:
4-
os: "ubuntu-22.04"
4+
os: "ubuntu-24.04"
55
tools:
6-
python: "mambaforge-22.9"
6+
python: "mambaforge-latest"
77

88
conda:
99
environment: environment-doc.yml

requirements.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
progressbar2
1+
geoalchemy2<0.14.0
2+
lxml
23
numpy<2.0
3-
spatialist>=0.15.0
4+
packaging
5+
pillow
6+
progressbar2
7+
psycopg2
48
pyyaml
59
requests
6-
psycopg2
7-
SQLAlchemy>=1.4,<2.0
8-
SQLAlchemy-Utils>=0.37
9-
GeoAlchemy2<0.14.0
10-
Pillow
11-
lxml
12-
packaging
10+
spatialist>=0.15.1
11+
sqlalchemy>=1.4,<2.0
12+
sqlalchemy-utils>=0.37

0 commit comments

Comments
 (0)