Ensure job_schema.yaml is installed by pip

Use .yaml file extension for consistency with behaviors.yaml.
This commit is contained in:
Alex Osborne 2016-10-05 15:45:11 +11:00
parent 59a15d7f5c
commit 0fe2ef9387
3 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ import cerberus
import urllib
def load_schema():
schema_file = os.path.join(os.path.dirname(__file__), 'job_schema.yml')
schema_file = os.path.join(os.path.dirname(__file__), 'job_schema.yaml')
with open(schema_file) as f:
return yaml.load(f)

View File

@ -41,7 +41,7 @@ setuptools.setup(
license='Apache License 2.0',
packages=['brozzler', 'brozzler.webconsole'],
package_data={
'brozzler': ['behaviors.d/*.js*', 'behaviors.yaml'],
'brozzler': ['behaviors.d/*.js*', 'behaviors.yaml', 'job_schema.yaml'],
'brozzler.webconsole': find_package_data('brozzler.webconsole'),
},
entry_points={