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

Commit

Permalink
update setup
Browse files Browse the repository at this point in the history
* fix init for setup
* fix codecov
  • Loading branch information
Borda committed May 14, 2019
1 parent b64d304 commit 81fbade
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ codecov:
coverage:
precision: 0 # 2 = xx.xx%, 0 = xx%
round: nearest # how coverage is rounded: down/up/nearest
range: 40...90 # custom range of coverage colors from red -> yellow -> green
range: 40...100 # custom range of coverage colors from red -> yellow -> green
status:
# https://codecov.readme.io/v1.0/docs/commit-status
project:
default:
against: auto
target: 60% # specify the target coverage for each commit status
target: 90% # specify the target coverage for each commit status
threshold: 20% # allow this little decrease on project
# https://github.com/codecov/support/wiki/Filtering-Branches
# branches: master
Expand All @@ -39,4 +39,4 @@ comment:
layout: header, diff
require_changes: false
behavior: default # update if exists else create new
branches: *
# branches: *
14 changes: 12 additions & 2 deletions birl/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
import birl.utilities
"""
Using the try/except import since the init is called in setup to get pkg info
before satisfying install requirements
"""

try:
import birl.utilities
birl.utilities
except ImportError:
import traceback
traceback.print_exc()

birl.utilities

__version__ = '0.2.2'
__author__ = 'Jiri Borovec'
Expand Down

0 comments on commit 81fbade

Please sign in to comment.