[arch-commits] Commit in postorius/trunk (PKGBUILD)
Date: Thursday, November 12, 2020 @ 17:45:57 Author: foutrelis Revision: 752803 upgpkg: postorius 1.3.3-6: Python 3.9 rebuild Modified: postorius/trunk/PKGBUILD --+ PKGBUILD |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Modified: PKGBUILD === --- PKGBUILD2020-11-12 17:45:56 UTC (rev 752802) +++ PKGBUILD2020-11-12 17:45:57 UTC (rev 752803) @@ -2,7 +2,7 @@ pkgname=postorius pkgver=1.3.3 -pkgrel=5 +pkgrel=6 pkgdesc="The New Mailman Web UI" arch=('any') url="https://gitlab.com/mailman/postorius;
[arch-commits] Commit in postorius/trunk (PKGBUILD)
Date: Sunday, November 8, 2020 @ 10:47:28 Author: dvzrv Revision: 746465 upgpkg: postorius 1.3.3-5: Rebuild to devendor calls to cloudflare for javascript. Add upstream patch to devendor popper.js from cloudflare and use a local version instead. Modified: postorius/trunk/PKGBUILD --+ PKGBUILD | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) Modified: PKGBUILD === --- PKGBUILD2020-11-08 10:40:45 UTC (rev 746464) +++ PKGBUILD2020-11-08 10:47:28 UTC (rev 746465) @@ -2,7 +2,7 @@ pkgname=postorius pkgver=1.3.3 -pkgrel=4 +pkgrel=5 pkgdesc="The New Mailman Web UI" arch=('any') url="https://gitlab.com/mailman/postorius; @@ -21,26 +21,32 @@ ) install="${pkgname}.install" source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.asc} + "${pkgname}-1.3.3-devendor_js.patch::https://gitlab.com/mailman/postorius/-/commit/9c2d612a7f0aed6189f078f2d384a0f987aeaa2b.patch; +"${pkgname}-1.3.2-settings.patch" "${pkgname}.sysusers" "${pkgname}.tmpfiles" "${pkgname}.uwsgi" -"${pkgname}-1.3.2-settings.patch") +) sha512sums=('31d6d6d0dbbe8a57251c81cf8f7d8b80d17dd4aab9f31be684fef26637a4ba81a196d4ab63e7389bd4173a60778a00c83ee440c24f83a1f60b094ccab8cf345a' 'SKIP' + '8ec0472490a2d2803b5273a7bd65c595d4ff7997c2b30931f32198565893154c1ce7fb70c9647685e4e265ed90a442369db6a6b2f5f5fec3f4394dab58212766' + '53713874043e368c71543966e878ff7a49f03088b7ebcff9487935bef2c20a57a561a122dd6b4cbde126c25b935871288dadd7693b831a94b8f27da52afeaa0c' '3884b818da2deb148279e50316f720c95f0aaa529777b1b3662d8ab253cda823a90682a9eb47e941ca5ba80eefcb9a2d4afacd29f0340d7f9828b36ebcee23b3' '44925c7ce6d1c13bd5bdd2cb449fa978b8eaadaac7ecff74075c23a13478decc4acd1f2cd0399bf55c312d6a08985a3e80f6e7a6e85be9e3dcb93ffb526ca9fb' - 'c042f00d0d8dc72dadd19023152e55246c4d7a4b9d53bca3a05e7b8cb38cac5116417440d4ae82350820c7cb0cd414dcce45fa6af9be19296c4ebd0862dba896' - '53713874043e368c71543966e878ff7a49f03088b7ebcff9487935bef2c20a57a561a122dd6b4cbde126c25b935871288dadd7693b831a94b8f27da52afeaa0c') + 'c042f00d0d8dc72dadd19023152e55246c4d7a4b9d53bca3a05e7b8cb38cac5116417440d4ae82350820c7cb0cd414dcce45fa6af9be19296c4ebd0862dba896') b2sums=('0ae5a7b3ace1ad7f64eae53156592d0c76a09e358d08edfe1b506717e87df67c669bfab356c203e28c03006f46461a67b4c7222e0e305100e15511a93e3e6a59' 'SKIP' + 'b7ee3f93d503f4b2eaee8ceeb76021262dabd427c7ebd71d644cdf2957ae59f796564e046e21643855d7cc4a39ba732948bcd1b8d3dc945592df09d4e712410a' + 'c4017fe87b8743ae516e360be97efd767d726b043733a6dd880503e796e28f65c9ad5924b0fef53281e4fa73a1a329e818baedbe5dbbc0dc07db2af0cf25f1b7' '1ef6dc98c6751e6d65e49812d08d813879b791a7f13622ea31ecadae6dd1859a918761d7723732ed2e4872b9cae61b84c8dbfec2dd2522de9f0929a1ee1cec24' '502d59cb0009b7cdf108a1611d17470d1a73c2d06bf6d9509799b63d4bbb4bb0a2cb71a39eddb0dc5990ee6489625174de6ce2d7e04e77a601c90a6da6d69c84' - '4b80d60c88d46edd0e6e61ad2ff37ba3568c6c56a2abd449f903f7302aeec4a3bc91bbd3ee846731513fa1906df2e3d7d1c52b75a55214051fb96b048f9b4999' - 'c4017fe87b8743ae516e360be97efd767d726b043733a6dd880503e796e28f65c9ad5924b0fef53281e4fa73a1a329e818baedbe5dbbc0dc07db2af0cf25f1b7') + '4b80d60c88d46edd0e6e61ad2ff37ba3568c6c56a2abd449f903f7302aeec4a3bc91bbd3ee846731513fa1906df2e3d7d1c52b75a55214051fb96b048f9b4999') validpgpkeys=('541EA0448453394FF77A0ECC9D9B2BA061D0A67C') # Abhilash Raj prepare() { cd "$pkgname-$pkgver" + # devendor cloudflare javascript + patch -Np1 -i "../${pkgname}-1.3.3-devendor_js.patch" # patch global paths into settings.py patch -Np1 -i "../${pkgname}-1.3.2-settings.patch" touch settings_local.py
[arch-commits] Commit in postorius/trunk (PKGBUILD postorius.tmpfiles)
Date: Saturday, November 7, 2020 @ 12:29:48 Author: dvzrv Revision: 745730 upgpkg: postorius 1.3.3-4: Fix a typo in tmpfiles.d integration. Modified: postorius/trunk/PKGBUILD postorius/trunk/postorius.tmpfiles + PKGBUILD |6 +++--- postorius.tmpfiles |2 +- 2 files changed, 4 insertions(+), 4 deletions(-) Modified: PKGBUILD === --- PKGBUILD2020-11-07 12:28:33 UTC (rev 745729) +++ PKGBUILD2020-11-07 12:29:48 UTC (rev 745730) @@ -2,7 +2,7 @@ pkgname=postorius pkgver=1.3.3 -pkgrel=3 +pkgrel=4 pkgdesc="The New Mailman Web UI" arch=('any') url="https://gitlab.com/mailman/postorius; @@ -28,13 +28,13 @@ sha512sums=('31d6d6d0dbbe8a57251c81cf8f7d8b80d17dd4aab9f31be684fef26637a4ba81a196d4ab63e7389bd4173a60778a00c83ee440c24f83a1f60b094ccab8cf345a' 'SKIP' '3884b818da2deb148279e50316f720c95f0aaa529777b1b3662d8ab253cda823a90682a9eb47e941ca5ba80eefcb9a2d4afacd29f0340d7f9828b36ebcee23b3' - '1c14f48423c2db5ea2b2a95485b7391df30d8dd9255981c1ed9f5036e70b8d6f6495e83275b1593baeea20d1dbed3a447e2ac037870d3eafb7eb6f9d0cae443f' + '44925c7ce6d1c13bd5bdd2cb449fa978b8eaadaac7ecff74075c23a13478decc4acd1f2cd0399bf55c312d6a08985a3e80f6e7a6e85be9e3dcb93ffb526ca9fb' 'c042f00d0d8dc72dadd19023152e55246c4d7a4b9d53bca3a05e7b8cb38cac5116417440d4ae82350820c7cb0cd414dcce45fa6af9be19296c4ebd0862dba896' '53713874043e368c71543966e878ff7a49f03088b7ebcff9487935bef2c20a57a561a122dd6b4cbde126c25b935871288dadd7693b831a94b8f27da52afeaa0c') b2sums=('0ae5a7b3ace1ad7f64eae53156592d0c76a09e358d08edfe1b506717e87df67c669bfab356c203e28c03006f46461a67b4c7222e0e305100e15511a93e3e6a59' 'SKIP' '1ef6dc98c6751e6d65e49812d08d813879b791a7f13622ea31ecadae6dd1859a918761d7723732ed2e4872b9cae61b84c8dbfec2dd2522de9f0929a1ee1cec24' - '2ddbf7fdf2a98d96f4a122faca35f4ca1e2cf1f81542d7fc45ae64f8b860eebdcb997c58c633ae45325f50c247b187216337550866ec186fac380f802b1eb74f' + '502d59cb0009b7cdf108a1611d17470d1a73c2d06bf6d9509799b63d4bbb4bb0a2cb71a39eddb0dc5990ee6489625174de6ce2d7e04e77a601c90a6da6d69c84' '4b80d60c88d46edd0e6e61ad2ff37ba3568c6c56a2abd449f903f7302aeec4a3bc91bbd3ee846731513fa1906df2e3d7d1c52b75a55214051fb96b048f9b4999' 'c4017fe87b8743ae516e360be97efd767d726b043733a6dd880503e796e28f65c9ad5924b0fef53281e4fa73a1a329e818baedbe5dbbc0dc07db2af0cf25f1b7') validpgpkeys=('541EA0448453394FF77A0ECC9D9B2BA061D0A67C') # Abhilash Raj Modified: postorius.tmpfiles === --- postorius.tmpfiles 2020-11-07 12:28:33 UTC (rev 745729) +++ postorius.tmpfiles 2020-11-07 12:29:48 UTC (rev 745730) @@ -1,5 +1,5 @@ z /etc/webapps/postorius/settings_local.py 0640 root postorius - -z /etc/webapps/postorius/url.py 0640 root postorius - +z /etc/webapps/postorius/urls.py 0640 root postorius - d %L/postorius 750 postorius postorius - d %S/postorius/data 750 postorius postorius - d %S/postorius/locale - postorius postorius -
[arch-commits] Commit in postorius/trunk (PKGBUILD postorius.tmpfiles)
Date: Saturday, November 7, 2020 @ 12:05:24 Author: dvzrv Revision: 745726 upgpkg: postorius 1.3.3-3: Rebuild to allow url modifications. Add the urls.py to /etc/webapps/postorius/ as it is required to modify it under certain circumstances. Modified: postorius/trunk/PKGBUILD postorius/trunk/postorius.tmpfiles + PKGBUILD | 16 ++-- postorius.tmpfiles |1 + 2 files changed, 11 insertions(+), 6 deletions(-) Modified: PKGBUILD === --- PKGBUILD2020-11-07 12:04:45 UTC (rev 745725) +++ PKGBUILD2020-11-07 12:05:24 UTC (rev 745726) @@ -2,7 +2,7 @@ pkgname=postorius pkgver=1.3.3 -pkgrel=2 +pkgrel=3 pkgdesc="The New Mailman Web UI" arch=('any') url="https://gitlab.com/mailman/postorius; @@ -16,7 +16,9 @@ 'uwsgi-plugin-python: for running inside uwsgi') replaces=('python-django-postorius') backup=("etc/uwsgi/${pkgname}.ini" -"etc/webapps/${pkgname}/settings_local.py") +"etc/webapps/${pkgname}/settings_local.py" +"etc/webapps/${pkgname}/urls.py" +) install="${pkgname}.install" source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.asc} "${pkgname}.sysusers" @@ -26,13 +28,13 @@ sha512sums=('31d6d6d0dbbe8a57251c81cf8f7d8b80d17dd4aab9f31be684fef26637a4ba81a196d4ab63e7389bd4173a60778a00c83ee440c24f83a1f60b094ccab8cf345a' 'SKIP' '3884b818da2deb148279e50316f720c95f0aaa529777b1b3662d8ab253cda823a90682a9eb47e941ca5ba80eefcb9a2d4afacd29f0340d7f9828b36ebcee23b3' - '97cb4c0530a270db1e608f255b0940fbf1779252da74b7df9865adff809f0e644e88e0cbcfa7d7c858877887bc8ae64dddec88734fbc4abb75b6a270be38d2cf' + '1c14f48423c2db5ea2b2a95485b7391df30d8dd9255981c1ed9f5036e70b8d6f6495e83275b1593baeea20d1dbed3a447e2ac037870d3eafb7eb6f9d0cae443f' 'c042f00d0d8dc72dadd19023152e55246c4d7a4b9d53bca3a05e7b8cb38cac5116417440d4ae82350820c7cb0cd414dcce45fa6af9be19296c4ebd0862dba896' '53713874043e368c71543966e878ff7a49f03088b7ebcff9487935bef2c20a57a561a122dd6b4cbde126c25b935871288dadd7693b831a94b8f27da52afeaa0c') b2sums=('0ae5a7b3ace1ad7f64eae53156592d0c76a09e358d08edfe1b506717e87df67c669bfab356c203e28c03006f46461a67b4c7222e0e305100e15511a93e3e6a59' 'SKIP' '1ef6dc98c6751e6d65e49812d08d813879b791a7f13622ea31ecadae6dd1859a918761d7723732ed2e4872b9cae61b84c8dbfec2dd2522de9f0929a1ee1cec24' - 'cb5653cde88a3bfee87e5609066c6e4accd96d97c0e225ee721d23356a3c88a17ceb3e849849ff487c77a17070e281c105a1a0298bd0a8508df0c29f155bf45c' + '2ddbf7fdf2a98d96f4a122faca35f4ca1e2cf1f81542d7fc45ae64f8b860eebdcb997c58c633ae45325f50c247b187216337550866ec186fac380f802b1eb74f' '4b80d60c88d46edd0e6e61ad2ff37ba3568c6c56a2abd449f903f7302aeec4a3bc91bbd3ee846731513fa1906df2e3d7d1c52b75a55214051fb96b048f9b4999' 'c4017fe87b8743ae516e360be97efd767d726b043733a6dd880503e796e28f65c9ad5924b0fef53281e4fa73a1a329e818baedbe5dbbc0dc07db2af0cf25f1b7') validpgpkeys=('541EA0448453394FF77A0ECC9D9B2BA061D0A67C') # Abhilash Raj @@ -63,7 +65,7 @@ --optimize=1 \ --root="${pkgdir}" # django project - install -vDm 644 example_project/{__init__,manage,settings,urls,wsgi}.py \ + install -vDm 644 example_project/{__init__,manage,settings,wsgi}.py \ -t "${pkgdir}/usr/share/webapps/${pkgname}" # symlink locale and static dirs to state dir ln -svf "/var/lib//${pkgname}/locale/" \ @@ -76,10 +78,12 @@ # log dir install -vdm 750 "${pkgdir}/var/log/${pkgname}" # config - install -vDm 640 settings_local.py \ + install -vDm 640 settings_local.py example_project/urls.py \ -t "${pkgdir}/etc/webapps/${pkgname}" ln -svf "/etc/webapps/${pkgname}/settings_local.py" \ "${pkgdir}/usr/share/webapps/${pkgname}/settings_local.py" + ln -svf "/etc/webapps/${pkgname}/urls.py" \ +"${pkgdir}/usr/share/webapps/${pkgname}/urls.py" # uwsgi install -vDm 644 "../${pkgname}.uwsgi" "${pkgdir}/etc/uwsgi/${pkgname}.ini" # tmpfiles.d Modified: postorius.tmpfiles === --- postorius.tmpfiles 2020-11-07 12:04:45 UTC (rev 745725) +++ postorius.tmpfiles 2020-11-07 12:05:24 UTC (rev 745726) @@ -1,4 +1,5 @@ z /etc/webapps/postorius/settings_local.py 0640 root postorius - +z /etc/webapps/postorius/url.py 0640 root postorius - d %L/postorius 750 postorius postorius - d %S/postorius/data 750 postorius postorius - d %S/postorius/locale - postorius postorius -
[arch-commits] Commit in postorius/trunk (PKGBUILD)
Date: Wednesday, July 15, 2020 @ 21:18:13 Author: dvzrv Revision: 664011 upgpkg: postorius 1.3.3-2: Rebuilding for reproducibility. Exporting PYTHONHASHSEED so .pyc files stay reproducible. Using PYTHONDONTWRITEBYTECODE=1 in check() so that the sources are not altered. Modified: postorius/trunk/PKGBUILD --+ PKGBUILD | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) Modified: PKGBUILD === --- PKGBUILD2020-07-15 21:13:21 UTC (rev 664010) +++ PKGBUILD2020-07-15 21:18:13 UTC (rev 664011) @@ -2,7 +2,7 @@ pkgname=postorius pkgver=1.3.3 -pkgrel=1 +pkgrel=2 pkgdesc="The New Mailman Web UI" arch=('any') url="https://gitlab.com/mailman/postorius; @@ -29,6 +29,12 @@ '97cb4c0530a270db1e608f255b0940fbf1779252da74b7df9865adff809f0e644e88e0cbcfa7d7c858877887bc8ae64dddec88734fbc4abb75b6a270be38d2cf' 'c042f00d0d8dc72dadd19023152e55246c4d7a4b9d53bca3a05e7b8cb38cac5116417440d4ae82350820c7cb0cd414dcce45fa6af9be19296c4ebd0862dba896' '53713874043e368c71543966e878ff7a49f03088b7ebcff9487935bef2c20a57a561a122dd6b4cbde126c25b935871288dadd7693b831a94b8f27da52afeaa0c') +b2sums=('0ae5a7b3ace1ad7f64eae53156592d0c76a09e358d08edfe1b506717e87df67c669bfab356c203e28c03006f46461a67b4c7222e0e305100e15511a93e3e6a59' +'SKIP' + '1ef6dc98c6751e6d65e49812d08d813879b791a7f13622ea31ecadae6dd1859a918761d7723732ed2e4872b9cae61b84c8dbfec2dd2522de9f0929a1ee1cec24' + 'cb5653cde88a3bfee87e5609066c6e4accd96d97c0e225ee721d23356a3c88a17ceb3e849849ff487c77a17070e281c105a1a0298bd0a8508df0c29f155bf45c' + '4b80d60c88d46edd0e6e61ad2ff37ba3568c6c56a2abd449f903f7302aeec4a3bc91bbd3ee846731513fa1906df2e3d7d1c52b75a55214051fb96b048f9b4999' + 'c4017fe87b8743ae516e360be97efd767d726b043733a6dd880503e796e28f65c9ad5924b0fef53281e4fa73a1a329e818baedbe5dbbc0dc07db2af0cf25f1b7') validpgpkeys=('541EA0448453394FF77A0ECC9D9B2BA061D0A67C') # Abhilash Raj prepare() { @@ -44,18 +50,18 @@ } check() { - cd "$pkgname-$pkgver" - cd example_project + cd "$pkgname-$pkgver/example_project" export PYTHONPATH="../build/lib:${PYTHONPATH}" + PYTHONDONTWRITEBYTECODE=1 \ pytest -v ../build/lib/${pkgname} } package() { cd "$pkgname-$pkgver" + export PYTHONHASHSEED=0 python setup.py install --skip-build \ ---optimize=1 \ ---prefix=/usr \ ---root="${pkgdir}" + --optimize=1 \ + --root="${pkgdir}" # django project install -vDm 644 example_project/{__init__,manage,settings,urls,wsgi}.py \ -t "${pkgdir}/usr/share/webapps/${pkgname}"
[arch-commits] Commit in postorius/trunk (PKGBUILD)
Date: Thursday, June 4, 2020 @ 18:25:59 Author: dvzrv Revision: 639026 upgpkg: postorius 1.3.3-1: Upgrading to 1.3.3. Removing the ignoring of failing test (fixed upstream). Modified: postorius/trunk/PKGBUILD --+ PKGBUILD | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) Modified: PKGBUILD === --- PKGBUILD2020-06-04 18:24:25 UTC (rev 639025) +++ PKGBUILD2020-06-04 18:25:59 UTC (rev 639026) @@ -1,8 +1,8 @@ # Maintainer: David Runge pkgname=postorius -pkgver=1.3.2 -pkgrel=4 +pkgver=1.3.3 +pkgrel=1 pkgdesc="The New Mailman Web UI" arch=('any') url="https://gitlab.com/mailman/postorius; @@ -23,7 +23,7 @@ "${pkgname}.tmpfiles" "${pkgname}.uwsgi" "${pkgname}-1.3.2-settings.patch") -sha512sums=('41ff225fa574dd4bd0ac88419a10a55a71c52a64df01a1a593963fdfa62baf16a0df735364688ea24680c8e88093841892474279d40c1428948375db7eb6333b' +sha512sums=('31d6d6d0dbbe8a57251c81cf8f7d8b80d17dd4aab9f31be684fef26637a4ba81a196d4ab63e7389bd4173a60778a00c83ee440c24f83a1f60b094ccab8cf345a' 'SKIP' '3884b818da2deb148279e50316f720c95f0aaa529777b1b3662d8ab253cda823a90682a9eb47e941ca5ba80eefcb9a2d4afacd29f0340d7f9828b36ebcee23b3' '97cb4c0530a270db1e608f255b0940fbf1779252da74b7df9865adff809f0e644e88e0cbcfa7d7c858877887bc8ae64dddec88734fbc4abb75b6a270be38d2cf' @@ -45,12 +45,9 @@ check() { cd "$pkgname-$pkgver" - # tests are very broken all of a sudden: - # https://gitlab.com/mailman/postorius/-/issues/406 cd example_project export PYTHONPATH="../build/lib:${PYTHONPATH}" - pytest -k 'not test_accept_held_messages and not test_held_message_count' \ - -v ../build/lib/${pkgname} + pytest -v ../build/lib/${pkgname} } package() {
[arch-commits] Commit in postorius/trunk (PKGBUILD postorius.tmpfiles)
Date: Thursday, April 2, 2020 @ 09:08:17 Author: dvzrv Revision: 609405 upgpkg: postorius 1.3.2-4: Switching to settings_local.py for tracking overrides to the settings.py (analogous to hyperkitty). Simplifying how tests are being run by being in the right location and adding the correct paths to PYTHONPATH. Modified: postorius/trunk/PKGBUILD postorius/trunk/postorius.tmpfiles + PKGBUILD | 27 ++- postorius.tmpfiles |2 +- 2 files changed, 15 insertions(+), 14 deletions(-) Modified: PKGBUILD === --- PKGBUILD2020-04-02 08:54:28 UTC (rev 609404) +++ PKGBUILD2020-04-02 09:08:17 UTC (rev 609405) @@ -2,7 +2,7 @@ pkgname=postorius pkgver=1.3.2 -pkgrel=3 +pkgrel=4 pkgdesc="The New Mailman Web UI" arch=('any') url="https://gitlab.com/mailman/postorius; @@ -16,7 +16,7 @@ 'uwsgi-plugin-python: for running inside uwsgi') replaces=('python-django-postorius') backup=("etc/uwsgi/${pkgname}.ini" -"etc/webapps/${pkgname}/settings.py") +"etc/webapps/${pkgname}/settings_local.py") install="${pkgname}.install" source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.asc} "${pkgname}.sysusers" @@ -26,7 +26,7 @@ sha512sums=('41ff225fa574dd4bd0ac88419a10a55a71c52a64df01a1a593963fdfa62baf16a0df735364688ea24680c8e88093841892474279d40c1428948375db7eb6333b' 'SKIP' '3884b818da2deb148279e50316f720c95f0aaa529777b1b3662d8ab253cda823a90682a9eb47e941ca5ba80eefcb9a2d4afacd29f0340d7f9828b36ebcee23b3' - '111747a7b9312bda8d23df6da430858d0bef09876e259ece63cc288a8e7de45be8225f68561d2c5f86cf8160fcef3e37071dde38e43f0a247e4860d05e3381bb' + '97cb4c0530a270db1e608f255b0940fbf1779252da74b7df9865adff809f0e644e88e0cbcfa7d7c858877887bc8ae64dddec88734fbc4abb75b6a270be38d2cf' 'c042f00d0d8dc72dadd19023152e55246c4d7a4b9d53bca3a05e7b8cb38cac5116417440d4ae82350820c7cb0cd414dcce45fa6af9be19296c4ebd0862dba896' '53713874043e368c71543966e878ff7a49f03088b7ebcff9487935bef2c20a57a561a122dd6b4cbde126c25b935871288dadd7693b831a94b8f27da52afeaa0c') validpgpkeys=('541EA0448453394FF77A0ECC9D9B2BA061D0A67C') # Abhilash Raj @@ -35,6 +35,7 @@ cd "$pkgname-$pkgver" # patch global paths into settings.py patch -Np1 -i "../${pkgname}-1.3.2-settings.patch" + touch settings_local.py } build() { @@ -44,12 +45,12 @@ check() { cd "$pkgname-$pkgver" - local python_stdlib_basepath="$(python -c "from sysconfig import get_path; print(get_path('stdlib'))")" - # install to temporary location, so that tests can run - python setup.py install --root="${PWD}/tmp_install" --optimize=1 - export PYTHONPATH="${PWD}/tmp_install/${python_stdlib_basepath/\//}/site-packages:${PYTHONPATH}" - cd example_project/ - pytest -v "../tmp_install/${python_stdlib_basepath/\//}/site-packages/${pkgname}" + # tests are very broken all of a sudden: + # https://gitlab.com/mailman/postorius/-/issues/406 + cd example_project + export PYTHONPATH="../build/lib:${PYTHONPATH}" + pytest -k 'not test_accept_held_messages and not test_held_message_count' \ + -v ../build/lib/${pkgname} } package() { @@ -59,7 +60,7 @@ --prefix=/usr \ --root="${pkgdir}" # django project - install -vDm 644 example_project/{__init__,manage,urls,wsgi}.py \ + install -vDm 644 example_project/{__init__,manage,settings,urls,wsgi}.py \ -t "${pkgdir}/usr/share/webapps/${pkgname}" # symlink locale and static dirs to state dir ln -svf "/var/lib//${pkgname}/locale/" \ @@ -72,10 +73,10 @@ # log dir install -vdm 750 "${pkgdir}/var/log/${pkgname}" # config - install -vDm 640 example_project/settings.py \ + install -vDm 640 settings_local.py \ -t "${pkgdir}/etc/webapps/${pkgname}" - ln -svf "/etc/webapps/${pkgname}/settings.py" \ -"${pkgdir}/usr/share/webapps/${pkgname}/settings.py" + ln -svf "/etc/webapps/${pkgname}/settings_local.py" \ +"${pkgdir}/usr/share/webapps/${pkgname}/settings_local.py" # uwsgi install -vDm 644 "../${pkgname}.uwsgi" "${pkgdir}/etc/uwsgi/${pkgname}.ini" # tmpfiles.d Modified: postorius.tmpfiles === --- postorius.tmpfiles 2020-04-02 08:54:28 UTC (rev 609404) +++ postorius.tmpfiles 2020-04-02 09:08:17 UTC (rev 609405) @@ -1,4 +1,4 @@ -z /etc/webapps/postorius/settings.py 0640 root postorius - +z /etc/webapps/postorius/settings_local.py 0640 root postorius - d %L/postorius 750 postorius postorius - d %S/postorius/data 750 postorius postorius - d %S/postorius/locale - postorius postorius -