<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gpgme/lang/python/tests/run-tests.py, branch gniibe/t7759</title>
<subtitle>GnuPG Made Easy.</subtitle>
<id>http://git.bktus.com/gpgfrontend/gpgme/atom?h=gniibe%2Ft7759</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/gpgme/atom?h=gniibe%2Ft7759'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/'/>
<updated>2025-02-03T10:19:09Z</updated>
<entry>
<title>python: Remove Python bindings</title>
<updated>2025-02-03T10:19:09Z</updated>
<author>
<name>Ingo Klöcker</name>
<email>dev@ingo-kloecker.de</email>
</author>
<published>2025-02-03T09:49:45Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=932caf37d36eca2caec59bf48bc505364a5765bb'/>
<id>urn:sha1:932caf37d36eca2caec59bf48bc505364a5765bb</id>
<content type='text'>
* README: Update.
* configure.ac: Remove checks, variables and file generations related to
the Python bindings. Remove python from available_languages and
default_languages.
* lang/Makefile.am (DIST_SUBDIRS): Remove python.
* lang/python: Remove.
* m4/ax_pkg_swig.m4, m4/ax_python_devel.m4, m4/python.m4: Remove.
--

The Python bindings have been moved to a separate Git repository:
gpgmepy.

GnuPG-bug-id: 7262

</content>
</entry>
<entry>
<title>doc: use https:// for www.gnu.org</title>
<updated>2018-10-18T04:28:51Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2018-10-18T03:56:27Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=2f12427e416a0a40bf680a421f9ed20340d5bb96'/>
<id>urn:sha1:2f12427e416a0a40bf680a421f9ed20340d5bb96</id>
<content type='text'>
--

Signed-off-by: Daniel Kahn Gillmor &lt;dkg@fifthhorseman.net&gt;
</content>
</entry>
<entry>
<title>Python bindings tests: Near PEP8 compliance</title>
<updated>2018-08-18T10:29:14Z</updated>
<author>
<name>Ben McGinnes</name>
<email>ben@adversary.org</email>
</author>
<published>2018-08-18T10:29:14Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=5facba45c83f7daaacc49e66306e13a35aeb74be'/>
<id>urn:sha1:5facba45c83f7daaacc49e66306e13a35aeb74be</id>
<content type='text'>
* PEP8 compliance for the vast majoeity of the tests.
</content>
</entry>
<entry>
<title>python: fix run-tests missing python_libdir</title>
<updated>2017-04-11T08:16:47Z</updated>
<author>
<name>Alon Bar-Lev</name>
<email>alon.barlev@gmail.com</email>
</author>
<published>2017-04-10T22:55:13Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=d785c053a982bddefd7014dc6856d1af345fe9fb'/>
<id>urn:sha1:d785c053a982bddefd7014dc6856d1af345fe9fb</id>
<content type='text'>
* lang/python/tests/run-tests.py: Set python_libdir if --python-libdir
is set.

Signed-off-by: Alon Bar-Lev &lt;alon.barlev@gmail.com&gt;
</content>
</entry>
<entry>
<title>python: Support alternatate libdir for tests</title>
<updated>2017-04-10T12:48:03Z</updated>
<author>
<name>Alon Bar-Lev</name>
<email>alon.barlev@gmail.com</email>
</author>
<published>2017-04-08T13:34:33Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=3cc90b67fa970e716c8672ec5c5f591fa11ab216'/>
<id>urn:sha1:3cc90b67fa970e716c8672ec5c5f591fa11ab216</id>
<content type='text'>
* lang/python/tests/run-tests.py: Add --python-libdir optional
parameter.

--

This will make the python tests usable for downstream that build python
module outside of autotools build system.

Signed-off-by: Alon Bar-Lev &lt;alon.barlev@gmail.com&gt;
</content>
</entry>
<entry>
<title>python: Remove usage of PYTHON_VERSIONS</title>
<updated>2017-04-10T12:44:16Z</updated>
<author>
<name>Alon Bar-Lev</name>
<email>alon.barlev@gmail.com</email>
</author>
<published>2017-04-08T13:34:30Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=25e6444b3f4601c7821beab06bc4520deacb007b'/>
<id>urn:sha1:25e6444b3f4601c7821beab06bc4520deacb007b</id>
<content type='text'>
* configure.ac: Remove PYTHON_VERSIONS subst.
* lang/python/Makefile.am: Use basename of python as builddir prefix.
* lang/python/tests/run-tests.py: Likewise.

