summary refs log tree commit diff
path: root/debian/build_virtualenv (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Minor cleanup to Debian packaging (#11269)Dan Callahan2021-11-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove unused Vagrant scripts * Change package Architecture to any * Preinstall the wheel package when building venvs. Addresses the following warnings during Debian builds: Using legacy 'setup.py install' for jaeger-client, since package 'wheel' is not installed. Using legacy 'setup.py install' for matrix-synapse-ldap3, since package 'wheel' is not installed. Using legacy 'setup.py install' for opentracing, since package 'wheel' is not installed. Using legacy 'setup.py install' for psycopg2, since package 'wheel' is not installed. Using legacy 'setup.py install' for systemd-python, since package 'wheel' is not installed. Using legacy 'setup.py install' for pympler, since package 'wheel' is not installed. Using legacy 'setup.py install' for threadloop, since package 'wheel' is not installed. Using legacy 'setup.py install' for thrift, since package 'wheel' is not installed. * Allow /etc/default/matrix-synapse to be missing Per the systemd.exec manpage, prefixing an EnvironmentFile with "-": > indicates that if the file does not exist, it will not be read and no > error or warning message is logged. Signed-off-by: Dan Callahan <danc@element.io>
* Fix Shellcheck SC2006: Use $(...) notationDan Callahan2021-10-221-4/+4
| | | | | | | | Use $(...) notation instead of legacy backticked `...`. https://github.com/koalaman/shellcheck/wiki/SC2006 Signed-off-by: Dan Callahan <danc@element.io>
* Fix Shellcheck SC2086: Quote to prevent splittingDan Callahan2021-10-221-1/+1
| | | | | | | | Double quote to prevent globbing and word splitting. https://github.com/koalaman/shellcheck/wiki/SC2086 Signed-off-by: Dan Callahan <danc@element.io>
* Fix Shellcheck SC2064: Use single quotes on trapsDan Callahan2021-10-221-1/+1
| | | | | | | | Use single quotes, otherwise this expands now rather than when signalled. https://github.com/koalaman/shellcheck/wiki/SC2064 Signed-off-by: Dan Callahan <danc@element.io>
* Fix debian package triggers (#10481)Richard van der Hoff2021-08-031-0/+15
| | | | Replace the outdated list of dpkg triggers with an autogenerated one.
* Drop xenial-support hacks (#10429)Richard van der Hoff2021-07-211-3/+1
|
* Add option to skip unit tests when building debs (#9793)Dan Callahan2021-04-121-7/+16
| | | Signed-off-by: Dan Callahan <danc@element.io>
* Allow bytecode again (#9502)Jonathan de Jong2021-02-261-3/+3
| | | | | | | In #75, bytecode was disabled (from a bit of FUD back in `python<2.4` days, according to dev chat), I think it's safe enough to enable it again. Added in `__pycache__/` and `.pyc`/`.pyd` to `.gitignore`, to extra-insure compiled files don't get committed. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Fix Debian builds on Xenial (#9254)Dan Callahan2021-01-291-1/+3
| | | | | | | | Adds note about updating dh-virtualenv once we drop support for Xenial. We can't update now, because it needs debhelper 12, while Xenial only backports 10. Signed-off-by: Dan Callahan <danc@element.io>
* Explicitly install test dependencies when building deb packages (#8523)Andrew Morgan2020-10-121-1/+1
| | | | | After https://github.com/matrix-org/synapse/pull/8377, the deb packages no longer indirectly installed the `"test"` dependencies, causing debian packages to fail to build while carrying out the unit tests. This PR installs `test` dependencies explicitly when building debian packages.
* update dh-virtualenv (#7526)Richard van der Hoff2020-05-191-1/+0
|
* Automate generation of the sample and debian log configs (#6627)Richard van der Hoff2020-01-031-0/+3
|
* Include systemd-python in Debian package to allow logging to journal (#5261)Silke Hofstra2019-06-271-1/+1
| | | Signed-off-by: Silke Hofstra <silke@slxh.eu>
* Generate the debian config during build (#4444)Richard van der Hoff2019-01-241-2/+32
| | | | | | Rather than hardcoding a config which we always forget to update, generate it from the default config.
* debian package: symlink to python-3.X (#4433)Richard van der Hoff2019-01-231-1/+14
| | | | | | | | | | In the debian package, make the virtualenv symlink python to /usr/bin/python3.X rather than /usr/bin/python3. Also make sure we depend on the right python3.x package. This might help a bit with subtle failures when people install a package from the wrong distro (https://github.com/matrix-org/synapse/issues/4431).
* Avoid packaging _trial_temp directory (#4326)Richard van der Hoff2019-01-021-2/+1
| | | | | | Make sure we don't put the _trial_temp directory in the package target directory. Fixes https://github.com/matrix-org/synapse/issues/4322
* Install the optional dependencies into the debian package (#4325)Richard van der Hoff2019-01-021-1/+2
| | | | | | | | since #4298, the optional dependencies are no longer installed with a simple `pip install .`, which meant that they were not being included in the debian package. The easy fix to that is dh_virtualenv --extras, but that needs dh_virtualenv 1.1...
* Debian packaging via dh_virtualenv (#4285)Richard van der Hoff2018-12-201-0/+48