Coverage for /var/srv/projects/api.amasfac.comuna18.com/tmp/venv/lib/python3.9/site-packages/gitdb/__init__.py: 88%

19 statements  

« prev     ^ index     » next       coverage.py v6.4.4, created at 2023-07-17 14:22 -0600

1# Copyright (C) 2010, 2011 Sebastian Thiel (byronimo@gmail.com) and contributors 

2# 

3# This module is part of GitDB and is released under 

4# the New BSD License: http://www.opensource.org/licenses/bsd-license.php 

5"""Initialize the object database module""" 

6 

7import sys 

8import os 

9 

10#{ Initialization 

11 

12 

13def _init_externals(): 

14 """Initialize external projects by putting them into the path""" 

15 if 'PYOXIDIZER' not in os.environ: 15 ↛ 20line 15 didn't jump to line 20, because the condition on line 15 was never false

16 where = os.path.join(os.path.dirname(__file__), 'ext', 'smmap') 

17 if os.path.exists(where): 17 ↛ 18line 17 didn't jump to line 18, because the condition on line 17 was never true

18 sys.path.append(where) 

19 

20 import smmap 

21 del smmap 

22 # END handle imports 

23 

24#} END initialization 

25 

26_init_externals() 

27 

28__author__ = "Sebastian Thiel" 

29__contact__ = "byronimo@gmail.com" 

30__homepage__ = "https://github.com/gitpython-developers/gitdb" 

31version_info = (4, 0, 10) 

32__version__ = '.'.join(str(i) for i in version_info) 

33 

34 

35# default imports 

36from gitdb.base import * 

37from gitdb.db import * 

38from gitdb.stream import *