mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-23 12:00:29 +03:00
Initial re-arrangement of files
* 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.
This commit is contained in:
parent
0e8e22a146
commit
c402617760
12
setup.py
12
setup.py
@ -84,7 +84,7 @@ setup(
|
||||
package_dir={"": "src"},
|
||||
# This includes them for the running code, but that doesn't help
|
||||
# serve them up for reference.
|
||||
data_files=[("eddn/schemas", glob.glob("schemas/*.json"))],
|
||||
data_files=[("eddn/src/schemas", glob.glob("src/schemas/*.json"))],
|
||||
# Yes, we pin versions. With python2.7 the latest pyzmq will NOT
|
||||
# work, for instance.
|
||||
install_requires=[
|
||||
@ -99,10 +99,10 @@ setup(
|
||||
],
|
||||
entry_points={
|
||||
"console_scripts": [
|
||||
"eddn-gateway = eddn.Gateway:main",
|
||||
"eddn-relay = eddn.Relay:main",
|
||||
"eddn-monitor = eddn.Monitor:main",
|
||||
"eddn-bouncer = eddn.Bouncer:main",
|
||||
"eddn-gateway = Gateway:main",
|
||||
"eddn-relay = Relay:main",
|
||||
"eddn-monitor = Monitor:main",
|
||||
"eddn-bouncer = Bouncer:main",
|
||||
],
|
||||
},
|
||||
)
|
||||
@ -220,7 +220,7 @@ except OSError:
|
||||
pass
|
||||
|
||||
shutil.copytree(
|
||||
"schemas",
|
||||
"src/schemas",
|
||||
SHARE_EDDN_FILES / "schemas",
|
||||
copy_function=shutil.copyfile, # type: ignore
|
||||
)
|
||||
|
@ -127,7 +127,7 @@ def configure() -> None:
|
||||
sender.bind(binding)
|
||||
|
||||
for schema_ref, schema_file in Settings.GATEWAY_JSON_SCHEMAS.items():
|
||||
validator.add_schema_resource(schema_ref, resource_string("eddn.Gateway", schema_file))
|
||||
validator.add_schema_resource(schema_ref, resource_string("Gateway", schema_file))
|
||||
|
||||
|
||||
def push_message(parsed_message: Dict, topic: str) -> None:
|
Loading…
x
Reference in New Issue
Block a user