Skip to content

Commit

Permalink
[IMP] debian: build package for python 3.5
Browse files Browse the repository at this point in the history
* Add a minimum systemd service file
  • Loading branch information
d-fence committed Oct 3, 2017
1 parent 44a3828 commit 25cae52
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 36 deletions.
65 changes: 31 additions & 34 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -3,50 +3,47 @@ Section: net
Priority: optional
Maintainer: Odoo S.A. <[email protected]>
Uploaders: Aaron Bohy <[email protected]>, Simon Lejeune <[email protected]>
Build-Depends: debhelper (>= 9.0), python, rsync
X-Python-Version: 2.7
Standards-Version: 3.9.5.0
Build-Depends: debhelper (>= 9.2), dh-python, python3, rsync, python3-setuptools
Standards-Version: 3.9.8
Homepage: http://www.odoo.com/
Vcs-Git: https://github.com/odoo/odoo

Package: odoo
Architecture: all
Depends:
${misc:Depends},
${python3:Depends},
adduser,
lsb-base,
node-less,
postgresql-client,
python,
python-babel,
python-dateutil,
python-decorator,
python-docutils,
python-feedparser,
python-imaging,
python-jinja2,
python-ldap,
python-libxslt1,
python-lxml,
python-mako,
python-mock,
python-openid,
python-passlib,
python-psutil,
python-psycopg2,
python-pychart,
python-pydot,
python-pyparsing,
python-pypdf2,
python-reportlab,
python-requests,
python-suds,
python-tz,
python-vatnumber,
python-vobject,
python-werkzeug,
python-xlsxwriter,
python-xlwt,
python-yaml,
python3-babel,
python3-dateutil,
python3-decorator,
python3-docutils,
python3-feedparser,
python3-html2text,
python3-pil,
python3-jinja2,
python3-lxml,
python3-mako,
python3-mock,
python3-openid,
python3-passlib,
python3-psutil,
python3-psycopg2,
python3-pydot,
python3-pyparsing,
python3-pypdf2,
python3-reportlab,
python3-requests,
python3-suds,
python3-tz,
python3-vatnumber,
python3-vobject,
python3-werkzeug,
python3-xlsxwriter,
python3-yaml,
Conflicts: tinyerp-server, openerp-server, openerp-web, openerp
Replaces: tinyerp-server, openerp-server, openerp-web, openerp
Recommends:
Expand Down
2 changes: 1 addition & 1 deletion debian/odoo.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ db_host = False
db_port = False
db_user = odoo
db_password = False
addons_path = /usr/lib/python2.7/dist-packages/odoo/addons
;addons_path = /usr/lib/python3/dist-packages/odoo/addons
13 changes: 13 additions & 0 deletions debian/odoo.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=Odoo Open Source ERP and CRM
After=network.target

[Service]
Type=simple
User=odoo
Group=odoo
ExecStart=/usr/bin/odoo --config /etc/odoo/odoo.conf --logfile /var/log/odoo/odoo-server.log

[Install]
WantedBy=multi-user.target

5 changes: 4 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/make -f
export DH_VERBOSE=1
export PYBUILD_NAME=odoo-bin
export PYBUILD_DISABLE=test

%:
dh ${@} -Spython_distutils
dh ${@} --with=python3,systemd --buildsystem=pybuild
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (native)

0 comments on commit 25cae52

Please sign in to comment.