Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
4ca8cfb
Remove debug print
Rikuoja Nov 17, 2021
6a6cb73
Fix __int__ DeprecationWarning
Rikuoja Nov 17, 2021
12ccc6f
Add feature to intersect isochrones with input polygons
Rikuoja Nov 19, 2021
f4d504f
Use pytest-qgis in tests
Rikuoja Nov 19, 2021
f3bae8b
Move boundary layer selection under point layer selection
Rikuoja Nov 19, 2021
357e517
Update qgis_plugin_tools
Rikuoja Nov 19, 2021
ae72aea
Fix tests to use default fid string
Rikuoja Nov 19, 2021
29e9cc8
Add flake8-qgis
Rikuoja Nov 19, 2021
c0cd7ab
Update pre-commit config
Rikuoja Nov 19, 2021
1708dfe
Fix black
Rikuoja Nov 19, 2021
d8feea5
Update workflows
Rikuoja Nov 19, 2021
cee7fe4
Fix flake8 that black broke
Rikuoja Nov 19, 2021
235e517
Revert removing iface from plugin call to fix 3.16 tests
Rikuoja Nov 23, 2021
c6b30dd
Fix isort
Rikuoja Nov 23, 2021
f74f829
Only run our own tests in CI
Rikuoja Nov 23, 2021
e10e0db
Try fixing qgis-plugin-ci repo address
Rikuoja Nov 24, 2021
71503ad
Failed fixing qgis-plugin-ci repo address
Rikuoja Nov 24, 2021
59cbabc
Fix project_slug in qgis-plugin-ci
Rikuoja Nov 24, 2021
3d4983d
Update version to 0.2.0
Rikuoja Nov 24, 2021
49f3e6d
Exclude metadata.txt from pre-commit
Rikuoja Nov 24, 2021
b0f2844
Remove extra space from workflow
Rikuoja Nov 24, 2021
3b3b698
Remove another extra space from workflow
Rikuoja Nov 24, 2021
3573570
Update CHANGELOG.md
Rikuoja Nov 24, 2021
23f5cea
Update version to 0.2.1
Rikuoja Nov 24, 2021
5f13224
Add feature to merge isochrones by field value
Rikuoja Nov 25, 2021
64033d7
Merge branch 'master' of github.com:GispoCoding/school-catchment-plugin
Rikuoja Nov 25, 2021
418dddc
Add missing test fixture
Rikuoja Nov 26, 2021
797cfd1
Fix bug that returns field name instead of field
Rikuoja Nov 26, 2021
5d9a4f4
Always report exceptions to the user
Rikuoja Nov 26, 2021
2a1cb76
Fix windows tests
Rikuoja Nov 26, 2021
1c3df05
Use our qgis-plugin-ci to get changelog for now
Rikuoja Nov 26, 2021
300cfc2
Fix bugs when merging isochrones
Rikuoja Nov 30, 2021
b213c7f
Add walking distance feature
Rikuoja Dec 8, 2021
b218dff
Decrease increments; make about links clickable
Rikuoja Dec 17, 2021
2dc3911
Fix changelog date
Rikuoja Dec 17, 2021
a979eba
Add IIEP logo to metadata
Rikuoja Oct 31, 2022
8f11416
Add iiep_logo.svg
Rikuoja Oct 31, 2022
561f3b8
Try updating pre-commit action to fix black
Rikuoja Oct 31, 2022
3a7e3f6
Update version number
Rikuoja Oct 31, 2022
5aad217
Update pre-commit hooks to fix black
Rikuoja Oct 31, 2022
ea1eaa7
Merge branch 'master' of github.com:GispoCoding/school-catchment-plugin
Rikuoja Oct 31, 2022
6c82d69
Fix black
Rikuoja Oct 31, 2022
323e059
Downgrade flake8 to fix crash
Rikuoja Oct 31, 2022
b3ace10
Fix 3.22 test crash due to qgis/QGIS#50729
Rikuoja Oct 31, 2022
de7ade0
Update windows test LTR version to current
Rikuoja Oct 31, 2022
b4d626f
Update CHANGELOG.md
Rikuoja Oct 31, 2022
456c184
Use correct size iiep icon
Rikuoja Nov 1, 2022
7d64b3b
Update CHANGELOG.md
Rikuoja Nov 1, 2022
91fd0d0
Update version number
Rikuoja Nov 1, 2022
da44d37
Disable isort
mipeso Jul 24, 2023
e3fd672
Update README
mipeso Jul 24, 2023
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
2 changes: 1 addition & 1 deletion .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: pre-commit/action@v2.0.2
- uses: pre-commit/action@v3.0.0
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ jobs:
# run: sudo apt-get update && sudo apt-get install qt5-default qttools5-dev-tools

- name: Install qgis-plugin-ci
run: pip3 install qgis-plugin-ci
run: pip3 install git+https://github.com/GispoCoding/qgis-plugin-ci.git

