Skip to content

Commit

Permalink
[BREAKING] Upgrade required Python version to 3.11, upgrade packages …
Browse files Browse the repository at this point in the history
…GDAL to 3.6 and autopep8 to 2.0 (#166)

* replace python 3.7 by python 3.11 in all relevant files

* pylint checks only for Python 3.11

* replace gdal 3.4 by gdal 3.6 in all relevant files

* update dev deps to latest minor version

it's only autopep8...

BREAKING CHANGE:
You need to create a new Anaconda environment with Python v3.11 for this versino. These are the steps: 
1. Remove existing environment:
`conda env remove -n gdal-user`
2. Create new environment and install wahoomc:
```
conda create -n gdal-user python=3.11 geojson=2.5 gdal=3.6 pip --channel conda-forge --override-channels
conda activate gdal-user
pip install wahoomc
```
  • Loading branch information
treee111 authored Feb 3, 2023
1 parent 2906a56 commit afb3d1e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10"]
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down
6 changes: 3 additions & 3 deletions conda_env/gdal-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: gdal-dev
channels:
- conda-forge
dependencies:
- python=3.7
- gdal=3.4.*
- python=3.11
- gdal=3.6.*
- requests=2.28.*
- pylint=2.15.*
- geojson=2.5.*
- shapely=1.8.*
- autopep8=1.7.*
- autopep8=2.0.*
- mock
- twine
- pip
Expand Down
4 changes: 2 additions & 2 deletions conda_env/gdal-user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: gdal-user
channels:
- conda-forge
dependencies:
- python=3.7
- python=3.11
- geojson=2.5.*
- gdal=3.4.*
- gdal=3.6.*
- pip
- pip:
- wahoomc==3.2.0
2 changes: 1 addition & 1 deletion docs/QUICKSTART_ANACONDA.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ mkdir -p .openstreetmap/osmosis/plugins
1. Open terminal (macOS/Linux) or **Anaconda Prompt** (Windows, via Startmenu)
2. Create a new Anaconda environment with needed packages
```
conda create -n gdal-user python=3.7 geojson=2.5 gdal=3.4 pip --channel conda-forge --override-channels
conda create -n gdal-user python=3.11 geojson=2.5 gdal=3.6 pip --channel conda-forge --override-channels
```
3. activate Anaconda environment with the command printed out (this needs to be done each time you want to use wahooMapsCreator maps)
```
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ classifiers =

[options]
packages = wahoomc, wahoomc.init
python_requires = >=3.7
python_requires = >=3.11
install_requires =
requests==2.28.*
shapely==1.8.*
Expand Down

0 comments on commit afb3d1e

Please sign in to comment.