File tree 3 files changed +15
-6
lines changed
3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 26
26
import logging
27
27
28
28
__appname__ = __package__
29
- __version__ = "0.1"
29
+ __version__ = "0.1.1 "
30
30
31
31
app_version = "{}/{}" .format (__appname__ , __version__ )
32
32
Original file line number Diff line number Diff line change
1
+ import logging
2
+
1
3
import django
2
4
from django .db import connections
3
5
4
6
from ...controller import Controller
5
7
from ...utils import run as base_run
6
8
9
+ logger = logging .getLogger (__name__ )
10
+
7
11
8
12
class DjangoController (Controller ):
9
13
def parallel_prep (self ):
@@ -25,9 +29,13 @@ def run():
25
29
# command will be run from the same dir a Django project's manage.py).
26
30
sys .path .append (os .getcwd ())
27
31
28
- # Note: the serializers and compatibility hooks are already initialized
29
- # in esdocs.contrib.esdjango.apps
30
- django .setup ()
32
+ try :
33
+ # Note: the serializers and compatibility hooks are already initialized
34
+ # in esdocs.contrib.esdjango.apps
35
+ django .setup ()
36
+ except ImportError :
37
+ print ("esdocs-django must be run from the root of your Django project (where manage.py lives)." )
38
+ return
31
39
32
40
base_run (DjangoController )
33
41
Original file line number Diff line number Diff line change 33
33
'Programming Language :: Python' ,
34
34
'Programming Language :: Python :: 3 :: Only' ,
35
35
'Programming Language :: Python :: 3' ,
36
+ 'Programming Language :: Python :: 3.4' ,
36
37
'Programming Language :: Python :: 3.5' ,
37
38
'Programming Language :: Python :: 3.6' ,
38
39
'Programming Language :: Python :: 3.7' ,
44
45
packages = find_packages (),
45
46
py_modules = ['esdocs' ],
46
47
47
- python_requires = '>=3.5 ' ,
48
+ python_requires = '>=3.4 ' ,
48
49
install_requires = [
49
50
'elasticsearch-dsl>6.2.1'
50
51
],
51
- extras_requires = {
52
+ extras_require = {
52
53
'gevent' : ['gevent' , 'gipc' ]
53
54
},
54
55
You can’t perform that action at this time.
0 commit comments