Skip to content

Commit 2fb33d3

Browse files
authored
Merge pull request #3 from Scriptbash/qgis4
Migrate to pyQt6
2 parents 94a2780 + 3f03a51 commit 2fb33d3

15 files changed

+350
-266
lines changed

plugin_exporter/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,5 @@ def classFactory(iface): # pylint: disable=invalid-name
3333
"""
3434
#
3535
from .plugin_exporter import PluginExporter
36+
3637
return PluginExporter(iface)

plugin_exporter/help/source/conf.py

Lines changed: 58 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -16,201 +16,205 @@
1616
# If extensions (or modules to document with autodoc) are in another directory,
1717
# add these directories to sys.path here. If the directory is relative to the
1818
# documentation root, use os.path.abspath to make it absolute, like shown here.
19-
#sys.path.insert(0, os.path.abspath('.'))
19+
# sys.path.insert(0, os.path.abspath('.'))
2020

2121
# -- General configuration -----------------------------------------------------
2222

2323
# If your documentation needs a minimal Sphinx version, state it here.
24-
#needs_sphinx = '1.0'
24+
# needs_sphinx = '1.0'
2525

2626
# Add any Sphinx extension module names here, as strings. They can be extensions
2727
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
28-
extensions = ['sphinx.ext.todo', 'sphinx.ext.imgmath', 'sphinx.ext.viewcode']
28+
extensions = ["sphinx.ext.todo", "sphinx.ext.imgmath", "sphinx.ext.viewcode"]
2929

3030
# Add any paths that contain templates here, relative to this directory.
31-
templates_path = ['_templates']
31+
templates_path = ["_templates"]
3232

3333
# The suffix of source filenames.
34-
source_suffix = '.rst'
34+
source_suffix = ".rst"
3535

3636
# The encoding of source files.
37-
#source_encoding = 'utf-8-sig'
37+
# source_encoding = 'utf-8-sig'
3838

3939
# The master toctree document.
40-
master_doc = 'index'
40+
master_doc = "index"
4141

4242
# General information about the project.
43-
project = u'PluginExporter'
44-
copyright = u'2013, Francis Lapointe'
43+
project = "PluginExporter"
44+
copyright = "2013, Francis Lapointe"
4545

4646
# The version info for the project you're documenting, acts as replacement for
4747
# |version| and |release|, also used in various other places throughout the
4848
# built documents.
4949
#
5050
# The short X.Y version.
51-
version = '0.1'
51+
version = "0.1"
5252
# The full version, including alpha/beta/rc tags.
53-
release = '0.1'
53+
release = "0.1"
5454

5555
# The language for content autogenerated by Sphinx. Refer to documentation
5656
# for a list of supported languages.
57-
#language = None
57+
# language = None
5858

5959
# There are two options for replacing |today|: either, you set today to some
6060
# non-false value, then it is used:
61-
#today = ''
61+
# today = ''
6262
# Else, today_fmt is used as the format for a strftime call.
63-
#today_fmt = '%B %d, %Y'
63+
# today_fmt = '%B %d, %Y'
6464

6565
# List of patterns, relative to source directory, that match files and
6666
# directories to ignore when looking for source files.
6767
exclude_patterns = []
6868

6969
# The reST default role (used for this markup: `text`) to use for all documents.
70-
#default_role = None
70+
# default_role = None
7171

7272
# If true, '()' will be appended to :func: etc. cross-reference text.
73-
#add_function_parentheses = True
73+
# add_function_parentheses = True
7474

7575
# If true, the current module name will be prepended to all description
7676
# unit titles (such as .. function::).
77-
#add_TemplateModuleNames = True
77+
# add_TemplateModuleNames = True
7878

7979
# If true, sectionauthor and moduleauthor directives will be shown in the
8080
# output. They are ignored by default.
81-
#show_authors = False
81+
# show_authors = False
8282

8383
# The name of the Pygments (syntax highlighting) style to use.
84-
pygments_style = 'sphinx'
84+
pygments_style = "sphinx"
8585

8686
# A list of ignored prefixes for module index sorting.
87-
#modindex_common_prefix = []
87+
# modindex_common_prefix = []
8888

8989

9090
# -- Options for HTML output ---------------------------------------------------
9191

9292
# The theme to use for HTML and HTML Help pages. See the documentation for
9393
# a list of builtin themes.
94-
html_theme = 'default'
94+
html_theme = "default"
9595

9696
# Theme options are theme-specific and customize the look and feel of a theme
9797
# further. For a list of options available for each theme, see the
9898
# documentation.
99-
#html_theme_options = {}
99+
# html_theme_options = {}
100100

101101
# Add any paths that contain custom themes here, relative to this directory.
102-
#html_theme_path = []
102+
# html_theme_path = []
103103

104104
# The name for this set of Sphinx documents. If None, it defaults to
105105
# "<project> v<release> documentation".
106-
#html_title = None
106+
# html_title = None
107107

108108
# A shorter title for the navigation bar. Default is the same as html_title.
109-
#html_short_title = None
109+
# html_short_title = None
110110

111111
# The name of an image file (relative to this directory) to place at the top
112112
# of the sidebar.
113-
#html_logo = None
113+
# html_logo = None
114114

115115
# The name of an image file (within the static path) to use as favicon of the
116116
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
117117
# pixels large.
118-
#html_favicon = None
118+
# html_favicon = None
119119

120120
# Add any paths that contain custom static files (such as style sheets) here,
121121
# relative to this directory. They are copied after the builtin static files,
122122
# so a file named "default.css" will overwrite the builtin "default.css".
123-
html_static_path = ['_static']
123+
html_static_path = ["_static"]
124124

125125
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
126126
# using the given strftime format.
127-
#html_last_updated_fmt = '%b %d, %Y'
127+
# html_last_updated_fmt = '%b %d, %Y'
128128

129129
# If true, SmartyPants will be used to convert quotes and dashes to
130130
# typographically correct entities.
131-
#html_use_smartypants = True
131+
# html_use_smartypants = True
132132

133133
# Custom sidebar templates, maps document names to template names.
134-
#html_sidebars = {}
134+
# html_sidebars = {}
135135

136136
# Additional templates that should be rendered to pages, maps page names to
137137
# template names.
138-
#html_additional_pages = {}
138+
# html_additional_pages = {}
139139

140140
# If false, no module index is generated.
141-
#html_domain_indices = True
141+
# html_domain_indices = True
142142

143143
# If false, no index is generated.
144-
#html_use_index = True
144+
# html_use_index = True
145145

146146
# If true, the index is split into individual pages for each letter.
147-
#html_split_index = False
147+
# html_split_index = False
148148

149149
# If true, links to the reST sources are added to the pages.
150-
#html_show_sourcelink = True
150+
# html_show_sourcelink = True
151151

152152
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
153-
#html_show_sphinx = True
153+
# html_show_sphinx = True
154154

155155
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
156-
#html_show_copyright = True
156+
# html_show_copyright = True
157157

158158
# If true, an OpenSearch description file will be output, and all pages will
159159
# contain a <link> tag referring to it. The value of this option must be the
160160
# base URL from which the finished HTML is served.
161-
#html_use_opensearch = ''
161+
# html_use_opensearch = ''
162162

163163
# This is the file name suffix for HTML files (e.g. ".xhtml").
164-
#html_file_suffix = None
164+
# html_file_suffix = None
165165

166166
# Output file base name for HTML help builder.
167-
htmlhelp_basename = 'TemplateClassdoc'
167+
htmlhelp_basename = "TemplateClassdoc"
168168

169169

170170
# -- Options for LaTeX output --------------------------------------------------
171171

172172
# The paper size ('letter' or 'a4').
173-
#latex_paper_size = 'letter'
173+
# latex_paper_size = 'letter'
174174

175175
# The font size ('10pt', '11pt' or '12pt').
176-
#latex_font_size = '10pt'
176+
# latex_font_size = '10pt'
177177

178178
# Grouping the document tree into LaTeX files. List of tuples
179179
# (source start file, target name, title, author, documentclass [howto/manual]).
180180
latex_documents = [
181-
('index', 'PluginExporter.tex', u'PluginExporter Documentation',
182-
u'Francis Lapointe', 'manual'),
181+
(
182+
"index",
183+
"PluginExporter.tex",
184+
"PluginExporter Documentation",
185+
"Francis Lapointe",
186+
"manual",
187+
),
183188
]
184189

185190
# The name of an image file (relative to this directory) to place at the top of
186191
# the title page.
187-
#latex_logo = None
192+
# latex_logo = None
188193

189194
# For "manual" documents, if this is true, then toplevel headings are parts,
190195
# not chapters.
191-
#latex_use_parts = False
196+
# latex_use_parts = False
192197

193198
# If true, show page references after internal links.
194-
#latex_show_pagerefs = False
199+
# latex_show_pagerefs = False
195200

196201
# If true, show URL addresses after external links.
197-
#latex_show_urls = False
202+
# latex_show_urls = False
198203

199204
# Additional stuff for the LaTeX preamble.
200-
#latex_preamble = ''
205+
# latex_preamble = ''
201206

202207
# Documents to append as an appendix to all manuals.
203-
#latex_appendices = []
208+
# latex_appendices = []
204209

205210
# If false, no module index is generated.
206-
#latex_domain_indices = True
211+
# latex_domain_indices = True
207212

208213

209214
# -- Options for manual page output --------------------------------------------
210215

211216
# One entry per manual page. List of tuples
212217
# (source start file, name, description, authors, manual section).
213218
man_pages = [
214-
('index', 'TemplateClass', u'PluginExporter Documentation',
215-
[u'Francis Lapointe'], 1)
219+
("index", "TemplateClass", "PluginExporter Documentation", ["Francis Lapointe"], 1)
216220
]

plugin_exporter/metadata.txt

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
[general]
66
name=Plugin Exporter
77
qgisMinimumVersion=3.20
8+
qgisMaximumVersion=4.99
89
description=A QGIS plugin for exporting plugins
9-
version=0.2.1
10+
version=0.2.2
1011
author=Francis Lapointe
1112
1213

@@ -16,11 +17,15 @@ tracker=https://github.com/Scriptbash/PluginExporter/issues
1617
repository=https://github.com/Scriptbash/PluginExporter
1718
# End of mandatory metadata
1819

20+
supportsQt6=True
21+
1922
# Recommended items:
2023

2124
hasProcessingProvider=no
2225
# Uncomment the following line and add your changelog:
2326
changelog=
27+
v0.2.2
28+
- Migrate to pyQt6
2429
v0.2.1
2530
- Fix import file filters
2631
v0.2.0
@@ -29,7 +34,7 @@ changelog=
2934
- Only the active plugins filter is now enabled by default
3035

3136
# Tags are comma separated with spaces allowed
32-
tags=python, qgis, plugin, importer, exporter
37+
tags=python, qgis, plugin, importer, exporter, backup
3338

3439
homepage=https://github.com/Scriptbash/PluginExporter
3540
category=Plugins
@@ -40,14 +45,6 @@ experimental=False
4045
# deprecated flag (applies to the whole plugin, not just a single version)
4146
deprecated=False
4247

43-
# Since QGIS 3.8, a comma separated list of plugins to be installed
44-
# (or upgraded) can be specified.
45-
# Check the documentation for more information.
46-
# plugin_dependencies=
47-
48-
Category of the plugin: Raster, Vector, Database or Web
49-
# category=
50-
5148
# If the plugin can run on QGIS Server.
5249
server=False
5350

0 commit comments

Comments
 (0)