mirror of https://github.com/CIRCL/PyCIRCLean
Fix tests for python2.7
parent
cec9ea0f73
commit
2dd0520964
|
@ -27,7 +27,6 @@ install:
|
||||||
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty multiverse" && sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty-updates multiverse"
|
- sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty multiverse" && sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ trusty-updates multiverse"
|
||||||
- sudo apt-get update -qq
|
- sudo apt-get update -qq
|
||||||
- sudo apt-get install -y p7zip-rar
|
- sudo apt-get install -y p7zip-rar
|
||||||
- pip install git+https://github.com/ahupp/python-magic.git
|
|
||||||
# generic.py: pdf2htmlEX + dependencies
|
# generic.py: pdf2htmlEX + dependencies
|
||||||
- sudo add-apt-repository ppa:fontforge/fontforge --yes
|
- sudo add-apt-repository ppa:fontforge/fontforge --yes
|
||||||
# to get a working 0.26 poppler
|
# to get a working 0.26 poppler
|
||||||
|
@ -44,8 +43,7 @@ install:
|
||||||
- sudo apt-get install -y libreoffice
|
- sudo apt-get install -y libreoffice
|
||||||
- sudo apt-get install -y unoconv
|
- sudo apt-get install -y unoconv
|
||||||
# filecheck.py dependencies
|
# filecheck.py dependencies
|
||||||
- pip install lxml
|
- pip install officedissector lxml exifread pillow
|
||||||
- pip install officedissector
|
|
||||||
- if [ $(python -c 'import sys; print(sys.version_info.major)') == '2' ]; then pip install oletools olefile ; fi
|
- if [ $(python -c 'import sys; print(sys.version_info.major)') == '2' ]; then pip install oletools olefile ; fi
|
||||||
- wget https://didierstevens.com/files/software/pdfid_v0_2_1.zip
|
- wget https://didierstevens.com/files/software/pdfid_v0_2_1.zip
|
||||||
- unzip pdfid_v0_2_1.zip
|
- unzip pdfid_v0_2_1.zip
|
||||||
|
|
6
setup.py
6
setup.py
|
@ -12,8 +12,8 @@ setup(
|
||||||
description='Standalone CIRCLean/KittenGroomer code.',
|
description='Standalone CIRCLean/KittenGroomer code.',
|
||||||
packages=['kittengroomer'],
|
packages=['kittengroomer'],
|
||||||
scripts=['bin/generic.py', 'bin/pier9.py', 'bin/specific.py', 'bin/filecheck.py'],
|
scripts=['bin/generic.py', 'bin/pier9.py', 'bin/specific.py', 'bin/filecheck.py'],
|
||||||
include_package_data = True,
|
include_package_data=True,
|
||||||
package_data = {'data': ['PDFA_def.ps','srgb.icc']},
|
package_data={'data': ['PDFA_def.ps', 'srgb.icc']},
|
||||||
test_suite="tests",
|
test_suite="tests",
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'License :: OSI Approved :: BSD License',
|
'License :: OSI Approved :: BSD License',
|
||||||
|
@ -25,5 +25,5 @@ setup(
|
||||||
'Topic :: Communications :: File Sharing',
|
'Topic :: Communications :: File Sharing',
|
||||||
'Topic :: Security',
|
'Topic :: Security',
|
||||||
],
|
],
|
||||||
install_requires=['twiggy'],
|
install_requires=['twiggy', 'python-magic'],
|
||||||
)
|
)
|
||||||
|
|
|
@ -5,6 +5,9 @@ import unittest
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir))
|
||||||
|
|
||||||
from bin.specific import KittenGroomerSpec
|
from bin.specific import KittenGroomerSpec
|
||||||
from bin.pier9 import KittenGroomerPier9
|
from bin.pier9 import KittenGroomerPier9
|
||||||
from bin.generic import KittenGroomer
|
from bin.generic import KittenGroomer
|
||||||
|
|
Loading…
Reference in New Issue