gplugin/gplugin

Parents 5c70c93d2727
Children 4abae92ecef8
Get every last reference to python that does not have a version attached to it.

Testing Done:
ran `ninja test`, `ninja gplugin-pot`, and `ninja gplugin-doc`.

Reviewed at https://reviews.imfreedom.org/r/111/
--- a/HACKING.OSX Sun Sep 06 01:37:55 2020 -0500
+++ b/HACKING.OSX Tue Sep 08 04:50:20 2020 -0500
@@ -13,7 +13,7 @@
systemwide or to a virtual environment created by LuaDist, vert, or something
along those lines, then you just need to run `luarocks install lgi`.
-## Python
+## Python3
If you're using homebrew, you need to install `pygobject3`.
--- a/README.md Sun Sep 06 01:37:55 2020 -0500
+++ b/README.md Tue Sep 08 04:50:20 2020 -0500
@@ -20,7 +20,8 @@
## Language Support
-GPlugin currently supports plugins written in C/C++, Lua, Python, and Vala.
+GPlugin currently supports plugins written in C/C++, Lua, Perl5, Python3, and
+Vala.
## API Reference
--- a/gplugin/reference/gplugin-docs.xml Sun Sep 06 01:37:55 2020 -0500
+++ b/gplugin/reference/gplugin-docs.xml Tue Sep 08 04:50:20 2020 -0500
@@ -30,7 +30,7 @@
<xi:include href="lua.xml"/>
<xi:include href="native-plugins.xml"/>
<xi:include href="perl5.xml"/>
- <xi:include href="python.xml"/>
+ <xi:include href="python3.xml"/>
<xi:include href="vala.xml"/>
</part>
--- a/gplugin/reference/meson.build Sun Sep 06 01:37:55 2020 -0500
+++ b/gplugin/reference/meson.build Tue Sep 08 04:50:20 2020 -0500
@@ -32,7 +32,7 @@
'lua.xml',
'native-plugins.xml',
'perl5.xml',
- 'python.xml',
+ 'python3.xml',
'vala.xml',
]
--- a/gplugin/reference/python.xml Sun Sep 06 01:37:55 2020 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,56 +0,0 @@
-<?xml version='1.0' encoding="UTF-8"?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
- "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
-]>
-<chapter id="chapter-python">
- <title>Python Plugins</title>
-
- <warning>
- <para>
- You <emphasis role="strong">MUST</emphasis> have the Python loader
- plugin installed and working as well as the gobject-introspection
- package for GPlugin installed to use Python plugins.
- </para>
- </warning>
-
- <simplesect>
- <title>Example Python Plugin</title>
-
- <para>
- Like all plugins in GPlugin, Python plugins must also implement
- the <code>gplugin_query</code>, <code>gplugin_load</code>, and
- <code>gplugin_unload</code> functions.
- </para>
-
- <para>
- The following is a basic Python plugin.
- </para>
-
- <informalexample><programlisting>
- import gi
-
- gi.require_version("GPlugin", "0.0")
- from gi.repository import GPlugin
-
- def gplugin_plugin_query():
- return GPlugin.PluginInfo(
- id="gplugin-python/basic-plugin",
- abi_version=0x01020304,
- name="basic plugin",
- authors=["author1"],
- category="test",
- version="version",
- license_id="license",
- summary="summary",
- website="website",
- description="description",
- )
-
- def gplugin_plugin_load(plugin):
- return True
-
- def gplugin_plugin_unload(plugin):
- return True
- </programlisting></informalexample>
- </simplesect>
-</chapter>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/gplugin/reference/python3.xml Tue Sep 08 04:50:20 2020 -0500
@@ -0,0 +1,56 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
+]>
+<chapter id="chapter-python">
+ <title>Python Plugins</title>
+
+ <warning>
+ <para>
+ You <emphasis role="strong">MUST</emphasis> have the Python loader
+ plugin installed and working as well as the gobject-introspection
+ package for GPlugin installed to use Python plugins.
+ </para>
+ </warning>
+
+ <simplesect>
+ <title>Example Python Plugin</title>
+
+ <para>
+ Like all plugins in GPlugin, Python plugins must also implement
+ the <code>gplugin_query</code>, <code>gplugin_load</code>, and
+ <code>gplugin_unload</code> functions.
+ </para>
+
+ <para>
+ The following is a basic Python plugin.
+ </para>
+
+ <informalexample><programlisting>
+ import gi
+
+ gi.require_version("GPlugin", "0.0")
+ from gi.repository import GPlugin
+
+ def gplugin_plugin_query():
+ return GPlugin.PluginInfo(
+ id="gplugin-python/basic-plugin",
+ abi_version=0x01020304,
+ name="basic plugin",
+ authors=["author1"],
+ category="test",
+ version="version",
+ license_id="license",
+ summary="summary",
+ website="website",
+ description="description",
+ )
+
+ def gplugin_plugin_load(plugin):
+ return True
+
+ def gplugin_plugin_unload(plugin):
+ return True
+ </programlisting></informalexample>
+ </simplesect>
+</chapter>
--- a/packaging/debian/control Sun Sep 06 01:37:55 2020 -0500
+++ b/packaging/debian/control Tue Sep 08 04:50:20 2020 -0500
@@ -52,7 +52,7 @@
Depends: ${misc:Depends}, ${shlibs:Depends},
libgplugin-lua,
libgplugin-perl5,
- libgplugin-python
+ libgplugin-python3
Description: metapackage for all gplugin loaders
GPlugin is a GObject based library that implements a reusable plugin system
which supports loading plugins in other languages via loaders. It relies
@@ -132,12 +132,12 @@
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}, python3, python3-gi,
libgplugin0, gir1.2-gplugin-0.0
-Description: GPlugin Python Loader
+Description: GPlugin Python3 Loader
GPlugin is a GObject based library that implements a reusable plugin system
which supports loading plugins in other languages via loaders. It relies
heavily on GObjectIntrospection to expose its API to the other languages.
.
- This package allows GPlugin to load plugins written in the Python programming
+ This package allows GPlugin to load plugins written in the Python3 programming
language.
Package: libgplugin-perl5
--- a/packaging/gplugin.spec.in Sun Sep 06 01:37:55 2020 -0500
+++ b/packaging/gplugin.spec.in Tue Sep 08 04:50:20 2020 -0500
@@ -134,7 +134,7 @@
that supports loading plugins in other languages via loaders. GPlugin also
implements dependencies among the plugins.
-This package contains Python 3 loader for %{name} library.
+This package contains Python3 loader for %{name} library.
%description vala
GPlugin is a GObject based library that implements a reusable plugin system
--- a/po/POTFILES Sun Sep 06 01:37:55 2020 -0500
+++ b/po/POTFILES Tue Sep 08 04:50:20 2020 -0500
@@ -24,11 +24,11 @@
perl5/gplugin-perl5-core.c
perl5/gplugin-perl5-loader.c
perl5/gplugin-perl5-plugin.c
-python/gplugin-python3-core.c
-python/gplugin-python3-loader.c
-python/gplugin-python3-plugin.c
-python/gplugin-python3-test-pygobject.c
-python/gplugin-python3-utils.c
+python3/gplugin-python3-core.c
+python3/gplugin-python3-loader.c
+python3/gplugin-python3-plugin.c
+python3/gplugin-python3-test-pygobject.c
+python3/gplugin-python3-utils.c
tcc/gplugin-tcc-core.c
tcc/gplugin-tcc-loader.c
tcc/gplugin-tcc-plugin.c
--- a/python3/gplugin-python3-core.c Sun Sep 06 01:37:55 2020 -0500
+++ b/python3/gplugin-python3-core.c Tue Sep 08 04:50:20 2020 -0500
@@ -39,12 +39,12 @@
GPLUGIN_NATIVE_PLUGIN_ABI_VERSION,
"internal", TRUE,
"load-on-query", TRUE,
- "name", "Python Plugin Loader",
+ "name", "Python3 Plugin Loader",
"version", GPLUGIN_VERSION,
"license-id", "LGPL-2.0-or-later",
"summary", "A plugin that can load python plugins",
"description", "This plugin allows the loading of plugins written in "
- "the python programming language.",
+ "the Python3 programming language.",
"authors", authors,
"website", GPLUGIN_WEBSITE,
"category", "loaders",
@@ -69,7 +69,7 @@
error,
GPLUGIN_DOMAIN,
0,
- _("The Python loader can not be unloaded"));
+ _("The Python3 loader can not be unloaded"));
return FALSE;
}
--- a/python3/gplugin-python3-loader.c Sun Sep 06 01:37:55 2020 -0500
+++ b/python3/gplugin-python3-loader.c Tue Sep 08 04:50:20 2020 -0500
@@ -337,7 +337,7 @@
{
wchar_t *argv[] = {NULL, NULL};
- /* Initializes Python */
+ /* Initializes Python3 */
if(!Py_IsInitialized())
Py_InitializeEx(FALSE);
--- a/python3/meson.build Sun Sep 06 01:37:55 2020 -0500
+++ b/python3/meson.build Tue Sep 08 04:50:20 2020 -0500
@@ -1,6 +1,6 @@
if get_option('python3')
if not get_option('introspection')
- error('Python plugin requires GObject Introspection.')
+ error('Python3 plugin requires GObject Introspection.')
endif
GPLUGIN_PYTHON3_SOURCES = [
--- a/python3/tests/meson.build Sun Sep 06 01:37:55 2020 -0500
+++ b/python3/tests/meson.build Tue Sep 08 04:50:20 2020 -0500
@@ -10,7 +10,7 @@
dependencies : [GLIB, GOBJECT, PYTHON3, PYGOBJECT, gplugin_dep])
test('Python3 loader', e)
-# we can't see the symbols in gplugin-python externally, so use the static
+# we can't see the symbols in gplugin-python3 externally, so use the static
# version for testing
e = executable('test-python3-utils', 'test-python3-utils.c',
include_directories : include_directories('.'),
--- a/python3/tests/test-python3-utils.c Sun Sep 06 01:37:55 2020 -0500
+++ b/python3/tests/test-python3-utils.c Tue Sep 08 04:50:20 2020 -0500
@@ -34,7 +34,7 @@
test_filename_to_module_NULL(void)
{
g_test_trap_subprocess(
- "/loaders/python/utils/filename_to_module/NULL/subprocess",
+ "/loaders/python3/utils/filename_to_module/NULL/subprocess",
0,
0);
@@ -71,16 +71,16 @@
/* tests */
g_test_add_func(
- "/loaders/python/utils/filename_to_module/NULL",
+ "/loaders/python3/utils/filename_to_module/NULL",
test_filename_to_module_NULL);
g_test_add_func(
- "/loaders/python/utils/filename_to_module/NULL/subprocess",
+ "/loaders/python3/utils/filename_to_module/NULL/subprocess",
test_filename_to_module_NULL_subprocess);
g_test_add_func(
- "/loaders/python/utils/filename_to_module/empty",
+ "/loaders/python3/utils/filename_to_module/empty",
test_filename_to_module_empty);
g_test_add_func(
- "/loaders/python/utils/filename_to_module/no-extension",
+ "/loaders/python3/utils/filename_to_module/no-extension",
test_filename_to_module_no_extension);
return g_test_run();