From 62a1779dc1f86cf919f060a8fee7f7c0376aa23a Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Tue, 30 Nov 2021 18:47:52 +0100 Subject: [PATCH] Include schemas in the package --- setup.py | 4 +++- syndicate/schema.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 0d63143..1610035 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ except ImportError: setup( name="syndicate-py", - version="0.2.0", + version="0.2.1", author="Tony Garnock-Jones", author_email="tonyg@leastfixedpoint.com", license="GNU General Public License v3 or later (GPLv3+)", @@ -21,4 +21,6 @@ setup( description="Syndicated Actor model and Syndicate network protocol for Python 3", install_requires=['websockets', 'preserves'], python_requires=">=3.6, <4", + setup_requires=['setuptools_scm'], + include_package_data=True, ) diff --git a/syndicate/schema.py b/syndicate/schema.py index 20efcf2..9f91fbe 100644 --- a/syndicate/schema.py +++ b/syndicate/schema.py @@ -2,6 +2,6 @@ def __load(): from preserves.schema import load_schema_file import pathlib for (n, ns) in load_schema_file(pathlib.Path(__file__).parent / - '../../syndicate-protocols/schema-bundle.bin')._items().items(): + 'protocols/schema-bundle.bin')._items().items(): globals()[n] = ns __load()