Include schemas in the package
This commit is contained in:
parent
e88ba0afe0
commit
62a1779dc1
4
setup.py
4
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,
|
||||
)
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue