This repository has been archived by the owner on Jan 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
__init__.py
52 lines (46 loc) · 1.48 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# coding: utf-8
"""
@file
@brief Module *check_python_install*.
Checks other modules installation on CI.
"""
__version__ = "0.1"
__author__ = "Xavier Dupré"
__github__ = "https://github.com/sdpython/_check_python_install"
__url__ = "http://www.xavierdupre.fr/app/_check_python_install/helpsphinx/index.html"
__downloadUrl__ = "https://github.com/sdpython/_check_python_install"
__license__ = "MIT License"
__blog__ = """
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>blog</title>
</head>
<body>
<outline text="_check_python_install"
title="_check_python_install"
type="rss"
xmlUrl="http://www.xavierdupre.fr/app/_check_python_install/helpsphinx/_downloads/rss.xml"
htmlUrl="http://www.xavierdupre.fr/app/_check_python_install/helpsphinx/blog/main_0000.html" />
</body>
</opml>
"""
def check(log=False):
"""
Checks the library is working.
It raises an exception.
If you want to disable the logs:
@param log if True, display information, otherwise
@return 0 or exception
"""
return True
def _setup_hook(use_print=False):
"""
if this function is added to the module,
the help automation and unit tests call it first before
anything goes on as an initialization step.
"""
# we can check many things, needed module
# any others things before unit tests are started
if use_print:
print("Success: _setup_hook")