Athanasius
bc5b7db0b1
core/StatsCollector.py: black pass
2022-08-18 15:19:55 +01:00
Athanasius
8a07ae1cdc
core/Validator: black pass, and remove extraneous ,
in constants
2022-08-18 15:19:55 +01:00
Athanasius
50c87ecf21
core/DuplicateMessages: black / quotes pass
2022-08-18 15:19:55 +01:00
Athanasius
5e8c17222d
setup.py: black and otherwise s/'/"/g pass
2022-08-18 15:19:55 +01:00
Athanasius
d823056e15
pyproject.toml: Exclude everything but actual core EDDN source
2022-08-18 15:19:54 +01:00
Athanasius
d87344459a
conf/Settings: s/'/"/g; But not with black
...
We **do** want the special layout of the actual config defaults, so
screw black!
2022-08-18 15:19:54 +01:00
Athanasius
7a6314cba8
conf/__init__.py: docstring
2022-08-18 15:19:54 +01:00
Athanasius
d87106fe26
Relay: Re-format with black
2022-08-18 15:19:54 +01:00
Athanasius
83fa055722
Monitor: Re-format with black
2022-08-18 15:19:54 +01:00
Athanasius
03525efe82
Bouncer: Re-format with black.
2022-08-18 15:19:53 +01:00
Athanasius
244e0a57da
pyproject.toml: Add file so as to configure black line-length
2022-08-18 15:19:53 +01:00
Athanasius
5d3358417d
Gateway: Format with black
...
# Conflicts:
# src/eddn/Gateway.py
2022-08-18 15:19:50 +01:00
Athanasius
841c7e979e
Gateway: Use "" for strings throughout
...
# Conflicts:
# src/eddn/Gateway.py
# Conflicts:
# src/eddn/Gateway.py
2022-08-18 15:19:33 +01:00
Athanasius
710223494d
src/eddn/core/__init__.py: docstring
2022-08-18 15:19:17 +01:00
Athanasius
47a428c5d1
Bouncer: Use "" for strings
2022-08-18 15:19:17 +01:00
Athanasius
d540078b66
conf/Version: Bump to 3.0
2022-08-18 15:19:17 +01:00
Athanasius
4e6a6fc869
conf/Settings: flake8 and mypy pass
2022-08-18 15:19:17 +01:00
Athanasius
6e7f69ab95
Relay: flake8 and mypy pass
2022-08-18 15:19:16 +01:00
Athanasius
35fcbd89d9
Monitor: flake8 and mypy pass
2022-08-18 15:19:16 +01:00
Athanasius
f8dc28b256
src/eddn/__init__.py: docstring
2022-08-18 15:19:16 +01:00
Athanasius
241bd911dd
Gateway: flake8 and mypy pass
...
# Conflicts:
# src/eddn/Gateway.py
2022-08-18 15:19:14 +01:00
Athanasius
a8d0806446
Bouncer: flake8 pass
2022-08-18 15:18:54 +01:00
Athanasius
d43b852935
setup.py: flake8 pass
2022-08-18 15:18:54 +01:00
Athanasius
95b48ed3cc
Relay: Tweak for zmq changes
2022-08-18 15:18:53 +01:00
Athanasius
c426885b52
Monitor: Tweak for zmq changes
2022-08-18 15:18:53 +01:00
Athanasius
060645a8dc
Settings: Rename loadFrom -> load_from
2022-08-18 15:18:53 +01:00
Athanasius
3a55f6b005
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-08-18 15:18:53 +01:00
Athanasius
e9397b46e2
Settings: Rename loadConfig -> load_config
2022-08-18 15:18:52 +01:00
Athanasius
3dba22b6cb
Gateway: Remove "remember to do the python3 rebase" line
2022-08-18 15:18:52 +01:00
Athanasius
2b39934fd7
'Guard' non-code to ensure this gets updated for bottle size limit etc
2022-08-18 15:18:52 +01:00
Athanasius
f9d423f4a6
setup.py: Updated to Python3 / pathlib paradigms
2022-08-18 15:18:52 +01:00
Athanasius
d6fa3fe123
GitHub: PR Checks: run script via python
2022-08-18 15:18:52 +01:00
Athanasius
98b868a115
GitHub: PR checks: Run schema check inside renamed linting job
2022-08-18 15:18:51 +01:00
Athanasius
49b14aa62e
GitHub: pr-checks: Run scheck-schemas-load script
2022-08-18 15:18:51 +01:00
Athanasius
4b5687808f
Script to check that schema files are valid JSON
2022-08-18 15:18:51 +01:00
Athanasius
323032f92a
.pydevproject; Update to cite Python 3.9
2022-08-18 15:18:51 +01:00
Athanasius
2e09c5de32
coveragerv: Exclude venv-3.9 as well
2022-08-18 15:18:51 +01:00
Athanasius
8c3bf0eaff
python: Use version 3.9.8
2022-08-18 15:18:50 +01:00
Athanasius
1c07e4ccc7
github: Add pr-checks workflow
...
* flake8 checks
2022-08-18 15:18:50 +01:00
Athanasius
a8c683093c
github: Add dependabot config
2022-08-18 15:18:50 +01:00
Athanasius
5e51c604a4
flake8: minor cleanups
...
# Conflicts:
# src/eddn/Gateway.py
2022-08-18 15:18:48 +01:00
Athanasius
7fe2e8880a
Relay: As we're not sending topic from Gateway, take out the sub code
...
Just subscribe to everything.
2022-08-18 15:18:29 +01:00
Athanasius
529725d2db
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-08-18 15:18:29 +01:00
Athanasius
cc19d390ce
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-08-18 15:18:29 +01:00
Athanasius
f7370a2f0b
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-08-18 15:18:29 +01:00
Athanasius
fdee2c054f
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-08-18 15:18:28 +01:00
Athanasius
257d3e880a
setup.py: Don't cite module versions, let requirements.txt do that
2022-08-18 15:18:28 +01:00
Athanasius
998be94c5d
setup.py: General python3, flake8, mypy
2022-08-18 15:18:28 +01:00
Athanasius
bd5784034a
Validator: Full flake8 and mypy pass
2022-08-18 15:18:28 +01:00
Athanasius
b5df9439ad
requirements: strict_rfc3339 was unused
2022-08-18 15:18:28 +01:00