Package JSON schemas properly in Haystack (#2316)

* Restrain the files loaded by options.packages.find

* Move json-schemas inside haystack

* Change syntax in setup.cfg

* Change again syntax in options.package_data

* Specify more exactly which files to package

Co-authored-by: Thomas Stadelmann <thomas.stadelmann@deepset.ai>
This commit is contained in:
Sara Zan 2022-03-15 17:33:01 +01:00 committed by GitHub
parent 0ec458dba8
commit 65b3a2c7dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 4 deletions

View File

@ -33,8 +33,8 @@ from haystack.errors import HaystackError, PipelineSchemaError
from haystack.nodes.base import BaseComponent
JSON_SCHEMAS_PATH = Path(__file__).parent.parent.parent / "json-schemas"
SCHEMA_URL = "https://haystack.deepset.ai/json-schemas/"
JSON_SCHEMAS_PATH = Path(__file__).parent.parent.parent / "haystack" / "json-schemas"
SCHEMA_URL = "https://haystack.deepset.ai/haystack/json-schemas/"
# Allows accessory classes (like enums and helpers) to be registered as valid input for
# custom node's init parameters. For now we disable this feature, but flipping this variables

View File

@ -109,8 +109,11 @@ exclude =
test*
tutorials*
ui*
include =
json-schemas
[options.package_data]
haystack =
json-schemas/*.schema.json
[options.extras_require]