--

Two variables needs be at sync PYTHONS and PYTHON_VERSIONS, these may go
out of sync in some cases, for example in Gentoo where default python is
3.4 we get:

PYTHON='/usr/bin/python2'
PYTHONS='/usr/bin/python /usr/bin/python2'
PYTHON_VERSIONS='2.7 3.4'

We can use the basename of the python interpreter to achieve similar
effect without having to sync indexes between these two variables.

Signed-off-by: Alon Bar-Lev &lt;alon.barlev@gmail.com&gt;
</content>
</entry>
<entry>
<title>python: Generate files into build directory</title>
<updated>2017-04-05T12:48:47Z</updated>
<author>
<name>Alon Bar-Lev</name>
<email>alon.barlev@gmail.com</email>
</author>
<published>2017-04-01T23:29:52Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=801d7d8c5dd530d26ad6c4bcc94d986e6e022da4'/>
<id>urn:sha1:801d7d8c5dd530d26ad6c4bcc94d986e6e022da4</id>
<content type='text'>
* lang/python/setup.py.in: Generate files within BuildExtFirstHack
adjust build flags at this point instead of global.
* lang/python/Makefile.am: Remove logic of separate source directory per
python version in favor of build directory.
* lang/python/tests/run-tests.py: Adjust build directory location.
--

Generate files into build directory, leaving the source directory clean.
Use the same source directory for multiple python version build. Result
of 'prepare' target is a standard distutil layout that can be used
easily by downstream to build all python targets in-place.

Signed-off-by: Alon Bar-Lev &lt;alon.barlev@gmail.com&gt;
</content>
</entry>
<entry>
<title>python: Don't treat skipped tests as error</title>
<updated>2017-03-30T14:22:20Z</updated>
<author>
<name>Andre Heinecke</name>
<email>aheinecke@intevation.de</email>
</author>
<published>2017-03-30T14:22:20Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=f8a9ecc6290ebd73fa36647cdfca285fe4d94a62'/>
<id>urn:sha1:f8a9ecc6290ebd73fa36647cdfca285fe4d94a62</id>
<content type='text'>
* lang/python/tests/run-tests.py (failed): Don't count skipped tests
for the return code.
</content>
</entry>
<entry>
<title>python: Make error message more helpful.</title>
<updated>2017-03-14T11:20:25Z</updated>
<author>
<name>Justus Winter</name>
<email>justus@g10code.com</email>
</author>
<published>2017-03-14T10:10:21Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=9d6825be092f1590f28b5bab462eeb944d9b800c'/>
<id>urn:sha1:9d6825be092f1590f28b5bab462eeb944d9b800c</id>
<content type='text'>
* lang/python/tests/run-tests.py: Make the error message shown when we
cannot locate the python module in the build tree more helpful.

Signed-off-by: Justus Winter &lt;justus@g10code.com&gt;
</content>
</entry>
<entry>
<title>python: Use one copy of the source tree per Python version.</title>
<updated>2017-02-13T15:44:53Z</updated>
<author>
<name>Justus Winter</name>
<email>justus@g10code.com</email>
</author>
<published>2017-02-13T15:44:53Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=fe65a26ab584bd70fad45c7c4d44330e30a748a4'/>
<id>urn:sha1:fe65a26ab584bd70fad45c7c4d44330e30a748a4</id>
<content type='text'>
* lang/python/Makefile.am (copystamp): Create one copy per Python
version.
(all-local): Adapt.
(clean-local): Likewise.
(install-exec-local): Likewise.
* lang/python/tests/run-tests.py: Likewise.
--

Currently, we use one copy of the Python module's source to build for
all Python versions.  This is problematic, because SWIG writes a
wrapper file into the source tree.  Currently, this file works with
both Python 2 and 3, but this is purely by chance.

Improve the situation by creating one copy per Python version so that
SWIG can write version-specific code into each copy.

Signed-off-by: Justus Winter &lt;justus@g10code.com&gt;
</content>
</entry>
</feed>
