Skip to content

Commit d5fa15e

Browse files
committed
Merge branch 'release/6.2.0'
2 parents 66b3f0c + 7182482 commit d5fa15e

File tree

26 files changed

+240
-83
lines changed

26 files changed

+240
-83
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
matrix:
1010
python-version: ["3.7", "3.8", "3.9", "3.10"]
1111
wagtail-version:
12-
#- 2.14.2 (not supported due to issues with migrations)
13-
- 2.15.4
14-
- 2.16.1
12+
- 2.15.5
13+
- 2.16.2
14+
- 3.0.1
1515
services:
1616
postgres:
1717
image: postgis/postgis:12-2.5
@@ -35,6 +35,7 @@ jobs:
3535
- name: Install dependencies
3636
run: |
3737
set -xe
38+
sudo apt-get update
3839
sudo apt-get install gdal-bin libgdal-dev
3940
python -m pip install --upgrade pip
4041
pip install .[test]
@@ -61,7 +62,7 @@ jobs:
6162
with:
6263
options: "--check --verbose"
6364
src: "."
64-
version: "21.5b1"
65+
version: "22.3.0"
6566

6667
lint-isort:
6768
runs-on: ubuntu-latest

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,6 @@ tests/static/*
5757
tests/media/*
5858
!tests/static/.gitkeep
5959
!tests/media/.gitkeep
60+
61+
# Local env
62+
.env.local

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
# Changelog
22

3-
## [6.1.0] - 2022.02.20
3+
## [6.2.0] - 2022.07.03
4+
### Added
5+
- Add Wagtail 3 compability (@marteinn)
6+
7+
### Changed
8+
- Make GEO_WIDGET_EMPTY_LOCATION False by default (@marteinn)
9+
10+
### Removed
11+
- Drop support for Wagtail 2.14 (@marteinn)
12+
13+
### Fixed
14+
- Add support for running outside of docker with custom .env file in development (@marteinn)
415

16+
17+
## [6.1.0] - 2022.02.20
518
### Added
619
- Add geocoding support for Mapbox (Martin Sandström)
720
- Add Wagtail 2.16 support

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ MAINTAINER Frojd
33
LABEL version="v0.1.0"
44

55
ENV PYTHONUNBUFFERED=1 \
6-
REQUIREMENTS=requirements.txt \
76
APP_LOG_DIR=/var/log/app
87

98
ADD . /app/
@@ -21,7 +20,8 @@ RUN pip install --upgrade pip \
2120
&& pip install -e .[test] --no-cache-dir \
2221
&& pip install psycopg2-binary==2.9.3 \
2322
&& pip install ipython \
24-
&& pip install pywatchman
23+
&& pip install pywatchman \
24+
&& pip install python-dotenv
2525

2626
EXPOSE 8080
2727

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ Wagtail-Geo-Widget is the complete map solution for your Wagtail site.
2121

2222
## Documentation
2323

24-
- [Getting started with Google Maps](./docs/getting-started-with-google-maps.md)
25-
- [Getting started with Leaflet](./docs/getting-started-with-leaflet.md)
26-
- [Settings](./docs/settings.md)
27-
- [Adding the widget to a Page](./docs/adding-to-a-page.md)
28-
- [Integrating with GeoDjango](./docs/integrating-with-geodjango.md)
29-
- [Adding to a StreamField](./docs/adding-to-a-streamfield.md)
30-
- [Supported Geocoders](./docs/supported-geocoders.md)
31-
- [FAQ](./docs/faq.md)
24+
- [Getting started with Google Maps](https://github.com/Frojd/wagtail-geo-widget/blob/main/getting-started-with-google-maps.md)
25+
- [Getting started with Leaflet](https://github.com/Frojd/wagtail-geo-widget/blob/main/docs/getting-started-with-leaflet.md)
26+
- [Settings](https://github.com/Frojd/wagtail-geo-widget/blob/main/docs/settings.md)
27+
- [Adding the widget to a Page](https://github.com/Frojd/wagtail-geo-widget/blob/main/docs/adding-to-a-page.md)
28+
- [Integrating with GeoDjango](https://github.com/Frojd/wagtail-geo-widget/blob/main/docs/integrating-with-geodjango.md)
29+
- [Adding to a StreamField](https://github.com/Frojd/wagtail-geo-widget/blob/main/docs/adding-to-a-streamfield.md)
30+
- [Supported Geocoders](https://github.com/Frojd/wagtail-geo-widget/blob/main/docs/supported-geocoders.md)
31+
- [FAQ](https://github.com/Frojd/wagtail-geo-widget/blob/main/docs/faq.md)
3232

3333

3434
## Contribute

docs/adding-to-a-page.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,4 @@ class MyPageWithZoomField(Page):
132132

133133
### More examples
134134

135-
For more examples, look at the [example](https://github.com/Frojd/wagtail-geo-widget/blob/develop/example/geopage/models.py).
135+
For more examples, look at the [example](https://github.com/Frojd/wagtail-geo-widget/blob/develop/tests/geopage/models.py).

docs/adding-to-a-streamfield.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,4 @@ class GeoStreamPage(Page):
8484

8585
### More examples
8686

87-
For more examples, look at the [example](https://github.com/Frojd/wagtail-geo-widget/blob/develop/example/geopage/models.py#L64).
87+
For more examples, look at the [example](https://github.com/Frojd/wagtail-geo-widget/blob/develop/tests/geopage/models.py#L149).

docs/integrating-with-geodjango.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ class MyPageWithZoomField(Page):
6969

7070
### More examples
7171

72-
For more examples, look at the [example](https://github.com/Frojd/wagtail-geo-widget/blob/develop/example/geopage/models.py).
72+
For more examples, look at the [example](https://github.com/Frojd/wagtail-geo-widget/blob/develop/tests/geopage/models.py).

manage.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
11
#!/usr/bin/env python
2+
import inspect
23
import os
34
import sys
45

6+
import dotenv
7+
8+
9+
def if_exists_load_env(name: str) -> None:
10+
current_frame = inspect.currentframe()
11+
if not current_frame:
12+
return
13+
14+
inspect_file = inspect.getfile(current_frame)
15+
env_path = os.path.dirname(os.path.abspath(inspect_file))
16+
env_file = "{env_path}/{name}".format(env_path=env_path, name=name)
17+
18+
if os.path.exists(env_file):
19+
dotenv.load_dotenv(env_file, override=True)
20+
21+
522
if __name__ == "__main__":
623
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.examplesite.settings.dev")
724

25+
if_exists_load_env(".env.local")
26+
827
from django.core.management import execute_from_command_line
928

1029
execute_from_command_line(sys.argv)

requirements.txt

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

0 commit comments

Comments
 (0)