Skip to content

Commit

Permalink
Merge pull request #80 from PUTvision/rename_directories
Browse files Browse the repository at this point in the history
Renamed 'plugin' directory to 'src'.
  • Loading branch information
przemyslaw-aszkowski authored Jan 21, 2023
2 parents 2b2239c + 67fec16 commit df37d65
Show file tree
Hide file tree
Showing 53 changed files with 8 additions and 120 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/python-app-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Prepare directory for packing with zip
run: |
mkdir -p out/deepness
cp -r plugin/deepness/ out/deepness/deepness
cp -r src/deepness/ out/deepness/deepness
- name: Update
run: |
sudo apt update
Expand All @@ -44,13 +44,13 @@ jobs:
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
python3 -m flake8 plugin/deepness/ --count --select=E9,F63,F7,F82 --show-source --statistics
python3 -m flake8 src/deepness/ --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
python3 -m flake8 plugin/deepness/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
python3 -m flake8 src/deepness/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
export PYTHONPATH="/usr/lib/python3/dist-packages":PYTHONPATH && echo "import qgis" | python3
export PYTHONPATH="$PYTHONPATH:$(pwd)/plugin"
export PYTHONPATH="$PYTHONPATH:$(pwd)/src"
export PYTHONPATH="$PYTHONPATH:$(pwd)"
# apparently there is some issue with opencv-python-headless, we need to reinstall it
Expand All @@ -62,7 +62,7 @@ jobs:
xvfb-run python3 test/test_map_processor_segmentation.py
# run the actual tests
xvfb-run python3 -m pytest --cov=plugin/deepness/ --cov-report html test/
xvfb-run python3 -m pytest --cov=src/deepness/ --cov-report html test/
- name: 'Upload Artifact - test coverage'
uses: actions/upload-artifact@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img width="250" height="250" src="plugin/deepness/images/icon.png" alt="dsf_logo">
<img width="250" height="250" src="src/deepness/images/icon.png" alt="dsf_logo">

<h2 align="center">Deepness: Deep Neural Remote Sensing QGIS Plugin</h2>
</p>
Expand Down Expand Up @@ -40,7 +40,7 @@ python3 -m venv venv --system-site-packages
- Create a symlink to our plugin in a QGIS plugin directory:

```bash
ln -s $PROJECT_DIR/plugin/deepness ~/.local/share/QGIS/QGIS3/profiles/default/python/plugins/deepness
ln -s $PROJECT_DIR/src/deepness ~/.local/share/QGIS/QGIS3/profiles/default/python/plugins/deepness
```

- Activate the environment and install requirements:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
set_type_checking_flag = True # Enable 'expensive' imports for sphinx_autodoc_typehints
nbsphinx_allow_errors = True # Continue through Jupyter errors
add_module_names = False # Remove namespaces from class/method signatures
html_logo = "../../plugin/deepness/images/icon.png"
html_logo = "../../src/deepness/images/icon.png"
html_theme_options = {
'logo_only': False,
'display_version': True,
Expand Down
112 changes: 0 additions & 112 deletions plugin_upload.py

This file was deleted.

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.
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.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit df37d65

Please sign in to comment.