Skip to content
This repository was archived by the owner on Feb 11, 2023. It is now read-only.

Commit 81fbade

Browse files
committed
update setup
* fix init for setup * fix codecov
1 parent b64d304 commit 81fbade

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

.codecov.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ codecov:
66
coverage:
77
precision: 0 # 2 = xx.xx%, 0 = xx%
88
round: nearest # how coverage is rounded: down/up/nearest
9-
range: 40...90 # custom range of coverage colors from red -> yellow -> green
9+
range: 40...100 # custom range of coverage colors from red -> yellow -> green
1010
status:
1111
# https://codecov.readme.io/v1.0/docs/commit-status
1212
project:
1313
default:
1414
against: auto
15-
target: 60% # specify the target coverage for each commit status
15+
target: 90% # specify the target coverage for each commit status
1616
threshold: 20% # allow this little decrease on project
1717
# https://github.com/codecov/support/wiki/Filtering-Branches
1818
# branches: master
@@ -39,4 +39,4 @@ comment:
3939
layout: header, diff
4040
require_changes: false
4141
behavior: default # update if exists else create new
42-
branches: *
42+
# branches: *

birl/__init__.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1-
import birl.utilities
1+
"""
2+
Using the try/except import since the init is called in setup to get pkg info
3+
before satisfying install requirements
4+
5+
"""
6+
7+
try:
8+
import birl.utilities
9+
birl.utilities
10+
except ImportError:
11+
import traceback
12+
traceback.print_exc()
213

3-
birl.utilities
414

515
__version__ = '0.2.2'
616
__author__ = 'Jiri Borovec'

0 commit comments

Comments
 (0)