mirror of
https://github.com/EDCD/EDDN.git
synced 2026-10-29 01:16:03 +03:00
All change yet again: We're now building and installing a wheel, not an egg
This commit is contained in:
1 parent
cb5766a0eb
commit
8345675b89
29 files changed
+9
-5
No files matched your search
@@ -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
|
||||
)
|
||||
|
||||
+1
-1
@@ -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:
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user