summaryrefslogtreecommitdiff
path: root/setup/package.py
AgeCommit message (Collapse)Author
2018-11-19[FIX] packaging: add qrcode package to docker fileChristophe Monniez
After the Odoo package is built, the package.py script uses a Docker image to test the package. After that python3-qrcode was added as a dependency for the package in 2ff49c5f , it revealed some issues. A missing cli parameter and a forgotten '&&' in the Dockerfile prevented the installation of the depending packages. Also, the script shebang was wrong by launching python2. Finally, the fact that python3-xlwt is missing in Debian stretch was highlighted. With this commit, the python3-xlwt is explicitly removed from the dependencies and the documentation is updated accordingly. closes odoo/odoo#28807
2018-08-27[FIX] packaging: find admin uid when testing packagesChristophe Monniez
Since 2f7c03d the admin user could have any uid and the uid 1 is reserved for the system user. As the uid was hardcoded as 1 when testing packages, the tests were failing. With this commit, the uid of the admin user is searched before testing the packages. Closes #26603
2018-05-04[FIX] packaging: avoid traceback on virtual machine timeoutChristophe Monniez
When the virtual machine used to build MS Win package takes too much time (to build or to test the build), a warning is logged and the VM is killed. Before this commit, the PID of the process was passed as an argument to the warning method, causing a traceback.
2017-11-03[FIX] package: fix the windows build testChristophe Monniez
As the windows package provides odoo from sources alongs with python 3, the test of the build was failing. The odoo-bin.exe was not found because py2exe is not used anymore. Windows firewall is now disabled from package.py to prevent it from blocking local xmlrpc calls. Also, the docker containers were removed when package tests were finished, even when no docker was involved in the process (e.g. only a windows build). This commit fixes the test part of the windows build process.
2017-10-23[FIX] setup: typo in command lineAndrew Latham
Sign CLA Closes #20321
2017-10-12[FIX] packages: fix docker images builds testsChristophe Monniez
The automated tests of rpm,deb and src packages are using docker images and containers. Those tests were not working as expected due to various small glitches: * some debian python- packages were missing in the Debian image * pip was called instead of pip3 for the src test * a wrong addons path was given for the tests * the containers id's were wrong due to a bytes implicitly converted to str
2017-10-09[FIX] package: remove unwanted char from install pathChristophe Monniez
Purpose: When installing postgresql under windows, the '+' character is unallowed. This was creating a bug when using the windows installer the enterprise version which derivate the install path from the version number.
2017-10-03[FIX] setup: bump up kvm startup delayOlivier Dony
Windows can be slower to start than that, sometimes.
2017-10-03[REF] win32: move to WinPython...Christophe Monniez
Purpose: for multiple reasons (bytecode change in python 3.6, missing files for some packages, py2exe is unmaintained ...) the py2exe solution cannot be used anymore. Odoo for windows will now use a portable Python that will be shipped with the Windows installer. For that purpose, a Winpython 3.6.2 is used. In order to build the Windows installer, a Winpython dir with all the Odoo requirements fullfilled, must exists on the build system (qemu-kvm VM). * nsis installer: - Only the python dir is used to avoid packaging too much stuffs - better compression level - starts the Odoo service using nssm - bump to V11 * change the default win10 build vm path * print a warning when uncomplete addon move * try to force remove of addon path: when the addons are moved to Odoo/addons, it happens that the destination already exists. In that case, the source addon was not deleted, resulting in a uneeded file duplication. * fix version string to avoid invalid chars in windows service * Add requirements adpated for WinPython * package.py now shows the traceback when a build fails * verify that a file exists before publishing * debuild now creates an .xz file instead of .gz * package: use logging module * kvm CPU that works with older versions. * fix a pexpect encoding bug * fix the version to remove special chars '~' which is not appreciated by windows services [REM] win32setup: Remove win32 python service Purpose: Before this commit, the win32 service was managed by an executable builded from those two files with the help of py2xe. The win32 service is now managed by nssm which starts Odoo and therefore, those files are not needed anymore.
2017-10-03[IMP] setup: Update docker filesChristophe Monniez
2017-10-03[IMP] package: build source tarball using python3Christophe Monniez
2017-10-03[IMP] Support for building Fedora26 rpmChristophe Monniez
2017-10-03[IMP] package: various improvementsChristophe Monniez
* Add an option to avoid signing deb package * update windows vm name * add memory to kvm as win10 needs 1G * increase win VM timeout because win10 seems slower to start * add an option to keep build dir for debugging purpose
2017-08-20[FIX] P3: convert exception handlers to except..asOlivier Dony
Those are possibly posterior or leftovers from 3979f6802eeea275f949d28ddf4c18f84fc0f5aa
2017-06-26[FIX] P3: xmlrpclib -> xmlrpc.clientXavier Morel
2017-04-27[FIX] builtins removed from Python 3xmo-odoo
* Reverse wrapper courtesy of @rco-odoo's original P3 branch * thin compat module stripped down from werkzeug (to augment as needed) issue 8530
2016-10-06[FIX] packaging: correct docker build name (part2)Christophe Simonis
2016-10-05[FIX] packaging: correct docker build nameChristophe Simonis
2016-09-30[REF] packaging: renamed configuration filesSimon Lejeune
no fallbacks were implemented to `openerp-server.conf`.
2016-09-30[REF] packaging: redhat: use fedora for testingSimon Lejeune
Creating a centos docker image fails on our nightly server with this issue: https://github.com/docker/hub-feedback/issues/461 To create a centos image, we used another repository to host the image and we make it build in docker hub, then we pulled it. It was getting really annoying.
2016-09-30[REF] cli: renamed openerp-server to odoo-binSimon Lejeune
The use of an entry point was considered in order to provide an `odoo` command in the path for the packages users, but the generated entry point will first check that all the things in install_requires were provided in a not bright way: it'll check that it matches a distribution name. This does not work because python-chart does not have the distrubtion name "pychart" which is provided by the python-pychart package in debian jessie. Same for suds-jurko which is provided by python-suds in debian stretch but does not have the distribution name "suds". Also, adapted the packages tests to these cli changes.
2016-09-30[REF] packaging: windows: remove use of version_fullSimon Lejeune
This way we do not have to pass the version as argument. This was error prone. If the timestamp has to be included in the version, just patch it during before running package.py. This was already done in our nightly servers anyway.
2016-09-30[REF] packaging: windows: don't hardcode service nameSimon Lejeune
Correctly pass it to the nsis script the same way it was done for the version and python version. this was a source of error at each release.
2016-09-30[REF] packaging: windows: start the correct service name during testSimon Lejeune
2016-09-30[REF] packaging: document dependenciesSimon Lejeune
2016-09-30[REF] packaging: openerp has been renamed odooSimon Lejeune
Fix the various place when the rename of the git root directory broke the packaging script. Also, we can now name the library "odoo".
2016-09-30[REF] packaging: web_analytics was removed in saas-12Simon Lejeune
2015-12-18[FIX] all: references to Odoo 8.0 versionMartin Trigaux
In installation script or documentation Fixes #10052
2015-10-09[FIX] Packaging: package.py: default version set to 9.0Aaron Bohy
Fixes remaining occurences of 8.0 in the windows installer. Mainly, odoo is now correctly installed in odoo.9.0-timestamp/ instead of odoo.8.0-timestamp/
2015-07-22[MERGE] forward port of branch saas-6 up to 63e92cbChristophe Simonis
2015-07-14[MERGE] forward port of branch 8.0 up to 86d7f52Christophe Simonis
2015-07-14[MERGE] forward port of branch 7.0 up to be6c758Christophe Simonis
2015-07-14[FIX] package.py: search for prompt correctly.Christophe Simonis
2015-06-02[LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate textOlivier Dony
- Preserved explicit 3rd-party copyright notices - Explicit boilerplate should not be necessary - copyright law applies automatically in all countries thanks to Berne Convention + WTO rules, and a reference to the applicable license is clear enough.
2015-02-23[IMP] Packaging: use docker image of debian jessie.Nicolas Martinelli
Update to pip v6 necessary to avoid import error of 'IncompleteRead' from requests.compat
2015-02-20[FIX] Packaging: possibility to have a PGP key without passphraseNicolas Martinelli
2015-02-20[ADD] Packaging: nightly tests: src dockerfileNicolas Martinelli
Creation of a Dockerfile for the src package for nightly tests. Remove unnecessary libraries installation from the Debian Dockerfile.
2015-02-20[IMP] Packaging: version number in docker image nameNicolas Martinelli
2015-02-20[IMP] Packaging: version number in docker image nameNicolas Martinelli
2015-01-26[FIX] Packaging: Windows: _prepare_build_dirAaron Bohy
Catch shutil.Error thrown when addons have already been moved to openerp/addons. Fixes the bug introduced by commit 91026647d43358594df0e17f3d408a3aa415c665.
2015-01-23[FIX] Packaging: Debian: do not include setup/win32 in sourcesAaron Bohy
This prevents to put postgresql-9.3.5-1-windows.exe, node.exe and wkhtmltopdf.exe in the tar.gz produced with debhelper, saving approx. 60MB.
2015-01-23[FIX] Packaging: do not publish add-on web_analyticsAaron Bohy
This fixes the privacy-breach-google-adsense lintian error for Debian packaging.
2015-01-20[FIX] Packaging: RedHat: prompt overriden in dockerAaron Bohy
RPM packages did not pass the tests because the centos prompt changed and thus did not match the regexp anymore. We now explicitely specify the prompt in our Dockerfiles to prevent such issues.
2015-01-20[FIX] Packaging: RedHat: prompt overriden in dockerAaron Bohy
RPM packages did not pass the tests because the centos prompt changed and thus did not match the regexp anymore. We now explicitely specify the prompt in our Dockerfiles to prevent such issues.
2015-01-15[FIX] Packaging: Debian Dockerfile for nightly testsAaron Bohy
Remove installation of v8 requirements in package.dfdebian as this is unnecessary for v7. This fixes a bug occuring during the installation of openerp (precisely when installing reportlab dependencies), because reportlab now requires a more recent version of pillow than 2.5.1. Also use pip instead of /usr/local/bin/pip in test_tgz (package.py) as pip script isn't installed there anymore.
2015-01-05[FIX] Packaging: debian: .dsc file reference to .tar.gzAaron Bohy
Renamming logic (odoo_version.timestamp.extension) of published files moved out of publish function
2014-12-19[REF] Packaging: Backport of v8 packagingSimon Lejeune
[REF] Packaging: backport of a7ab5a4109ec99d77f61a6d4c8bc7696149ea09c [REF] Packaging: backport of a700a1139ee19d71bc4669ff74bc53c87b38dc7b [REF] Packaging: backport of 9d0bd2807e2c2b949ece62fd6be04a1cf39c8e0d [REF] Packaging: backport of b0722d3e5d6bebdf19dc29b8ba04651ae508839f [REF] Packaging: backport of 24b2c93814dfa18fa1aa88bb0497a73b7b8b3e6e [REF] Packaging: backport of e874cdafaa9675251cd7852b8e9b1662cee7d19a [REF] Packaging: backport of 56b61da16387e642130477e604022207a77e3f74 [REF] Packaging: backport of be96dd85959528b86f7535b9b4cc0dc86981ca33 [REF] Packaging: backport of 50a4da99f051d125b8435477657ee2b115a8e0bd [REF] Packaging: backport of 1c41f3699303da770797002025b7c8226fb562eb [REF] Packaging: backport of cc11331733a5cb8aff6c7f0d4def1404e83b80e8 [FIX] Packaging: backport of 134716308266ff [REF] Package: backport of 93845d683c0420118c162eb855abb690150b692d [REF] Package: backport of 012bc01c113c8d008a0eb94219f1cb519519ff0d [FIX] Package: partial apply of d9e72a3716488ce8 [REF] Package: backport of 67036feff4f3d2d86a9e9e3e19f85fc183f466c6 [REF] Package: backport of 73de0138dedfe0faaae857544746915315a0dbeb [REF] Package: backport of 30d987ed30e64a498ef392a0aa83ca7f4d220a97 [REF] Package: backport of 29132669a16792a84960f03c5627f04e0ad8ff6a [REF] Package: backport of 7db12dc47b1e89ba0a7315c567fafdc722f47b90 [REF] Package: backport of f668f9c6cdc4fcea1c647959feed42359eb78009 [REF] Package: backport of 2cf4051a1556d64a1ff321658c4c2e0a60a13132 [REF] Packaging: backport of 735924878f89041f3b74540848baef71790872a1 [REF] Packaging: backport of f2598ecdce169f8134ff1f5c84eb12e14a5d6f34 [REF] Package: backport of fd21912cfe76f90447059cdf2617bcd7631cc122 [REF] Package: backport of 9a8cdf49b08ce9e1b4238bf122ee2c4271d44f62 [REF] Package: backport of 2f4984b8381c6407a720b122733242e6cf3101da [REF] Package: backport of 6e9edeeb46d4161bf7be02f570073c9c1edf45c7 [REF] Package: partial backport of d4624fa826a5e9542782f2c53c8ba2c766d093bc [REF] Package: backport of 9f13722f7837a80e423ca6e7a7337d66f900e564
2014-12-09[ADD] Packaging: Debian and CentOS Dockerfiles for nightly builds testsAaron Bohy
This way we'll be using docker cache to spare dependencies download time.
2014-12-09[ADD] Packaging: also publish source dist .zip fileAaron Bohy
2014-11-28[FIX] Packaging: batch the signing procedureSimon Lejeune