File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 5
5
Client for sending python exceptions to airbrake.io
6
6
"""
7
7
8
- __version__ = "1.1.2 "
8
+ __version__ = "1.1.3 "
9
9
__url__ = "https://github.com/airbrake/airbrake-python"
10
10
_notifier = {
11
11
'name' : 'airbrake-python' ,
Original file line number Diff line number Diff line change
1
+ import re
2
+ import ast
1
3
from setuptools import setup , find_packages
2
4
3
- from airbrake import __version__ as version
4
- from airbrake import __url__ as url
5
+
6
+ _version_re = re .compile (r'__version__\s+=\s+(.*)' )
7
+ _url_re = re .compile (r'__url__\s+=\s+(.*)' )
8
+
9
+
10
+ with open ('airbrake/__init__.py' , 'rb' ) as f :
11
+ f = f .read ()
12
+ version = str (ast .literal_eval (_version_re .search (
13
+ f .decode ('utf-8' )).group (1 )))
14
+ url = str (ast .literal_eval (_url_re .search (
15
+ f .decode ('utf-8' )).group (1 )))
16
+
5
17
6
18
dependencies = [
7
19
'requests>=2.2.1'
You can’t perform that action at this time.
0 commit comments