From 4e08e584ba507db263f9874deb2549239618c9eb Mon Sep 17 00:00:00 2001 From: Ismail Sunni Date: Mon, 8 May 2023 14:10:34 +0700 Subject: [PATCH 1/3] Remove packager github action for now. --- .github/workflows/packager.yml | 51 ---------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 .github/workflows/packager.yml diff --git a/.github/workflows/packager.yml b/.github/workflows/packager.yml deleted file mode 100644 index 7122a98..0000000 --- a/.github/workflows/packager.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: "📦 Packager" - -env: - PROJECT_FOLDER: "qgis_hub_plugin" - PYTHON_VERSION: 3.9 - -on: - push: - branches: [ main ] - - -jobs: - packaging: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@2 - - - name: Setup Python - uses: actions/setup-python@v4 - with: - cache: "pip" - cache-dependency-path: "requirements/packaging.txt" - python-version: ${{ env.PYTHON_VERSION }} - - - name: Install system requirements - run: | - sudo apt update - sudo apt install qt5-qmake qttools5-dev-tools - - - name: Install project requirements - run: | - python -m pip install -U pip setuptools wheel - python -m pip install -U -r requirements/packaging.txt - - - name: Update translations - run: pylupdate5 -noobsolete -verbose ${{ env.PROJECT_FOLDER }}/resources/i18n/plugin_translation.pro - - - name: Compile translations - run: lrelease ${{ env.PROJECT_FOLDER }}/resources/i18n/*.ts - - - name: Package the latest version - run: qgis-plugin-ci package latest --allow-uncommitted-changes - - - uses: actions/upload-artifact@v2 - with: - name: ${{ env.PROJECT_FOLDER }}-latest - path: ${{ env.PROJECT_FOLDER }}.*.zip - if-no-files-found: error - From 24e5efd391eab91f2afce06f01095b7d2c1e065f Mon Sep 17 00:00:00 2001 From: Ismail Sunni Date: Mon, 8 May 2023 14:14:24 +0700 Subject: [PATCH 2/3] Update limit of resource api. --- qgis_hub_plugin/core/api_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qgis_hub_plugin/core/api_client.py b/qgis_hub_plugin/core/api_client.py index e18385d..63bc002 100644 --- a/qgis_hub_plugin/core/api_client.py +++ b/qgis_hub_plugin/core/api_client.py @@ -9,7 +9,7 @@ def get_all_resources(params: dict = {}, force_update=False): params["format"] = "json" - params["limit"] = 200 # hardcoded to get all resource, currently only 160 + params["limit"] = 1000 # hardcoded to get all resource, currently only ~160 # Check if the response file exits response_folder = Path(QgsApplication.qgisSettingsDirPath(), "qgis_hub") From cc7ea82c1548b6feae01bacf6c53f22d201dd658 Mon Sep 17 00:00:00 2001 From: Ismail Sunni Date: Mon, 8 May 2023 14:16:14 +0700 Subject: [PATCH 3/3] Move test directory. --- tests/{unit => qgis}/test_api_client.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename tests/{unit => qgis}/test_api_client.py (100%) diff --git a/tests/unit/test_api_client.py b/tests/qgis/test_api_client.py similarity index 100% rename from tests/unit/test_api_client.py rename to tests/qgis/test_api_client.py