ELITR / online-text-flow

Online event streaming to improve data and text flows
MIT License
1 stars 0 forks source link

Split events server #15

Closed Gldkslfmsd closed 3 years ago

Gldkslfmsd commented 3 years ago

TODO:

@srdecny , please check

Let's pull it when it's 100% reviewed.

Gldkslfmsd commented 3 years ago

So, Ota, how do you find it now? @otakar-smrz

Gldkslfmsd commented 3 years ago

so, I found that even the two old suggested ways of installation were wrong, and found a better one. See make install .

Compare the duration of events.

1) the optimal one:

make make check

2) make develop make check

3) make editable make check

otakar-smrz commented 3 years ago

I suggest we move elitr/otf_server into elitr/onlinetextflow/server, and that will solve the issue. I will then handle the move of server.py into __init.py__, and that should be all we need, and enough :) I mean, the Makefile is interesting, feel free to keep it. I suggest we revert README.md to the version before the split, and I will only update the server subfolder information and the move from server.py to server/__init__.py. Please add all your recommendations about the right install procedure. Thanks!

Gldkslfmsd commented 3 years ago

server.py doesn't have to be moved to server/__init__.py . It's better as server.py and server/__init__.py can be empty.

otakar-smrz commented 3 years ago

This server.py vs server/__init__.py made me search on how imports are done. Both files cannot coexist. Also with Python 3.3, implicit namespace packages should require no __init__.py in the namespace directory. I will change that in the master later on, and I prefer server/__init__.py and all related files in the server/ folder, too.

https://www.python.org/dev/peps/pep-0420/#specification

otakar-smrz commented 3 years ago

@Gldkslfmsd

Thanks for the suggestions in this branch. I have looked into some a bit more, like the dynamic module imports with elitr.onlinetextflow.__init__. Now online-text-flow COMMAND works efficiently, importing only the needed submodules.

Can you please proceed with reviewing the diff, and go ahead with merging the Makefile and any remaining changes in README.md? Thank you.

Gldkslfmsd commented 3 years ago

Hi, I merged master into this branch (because it had several good new changes), and changed the README. I propose merge into master now. The last question is, how. Merge, or merge squash, or rebase and merge?

otakar-smrz commented 3 years ago

Hi, if the diffs are in new files or additions in README.md, I do not mind. I actually do not know git to that detail, anything linear seems fine :) I have just checked Makefile, it still assumes the separate otf_server folder ... Thanks :)