diff --git a/.github/workflows/plugin-package.yml b/.github/workflows/plugin-package.yml index 34af32b..0c2547b 100644 --- a/.github/workflows/plugin-package.yml +++ b/.github/workflows/plugin-package.yml @@ -39,8 +39,8 @@ jobs: if: ${{ github.event_name == 'push' }} run: qgis-plugin-ci push-translation ${{ secrets.TX_TOKEN }} - - name: Package PyPI Packages - run: ./scripts/package-pip-packages.sh + - name: Install pgservice parser + run: pip install -r requirements.txt -t pg_service_parser/libs - name: Package run: | diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..555c849 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +pgserviceparser@git+https://github.com/opengisch/pgserviceparser.git@main \ No newline at end of file diff --git a/scripts/package-pip-packages.sh b/scripts/package-pip-packages.sh deleted file mode 100755 index ae54f5a..0000000 --- a/scripts/package-pip-packages.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -LIBS_DIR="pg_service_parser/libs" - -echo download and unpack pgserviceparser -#create temp folder -mkdir -p temp -#download the wheel -pip download -v pgserviceparser --only-binary :all: -d temp/ -#unpack all the wheels found (means including dependencies) -unzip -o "temp/*.whl" -d $LIBS_DIR -#remove temp folder -rm -r temp -#set write rights to group (because qgis-plugin-ci needs it) -chmod -R g+w $LIBS_DIR - -#create the __init__.py in libs folder -cd $LIBS_DIR -touch __init__.py -chmod g+w __init__.py