Skip to content

Commit cfdf6f1

Browse files
committed
[FIX] packaging: include all odoo files in src build
Since this old commit 7359248, the files that are packaged are chosen by a list of allowed extensions. This list have to be maintained each time that a developer adds a new kind of file in a module. This is error prone [0] as most developer are not aware of that and it's difficult to monitor. Moreover, there is no reason to have a different list of installed files when one install from the git repo instead of the source package. With this commit, all [1] odoo sources files are included in the source packaging and the only thing to maintain is a small black-list of file extensions like for Python bytecode files and for version control files. [0] see commit d33c05b that fix `.json` missing files. [1] graft command: https://docs.python.org/3/distutils/commandref.html closes odoo#67016 X-original-commit: 9c2ce1f Signed-off-by: Xavier Dollé (xdo) <[email protected]> Signed-off-by: Christophe Monniez (moc) <[email protected]>
1 parent 6cfaf10 commit cfdf6f1

File tree

1 file changed

+2
-46
lines changed

1 file changed

+2
-46
lines changed

MANIFEST.in

+2-46
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,6 @@
11
include requirements.txt
22
include LICENSE
33
include README.md
4-
include odoo/addons/mail/static/scripts/odoo-mailgate.py
5-
recursive-include odoo *.css
6-
recursive-include odoo *.csv
7-
recursive-include odoo *.doc
8-
recursive-include odoo *.docx
9-
recursive-include odoo *.eml
10-
recursive-include odoo *.eot
11-
recursive-include odoo *.gif
12-
recursive-include odoo *.html
13-
recursive-include odoo *.ico
14-
recursive-include odoo *.jpeg
15-
recursive-include odoo *.jpg
16-
recursive-include odoo *.js
17-
recursive-include odoo *.json
18-
recursive-include odoo *.md
19-
recursive-include odoo *.mp3
20-
recursive-include odoo *.ogg
21-
recursive-include odoo *.ods
22-
recursive-include odoo *.odt
23-
recursive-include odoo *.otf
24-
recursive-include odoo *.pdf
25-
recursive-include odoo *.png
26-
recursive-include odoo *.po
27-
recursive-include odoo *.pot
28-
recursive-include odoo *.rml
29-
recursive-include odoo *.rng
30-
recursive-include odoo *.rst
31-
recursive-include odoo *.scss
32-
recursive-include odoo *.sql
33-
recursive-include odoo *.svg
34-
recursive-include odoo *.template
35-
recursive-include odoo *.txt
36-
recursive-include odoo *.ttf
37-
recursive-include odoo *.woff
38-
recursive-include odoo *.woff2
39-
recursive-include odoo *.wsdl
40-
recursive-include odoo *.xls
41-
recursive-include odoo *.xsd
42-
recursive-include odoo *.xsl
43-
recursive-include odoo *.xlsx
44-
recursive-include odoo *.xml
45-
recursive-include odoo *.yml
46-
recursive-include odoo *.zip
47-
recursive-include odoo/addons/l10n_mx_edi *.xslt *.key *.cer *.txt
48-
recursive-include odoo/addons/l10n_mx_reports *.xslt
4+
graft odoo
495
recursive-exclude * *.py[co]
50-
recursive-exclude * *.hg*
6+
recursive-exclude .git *

0 commit comments

Comments
 (0)