summary refs log tree commit diff
path: root/debian/build_virtualenv (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add a stub Rust crate (#12595)Erik Johnston2022-09-061-1/+6
|
* Use poetry 1.2.0 rather than prerelease for deb packages (#13695)Erik Johnston2022-09-011-1/+1
|
* Move `pympler` back into the `all` extras (#12652)David Robertson2022-05-071-1/+0
| | | | | | | | | | | | | * Move `pympler` back into the `all` extras Undoes a change I made in #12381. I can't fully remember my reasoning, but this changed the contents of the debian packages in a backwards incompatible way. We're not aware of anyone who's been bitten by this, but we still want to fix it. To the reviewer: please be convinced that the debian packages will still contain pympler after this change. * Debian changelog entry to keep the linter happy
* Include extra dependency groups 'systemd' and 'cache_memory' in debian ↵Andrew Morgan2022-05-051-1/+6
| | | | | packages (#12640) Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
* Use `poetry` to manage the virtualenv in debian packages (#12449)David Robertson2022-04-141-4/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Use `poetry` to build venv in debian packages Co-authored-by: Dan Callahan <danc@element.io> Co-authored-by: Shay <hillerys@element.io> * Changelog * Only pull in from requirements.txt Addresses the same problem as #12439. * Include `test` and `all` extras `poetry export` helpfully silently ignores an unknown extra Haven't seen this before because it's the only place we export `all` and `test`. I could have __sworm__ that the syntax `--extra "all test"` worked for `poetry install`... * Clean up requirements file on subsequence builds * Fix shell syntax Co-authored-by: Dan Callahan <danc@element.io> Co-authored-by: Shay <hillerys@element.io>
* 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