mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-23 12:00:29 +03:00
All change yet again: We're now building and installing a wheel, not an egg
This commit is contained in:
parent
cb5766a0eb
commit
8345675b89
12
setup.py
12
setup.py
@ -80,13 +80,17 @@ setup(
|
||||
author="EDCD (https://edcd.github.io/)",
|
||||
author_email="edcd@miggy.org",
|
||||
url="https://github.com/EDCD/EDDN",
|
||||
packages=find_packages("src"),
|
||||
package_dir={"": "src"},
|
||||
|
||||
# <https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/#py-modules>
|
||||
py_modules=["Gateway", "Monitor", "Relay", "Bouncer"],
|
||||
packages=find_packages("src"),
|
||||
package_dir={"": "src"},
|
||||
# Should mean it picks up src/eddn/schemas/ files
|
||||
include_package_data=True,
|
||||
|
||||
# This includes them for the running code, but that doesn't help
|
||||
# serve them up for reference.
|
||||
data_files=[("schemas", glob.glob("src/schemas/*.json"))],
|
||||
# data_files=[("schemas": glob.glob("src/schemas/*.json"))],
|
||||
install_requires=[
|
||||
"argparse",
|
||||
"bottle",
|
||||
@ -220,7 +224,7 @@ except OSError:
|
||||
pass
|
||||
|
||||
shutil.copytree(
|
||||
"src/schemas",
|
||||
"src/eddn/schemas",
|
||||
SHARE_EDDN_FILES / "schemas",
|
||||
copy_function=shutil.copyfile, # type: ignore
|
||||
)
|
||||
|
@ -118,7 +118,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("Gateway", schema_file))
|
||||
validator.add_schema_resource(schema_ref, resource_string("eddn", schema_file))
|
||||
|
||||
|
||||
def push_message(parsed_message: Dict, topic: str) -> None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user