Commit Graph

502 Commits (master)

Author SHA1 Message Date
heck 89613b713e test: sync_test.py - add --debuglog -d 2021-03-30 22:45:41 +02:00
heck 3615191b11 Build: python_requires = >=3.7,<3.9 (since linux and mac might be different) 2021-03-30 22:38:02 +02:00
heck a80a18f027 test: sync_handshake.py - add --debuglog -d option 2021-03-30 22:37:09 +02:00
heck 7fb3ef584e use Adapter::inject_sync_shutdown() (libpEpAdapter > 0517b9b) 2021-03-30 03:01:10 +02:00
heck 47205953d3 Build: Make default PREFIX=$(HOME), DEBUG=1 2021-03-30 02:58:08 +02:00
Volker Birk 35a83abf14 always have three keys 2021-03-29 22:45:05 +02:00
heck b1400519ff Merge branch 'Release_2.1' 2021-03-29 18:22:52 +02:00
Volker Birk 7f2d884f6e add disable_all_sync_channels() and test with extra identity 2021-03-29 13:47:08 +02:00
heck d94e5881f4 PYADPT-111: sync_handshake.py, now support single- and mutlithreaded again. but through libpEpAdapter 2021-03-27 05:16:56 +01:00
heck 5738a2ea33 PYADPT-111: a little bit of testing 2021-03-27 05:15:48 +01:00
heck bb70cf0169 PYADPT-111: "Add Single Threaded Sync Implementation" - Implementation 2021-03-27 05:15:16 +01:00
heck 76ef8e0a21 Merge branch 'Release_2.1' of https://gitea.pep.foundation/pEp.foundation/pEpPythonAdapter into Release_2.1 2021-03-25 18:38:32 +01:00
heck 9a75cab9cd Build: update supported python versions 2021-03-25 18:38:22 +01:00
Volker Birk a35cea292e Merge branch 'Release_2.1' of ssh://gitea.pep.foundation:23065/pEp.foundation/pEpPythonAdapter into Release_2.1 2021-03-25 18:32:59 +01:00
heck fc927ccaac FIX: thread.isAlive() replaced with thread.is_alive() (deprecated) 2021-03-25 18:29:02 +01:00
Volker Birk 5c4dcdba4a the sync thread will continue, don't change directory 2021-03-25 14:46:36 +01:00
Thomas 72aaa55ef5 Update Windows build 2021-03-25 14:08:25 +01:00
heck 8623adce03 BUILD: since using venv, default make target is "make install" 2021-03-25 02:07:54 +01:00
heck 4795d25492 BUILD: Add lxml and termcolor to test requirements 2021-03-25 02:07:24 +01:00
heck aaaa54f6ad Merge branch 'PYADPT-110 - Add Mutlithreaded Sync Implementation' into Release_2.1
Complete Sync implementation in python using python threading.

from libpEpAdapter, use:
* Session
* CallbackDispatcher
* Sync Event Queue
    * retrieve_next_sync_event()
    * _inject_sync_event()

*Sync event processing loop*
Write single threaded implementation of the engine function "do_sync_protocol()" using:
* retrieve_next_sync_event() (libpEpAdapter)
* do_sync_protocol_step() (Engine)
The event loop has to be terminated on NULL event.

*Sync Thread*
Implement Sync thread in python. The Thread has to do:
* Init: register_sync_callbacks()
* Sync event processing loop ()
* Cleanup: unregister_sync_callbacks()

*Python API*
The python API stays backwards compatible.
* start_sync() is not allowed to return before "register_sync_callbacks()" in the sync thread has returned
* stop_sync() has to use _inject_sync_event from libpEpAdapter
* is_sync_active() reports if the python Sync thread is running

*Testing*
* Update [~fdik]s sync_test.py / sync_handshake.py to work with the new sync impl.
* Add a test for start_sync() / stop_sync() continuously
2021-03-25 01:55:04 +01:00
heck d3d72fd95e .gitignore for "make develop" .so 2021-03-25 01:54:00 +01:00
heck 58cff017ff PYADPT-110: Add a test for start_sync() / stop_sync() repeatedly 2021-03-25 01:52:58 +01:00
heck 3a6058e4b5 PYADPT-110: Update sync testing (sync_handshake.py) to work with new sync impl 2021-03-25 01:52:15 +01:00
heck f858556460 PYADPT-110: "Add Mutlithreaded Sync Implementation" - Implementation 2021-03-25 01:50:25 +01:00
heck 4209c480a6 correct typo 2021-03-24 01:19:44 +01:00
heck 819dae00c7 .gitignore: add .so 2021-03-24 01:16:09 +01:00
heck e8e46cbbad Test: README.md - add link to more sync testing doc. 2021-03-23 19:17:25 +01:00
heck 3c9bcc1978 CI: Add DEPENDENCIES file 2021-03-23 16:17:45 +01:00
heck 42352258fa docs: update link "Adapter Build Instructions" 2021-03-23 16:00:38 +01:00
heck b76d0410cf Improve README.rst 2021-03-23 15:58:29 +01:00
heck c9864de24e Merge commit 'c643f1ff' into Release_2.1 2021-02-18 01:11:37 +01:00
heck 201f193c18 Merge branch 'Release_2.1.0' of https://gitea.pep.foundation/pEp.foundation/pEpPythonAdapter into Release_2.1.0 2021-02-18 00:39:34 +01:00
heck e9cce83395 Fix mac/linux build / make all CFLAGS platform specific 2021-02-17 21:48:52 +01:00
Thomas ea5d4f62ed Add Windows project and adjust build script for Windows build 2021-02-17 15:38:00 +01:00
heck c643f1ff4c C++ class Myself : Identity unused 2020-12-03 01:22:40 +01:00
heck 533477bf64 formatting 2020-12-01 02:12:57 +01:00
heck 7627b6aba1 aww always these typos... 2020-12-01 02:12:42 +01:00
heck 11d257d2c3 .gitignore: mercurial to git migration completed 2020-11-24 15:00:15 +01:00
heck b9e1054c3c minor typo 2020-11-24 14:59:13 +01:00
heck 49af7303a9 TODO: fix pEp.rating 2020-11-13 21:24:13 +01:00
heck a3d25c67a5 use decorators, its neat. 2020-11-13 16:20:59 +01:00
heck 94bc07aadd fix imports 2020-11-13 13:58:39 +01:00
heck dcea22558b basic_doctest.py: rewrite as pytest, move to pytests 2020-11-13 13:58:15 +01:00
heck 8b202b6bf7 basic_doctest.py: rewrite as pytest 2020-11-13 13:56:23 +01:00
heck a03295b495 AGPL 3.0 headers 2020-11-13 02:54:45 +01:00
heck 9a3fb3918d authors roles 2020-11-13 02:49:56 +01:00
heck e6f6a1f6ab test infrastructure 2020-11-13 02:49:35 +01:00
heck 04cd048ee4 Update author credits 2020-11-12 18:05:00 +01:00
heck 938639b379 constants add user id, etc... 2020-11-11 18:56:13 +01:00
heck f70c58685a default pytest opts belong into pyproject.toml 2020-11-11 18:34:39 +01:00