1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-06 03:50:08 +02:00
Commit graph

14 commits

Author SHA1 Message Date
Floris Bruynooghe
0fd55137f6 Improve building of extension a little
- This renames deltachat.types to deltachat.props.  Not re-using a
  stdlib name is somewhat nice and solves a weird edge-case for me where
  the deltachat.types module can be hiding stdlib types by the deltachat
  directory appearing before the stlib on sys.path.

- When manually invoking the build script (rather then via
  pip/setup.py) it figures out where the package actually lives and
  makes sure the .so file ends up in that directory.  This is better
  than the current version which depends on the current directory and
  thus sometimes creates an alternate deltachat/ directory tree.

- Add some common python artefact files to gitignore.
2018-11-01 18:12:06 +02:00
holger krekel
c4418a0e14 generate DC_* constants in new deltachat.const module which are living as #define macros in deltachat.h. You can re-generate with "python src/deltachat/const.py". 2018-09-26 11:21:13 +02:00
holger krekel
da2bcd0c5a introduce message.get_state() API which provides is_in_delivered()|is_out_delivered|... methods. 2018-09-14 21:46:14 +02:00
holger krekel
9d22585cea add contact handling and tests, complete get_contacts() API with flags,query 2018-09-14 11:30:57 +02:00
holger krekel
4f5ded880e make send and receive message test work, add some events 2018-09-08 16:29:58 +02:00
holger krekel
823d1283ac a first multi-account test, no real checks yet 2018-09-08 11:24:09 +02:00
holger krekel
940f665b54 tox.ini and py35 support, fix linting errors 2018-09-07 18:34:15 +02:00
holger krekel
1ff06c071b do some string conversions less hackish and address one review comment on how to call the callback and return results 2018-09-06 16:28:27 +02:00
holger krekel
0340dbe81c quick try at adding DC_EVENT names and use them to deltachat bindings 2018-09-05 13:53:18 +02:00
Floris Bruynooghe
08689b2a04 Add support for the callback in python/cffi
This uses one global event handler function on the C level, as
enforced by CFFI, and caters for registering a per-context event
handeler.  A simple fixture for doing this during tests is also
implemented.
2018-07-22 13:46:09 +02:00
Floris Bruynooghe
3aeec2202a Update python bindings to new headers naming
This fixes the python bindings build to work with the new layout of
the header files and new names.
2018-07-19 20:15:54 +02:00
Floris Bruynooghe
942a974818 Add free definition 2018-01-06 22:30:46 +01:00
Floris Bruynooghe
9048a2dbab Build from the installed deltachat version
This cleans up the build somewhat:
- Move time_t declaration to _build.py
- Uses Python's distutils to invoke the "correct" compiler.  Or at
  least does not make this code responsible to picking a compiler
- Uses the compiler to find the installed header file, builds
  against this installed version.  Since linking will also be
  against this installed version this seems to make some sense.

This seems somewhat ugly though.
2018-01-04 23:10:40 +01:00
Floris Bruynooghe
b1261ed028 WIP: First stop towards python bindings
This is a very rough first stab at compiling CFFI Python bindings
for deltachat-core.
2018-01-04 21:00:14 +01:00