Skip to content

Commit e5160bc

Browse files
committed
fix packaging
Signed-off-by: Stephen L. <lrq3000@gmail.com>
1 parent 2d0632c commit e5160bc

File tree

10 files changed

+55
-29
lines changed

10 files changed

+55
-29
lines changed

MANIFEST.in

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ include Makefile
44
include README.md
55
include README.rst
66
include TODO.md
7+
include resiliency_tester_config.txt
78

89
# Libraries
910
recursive-include lib *.py
11+
recursive-include lib *.pyx # Cython files
1012

1113
# Test suite
12-
#recursive-include tests *.py
14+
recursive-include tests *.py
15+
recursive-include tests/files *.*
16+
recursive-include tests/results *.*
17+
include tox.ini

_infos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
__email__ = 'LRQ3000@gmail.com'
55

66
# Definition of the version number
7-
version_info = 2, 0, 2 # major, minor, patch, extra
7+
version_info = 2, 0, 3 # major, minor, patch, extra
88

99
# Nice string for the version (mimic how IPython composes its version str)
1010
__version__ = '-'.join(map(str, version_info)).replace('-', '.').strip('-')

tests/test_aux_funcs.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,17 @@
22

33
from nose.tools import assert_raises
44

5-
from StringIO import StringIO
5+
import sys
66
import os
7+
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
8+
9+
from StringIO import StringIO
710
import shutil
811

912
from .aux_tests import get_marker, dummy_ecc_file_gen, path_sample_files, create_dir_if_not_exist
1013

11-
from ..lib import aux_funcs as auxf
12-
from ..lib.argparse import ArgumentTypeError
14+
from lib import aux_funcs as auxf
15+
from lib.argparse import ArgumentTypeError
1316

1417
def setup_module():
1518
""" Initialize the tests by emptying the out directory """

tests/test_eccman.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22

33
from nose.tools import assert_raises
44

5+
import sys
6+
import os
7+
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
8+
59
import shutil
6-
import os, sys
710
from StringIO import StringIO
811

912
from .aux_tests import get_marker, dummy_ecc_file_gen, check_eq_files, check_eq_dir, path_sample_files, tamper_file, find_next_entry, create_dir_if_not_exist, remove_if_exist
1013

11-
from ..lib.eccman import ECCMan, compute_ecc_params, detect_reedsolomon_parameters
14+
from lib.eccman import ECCMan, compute_ecc_params, detect_reedsolomon_parameters
1215

1316
def setup_module():
1417
""" Initialize the tests by emptying the out directory """

tests/test_hasher.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22

33
from nose.tools import assert_raises
44

5+
import sys
6+
import os
7+
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
8+
59
import shutil
610

711
from .aux_tests import path_sample_files, create_dir_if_not_exist
812

9-
from ..lib.hasher import Hasher
13+
from lib.hasher import Hasher
1014

1115
def setup_module():
1216
""" Initialize the tests by emptying the out directory """

tests/test_header_ecc.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
from __future__ import print_function
22

3+
import sys
4+
import os
5+
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
6+
37
import itertools
48
import hashlib
59

6-
import sys
7-
810
import shutil
911
from StringIO import StringIO
1012

11-
from pyFileFixity import header_ecc as hecc
12-
from ..lib.aux_funcs import get_next_entry
13-
from ..lib.eccman import compute_ecc_params, ECCMan
13+
import header_ecc as hecc
14+
from lib.aux_funcs import get_next_entry
15+
from lib.eccman import compute_ecc_params, ECCMan
1416
from .aux_tests import check_eq_files, check_eq_dir, path_sample_files, tamper_file, find_next_entry, create_dir_if_not_exist, get_marker, dummy_ecc_file_gen
1517

1618
def setup_module():

tests/test_repair_ecc.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
from __future__ import print_function
22

3-
import itertools
4-
import hashlib
5-
63
import sys
74
import os
5+
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
6+
7+
import itertools
8+
import hashlib
89

910
import shutil
1011

11-
from pyFileFixity import repair_ecc as recc
12-
from pyFileFixity import header_ecc as hecc
13-
from pyFileFixity import structural_adaptive_ecc as saecc
12+
import repair_ecc as recc
13+
import header_ecc as hecc
14+
import structural_adaptive_ecc as saecc
1415
from .aux_tests import check_eq_files, check_eq_dir, path_sample_files, tamper_file, find_next_entry, create_dir_if_not_exist, get_marker
1516

1617
def get_db():

tests/test_rfigc.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
from __future__ import print_function, with_statement
22

3+
import sys
4+
import os
5+
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
6+
37
import itertools
48
import hashlib
59

6-
import sys
7-
import os
810
import shutil
911

10-
from .. import rfigc
11-
from ..lib.aux_funcs import recwalk
12+
import rfigc
13+
from lib.aux_funcs import recwalk
1214
from .aux_tests import check_eq_files, check_eq_dir, path_sample_files, tamper_file, create_dir_if_not_exist
1315

1416
def partial_eq(file, file_partial):

tests/test_structural_adaptive_ecc.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
from __future__ import print_function
22

3+
import sys
4+
import os
5+
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
6+
37
import itertools
48
import hashlib
59

6-
import sys
710
import shutil
811
from StringIO import StringIO
912

10-
from pyFileFixity import structural_adaptive_ecc as saecc
11-
from pyFileFixity.lib.aux_funcs import get_next_entry
12-
from ..lib.eccman import ECCMan
13+
import structural_adaptive_ecc as saecc
14+
from lib.aux_funcs import get_next_entry
15+
from lib.eccman import ECCMan
1316
from .aux_tests import check_eq_files, check_eq_dir, path_sample_files, tamper_file, find_next_entry, create_dir_if_not_exist, get_marker, dummy_ecc_file_gen
1417

1518
def setup_module():

tests/test_tee.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
from __future__ import print_function
22

3+
import sys
4+
import os
5+
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
6+
37
import shutil
4-
import os, sys
58
from StringIO import StringIO
69

710
from .aux_tests import get_marker, dummy_ecc_file_gen, check_eq_files, check_eq_dir, path_sample_files, tamper_file, find_next_entry, create_dir_if_not_exist, remove_if_exist
811

9-
from ..lib.tee import Tee
12+
from lib.tee import Tee
1013

1114
def setup_module():
1215
""" Initialize the tests by emptying the out directory """

0 commit comments

Comments
 (0)