mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-24 08:14:15 +03:00
add default_model to about
This commit is contained in:
parent
780cb847c9
commit
ccd87ad7fb
10
setup.py
10
setup.py
|
@ -17,8 +17,9 @@ except ImportError:
|
||||||
MAJOR = 0
|
MAJOR = 0
|
||||||
MINOR = 100
|
MINOR = 100
|
||||||
MICRO = 0
|
MICRO = 0
|
||||||
ISRELEASED = False
|
ISRELEASE = False
|
||||||
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
|
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)
|
||||||
|
DEFAULT_MODEL = 'en_default==1.0.4'
|
||||||
|
|
||||||
|
|
||||||
PACKAGES = [
|
PACKAGES = [
|
||||||
|
@ -145,7 +146,7 @@ def get_version_info():
|
||||||
else:
|
else:
|
||||||
GIT_REVISION = 'Unknown'
|
GIT_REVISION = 'Unknown'
|
||||||
|
|
||||||
if not ISRELEASED:
|
if not ISRELEASE:
|
||||||
FULLVERSION += '.dev0+' + GIT_REVISION[:7]
|
FULLVERSION += '.dev0+' + GIT_REVISION[:7]
|
||||||
|
|
||||||
return FULLVERSION, GIT_REVISION
|
return FULLVERSION, GIT_REVISION
|
||||||
|
@ -158,7 +159,7 @@ version = '%(version)s'
|
||||||
full_version = '%(full_version)s'
|
full_version = '%(full_version)s'
|
||||||
git_revision = '%(git_revision)s'
|
git_revision = '%(git_revision)s'
|
||||||
release = %(isrelease)s
|
release = %(isrelease)s
|
||||||
default_model = 'en_default==1.0.4'
|
default_model = '%(default_model)s'
|
||||||
if not release:
|
if not release:
|
||||||
version = full_version
|
version = full_version
|
||||||
"""
|
"""
|
||||||
|
@ -168,7 +169,8 @@ if not release:
|
||||||
f.write(cnt % {'version': VERSION,
|
f.write(cnt % {'version': VERSION,
|
||||||
'full_version' : FULLVERSION,
|
'full_version' : FULLVERSION,
|
||||||
'git_revision' : GIT_REVISION,
|
'git_revision' : GIT_REVISION,
|
||||||
'isrelease': str(ISRELEASED)})
|
'isrelease': str(ISRELEASE),
|
||||||
|
'default_model': DEFAULT_MODEL})
|
||||||
|
|
||||||
|
|
||||||
def generate_cython(root, source):
|
def generate_cython(root, source):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user