<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gpgme/lang/python/tests/t-data.py, branch gpgme-1.7.0</title>
<subtitle>GnuPG Made Easy.</subtitle>
<id>http://git.bktus.com/gpgfrontend/gpgme/atom?h=gpgme-1.7.0</id>
<link rel='self' href='http://git.bktus.com/gpgfrontend/gpgme/atom?h=gpgme-1.7.0'/>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/'/>
<updated>2016-09-14T10:15:57Z</updated>
<entry>
<title>python: Import from __future__ to align behavior of Python 2.7.</title>
<updated>2016-09-14T10:15:57Z</updated>
<author>
<name>Justus Winter</name>
<email>justus@g10code.com</email>
</author>
<published>2016-09-14T09:39:00Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=dc23fdf55561659f9e9cff51668ac9c6c027c885'/>
<id>urn:sha1:dc23fdf55561659f9e9cff51668ac9c6c027c885</id>
<content type='text'>
--
Signed-off-by: Justus Winter &lt;justus@g10code.com&gt;
</content>
</entry>
<entry>
<title>python: Use more generic shebang.</title>
<updated>2016-09-14T10:15:57Z</updated>
<author>
<name>Justus Winter</name>
<email>justus@g10code.com</email>
</author>
<published>2016-09-14T08:51:49Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=3b37c4efcf68657a856dbce60c0bd0fc78dd0770'/>
<id>urn:sha1:3b37c4efcf68657a856dbce60c0bd0fc78dd0770</id>
<content type='text'>
--
Signed-off-by: Justus Winter &lt;justus@g10code.com&gt;
</content>
</entry>
<entry>
<title>python: Port more tests.</title>
<updated>2016-05-27T15:24:12Z</updated>
<author>
<name>Justus Winter</name>
<email>justus@gnupg.org</email>
</author>
<published>2016-05-27T13:58:23Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=3915842657f0849a038752fd7445f96081a89dd9'/>
<id>urn:sha1:3915842657f0849a038752fd7445f96081a89dd9</id>
<content type='text'>
* lang/python/pyme/core.py (Data._error_check): Add
'gpgme_data_get_file_name' to the list of functions not returning an
error code.
* lang/python/tests/Makefile.am (pytests): Add new tests.
* lang/python/tests/support.py (verbose): New variable.
* lang/python/tests/t-data.py: Test setting and getting the filename.
* lang/python/tests/t-encrypt-large.py: New file.
* lang/python/tests/t-file-name.py: Likewise.
* lang/python/tests/t-trustlist.py: Likewise.

Signed-off-by: Justus Winter &lt;justus@gnupg.org&gt;
</content>
</entry>
<entry>
<title>python: Implement data callbacks.</title>
<updated>2016-05-27T12:04:28Z</updated>
<author>
<name>Justus Winter</name>
<email>justus@gnupg.org</email>
</author>
<published>2016-05-27T12:04:28Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=2ae847c02731994d99e69d3d025ff01f41406452'/>
<id>urn:sha1:2ae847c02731994d99e69d3d025ff01f41406452</id>
<content type='text'>
* lang/python/gpgme.i (object_to_gpgme_t): Set exception on error.
* lang/python/helpers.c (pyDataReadCb): New function.
(pyDataWriteCb): Likewise.
(pyDataSeekCb): Likewise.
(pyDataReleaseCb): Likewise.
(pygpgme_data_new_from_cbs): Likewise.
* lang/python/helpers.h (pygpgme_data_new_from_cbs): New prototype.
* lang/python/pyme/core.py (Data.__init__): Fix docstring, fix read
callbacks.
(Data.__del__): Fix read callbacks.
(Data._free_readcb): Drop function.
(Data._free_datacbs): New function.
(Data.new_from_cbs): Fix setting the callbacks.
(Data.write): Raise stashed exceptions.
(Data.read): Likewise.
* lang/python/tests/t-callbacks.py: Test new functionality.
* lang/python/tests/t-data.py: Likewise.

Signed-off-by: Justus Winter &lt;justus@gnupg.org&gt;
</content>
</entry>
<entry>
<title>python: Fix reading data from existing files.</title>
<updated>2016-05-27T10:18:29Z</updated>
<author>
<name>Justus Winter</name>
<email>justus@gnupg.org</email>
</author>
<published>2016-05-25T10:47:28Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=bf188e280b8b4fc775f33c47e2e1e275ed044004'/>
<id>urn:sha1:bf188e280b8b4fc775f33c47e2e1e275ed044004</id>
<content type='text'>
* lang/python/pyme/core.py (Data.__init__): Add 'copy' kwargument, and
pass it to functions supporting it.  PEP8 fix.
(Data.new_from_fd): PEP8 fix.
(Data.new_from_file): Give a more helpful error message if copy is
False.  PEP8 fix.
(Data.new_from_fd): Hand the file descriptor to
'gpgme_data_new_from_fd', not a stream.  Fix docstring.
* lang/python/tests/t-data.py: Add tests for this.

Signed-off-by: Justus Winter &lt;justus@gnupg.org&gt;
</content>
</entry>
<entry>
<title>python: Fix writing to data buffers.</title>
<updated>2016-05-12T15:59:21Z</updated>
<author>
<name>Justus Winter</name>
<email>justus@gnupg.org</email>
</author>
<published>2016-05-12T15:44:54Z</published>
<link rel='alternate' type='text/html' href='http://git.bktus.com/gpgfrontend/gpgme/commit/?id=f7094d8358e933f3ce074eade7a40b2a7d291180'/>
<id>urn:sha1:f7094d8358e933f3ce074eade7a40b2a7d291180</id>
<content type='text'>
* lang/python/gpgme.i: Add typemap for buffers.
* lang/python/pyme/core.py (Data.write): Fix function.
* lang/python/tests/Makefile.am: Add new test.
* lang/python/tests/t-data.py: New file.

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