File tree 4 files changed +29
-2
lines changed
4 files changed +29
-2
lines changed Original file line number Diff line number Diff line change 18
18
# See the License for the specific language governing permissions and
19
19
# limitations under the License.
20
20
21
+
22
+ from neo4j .meta import version as __version__
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env python
2
+ # -*- encoding: utf-8 -*-
3
+
4
+ # Copyright (c) 2002-2015 "Neo Technology,"
5
+ # Network Engine for Objects in Lund AB [http://neotechnology.com]
6
+ #
7
+ # This file is part of Neo4j.
8
+ #
9
+ # Licensed under the Apache License, Version 2.0 (the "License");
10
+ # you may not use this file except in compliance with the License.
11
+ # You may obtain a copy of the License at
12
+ #
13
+ # http://www.apache.org/licenses/LICENSE-2.0
14
+ #
15
+ # Unless required by applicable law or agreed to in writing, software
16
+ # distributed under the License is distributed on an "AS IS" BASIS,
17
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
+ # See the License for the specific language governing permissions and
19
+ # limitations under the License.
20
+
21
+
22
+ version = "1.0.0b2"
Original file line number Diff line number Diff line change 29
29
from socket import create_connection , SHUT_RDWR
30
30
from struct import pack as struct_pack , unpack as struct_unpack , unpack_from as struct_unpack_from
31
31
32
+ from neo4j .meta import version
32
33
from .compat import hex2 , secure_socket
33
34
from .exceptions import ProtocolError
34
35
from .packstream import Packer , Unpacker
35
36
36
37
37
38
DEFAULT_PORT = 7687
38
- DEFAULT_USER_AGENT = "neo4j-python/0.0"
39
+ DEFAULT_USER_AGENT = "neo4j-python/%s" % version
39
40
40
41
# Signature bytes for each message type
41
42
INIT = b"\x01 " # 0000 0001 // INIT <user_agent>
Original file line number Diff line number Diff line change 24
24
except ImportError :
25
25
from distutils .core import setup
26
26
27
+ from neo4j .meta import version
28
+
27
29
28
30
# Used for reading the README into long_description below.
29
31
def read (fname ):
30
32
return open (os .path .join (os .path .dirname (__file__ ), fname )).read ()
31
33
32
34
33
35
setup (name = "neo4j-driver" ,
34
- version = "1.0.0b2" ,
36
+ version = version ,
35
37
description = "Neo4j Bolt driver for Python" ,
36
38
license = "Apache License, Version 2.0" ,
37
39
long_description = read ("README.rst" ),
You can’t perform that action at this time.
0 commit comments