So, yes, running any of these absolutely directly:
cd src
python eddn/Gateway.py
will fail. But you *can*:
cd src
python -m eddn.Gateway
and they work perfectly fine.
* py_modules parameter to setup() isn't documented in the setuptools
docs, but is in a general 'python packaging' one.
* So now the main scripts are NOT within the `eddn` package..
* But all other code is...
* But the schema files don't need to be.
# Conflicts:
# src/schemas/fssbodysignals-README.md
# src/schemas/fssbodysignals-v1.0.json
# src/schemas/fsssignaldiscovered-README.md
# src/schemas/fsssignaldiscovered-v1.0.json
With `import eddn.core.Validator` and the like it was actually picking
up the egg versions of the files, not local ones.
Currently this will run as per:
cd src/eddn
python Gateway.py --config ~/.local/share/eddn/dev/config.json
# Conflicts:
# src/eddn/schemas/fssbodysignals-README.md
# src/eddn/schemas/fssbodysignals-v1.0.json
# src/eddn/schemas/fsssignaldiscovered-README.md
# src/eddn/schemas/fsssignaldiscovered-v1.0.json
* Move the service scripts out of src/eddn/ into src/
* Move the schemas/ to src/schemas/
* Some updates to setup.py, i.e. source of files, but the setuptools
part isn't yet work.
# Conflicts:
# src/schemas/fssbodysignals-README.md
# src/schemas/fssbodysignals-v1.0.json
# src/schemas/fsssignaldiscovered-README.md
# src/schemas/fsssignaldiscovered-v1.0.json
Whilst we do want to go TLS-less in the actual EDDN code, for ease of
setting up automated end to end functional testing, leave the
possibility of running with TLS termination as well.
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.
This causes issues, at the least, with compressed messages that 'look' like
they decompressed body is form-encoded. 18385 messages in the last month
rejected due to this.
No actually valid form-encoded messages in that time frame.
We suspect no-one is actually using this possible form of upload, and
ideally would remove the code for it entirely. First we need to log any
uploaders that do use this form to be sure.