Skip to content

Commit de004e8

Browse files
Merge #39
39: specify versions for all dependencies r=michaelmattig a=ChristianBeilschmidt Co-authored-by: Christian Beilschmidt <[email protected]>
2 parents 943308a + 29d6d50 commit de004e8

File tree

6 files changed

+56
-28
lines changed

6 files changed

+56
-28
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "pip"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
day: "sunday" # to be checked before Monday

.github/workflows/ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,22 @@ jobs:
3030
- name: Install build dependencies
3131
run: |
3232
python -m pip install --upgrade pip
33-
pip install -r requirements.txt
3433
pip install -e .
34+
pip install -e .[dev]
3535
- name: Check Formatting
3636
run: |
3737
python -m pycodestyle
38-
- name: Linter
38+
- name: Lint code
3939
run: |
4040
python -m pylint geoengine
41-
python -m pylint tests
4241
- name: Build
4342
run: python -m build .
43+
- name: Install test dependencies
44+
run: |
45+
pip install -e .[test]
46+
- name: Lint tests
47+
run: |
48+
python -m pylint tests
4449
- name: Test
4550
run: pytest
4651
# - name: Publish

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
- name: Install build dependencies
2727
run: |
2828
python -m pip install --upgrade pip
29-
pip install -r requirements.txt
3029
pip install -e .
30+
pip install -e .[dev]
3131
3232
- name: Generate Python Docs
3333
run: pdoc --html --output-dir docs geoengine

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Create a virtual environment (e.g., `python3 -m venv env`).
1010
Then, install the dependencies with:
1111

1212
```bash
13-
python3 -m pip install -r requirements.txt
1413
python3 -m pip install -e .
14+
python3 -m pip install -e .[test]
1515
```
1616

1717
Run tests with:
@@ -38,7 +38,7 @@ sudo apt-get install libgeos-dev libproj-dev
3838
You can build the package with:
3939

4040
```bash
41-
python3 -m pip install --upgrade build
41+
python3 -m pip install -e .[dev]
4242
python3 -m build
4343
```
4444

@@ -74,6 +74,15 @@ Generate documentation HTML with:
7474
pdoc3 --html --output-dir docs geoengine
7575
```
7676

77+
## Examples
78+
79+
There are several examples in the `examples` folder.
80+
It is necessary to install the dependencies with:
81+
82+
```bash
83+
python3 -m pip install -e .[examples]
84+
```
85+
7786
## Distribute to PyPI
7887

7988
### Test-PyPI

requirements.txt

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

setup.cfg

Lines changed: 29 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author_email = [email protected]
66
description = A package for easy access to Geo Engine instances
77
long_description = file: README.md
88
long_description_content_type = text/markdown
9-
url = https://www.geoengine.de
9+
url = https://github.com/geo-engine/geoengine-python
1010
project_urls =
1111
Bug Tracker = https://github.com/geo-engine/geoengine-python
1212
classifiers =
@@ -18,15 +18,34 @@ package_dir =
1818
packages = find:
1919
python_requires = >=3.7
2020
install_requires =
21-
geopandas
22-
numpy
23-
owslib
24-
pillow
25-
python-dotenv
26-
rasterio
27-
requests
28-
vega
29-
xarray
21+
geopandas >=0.9,<0.11
22+
numpy >=1.21,<2
23+
owslib >=0.25,<0.26
24+
pillow >=9.0,<10
25+
python-dotenv >=0.19,<0.20
26+
rasterio >=1.2,<2
27+
requests >= 2.26,<3
28+
vega >= 3.5,<4
29+
xarray >=0.19,<0.20
30+
31+
[options.extras_require]
32+
dev =
33+
build >=0.7,<0.8
34+
pdoc3 >=0.10,<0.11
35+
pycodestyle >=2.8,<3 # formatter
36+
pylint >=2.11,<3 # code linter
37+
setuptools >=42,<61
38+
twine >=3.4,<4 # PyPI
39+
wheel >=0.37,<0.38
40+
test =
41+
matplotlib >=3.4,<4
42+
pytest >=6.2,<7
43+
requests_mock >=1.9,<2
44+
examples =
45+
cartopy==0.19.0.post1 # for WMS example
46+
matplotlib >=3.4,<4
47+
scipy >=1.7,<2 # for WMS example
48+
3049

3150
[options.packages.find]
3251
where = .

0 commit comments

Comments
 (0)