Skip to content

Commit bca2600

Browse files
authored
Update docs (#30)
* replace links to RTD * fix license and copyright
1 parent bc29147 commit bca2600

File tree

11 files changed

+33
-59
lines changed

11 files changed

+33
-59
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2.1
22

33
orbs:
4-
psyplot: psyplot/[email protected].23
4+
psyplot: psyplot/[email protected].24
55
mattermost-plugin-notify: nathanaelhoun/[email protected]
66

77
executors:

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Changed
1111
- psyplot is now officially licensed under LGPL-3.0-only,
1212
see `#29 <https://github.com/psyplot/psyplot/pull/29>`__
1313
- Documentation is now hosted with Github Pages at https://psyplot.github.io/psyplot-gui.
14-
Redirects from the old documentation at https://psyplot-gui.readthedocs.io have been
14+
Redirects from the old documentation at `https://psyplot-gui.readthedocs.io` have been
1515
configured.
1616
- We use CicleCI now for a standardized CI/CD pipeline to build and test
1717
the code and docs all at one place, see `#28 <https://github.com/psyplot/psyplot-gui/pull/28>`__

README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ Graphical User Interface for the psyplot package
1616
* - implementations
1717
- |supported-versions| |supported-implementations|
1818

19-
.. |docs| image:: http://readthedocs.org/projects/psyplot-gui/badge/?version=latest
20-
:alt: Documentation Status
21-
:target: http://psyplot-gui.readthedocs.io/en/latest/?badge=latest
19+
.. |docs| image:: https://img.shields.io/github/deployments/psyplot/psyplot-gui/github-pages
20+
:alt: Documentation
21+
:target: http://psyplot.github.io/psyplot-gui/
2222

2323
.. |circleci| image:: https://circleci.com/gh/psyplot/psyplot-gui/tree/master.svg?style=svg
2424
:alt: CircleCI
@@ -64,10 +64,10 @@ psyplot_ with a graphical user interface using PyQt_. See the homepage of the
6464
main project on examples on the possibilities with psyplot_.
6565

6666
You can see the full documentation under
67-
`readthedocs.org <http://psyplot-gui.readthedocs.io/en/latest/?badge=latest>`__
67+
`psyplot.github.io/psyplot-gui/ <http://psyplot.github.io/psyplot-gui>`__
6868

6969
.. _PyQt: https://riverbankcomputing.com/software/pyqt/intro
70-
.. _psyplot: http://psyplot.readthedocs.io/en/latest/
70+
.. _psyplot: http://psyplot.github.io/
7171

7272

7373
Copyright

docs/conf.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@
118118

119119
html_theme = 'sphinx_rtd_theme'
120120

121-
# otherwise, readthedocs.org uses their theme by default, so no need to specify
122-
123121
# Add any paths that contain custom static files (such as style sheets) here,
124122
# relative to this directory. They are copied after the builtin static files,
125123
# so a file named "default.css" will overwrite the builtin "default.css".

docs/getting_started.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ If you do not wish this behaviour, set the ``console.auto_set_mp`` and
9494
9595
.. |ipython_console| image:: ipython_console.png
9696
97-
.. _IPython: http://ipython.readthedocs.io/en/stable/
97+
.. _IPython: https://ipython.readthedocs.io/en/stable/
9898
.. _qtconsole: https://qtconsole.readthedocs.io/en/stable/
9999
.. _Spyder: https://www.spyder-ide.org/
100100

docs/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ main project on examples on the possibilities with psyplot_.
2424
* - implementations
2525
- |supported-versions| |supported-implementations|
2626

27-
.. |docs| image:: http://readthedocs.org/projects/psyplot-gui/badge/?version=latest
28-
:alt: Documentation Status
29-
:target: http://psyplot-gui.readthedocs.io/en/latest/?badge=latest
27+
.. |docs| image:: https://img.shields.io/github/deployments/psyplot/psyplot-gui/github-pages
28+
:alt: Documentation
29+
:target: http://psyplot.github.io/psyplot-gui/
3030

3131
.. |circleci| image:: https://circleci.com/gh/psyplot/psyplot-gui/tree/master.svg?style=svg
3232
:alt: CircleCI

docs/installing.rst

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,12 @@ built upon multiple other packages, namely
4141
- fasteners_: Which provides an inprocess lock to communicate to the psyplot
4242
mainwindow
4343
- PyQt5_: Python bindings to the Qt_ software
44-
45-
Optional dependencies
46-
^^^^^^^^^^^^^^^^^^^^^
47-
We furthermore recommend to use
48-
4944
- sphinx_>=1.3.5: To use all features of the interactive documentation access
5045

5146
.. _conda: https://docs.conda.io/en/latest/
5247
.. _psyplot: https://psyplot.github.io/psyplot/installing.html
5348
.. _qtconsole: https://qtconsole.readthedocs.io/en/latest/
54-
.. _fasteners: http://fasteners.readthedocs.org/en/latest/index.html
49+
.. _fasteners: https://fasteners.readthedocs.org/en/latest/index.html
5550
.. _sphinx: https://www.sphinx-doc.org/en/master/index.html
5651
.. _PyQt5: https://www.riverbankcomputing.com/static/Docs/PyQt5/installation.html
5752
.. _Qt: https://www.qt.io/

psyplot_gui/__init__.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,16 @@
5757
from psyplot.compat.pycompat import get_default_value
5858

5959
__author__ = "Philipp S. Sommer"
60-
__copyright__ = "Copyright 2016 - 2020, Philipp S. Sommer"
60+
__copyright__ = """
61+
Copyright (C) 2021 Helmholtz-Zentrum Hereon
62+
Copyright (C) 2020-2021 Helmholtz-Zentrum Geesthacht
63+
Copyright (C) 2016-2021 University of Lausanne
64+
"""
6165
__credits__ = ["Philipp S. Sommer"]
62-
__license__ = "GPL-2.0-only"
66+
__license__ = "LGPL-3.0-only"
6367

6468
__maintainer__ = "Philipp S. Sommer"
65-
__email__ = "philipp.sommer@hzg.de"
69+
__email__ = "psyplot@hereon.de"
6670

6771
__status__ = "Production"
6872

@@ -456,19 +460,13 @@ def get_parser(create=True):
456460
UNIT_TESTING = os.getenv('CI')
457461

458462

459-
#: Disable the default for the ListGuiPluginsAction on RTD, because it looks
460-
#: better in the docs
461-
_on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
462-
463-
464463
class ListGuiPluginsAction(argparse.Action):
465464

466465
def __init__(self, option_strings, dest=argparse.SUPPRESS, nargs=None,
467466
default=argparse.SUPPRESS, **kwargs):
468467
if nargs is not None:
469468
raise ValueError("nargs not allowed")
470-
if not _on_rtd:
471-
kwargs['default'] = default
469+
kwargs['default'] = default
472470
super(ListGuiPluginsAction, self).__init__(
473471
option_strings, nargs=0, dest=dest,
474472
**kwargs)

psyplot_gui/help_explorer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class UrlBrowser(QFrame):
165165

166166
doc_urls = OrderedDict([
167167
('startpage', 'https://startpage.com/'),
168-
('psyplot', 'http://psyplot.readthedocs.org/en/latest/'),
168+
('psyplot', 'http://psyplot.github.io/psyplot/'),
169169
('pyplot', 'http://matplotlib.org/api/pyplot_api.html'),
170170
('seaborn', 'http://stanford.edu/~mwaskom/software/seaborn/api.html'),
171171
('cartopy', 'http://scitools.org.uk/cartopy/docs/latest/index.html'),

psyplot_gui/sphinx_supp/conf.py

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -151,21 +151,14 @@
151151
'sphinx': ('https://www.sphinx-doc.org/en/master/', None),
152152
'xarray': ('https://xarray.pydata.org/en/stable/', None),
153153
'cartopy': ('https://scitools.org.uk/cartopy/docs/latest/', None),
154-
'psyplot': ('https://psyplot.readthedocs.io/en/latest/', None),
155-
'psyplot_gui': ('https://psyplot.readthedocs.io/projects/psyplot-gui/en/'
156-
'latest/', None),
157-
'psy_maps': ('https://psyplot.readthedocs.io/projects/psy-maps/en/'
158-
'latest/', None),
159-
'psy_simple': ('https://psyplot.readthedocs.io/projects/psy-simple/en/'
160-
'latest/', None),
161-
'psy_reg': ('https://psyplot.readthedocs.io/projects/psy-reg/en/'
162-
'latest/', None),
154+
'psyplot': ('https://psyplot.github.io/psyplot/', None),
155+
'psyplot_gui': ('https://psyplot.github.io/psyplot-gui/', None),
156+
'psy_maps': ('https://psyplot.github.io/psy-maps/', None),
157+
'psy_simple': ('https://psyplot.github.io/psy-simple/', None),
158+
'psy_view': ('https://psyplot.github.io/psy-view/', None),
159+
'psy_reg': ('https://psyplot.github.io/psy-reg/', None),
160+
'python': ('https://docs.python.org/3/', None),
163161
}
164-
if six.PY3:
165-
intersphinx_mapping['python'] = ('https://docs.python.org/3.6/', None)
166-
else:
167-
intersphinx_mapping['python'] = ('https://docs.python.org/2.7/', None)
168-
169162

170163
replacements = {
171164
'`psyplot.rcParams`': '`~psyplot.config.rcsetup.rcParams`',

setup.py

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,10 @@
2323
# You should have received a copy of the GNU LGPL-3.0 license
2424
# along with this program. If not, see <https://www.gnu.org/licenses/>.
2525

26-
import os
2726
import os.path as osp
2827
from setuptools import setup, find_packages
2928
from setuptools.command.test import test as TestCommand
3029
import sys
31-
32-
33-
if os.getenv("READTHEDOCS") == "True":
34-
# to make versioneer working, we need to unshallow this repo
35-
# because RTD does a checkout with --depth 50
36-
import subprocess as spr
37-
rootdir = osp.dirname(__file__)
38-
spr.call(["git", "-C", rootdir, "fetch", "--unshallow", "origin"])
39-
40-
4130
import versioneer
4231

4332

@@ -75,20 +64,21 @@ def run_tests(self):
7564
'Topic :: Scientific/Engineering :: Visualization',
7665
'Topic :: Scientific/Engineering :: GIS',
7766
'Topic :: Scientific/Engineering',
78-
'License :: OSI Approved :: GNU General Public License v2 (GPLv2)',
67+
'License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)',
7968
'Programming Language :: Python :: 3',
8069
'Programming Language :: Python :: 3 :: Only',
8170
'Programming Language :: Python :: 3.6',
8271
'Programming Language :: Python :: 3.7',
8372
'Programming Language :: Python :: 3.8',
73+
'Programming Language :: Python :: 3.9',
8474
'Operating System :: OS Independent',
8575
],
8676
keywords=('visualization netcdf raster cartopy earth-sciences pyqt qt '
8777
'ipython jupyter qtconsole'),
8878
url='https://github.com/psyplot/psyplot-gui',
8979
author='Philipp S. Sommer',
90-
author_email='philipp.sommer@hzg.de',
91-
license="GPLv2",
80+
author_email='psyplot@hereon.de',
81+
license="LGPL-3.0-only",
9282
packages=find_packages(exclude=['docs', 'tests*', 'examples']),
9383
install_requires=[
9484
'psyplot>=1.3.0',
@@ -105,7 +95,7 @@ def run_tests(self):
10595
osp.join('psyplot_gui', 'icons', '*.svg'),
10696
]},
10797
project_urls={
108-
'Documentation': 'https://psyplot.readthedocs.io/projects/psyplot-gui',
98+
'Documentation': 'https://psyplot.github.io/psyplot-gui',
10999
'Source': 'https://github.com/psyplot/psyplot-gui',
110100
'Tracker': 'https://github.com/psyplot/psyplot-gui/issues',
111101
},

0 commit comments

Comments
 (0)