Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrien Ferrand <adferrand@users.noreply.github.com>2019-12-11 01:12:50 +0300
committerBrad Warren <bmw@users.noreply.github.com>2019-12-11 01:12:50 +0300
commit9e5bca4bbf3c4fd198382dd9d6e05b54014aca30 (patch)
tree374882910ba9d7a0a0b247d3fb884aa176669b53 /Dockerfile-dev
parente048da1e389ede7a52bd518ab4ebf9a0b18bfafc (diff)
Lint certbot code on Python 3, and update Pylint to the latest version (#7551)
Part of #7550 This PR makes appropriate corrections to run pylint on Python 3. Why not keeping the dependencies unchanged and just run pylint on Python 3? Because the old version of pylint breaks horribly on Python 3 because of unsupported version of astroid. Why updating pylint + astroid to the latest version ? Because this version only fixes some internal errors occuring during the lint of Certbot code, and is also ready to run gracefully on Python 3.8. Why upgrading mypy ? Because the old version does not support the new version of astroid required to run pylint correctly. Why not upgrading mypy to its latest version ? Because this latest version includes a new typshed version, that adds a lot of new type definitions, and brings dozens of new errors on the Certbot codebase. I would like to fix that in a future PR. That said so, the work has been to find the correct set of new dependency versions, then configure pylint for sane configuration errors in our situation, disable irrelevant lintings errors, then fixing (or ignoring for good reason) the remaining mypy errors. I also made PyLint and MyPy checks run correctly on Windows. * Start configuration * Reconfigure travis * Suspend a check specific to python 3. Start fixing code. * Repair call_args * Fix return + elif lints * Reconfigure development to run mainly on python3 * Remove incompatible Python 3.4 jobs * Suspend pylint in some assertions * Remove pylint in dev * Take first mypy that supports typed-ast>=1.4.0 to limit the migration path * Various return + else lint errors * Find a set of deps that is working with current mypy version * Update local oldest requirements * Remove all current pylint errors * Rebuild letsencrypt-auto * Update mypy to fix pylint with new astroid version, and fix mypy issues * Explain type: ignore * Reconfigure tox, fix none path * Simplify pinning * Remove useless directive * Remove debugging code * Remove continue * Update requirements * Disable unsubscriptable-object check * Disable one check, enabling two more * Plug certbot dev version for oldest requirements * Remove useless disable directives * Remove useless no-member disable * Remove no-else-* checks. Use elif in symetric branches. * Add back assertion * Add new line * Remove unused pylint disable * Remove other pylint disable
Diffstat (limited to 'Dockerfile-dev')
-rw-r--r--Dockerfile-dev9
1 files changed, 4 insertions, 5 deletions
diff --git a/Dockerfile-dev b/Dockerfile-dev
index 86f5f04e7..ae197b1cb 100644
--- a/Dockerfile-dev
+++ b/Dockerfile-dev
@@ -6,16 +6,15 @@ EXPOSE 80 443
WORKDIR /opt/certbot/src
-# TODO: Install Apache/Nginx for plugin development.
COPY . .
RUN apt-get update && \
- apt-get install apache2 git nginx-light -y && \
- letsencrypt-auto-source/letsencrypt-auto --os-packages-only && \
+ apt-get install apache2 git python3-dev python3-venv gcc libaugeas0 \
+ libssl-dev libffi-dev ca-certificates openssl nginx-light -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* \
/tmp/* \
/var/tmp/*
-RUN VENV_NAME="../venv" python tools/venv.py
+RUN VENV_NAME="../venv3" python3 tools/venv3.py
-ENV PATH /opt/certbot/venv/bin:$PATH
+ENV PATH /opt/certbot/venv3/bin:$PATH