mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-24 08:39:59 -05:00
Merge pull request #19 from ato/schema-file-fix
Ensure job_schema.yaml is installed by pip
This commit is contained in:
commit
c736f2e703
@ -29,7 +29,7 @@ import cerberus
|
|||||||
import urllib
|
import urllib
|
||||||
|
|
||||||
def load_schema():
|
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:
|
with open(schema_file) as f:
|
||||||
return yaml.load(f)
|
return yaml.load(f)
|
||||||
|
|
||||||
|
2
setup.py
2
setup.py
@ -41,7 +41,7 @@ setuptools.setup(
|
|||||||
license='Apache License 2.0',
|
license='Apache License 2.0',
|
||||||
packages=['brozzler', 'brozzler.webconsole'],
|
packages=['brozzler', 'brozzler.webconsole'],
|
||||||
package_data={
|
package_data={
|
||||||
'brozzler': ['behaviors.d/*.js*', 'behaviors.yaml'],
|
'brozzler': ['behaviors.d/*.js*', 'behaviors.yaml', 'job_schema.yaml'],
|
||||||
'brozzler.webconsole': find_package_data('brozzler.webconsole'),
|
'brozzler.webconsole': find_package_data('brozzler.webconsole'),
|
||||||
},
|
},
|
||||||
entry_points={
|
entry_points={
|
||||||
|
Loading…
x
Reference in New Issue
Block a user