# When osgeo upload is wanted: --osgeo-username usrname --osgeo-password ${{ secrets.OSGEO_PASSWORD }}
# When Transifex is wanted: --transifex-token ${{ secrets.TRANSIFEX_TOKEN }}
- name: Deploy plugin
run: qgis-plugin-ci release ${GITHUB_REF/refs\/tags\//} --osgeo-username ${{ secrets.OSGEO_USER }} --osgeo-password ${{ secrets.OSGEO_PASSWORD }} --github-token ${{ secrets.GITHUB_TOKEN }} --disable-submodule-update
run: qgis-plugin-ci release latest --osgeo-username ${{ secrets.OSGEO_USER }} --osgeo-password ${{ secrets.OSGEO_PASSWORD }} --github-token ${{ secrets.GITHUB_TOKEN }} --disable-submodule-update
10 changes: 5 additions & 5 deletions .github/workflows/test-and-pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
# Remove unsupported versions and add more versions. Use LTR version in the cov_tests job
docker_tags: [release-3_16, latest]
docker_tags: [release-3_16, final-3_22_9, latest]
fail-fast: false

# Steps represent a sequence of tasks that will be executed as part of the job
Expand All @@ -31,7 +31,7 @@ jobs:

# Runs all tests
- name: Run tests
run: docker run --rm --net=host --volume `pwd`:/app -w=/app -e QGIS_PLUGIN_IN_CI=1 qgis/qgis:${{ matrix.docker_tags }} sh -c "pip3 install -q -r requirements-test.txt pytest-cov && xvfb-run -s '+extension GLX -screen 0 1024x768x24' pytest -v --cov --cov-report=xml"
run: docker run --rm --net=host --volume `pwd`:/app -w=/app -e QGIS_PLUGIN_IN_CI=1 qgis/qgis:${{ matrix.docker_tags }} sh -c "pip3 install -q -r requirements-test.txt pytest-cov && xvfb-run -s '+extension GLX -screen 0 1024x768x24' pytest -v --cov --cov-report=xml Catchment/test"

# Upload coverage report. Will not work if the repo is private
- name: Upload coverage to Codecov
Expand Down Expand Up @@ -59,10 +59,10 @@ jobs:
- name: Run tests
shell: pwsh
run: |
$env:PATH="C:\Program Files\QGIS 3.16\bin;$env:PATH"
$env:PATH="C:\Program Files\QGIS 3.22.11\bin;$env:PATH"
$env:QGIS_PLUGIN_IN_CI=1
python-qgis-ltr.bat -m pip install -q -r requirements-test.txt
python-qgis-ltr.bat -m pytest -v
python-qgis-ltr.bat -m pytest -v Catchment/test

pre-release:
name: "Pre Release"
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
# run: sudo apt-get update && sudo apt-get install qt5-default qttools5-dev-tools

- name: Install qgis-plugin-ci
run: pip3 install qgis-plugin-ci
run: pip3 install git+https://github.com/GispoCoding/qgis-plugin-ci.git

# When Transifex is wanted: --transifex-token ${{ secrets.TRANSIFEX_TOKEN }}
- name: Deploy plugin
Expand Down
25 changes: 13 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,30 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
rev: v4.0.1
hooks:
- id: trailing-whitespace
exclude: Catchment/metadata.txt
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/PyCQA/isort
rev: 5.8.0
hooks:
- id: isort
# - repo: https://github.com/PyCQA/isort
# rev: 5.10.1
# hooks:
# - id: isort
- repo: https://github.com/psf/black
rev: 20.8b1
rev: 22.10.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.812
hooks:
- id: mypy
# - repo: https://github.com/pre-commit/mirrors-mypy
# rev: v0.812
# hooks:
# - id: mypy
- repo: https://github.com/PyCQA/flake8
rev: 3.9.1
rev: 4.0.1
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear~=21.4.3
- pep8-naming~=0.11.1
- flake8-annotations~=2.6.2
- flake8-qgis>=0.1.3
2 changes: 1 addition & 1 deletion .qgis-plugin-ci
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugin_path: Catchment
github_organization_slug: GispoCoding
project_slug: catchment-plugin
project_slug: school-catchment-plugin
transifex_coordinator: replace-me
transifex_organization: replace-me
61 changes: 60 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,64 @@
# CHANGELOG
## 0.4.3 - 2021-11-01

### Changed

- Changed IIEP logo to correct size

###
## 0.4.2 - 2021-10-31

### Changed

- IIEP logo added
- Test runners updated to latest versions and fixed

## 0.4.1 - 2021-12-17

### Changed

- Fix bug that made links in About panel non-clickable
- Decrease time and distance increments to allow calculating 100 meter and 1 minute intervals

## 0.4.0 - 2021-12-08

### Added

- Option to subtract indoor walking distance per point before calculating point isochrone

## 0.3.1 - 2021-11-30
### Changed

- Fix bug merging isochrones for layers with several attribute fields
- Fix bug when merged isochrones are multipolygons

## 0.3.0 - 2021-11-25

### Added

- Option to merge isochrones by field value, e.g. merging isochrones of multiple entrances of the same building

### Changed

- Isochrone original_fid field is now string (due to possible merging of isochrones)
- UI checkboxes moved to separate Extra options field to indicate they are optional

## 0.2.1 - 2021-11-24

### Changed

- Fixes to release workflow

## 0.2.0 - 2021-11-24

### Added

- Option to limit areas to polygon boundaries, i.e. limiting isochrones to given polygons around each point

### Changed

- Updated test and development dependencies
- Isochrones are now multipolygons (due to boundary intersections) instead of simple polygons

## 0.1.0 - 2021-06-11

- First official version published
Loading