From 40048830886d1e992c5b91c30c2ce6be7b40c175 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Fri, 4 Sep 2020 23:59:15 +0200 Subject: [PATCH] Updating packaging guide --- certbot/docs/packaging.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certbot/docs/packaging.rst b/certbot/docs/packaging.rst index 06ae7bbff..a8fbeaa59 100644 --- a/certbot/docs/packaging.rst +++ b/certbot/docs/packaging.rst @@ -44,7 +44,7 @@ Notes for package maintainers 1. Do not package ``certbot-compatibility-test`` as it's only used internally. -2. To run tests on our packages, you should use ``python setup.py test``. Doing things like running ``pytest`` directly on our package files may not work because Certbot relies on setuptools to register and find its plugins. +2. To run tests on our packages, you should use pytest by running the command ``python -m pytest``. Running ``pytest`` directly may not work because PYTHONPATH is not handled the same way and local modules may not be found by the test runner. 3. If you'd like to include automated renewal in your package ``certbot renew -q`` should be added to crontab or systemd timer. Additionally you should include a random per-machine time offset to avoid having a large number of your clients hit Let's Encrypt's servers simultaneously.