Include schemas in the package

This commit is contained in:
Tony Garnock-Jones 2021-11-30 18:47:52 +01:00
parent e88ba0afe0
commit 62a1779dc1
2 changed files with 4 additions and 2 deletions

View File

@ -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,
)

View File

@ -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()