Commit 95d23203 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Added URL checker and corresponding CI job. Fixed all dead URLs. Removed travis related files.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent edff2284
......@@ -66,6 +66,15 @@ test_styles:
when: always
test_urls:
stage: test
script:
- source /root/miniconda3/bin/activate ci_env
- pip install -U urlchecker
- make urlcheck
when: always
test_enpt_enmapboxapp_install:
stage: test
script:
......
# Config file for automatic testing at travis-ci.org
language: python
python:
- 3.6
- 3.5
- 3.4
- 2.7
# Command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install: pip install -U tox-travis
# Command to run tests, e.g. python setup.py test
script: tox
......@@ -2,6 +2,14 @@
History
=======
0.4.6 (2020-12-10)
------------------
* Added URL checker and corresponding CI job.
* Fixed all dead URLs.
* Removed travis related files.
0.4.5 (2020-11-27)
------------------
......
......@@ -59,6 +59,11 @@ lint: ## check style with flake8
pycodestyle enpt_enmapboxapp --exclude="*.ipynb,*.ipynb*" --max-line-length=120 > ./tests/linting/pycodestyle.log
-pydocstyle enpt_enmapboxapp > ./tests/linting/pydocstyle.log
urlcheck: ## check for dead URLs
urlchecker check . \
--file-types .py,.rst,.md,.json \
--white-listed-patterns www.enmap.org
test: ## run tests quickly with the default Python
python setup.py test
......
......@@ -13,17 +13,6 @@
.. image:: https://img.shields.io/pypi/dm/enpt_enmapboxapp.svg
:target: https://pypi.python.org/pypi/enpt_enmapboxapp
.. .. image:: https://img.shields.io/travis/danschef/enpt_enmapboxapp.svg
:target: https://travis-ci.org/danschef/enpt_enmapboxapp
.. .. image:: https://readthedocs.org/projects/enpt-enmapboxapp/badge/?version=latest
:target: https://enpt-enmapboxapp.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
.. .. image:: https://pyup.io/repos/github/danschef/enpt_enmapboxapp/shield.svg
:target: https://pyup.io/repos/github/danschef/enpt_enmapboxapp/
:alt: Updates
================
enpt_enmapboxapp
......
......@@ -22,7 +22,7 @@ The enpt_enmapboxapp package is then installed into the QGIS_ Python environment
To make the enpt_enmapboxapp GUI run together with EnPT_ (backend), EnPT_ has to be installed into a separate Anaconda
environment. Please refer to the EnPT_ installation instructions
`here <http://enmap.gitext.gfz-potsdam.de/GFZ_Tools_EnMAP_BOX/EnPT/doc/installation.html>`__.
`here <https://enmap.gitext-pages.gfz-potsdam.de/GFZ_Tools_EnMAP_BOX/EnPT/doc/installation.html>`__.
.. _EnPT: https://gitext.gfz-potsdam.de/EnMAP/GFZ_Tools_EnMAP_BOX/EnPT
.. _EnMAP-Box: http://www.enmap.org/enmapbox.html
......
......@@ -11,7 +11,7 @@ The enpt_enmapboxapp GUI can be found in
Use the GUI to parameterize EnPT_ according to your input dataset and the desired processing settings.
The input parameters are explained
`here <http://enmap.gitext.gfz-potsdam.de/GFZ_Tools_EnMAP_BOX/EnPT/doc/usage.html#enpt-cli-py>`__.
`here <https://enmap.gitext-pages.gfz-potsdam.de/GFZ_Tools_EnMAP_BOX/EnPT/doc/usage.html#enpt-cli-py>`__.
.. hint::
......
......@@ -544,7 +544,7 @@ class EnPTAlgorithm(QgsProcessingAlgorithm):
else:
feedback.reportError("The Anaconda installation has no environment called 'enpt'. Please follow the EnPT "
"installation instructions to install the EnMAP processing tool backend code "
"(see http://enmap.gitext.gfz-potsdam.de/GFZ_Tools_EnMAP_BOX/EnPT/doc/"
"(see https://enmap.gitext-pages.gfz-potsdam.de/GFZ_Tools_EnMAP_BOX/EnPT/doc/"
"installation.html). This is needed to run EnPT from this GUI.")
return {
'success': False,
......@@ -615,10 +615,12 @@ class EnPTAlgorithm(QgsProcessingAlgorithm):
:param kwargs:
"""
text = '<p>General information about this EnMAP box app can be found ' \
'<a href="http://enmap.gitext.gfz-potsdam.de/GFZ_Tools_EnMAP_BOX/enpt_enmapboxapp/doc/">here</a>.</p>' \
'<p>Type <i>python enpt_cli.py -h</i> into a shell to get further information about individual ' \
'parameters.</p>'
text = \
'<p>General information about this EnMAP box app can be found ' \
'<a href="https://enmap.gitext-pages.gfz-potsdam.de/GFZ_Tools_EnMAP_BOX/enpt_enmapboxapp/doc/">here</a>' \
'.</p>' \
'<p>Type <i>python enpt_cli.py -h</i> into a shell to get further information about individual ' \
'parameters.</p>'
return text
......@@ -627,4 +629,4 @@ class EnPTAlgorithm(QgsProcessingAlgorithm):
@staticmethod
def helpUrl(*args, **kwargs):
return 'http://enmap.gitext.gfz-potsdam.de/GFZ_Tools_EnMAP_BOX/enpt_enmapboxapp/doc/'
return 'https://enmap.gitext-pages.gfz-potsdam.de/GFZ_Tools_EnMAP_BOX/enpt_enmapboxapp/doc/'
......@@ -22,6 +22,6 @@
# You should have received a copy of the GNU Lesser General Public License along
# with this program. If not, see <http://www.gnu.org/licenses/>.
__version__ = '0.4.5'
__versionalias__ = '20201127.01'
__version__ = '0.4.6'
__versionalias__ = '20201210.01'
__author__ = 'Daniel Scheffler'
......@@ -49,7 +49,7 @@ requirements = [
setup_requirements = []
test_requirements = []
test_requirements = ['urlchecker']
setup(
author="Daniel Scheffler",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment