Skip to content

martingu11/qgis_plugin_tools

 
 

Repository files navigation

QGIS Plugin tools

Warning: The API is not stable yet. Function and files may move between commits.

As it's a submodule, you can configure your GIT to auto update the submodule commit by running:

git config --global submodule.recurse true

The module is helping you with:

How to install it

For new plugin

This will create needed structure for your plugin

  1. Create new repository in Github (here using: https://github.com/GispoCoding/test-plugin-name)
  2. Follow these steps
    mkdir test-plugin-name
    cd test-plugin-name
    git init
    git remote add origin git@github.com:GispoCoding/test-plugin-name
    mkdir TestPlugin
    cd TestPlugin
    git submodule add https://github.com/GispoCoding/qgis_plugin_tools
    cp qgis_plugin_tools/infrastructure/creator.py .
    python creator.py -o GispoCoding -r test-plugin-name # Replace with your information
    rm creator.py
  3. Now edit metadata.txt with description etc. and commit changes.

For existing plugin

  1. Go to the root folder of your plugin code source
  2. git submodule add https://github.com/GispoCoding/qgis_plugin_tools.git

How to use it

Refer to usage documentation.

Plugin tree example

The plugin should follow the following file tree to get most out of this module.

Plugin Foo root folder:

  • plugin_repo # no '-' character!
    • .gitmodules
    • .gitattributes
    • .gitignore
    • .qgis-plugin-ci # to use qgis-plugin-ci
      • plugin_name # no '-' character!
        • .gitignore
        • qgis_plugins_tools/ # submodule
        • resources/
          • i18n/ # Alternatively translations could use Transifex
            • fi.ts
            • fi.qm
          • ui/
            • main_dialog.ui
          • icons/
            • my_icon.svg
        • test/
        • __init__.py
        • foo.py
        • metadata.txt
        • build.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%