921 Commits

Author SHA1 Message Date
Athanasius
b838777d32 core/StatsCollector.py: black pass 2022-03-12 14:17:35 +00:00
Athanasius
47095d7615 core/Validator: black pass, and remove extraneous , in constants 2022-03-12 14:16:37 +00:00
Athanasius
32fb1b00ab core/DuplicateMessages: black / quotes pass 2022-03-12 14:14:31 +00:00
Athanasius
20d784ae09 setup.py: black and otherwise s/'/"/g pass 2022-03-12 14:10:41 +00:00
Athanasius
3cf7b765fb pyproject.toml: Exclude everything but actual core EDDN source 2022-03-12 14:07:42 +00:00
Athanasius
8da69a2101 conf/Settings: s/'/"/g; But not with black
We **do** want the special layout of the actual config defaults, so
screw black!
2022-03-12 13:48:57 +00:00
Athanasius
0e42fa71ea conf/__init__.py: docstring 2022-03-12 13:46:53 +00:00
Athanasius
3a9246a464 Relay: Re-format with black 2022-03-12 13:45:37 +00:00
Athanasius
cf01daeaf2 Monitor: Re-format with black 2022-03-12 13:43:44 +00:00
Athanasius
e6ea9cb7a2 Bouncer: Re-format with black. 2022-03-12 13:41:27 +00:00
Athanasius
3ad3262542 pyproject.toml: Add file so as to configure black line-length 2022-03-12 13:01:33 +00:00
Athanasius
3683890ed0 Gateway: Format with black 2022-03-12 12:59:16 +00:00
Athanasius
a08fc09586 Gateway: Use "" for strings throughout 2022-03-12 12:52:48 +00:00
Athanasius
1e39ea37af src/eddn/core/__init__.py: docstring 2022-03-12 12:46:16 +00:00
Athanasius
e6911d2c04 Bouncer: Use "" for strings 2022-03-12 12:46:04 +00:00
Athanasius
1b431d5dcd conf/Version: Bump to 3.0 2022-03-12 12:39:44 +00:00
Athanasius
0a295d4540 conf/Settings: flake8 and mypy pass 2022-03-12 12:39:11 +00:00
Athanasius
a36fe8ddd6 Relay: flake8 and mypy pass 2022-03-12 12:37:35 +00:00
Athanasius
8a2d76849b Monitor: flake8 and mypy pass 2022-03-12 12:30:13 +00:00
Athanasius
6db29bdb54 src/eddn/__init__.py: docstring 2022-03-12 12:28:03 +00:00
Athanasius
71f86b6a4e Gateway: flake8 and mypy pass 2022-03-12 12:27:11 +00:00
Athanasius
9867d8dc29 Bouncer: flake8 pass 2022-03-12 12:12:49 +00:00
Athanasius
d4d4436316 setup.py: flake8 pass 2022-03-12 12:10:03 +00:00
Athanasius
652275159d Relay: Tweak for zmq changes 2022-03-12 11:59:04 +00:00
Athanasius
f34bc9559c Monitor: Tweak for zmq changes 2022-03-12 11:58:48 +00:00
Athanasius
cbf39735e5 Settings: Rename loadFrom -> load_from 2022-03-12 11:15:15 +00:00
Athanasius
9920bcc222 Gateway: zmq's PUB is *only* in the main module now
But we still need to `import zmq.green as zmq` so use:

```python
from zmq import PUB as ZMQ_PUB
```
2022-03-12 11:14:27 +00:00
Athanasius
d4db13cbd0 Settings: Rename loadConfig -> load_config 2022-03-12 11:07:28 +00:00
Athanasius
45eb41cad6 Gateway: Remove "remember to do the python3 rebase" line 2022-03-12 11:06:47 +00:00
Athanasius
eddc578f20 'Guard' non-code to ensure this gets updated for bottle size limit etc 2022-03-12 11:00:50 +00:00
Athanasius
31c293d14c setup.py: Updated to Python3 / pathlib paradigms 2022-03-12 11:00:50 +00:00
Athanasius
e0eefb71dd GitHub: PR Checks: run script via python 2022-03-12 11:00:50 +00:00
Athanasius
5667fd5507 GitHub: PR checks: Run schema check inside renamed linting job 2022-03-12 11:00:50 +00:00
Athanasius
d4d31edf19 GitHub: pr-checks: Run scheck-schemas-load script 2022-03-12 11:00:50 +00:00
Athanasius
5740893607 Script to check that schema files are valid JSON 2022-03-12 11:00:50 +00:00
Athanasius
4dc1688d00 .pydevproject; Update to cite Python 3.9 2022-03-12 11:00:50 +00:00
Athanasius
861bc05c14 coveragerv: Exclude venv-3.9 as well 2022-03-12 11:00:50 +00:00
Athanasius
7eb55898db python: Use version 3.9.8 2022-03-12 11:00:50 +00:00
Athanasius
d9d3bc0de4 github: Add pr-checks workflow
* flake8 checks
2022-03-12 11:00:50 +00:00
Athanasius
d65b715222 github: Add dependabot config 2022-03-12 11:00:50 +00:00
Athanasius
ef84dc0579 flake8: minor cleanups 2022-03-12 11:00:50 +00:00
Athanasius
5bc06ccdc5 Relay: As we're not sending topic from Gateway, take out the sub code
Just subscribe to everything.
2022-03-12 11:00:50 +00:00
Athanasius
be254e7594 Gateway -> Monitor now working
We literally weren't making use of the 'topic' in the message. Thus, so
as to avoid issues with trying to mash a string topic together with a
bytes (compressed) message, I've ripped that out.
2022-03-12 11:00:50 +00:00
Athanasius
8bbf4f5eb8 Monitor: python3 tweaks
* setsockopt_string()
* Trying to see what's up with:

Traceback (most recent call last):
  File "src/gevent/greenlet.py", line 906, in gevent._gevent_cgreenlet.Greenlet.run
  File "/home/eddn/dev/python3.9-venv/lib/python3.9/site-packages/eddn-2.0a0.dev0-py3.9.egg/eddn/Monitor.py", line 203, in monitor_worker
    message_text = zlib.decompress(message)
zlib.error: Error -3 while decompressing data: incorrect header check
2021-11-04T18:25:03Z <Greenlet at 0x7f71dbecf150: monitor_worker(b'\'https://eddn.edcd.io/schemas/journal/1\' |-| b)> failed with error
2022-03-12 11:00:50 +00:00
Athanasius
7328a4183b Monitor: *Maybe* working now?
It doesn't crash, including when the gateway successfully receives a
message, but unclear if those messages are then making it to the Monitor
OK.
2022-03-12 11:00:50 +00:00
Athanasius
14cd5d1b35 python3: Gateway now working
Now I'm actually trying to run the code I'm finding more that needs
changing in order to run under python3
2022-03-12 11:00:50 +00:00
Athanasius
25eea854ad setup.py: Don't cite module versions, let requirements.txt do that 2022-03-12 11:00:50 +00:00
Athanasius
0641bf3f24 setup.py: General python3, flake8, mypy 2022-03-12 11:00:46 +00:00
Athanasius
3df5c52d53 Validator: Full flake8 and mypy pass 2022-03-12 10:59:55 +00:00
Athanasius
6ca78a51df requirements: strict_rfc3339 was unused 2022-03-12 10:59:55 +00:00