Commit graph

9545 commits

Author SHA1 Message Date
Adrien Ferrand
ca89c0eba8 Disable notifications 2020-01-03 10:57:31 +01:00
Adrien Ferrand
518a46959f Merge branch 'master' into certbot-auto-sunset
# Conflicts:
#	certbot/CHANGELOG.md
2020-01-03 10:55:17 +01:00
Adrien Ferrand
f07b8d1537 Corrections 2020-01-03 10:48:13 +01:00
Adrien Ferrand
34b56f9332
Update letsencrypt-auto-source/letsencrypt-auto.template
Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>
2020-01-03 10:08:42 +01:00
Adrien Ferrand
fda655370a
Update CHANGELOG.md (#7659) 2020-01-02 23:44:16 +01:00
Adrien Ferrand
72ef8704e8 Use set -e 2020-01-02 23:23:21 +01:00
Adrien Ferrand
887d72fd5d Remove POST-as-GET fallback to GET (#6994) 2020-01-02 12:48:55 -08:00
Adrien Ferrand
df7c54517b Edit echo 2019-12-27 23:57:56 +01:00
Adrien Ferrand
3e60b3cd26 Fix test error detection from subpaths 2019-12-20 23:11:05 +01:00
Adrien Ferrand
ab2b0cbe6e Modify test 2019-12-20 21:49:52 +01:00
Adrien Ferrand
a7560fed85 Handle old venv path 2019-12-20 21:03:58 +01:00
Adrien Ferrand
e1c53525b0 Merge branch 'master' into certbot-auto-sunset 2019-12-20 20:34:03 +01:00
Brad Warren
6d527bcc42
Include header files for compilation. (#7650) 2019-12-19 14:02:24 -08:00
Barbz
6ca80b7ce8 How to uninstall certbot-auto (#7648) 2019-12-19 13:30:13 -08:00
Brad Warren
f520d482fd Remove other 3.8-dev references. (#7646) 2019-12-18 23:00:49 +01:00
Adrien Ferrand
b5a31bec03 Add docker-compose as a requirement of certbot-ci (#7120)
Fixes #7110 

This PR declares docker-compose as a requirement for certbot-ci. This way, a recent version of docker-compose is installed in the standard virtual environment set up by `tools/venv.py` and `tools/venv3.py`, and so is available to pytest integration tests from `tox` or in the virtual environment enabled.

* Add docker-compose as a dev dependency and declares it in certbot-ci requirements

* Update docker-compose 1.25.0
2019-12-18 13:21:54 -08:00
Brad Warren
6ac7aabaf7 Remove warning about dev preview (#7640) 2019-12-18 11:14:58 -08:00
Brad Warren
24fdea5fd8 discourage dns plugins (#7639) 2019-12-18 11:13:57 -08:00
Adrien Ferrand
70955a2ce3 Trigger CI 2019-12-18 12:52:43 +01:00
Adrien Ferrand
1a639ce59a Update changelog 2019-12-17 20:12:02 +01:00
Adrien Ferrand
4a906484ee Execute Windows installer integration tests on several Windows versions (#7641)
This PRs extends the installer tests on Azure Pipeline, in order to run the integration tests on a certbot instance installed with the Windows installer for several Windows versions, corresponding to the scope of supported versions on Certbot:
* Windows Server 2012 R2
* Windows Server 2016
* Windows Server 2019

One can see the result on: https://dev.azure.com/adferrand/certbot/_build/results?buildId=311

* Try specific installer-build step

* Install Python manually

* Add tests on windows 2019
2019-12-16 16:03:39 -08:00
Adrien Ferrand
2177c46516 Merge branch 'master' into certbot-auto-sunset 2019-12-16 22:51:26 +01:00
Adrien Ferrand
1ad77d062d Add changelog 2019-12-16 22:51:16 +01:00
Adrien Ferrand
aa22221683 Rebuild script 2019-12-16 22:46:23 +01:00
Adrien Ferrand
994dc3586a
Update letsencrypt-auto-source/letsencrypt-auto.template
Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>
2019-12-17 15:12:15 +01:00
Adrien Ferrand
db9127262f Fix permissions 2019-12-10 23:14:18 +01:00
Adrien Ferrand
9e5bca4bbf 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
2019-12-10 14:12:50 -08:00
Adrien Ferrand
5f099640a5 What error command is doing here ? 2019-12-10 23:07:01 +01:00
Adrien Ferrand
b50f3eeb8d
Update letsencrypt-auto-source/tests/centos6_tests.sh
Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>
2019-12-10 21:58:51 +01:00
Adrien Ferrand
c3291dee01 Fix docker 2019-12-10 21:58:00 +01:00
Adrien Ferrand
6d1f1cb362 Test also install only 2019-12-10 20:50:08 +01:00
Adrien Ferrand
0c69911af9 Update comment position 2019-12-10 20:47:02 +01:00
Adrien Ferrand
e048da1e38 Reorganize imports (#7616)
* Isort execution

* Fix pylint, adapt coverage

* New isort

* Fix magic_typing lint

* Second round

* Fix pylint

* Third round. Store isort configuration

* Fix latest mistakes

* Other fixes

* Add newline

* Fix lint errors
2019-12-09 15:50:20 -05:00
Adrien Ferrand
0c757dee02 Recreate script 2019-12-07 00:01:05 +01:00
Adrien Ferrand
90b696ccad Various corrections 2019-12-07 00:00:21 +01:00
Adrien Ferrand
f4301b8526
Update letsencrypt-auto-source/tests/centos6_tests.sh
Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>
2019-12-06 23:41:11 +01:00
Adrien Ferrand
6286d73a4d
Update letsencrypt-auto-source/tests/centos6_tests.sh
Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>
2019-12-06 23:40:57 +01:00
Adrien Ferrand
7b329d177a Add some tests about sunset mechanism 2019-12-05 22:40:58 +01:00
Adrien Ferrand
a1858d9bd5 Replace all occurences 2019-12-05 22:15:02 +01:00
Adrien Ferrand
a97697d86d Add a wrapper to uname to do tests on fake 32 bits versions 2019-12-05 22:11:29 +01:00
Adrien Ferrand
f85dd45ff0 Deprecate for all RHEL/CentOS 6 32bits flavors 2019-12-04 21:08:09 +01:00
Adrien Ferrand
29161176ef Update template 2019-12-04 21:06:53 +01:00
Adrien Ferrand
d87f70e45c Merge branch 'master' into certbot-auto-sunset 2019-12-04 20:59:47 +01:00
Adrien Ferrand
5e18841d17
Update letsencrypt-auto-source/letsencrypt-auto.template
Co-Authored-By: Brad Warren <bmw@users.noreply.github.com>
2019-12-04 20:46:30 +01:00
Brad Warren
34b568f366 Don't list adding type annotations as a PR req. (#7627) 2019-12-04 20:22:10 +01:00
ohemorange
b99bfe8ab7
Merge pull request #7622 from certbot/candidate-1.0.0
Release 1.0
2019-12-04 14:15:49 -05:00
Brad Warren
5da61564d9
Don't list DNS plugins as alpha quality. (#7624)
They should be considered production quality like our other packaged code.
2019-12-03 19:56:16 -08:00
Brad Warren
b45f79d0ab
fix bad links in docs (#7623)
This PR fixes the failures at https://travis-ci.com/certbot/website/builds/139193502#L1316.

Once this PR lands, I'll update certbot/website#508 to include this commit.
2019-12-03 11:05:23 -08:00
Brad Warren
3cfa63483d
Add full API documentation (#7614)
A lot of Certbot's files don't have API documentation which is fixed by this PR. To do this, from the top level certbot directory I ran:
```
sphinx-apidoc -Me -o docs/api certbot
```
I then merged the resulting `modules.rst` file with `docs/api.rst`.
2019-12-03 09:54:37 -08:00
Brad Warren
27d6f62a96
update external plugin (#7604)
The old plugin at https://github.com/marcan/certbot-external says it's obsolete and points people to https://github.com/EnigmaBridge/certbot-external-auth. The new plugin is also an installer.

I also removed the reference to #2782 about us adding similar functionality since that's been done for a long time. We could reference our manual plugin instead, but I think that devalues their plugin a bit which I don't think is necessary or correct as it has different features.
2019-12-03 09:52:05 -08:00