Commit graph

9886 commits

Author SHA1 Message Date
Adrien Ferrand
b799cffa84 Consistent use of single/double quotes 2020-07-21 23:07:57 +02:00
Adrien Ferrand
5ba77dda4d Start log 2020-07-21 23:03:10 +02:00
Adrien Ferrand
904f7dafdf Use f-string and format expressions 2020-07-21 22:57:26 +02:00
Adrien Ferrand
6652e43798 Check snapcraft execution interruption with exit codes 2020-07-21 22:11:46 +02:00
Adrien Ferrand
2d0c776747 Some nice refactorings 2020-07-21 21:56:58 +02:00
Adrien Ferrand
08e1ef6d13 Use Pool as a context manager 2020-07-21 21:43:55 +02:00
Adrien Ferrand
432a32cecb Use Manager() as a context manager 2020-07-21 21:40:58 +02:00
Adrien Ferrand
73f184b02e Reactivate all builds 2020-07-21 21:04:39 +02:00
Adrien Ferrand
305f53fbec Move order in deps 2020-07-21 21:03:20 +02:00
Adrien Ferrand
17f63b8911
Update .azure-pipelines/templates/jobs/packaging-jobs.yml
Co-authored-by: Brad Warren <bmw@users.noreply.github.com>
2020-07-21 21:00:17 +02:00
Adrien Ferrand
e987dff2f0
Update .azure-pipelines/templates/jobs/packaging-jobs.yml
Co-authored-by: Brad Warren <bmw@users.noreply.github.com>
2020-07-21 21:00:10 +02:00
Adrien Ferrand
a7adcd623d
Update .azure-pipelines/templates/jobs/packaging-jobs.yml
Co-authored-by: Brad Warren <bmw@users.noreply.github.com>
2020-07-21 21:00:03 +02:00
Adrien Ferrand
6b7dd05126 Merge branch 'master' into snap-remotebuild 2020-07-21 01:02:41 +02:00
Adrien Ferrand
b13dfc6437
Do not create the symlink for test assets on Windows if the asset path is already a symlink (#8159) 2020-07-21 01:01:09 +02:00
schoen
c5bab9b07c
Merge pull request #8157 from stefantalpalaru/linodedns
certbot_dns_linode: decrease the default propagation interval
2020-07-20 13:22:18 -07:00
Ștefan Talpalaru
b6964cae2e
certbot_dns_linode: decrease the default propagation interval
«When you add or change DNS zones or records, your changes will now be
reflected at our authoritative nameservers in under 60 seconds. This is
down from the previous “every quarter hour” approach that we had for so
long.» - https://www.linode.com/blog/linode/linode-turns-17/
2020-07-19 16:44:37 +02:00
Adrien Ferrand
d0eb527312 Set secured file name 2020-07-17 22:39:32 +02:00
Adrien Ferrand
308a80b66b Fix snap run 2020-07-17 22:18:34 +02:00
Brad Warren
ebf1349b15
Update to IPython with Python 3.8 support. (#8152) 2020-07-17 13:01:04 -07:00
Brad Warren
9d2e0ac013
Specify the Certbot snap grade. (#8147) 2020-07-17 12:47:11 -07:00
Adrien Ferrand
a8506f623a Lint 2020-07-17 21:41:13 +02:00
Adrien Ferrand
89d5eb6492 Update snapcraft.yaml 2020-07-17 21:40:52 +02:00
Adrien Ferrand
81472e8db2 Exit properly 2020-07-17 21:37:35 +02:00
Adrien Ferrand
2e99a2139a Trigger only amd64 builds for test branches 2020-07-17 21:25:34 +02:00
Adrien Ferrand
913e9ae49e Allow retries if the remote build does not start 2020-07-17 20:41:05 +02:00
Adrien Ferrand
0fd6bc48c5 Dynamic display, take the maximum timeout for snap build job 2020-07-17 20:35:20 +02:00
Adrien Ferrand
e7d72bf855 Use explicit status 2020-07-17 16:28:35 +02:00
Adrien Ferrand
86c986194b Updates 2020-07-17 14:58:31 +02:00
Adrien Ferrand
fbf3afe3e3 Print 2020-07-17 14:34:22 +02:00
Adrien Ferrand
a9cc75cb1a Simplify 2020-07-17 14:28:31 +02:00
Adrien Ferrand
1c353b6084 Protect 2020-07-17 14:21:59 +02:00
Adrien Ferrand
a1e0bcaeba Troubleshoot 2020-07-17 14:18:58 +02:00
Adrien Ferrand
1d36f53bd3 Nice UI 2020-07-17 14:14:35 +02:00
Adrien Ferrand
877632326d Add executable permissions 2020-07-17 13:02:48 +02:00
Adrien Ferrand
653feba216 Working build 2020-07-17 12:43:52 +02:00
Adrien Ferrand
6bf614e6be Add --system-site-packages to get wheel in the venv 2020-07-16 23:03:55 +02:00
Adrien Ferrand
d1febabd6b Try to pin wheel 2020-07-16 21:16:47 +02:00
Adrien Ferrand
02b9ad6ad2 Try to handle better non zero exit code 2020-07-16 10:57:19 +02:00
Thomas
05dbda4b51
added inwx plugin (#8115)
* added inwx plugin

* Update using.rst

fixed convention naming
2020-07-15 13:41:15 -07:00
Adrien Ferrand
68b3b048b9
Use 3rd party plugins without prefix + set a deprecation path for the prefixed version (#8131)
Fixes #4351

This PR proposes a solution to use the third party plugins with the prefix `pip_package_name:` in the plugin name, plugin specific flags and keys in dns plugin credential files.

A first solution has been proposed in #6372, and a more advanced one in #7026. In #7026 was also added a deprecation warning when the old plugin name `pip_package_name:plugin_name` was used.

However there were some limitations with #7026, in particular the fact that existing flags of type `pip_package_name:dns_plugin_option` or keys like `pip_package_name:key` in dns plugin credential files were not read anymore. This would have led to silent failures during renewals if the configuration was not explicitly updated by the user.

I tried to fix that based on #7026, but the changes needed are complex, and create new problems on their own, like unexpected erasure of values in the renewal configurations.

Instead I try in this PR a new approach: the `PluginsRegistry` in `certbot._internal.plugins.disco` module register two plugins for a given entrypoint refering to a third party plugin when `find_all()` is called:
* one plugin with the name `plugin_name`
* one plugin with the name `pip_package_name:plugin_name` (like before)

This way, every existing configuration continues to work without any change (credentials, renewal configuration, CLI flags). And new configurations can refer to the new plugin name without prefix, and use the approriate CLI flags, credentials without this prefix.

On top of it I added the deprecation path given in #7026 (thanks @coldfix!):
* the plugin named `pip_package_name:plugin_name` is hidden from `certbot plugins` output
* the help for this plugin is still displayed, and a deprecation warning is displayed in the description
* when invoked, the same deprecation warning is displayed in the terminal

* Support both prefixed and not prefix third party plugins

* Adapt tests

* Add deprecation path

* Named parameters

* Add deprecation warning in CLI

* Add a changelog
2020-07-10 09:16:21 -07:00
Adrien Ferrand
269d81fd93 Check existence 2020-07-10 14:32:59 +02:00
Adrien Ferrand
a514470066 Fix call 2020-07-10 13:57:29 +02:00
Adrien Ferrand
4b15773607 Exit code 2020-07-10 13:51:21 +02:00
Adrien Ferrand
6b7147d007 Generate constraints 2020-07-10 13:48:57 +02:00
Adrien Ferrand
3ec8c8e28a Handle the fact that snap builds may be taken from cache 2020-07-10 12:47:29 +02:00
Adrien Ferrand
7a6f935928 Reorganize the pipeline 2020-07-10 12:10:17 +02:00
Adrien Ferrand
2ad65b03c6 Fix script 2020-07-10 12:03:27 +02:00
Adrien Ferrand
8c4cb569ca Corrections 2020-07-10 10:30:19 +02:00
Adrien Ferrand
d3a052b9c1 Convert to a python logic 2020-07-10 10:28:29 +02:00
Adrien Ferrand
b20cce03aa Add dev dependencies to build cffi and cryptography 2020-07-10 01:04:06 +02:00