mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
Detect spaCy version and add package title
Package title allows customised package names (like spacy-nightly)
This commit is contained in:
parent
c921ba109a
commit
03db56f48c
|
@ -80,7 +80,7 @@ def generate_meta():
|
||||||
settings = [('lang', 'Model language', 'en'),
|
settings = [('lang', 'Model language', 'en'),
|
||||||
('name', 'Model name', 'model'),
|
('name', 'Model name', 'model'),
|
||||||
('version', 'Model version', '0.0.0'),
|
('version', 'Model version', '0.0.0'),
|
||||||
('spacy_version', 'Required spaCy version', '>=2.0.0,<3.0.0'),
|
('spacy_version', 'Required spaCy version', '>=%s,<3.0.0' % about.__version__),
|
||||||
('description', 'Model description', False),
|
('description', 'Model description', False),
|
||||||
('author', 'Author', False),
|
('author', 'Author', False),
|
||||||
('email', 'Author email', False),
|
('email', 'Author email', False),
|
||||||
|
@ -92,6 +92,8 @@ def generate_meta():
|
||||||
response = util.get_raw_input(desc, default)
|
response = util.get_raw_input(desc, default)
|
||||||
meta[setting] = default if response == '' and default else response
|
meta[setting] = default if response == '' and default else response
|
||||||
meta['pipeline'] = generate_pipeline()
|
meta['pipeline'] = generate_pipeline()
|
||||||
|
if about.__title__ != 'spacy':
|
||||||
|
meta['parent_package'] = about.__title__
|
||||||
return meta
|
return meta
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user