From 2565dba1a1d1bba07570043723cc5bc06359509c Mon Sep 17 00:00:00 2001 From: Mike Taves Date: Wed, 19 Nov 2025 11:23:48 +1300 Subject: [PATCH] Fix typos, use HTTPS, remove coding header --- CHANGELOG.rst | 4 ++-- CONTRIBUTING.rst | 6 +++--- LICENSE | 4 ++-- README.rst | 12 ++++++------ docs/conf.py | 7 +++---- docs/design.rst | 2 +- elevation/__init__.py | 6 ++---- elevation/cli.py | 6 ++---- elevation/datasource.py | 6 ++---- elevation/spatial.py | 6 ++---- elevation/util.py | 6 ++---- setup.py | 7 +++---- tests/test_cli.py | 5 +---- tests/test_datasource.py | 5 +---- tests/test_util.py | 5 +---- 15 files changed, 33 insertions(+), 54 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 18d8a51..9e5636c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -69,7 +69,7 @@ - Fix clean command. Closes issue `#21 `_. -- Add docstrings for all Pyhton API functions. +- Add docstrings for all Python API functions. Closes issue `#15 `_. @@ -77,7 +77,7 @@ ------------------- - Revert the default product back to ``SRTM1`` by downloading from the - `Amazon Terrain Tiles on AWS servcie `_. + `Amazon Terrain Tiles on AWS service `_. Closes issue `#18 `_. diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 9630f7e..fb23c71 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -1,6 +1,6 @@ This project is Free and Open Source Software released under the terms of the -`Apache License, Version 2.0 `_. +`Apache License, Version 2.0 `_. Contributions are highly welcomed and appreciated. Every little help counts, so do not hesitate! .. highlight: console @@ -25,8 +25,8 @@ Tests can be run with `pytest `_ and `tox `_ - `curl `_ - unzip -- `gunzip `_ -- `GDAL command line tools `_ +- `gunzip `_ +- `GDAL command line tools `_ The following command runs some basic checks and reports common issues:: @@ -63,7 +63,7 @@ for example if you have a georeference image ``MyImage.tif`` you can clip the co $ eio clip -o MyImage-DEM.tif --reference MyImage.tif # enable with: $ pip install rasterio -The ``--reference`` option can take also verctor data as input:: +The ``--reference`` option can take also vector data as input:: $ eio clip -o MyShapefile-DEM.tif --reference MyShapefile.shp # enable with: $ pip install fiona @@ -138,7 +138,7 @@ Project resources ----------------- ============= ========================================================= -Documentation http://elevation.bopen.eu +Documentation https://elevation.bopen.eu Support https://stackoverflow.com/search?q=python+elevation Development https://github.com/bopen/elevation Download https://pypi.org/project/elevation @@ -159,7 +159,7 @@ If you encounter any problems, please file an issue along with a detailed descri Authors: -- B-Open Solutions srl - `@bopen `_ - http://bopen.eu +- B-Open Solutions srl - `@bopen `_ - https://bopen.eu - Alessandro Amici - `@alexamici `_ @@ -167,5 +167,5 @@ License ------- Elevation is free and open source software -distributed under the terms of the `Apache License, Version 2.0 `_. +distributed under the terms of the `Apache License, Version 2.0 `_. diff --git a/docs/conf.py b/docs/conf.py index 64f76f9..dd73ab8 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,5 +1,4 @@ #!/usr/bin/env python3 -# -*- coding: utf-8 -*- # # elevation documentation build configuration file # @@ -56,9 +55,9 @@ def _warn_node(self, msg, node, **kwargs): master_doc = 'index' # General information about the project. -project = u'elevation' -copyright = u'2016-2021 B-Open Solutions srl' -author = u'B-Open Solutions srl' +project = 'elevation' +copyright = '2016-2021 B-Open Solutions srl' +author = 'B-Open Solutions srl' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the diff --git a/docs/design.rst b/docs/design.rst index c22dfae..5c42d79 100644 --- a/docs/design.rst +++ b/docs/design.rst @@ -37,7 +37,7 @@ Logical components: Version goals ------------- -This project strives to adhere to `semantic versioning `_. +This project strives to adhere to `semantic versioning `_. 1.1.0 (upcoming release) diff --git a/elevation/__init__.py b/elevation/__init__.py index 9ad0ede..8c96b4d 100644 --- a/elevation/__init__.py +++ b/elevation/__init__.py @@ -1,12 +1,10 @@ -# -*- coding: utf-8 -*- -# -# Copyright (c) 2016-2021 B-Open Solutions srl - http://bopen.eu +# Copyright (c) 2016-2021 B-Open Solutions srl - https://bopen.eu # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, diff --git a/elevation/cli.py b/elevation/cli.py index 284c741..252e749 100644 --- a/elevation/cli.py +++ b/elevation/cli.py @@ -1,12 +1,10 @@ -# -*- coding: utf-8 -*- -# -# Copyright (c) 2016-2021 B-Open Solutions srl - http://bopen.eu +# Copyright (c) 2016-2021 B-Open Solutions srl - https://bopen.eu # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, diff --git a/elevation/datasource.py b/elevation/datasource.py index 66bf903..8433c5c 100644 --- a/elevation/datasource.py +++ b/elevation/datasource.py @@ -1,12 +1,10 @@ -# -*- coding: utf-8 -*- -# -# Copyright (c) 2016-2021 B-Open Solutions srl - http://bopen.eu +# Copyright (c) 2016-2021 B-Open Solutions srl - https://bopen.eu # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, diff --git a/elevation/spatial.py b/elevation/spatial.py index 77bbbb7..772f749 100644 --- a/elevation/spatial.py +++ b/elevation/spatial.py @@ -1,12 +1,10 @@ -# -*- coding: utf-8 -*- -# -# Copyright (c) 2016-2021 B-Open Solutions srl - http://bopen.eu +# Copyright (c) 2016-2021 B-Open Solutions srl - https://bopen.eu # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, diff --git a/elevation/util.py b/elevation/util.py index 4cd74ec..17c2c70 100644 --- a/elevation/util.py +++ b/elevation/util.py @@ -1,12 +1,10 @@ -# -*- coding: utf-8 -*- -# -# Copyright (c) 2016-2021 B-Open Solutions srl - http://bopen.eu +# Copyright (c) 2016-2021 B-Open Solutions srl - https://bopen.eu # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, diff --git a/setup.py b/setup.py index d4c0543..4c098e2 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,12 @@ #!/usr/bin/env python -# -*- coding: utf-8 -*- # -# Copyright (c) 2016-2021 B-Open Solutions srl - http://bopen.eu +# Copyright (c) 2016-2021 B-Open Solutions srl - https://bopen.eu # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, @@ -31,7 +30,7 @@ def read(fname): author='B-Open Solutions srl, Alessandro Amici', author_email='info@bopen.eu', license='Apache License Version 2.0', - url='http://elevation.bopen.eu', + url='https://elevation.bopen.eu', description="Python script to download global terrain digital elevation models, " "SRTM 30m DEM and SRTM 90m DEM.", long_description=read('README.rst'), diff --git a/tests/test_cli.py b/tests/test_cli.py index df31f92..55b4a3c 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1,7 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (c) 2016-2021 B-Open Solutions srl - http://bopen.eu -# +# Copyright (c) 2016-2021 B-Open Solutions srl - https://bopen.eu import subprocess diff --git a/tests/test_datasource.py b/tests/test_datasource.py index 6bca1b2..62316e2 100644 --- a/tests/test_datasource.py +++ b/tests/test_datasource.py @@ -1,7 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (c) 2016-2021 B-Open Solutions srl - http://bopen.eu -# +# Copyright (c) 2016-2021 B-Open Solutions srl - https://bopen.eu import subprocess diff --git a/tests/test_util.py b/tests/test_util.py index 0ea7469..afd1e56 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -1,7 +1,4 @@ -# -*- coding: utf-8 -*- -# -# Copyright (c) 2016-2021 B-Open Solutions srl - http://bopen.eu -# +# Copyright (c) 2016-2021 B-Open Solutions srl - https://bopen.eu import os import subprocess