mirror of https://github.com/explosion/spaCy.git
Only import shutil
This commit is contained in:
parent
448a916d0d
commit
64e38f304e
|
@ -2,7 +2,7 @@
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import json
|
import json
|
||||||
from shutil import copytree
|
import shutil
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from .. import about
|
from .. import about
|
||||||
|
@ -21,7 +21,7 @@ def package(input_dir, output_dir, force):
|
||||||
package_path = main_path / model_name
|
package_path = main_path / model_name
|
||||||
|
|
||||||
Path.mkdir(package_path, parents=True)
|
Path.mkdir(package_path, parents=True)
|
||||||
copytree(input_path, package_path / model_name_v)
|
shutil.copytree(input_path, package_path / model_name_v)
|
||||||
create_file(main_path / 'meta.json', json.dumps(meta, indent=2))
|
create_file(main_path / 'meta.json', json.dumps(meta, indent=2))
|
||||||
create_file(main_path / 'setup.py', TEMPLATE_SETUP.strip())
|
create_file(main_path / 'setup.py', TEMPLATE_SETUP.strip())
|
||||||
create_file(main_path / 'MANIFEST.in', TEMPLATE_MANIFEST.strip())
|
create_file(main_path / 'MANIFEST.in', TEMPLATE_MANIFEST.strip())
|
||||||
|
|
Loading…
Reference in New Issue