Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganize code #10

Closed
wants to merge 6 commits into from
Closed
Changes from 1 commit
Commits
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
Next Next commit
Change to use src structure
LKajan committed Sep 27, 2024
commit 238ac63c2a65b396d38a31969efadb882f377e01
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "arho_feature_template/qgis_plugin_tools"]
path = arho_feature_template/qgis_plugin_tools
[submodule "src/arho_feature_template/qgis_plugin_tools"]
path = src/arho_feature_template/qgis_plugin_tools
url = https://github.com/GispoCoding/qgis_plugin_tools
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -24,17 +24,17 @@ A symbolic link / directory junction should be made to the directory containing

On Windows Command promt
```console
mklink /J %AppData%\QGIS\QGIS3\profiles\default\python\plugins\arho_feature_template .\arho_feature_template
mklink /J %AppData%\QGIS\QGIS3\profiles\default\python\plugins\arho_feature_template .\src\arho_feature_template
```

On Windows PowerShell
```console
New-Item -ItemType SymbolicLink -Path ${env:APPDATA}\QGIS\QGIS3\profiles\default\python\plugins\arho_feature_template -Value ${pwd}\arho_feature_template
New-Item -ItemType SymbolicLink -Path ${env:APPDATA}\QGIS\QGIS3\profiles\default\python\plugins\arho_feature_template -Value ${pwd}\src\arho_feature_template
```

On Linux
```console
ln -s arho_feature_template/ ~/.local/share/QGIS/QGIS3/profiles/default/python/plugins/arho_feature_template
ln -s src/arho_feature_template/ ~/.local/share/QGIS/QGIS3/profiles/default/python/plugins/arho_feature_template
```

After that you should be able to enable the plugin in the QGIS Plugin Manager.
2 changes: 1 addition & 1 deletion arho-feature-template.code-workspace
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@
},
"pathMappings": [
{
"localRoot": "${workspaceFolder}/arho_feature_template",
"localRoot": "${workspaceFolder}/src/arho_feature_template",
"remoteRoot": "${env:APPDATA}/QGIS/QGIS3/profiles/default/python/plugins/arho_feature_template"
}
]
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ version = "0.1.0"
requires-python = ">= 3.8"

[tool.setuptools]
package-dir = {"" = "src"}
packages = ["arho_feature_template"]

[tool.pytest.ini_options]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.