16 Commits

Author SHA1 Message Date
Athanasius
1384241f13
Fix "are you running this correctly?" check to utilise pathlib
As it was this only worked on systems with `/`-delimited path components.

So use `pathlib.Path.as_posix()` to ensure it *is* in that format.
2022-08-18 15:20:22 +01:00
Athanasius
3f024f965c
Bouncer: Add 'are you running this correctly?' check 2022-08-18 15:20:21 +01:00
Athanasius
b437df5af8
Move main scripts back into src/eddn/
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.
2022-08-18 15:20:19 +01:00
Athanasius
c2dc30c8a2
Finally got the correct setup.py configuration for source of egg running
* 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
2022-08-18 15:20:18 +01:00
Athanasius
03525efe82
Bouncer: Re-format with black. 2022-08-18 15:19:53 +01:00
Athanasius
47a428c5d1
Bouncer: Use "" for strings 2022-08-18 15:19:17 +01:00
Athanasius
a8d0806446
Bouncer: flake8 pass 2022-08-18 15:18:54 +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
e6529060e2
StatsCollector: Full flake8 and mypy pass
A function name refactor touches other files.
2022-08-18 15:18:27 +01:00
Athanasius
485055357b
Bouncer: Trying out 'Callable' for bottle plugin.apply() type annotation 2022-08-18 15:18:01 +01:00
Athanasius
1f420a8f3e
Bouncer: Full flake8 and mypy pass 2022-08-18 15:18:00 +01:00
Athanasius
fcfe9e01b2
Settings.loadConfig() got renamed to load_config() 2022-08-18 15:18:00 +01:00
Athanasius
8f7910a5d9 Bouncer: Support --loglevel <level> CL arg
This also aligns the general logger setup with the other scripts
2022-01-18 15:22:02 +00:00
Athanasius
ad56800822 Bouncer: Use Settings.py, and thus override files, rather than hard-coded 2021-07-10 10:30:05 +00:00
Athanasius
579e185b86 Bouncer: Minor docs edit & remove un-needed Validator import 2021-07-08 20:37:41 +00:00
Athanasius
555c9dd813 Bouncer: Accept messages as if a Gateway, but then forward them to another
This is to be used during migration, running on the old host so as to
forward all messages to the new Gateway.

The destination is hard-coded in `LIVE_GATEWAY_URL`.
2021-07-08 12:16:50 +00:00