Skip to content
Snippets Groups Projects
Commit 9f3b26c1 authored by Simon Lejeune's avatar Simon Lejeune
Browse files

[REF] packaging: ofxparse as "hard" dependency

parent e4a3fbe8
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,4 @@ creation of the Financial Accounting records).
""",
'installable': True,
'auto_install': True,
'external_dependencies' : {
'python' : ['ofxparse'],
}
}
......@@ -5,24 +5,17 @@ import StringIO
from openerp import api, models, _
from openerp.exceptions import UserError
from ofxparse import OfxParser
_logger = logging.getLogger(__name__)
try:
from ofxparse import OfxParser as ofxparser
except ImportError:
_logger.warn("ofxparse not found, OFX parsing disabled.")
ofxparser = None
class AccountBankStatementImport(models.TransientModel):
_inherit = 'account.bank.statement.import'
def _check_ofx(self, file):
if ofxparser is None:
return False
try:
ofx = ofxparser.parse(file)
ofx = OfxParser.parse(file)
except:
return False
return ofx
......
......@@ -27,6 +27,7 @@ Depends:
python-lxml,
python-mako,
python-mock,
python-ofxparse,
python-openid,
python-passlib,
python-psutil,
......
......@@ -16,6 +16,7 @@ greenlet==0.4.5
jcconv==0.2.3
lxml==3.4.1
mock==1.0.1
ofxparse==0.14
passlib==1.6.2
psutil==2.2.0
psycogreen==1.0
......
......@@ -81,6 +81,7 @@ def py2exe_options():
'mako',
'markupsafe',
'mock',
'ofxparse',
'openerp',
'openid',
'passlib',
......@@ -139,6 +140,7 @@ setup(
'lxml', # windows binary http://www.lfd.uci.edu/~gohlke/pythonlibs/
'mako',
'mock',
'ofxparse',
'passlib',
'pillow', # windows binary http://www.lfd.uci.edu/~gohlke/pythonlibs/
'psutil', # windows binary code.google.com/p/psutil/downloads/list
......
......@@ -40,7 +40,7 @@ RUN yum install -d 0 -e 0 epel-release -y && \
postgresql-devel -y && \
yum clean all
RUN easy_install pyPdf vatnumber pydot psycogreen suds
RUN easy_install pyPdf vatnumber pydot psycogreen suds ofxparse
# Postgres configuration
RUN mkdir -p /var/lib/postgres/data
......
......@@ -31,6 +31,7 @@ RUN apt-get update -qq && \
python-lxml \
python-mako \
python-mock \
python-ofxparse \
python-openid \
python-passlib \
python-psutil \
......
......@@ -54,4 +54,4 @@ ExecStart=/usr/bin/odoo.py --config=/etc/odoo/openerp-server.conf
[Install]
WantedBy=multi-user.target
EOF
easy_install pyPdf vatnumber pydot psycogreen suds
easy_install pyPdf vatnumber pydot psycogreen suds ofxparse
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment