104
105
106
107
108
109
110
111
112
113
114
115
116
117
| #### get_data( filename= )
Is mostly an alias for pkgutil.get_data(). Abstracts usage within PYZ packages a little.
#### argparse_map()
Provides a simpler way to specify ugly argparse definitions. And allows to amass options from plugins.
# GUI
There's a Tkinter/PySimpleGUI variant of the option dialog from
[streamtuner2](https://fossil.include-once.org/streamtuner2/) included:

|
>
| 104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
| #### get_data( filename= )
Is mostly an alias for pkgutil.get_data(). Abstracts usage within PYZ packages a little.
#### argparse_map()
Provides a simpler way to specify ugly argparse definitions. And allows to amass options from plugins.
# GUI
There's a Tkinter/PySimpleGUI variant of the option dialog from
[streamtuner2](https://fossil.include-once.org/streamtuner2/) included:

|
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
| automatic lookup. The non-standard PMD field `# classifiers: x11, python`
can be used to lookup trove categories (crude search on select topics).
All other `setup(fields=…)` are passed on to distutils/setuptools as is.
-- Btw, [setupmeta](https://pypi.org/project/setupmeta/) is an even more
versatile wrapper with sensible defaults and source scanning.
# other modules
* DependencyValidation is now in `pluginconf.depends`
* `pluginconf.flit` is meant as alternative to setup.
#### Caveats
* It’s mostly just an excerpt from streamtuner2.
* Might need customization prior use.
* The GUI implmentation is fairly simplistic.
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
<
>
| 167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
| automatic lookup. The non-standard PMD field `# classifiers: x11, python`
can be used to lookup trove categories (crude search on select topics).
All other `setup(fields=…)` are passed on to distutils/setuptools as is.
-- Btw, [setupmeta](https://pypi.org/project/setupmeta/) is an even more
versatile wrapper with sensible defaults and source scanning.
# flit wrapper
Alternatively, there's `pluginconf.flit` to utilize pyproject.toml for
building packages, while sourcing meta data from the primary package file.
[build-system]
requires = ["flit_core", "pluginconf"]
build-backend = "pluginconf.flit"
[project]
name = "projectname"
It can be invoked via `python -m pluginconf.flit build` or even
`flit-pluginconf build`. It's not very robust however.
## other modules
* DependencyValidation is now in `pluginconf.depends`
* argparse_map() might also end up in a separate module.
#### Caveats
* It’s mostly just an excerpt from streamtuner2.
* Might need customization prior use.
* The GUI implmentation is fairly simplistic.
|