Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-certbot-dns-dnsimple for 
openSUSE:Factory checked in at 2025-06-16 12:26:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-certbot-dns-dnsimple (Old)
 and      /work/SRC/openSUSE:Factory/.python-certbot-dns-dnsimple.new.19631 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-certbot-dns-dnsimple"

Mon Jun 16 12:26:26 2025 rev:47 rq:1286010 version:4.1.1

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-certbot-dns-dnsimple/python-certbot-dns-dnsimple.changes
  2025-04-22 17:29:47.510884039 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-certbot-dns-dnsimple.new.19631/python-certbot-dns-dnsimple.changes
       2025-06-16 12:26:28.748270279 +0200
@@ -1,0 +2,7 @@
+Fri Jun 13 14:51:03 UTC 2025 - Markéta Machová <mmach...@suse.com>
+
+- update to version 4.1.1
+  * Switched to src-layout from flat-layout to accommodate PEP 517 pip
+    editable installs
+
+-------------------------------------------------------------------

Old:
----
  certbot_dns_dnsimple-4.0.0.tar.gz

New:
----
  certbot_dns_dnsimple-4.1.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-certbot-dns-dnsimple.spec ++++++
--- /var/tmp/diff_new_pack.2zW9Wg/_old  2025-06-16 12:26:29.292292932 +0200
+++ /var/tmp/diff_new_pack.2zW9Wg/_new  2025-06-16 12:26:29.292292932 +0200
@@ -18,7 +18,7 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-certbot-dns-dnsimple
-Version:        4.0.0
+Version:        4.1.1
 Release:        0
 Summary:        DNSimple Authenticator plugin for Certbot
 License:        Apache-2.0

++++++ certbot_dns_dnsimple-4.0.0.tar.gz -> certbot_dns_dnsimple-4.1.1.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/certbot_dns_dnsimple-4.0.0/MANIFEST.in 
new/certbot_dns_dnsimple-4.1.1/MANIFEST.in
--- old/certbot_dns_dnsimple-4.0.0/MANIFEST.in  2025-04-08 00:03:33.000000000 
+0200
+++ new/certbot_dns_dnsimple-4.1.1/MANIFEST.in  2025-06-12 20:08:34.000000000 
+0200
@@ -1,6 +1,6 @@
 include LICENSE.txt
 include README.rst
 recursive-include docs *
-include certbot_dns_dnsimple/py.typed
+include src/certbot_dns_dnsimple/py.typed
 global-exclude __pycache__
 global-exclude *.py[cod]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/certbot_dns_dnsimple-4.0.0/PKG-INFO 
new/certbot_dns_dnsimple-4.1.1/PKG-INFO
--- old/certbot_dns_dnsimple-4.0.0/PKG-INFO     2025-04-08 00:03:37.428518500 
+0200
+++ new/certbot_dns_dnsimple-4.1.1/PKG-INFO     2025-06-12 20:08:39.437467600 
+0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.4
 Name: certbot-dns-dnsimple
-Version: 4.0.0
+Version: 4.1.1
 Summary: DNSimple DNS Authenticator plugin for Certbot
 Home-page: https://github.com/certbot/certbot
 Author: Certbot Project
@@ -24,11 +24,11 @@
 Classifier: Topic :: System :: Networking
 Classifier: Topic :: System :: Systems Administration
 Classifier: Topic :: Utilities
-Requires-Python: >=3.9
+Requires-Python: >=3.9.2
 License-File: LICENSE.txt
 Requires-Dist: dns-lexicon>=3.14.1
-Requires-Dist: acme>=4.0.0
-Requires-Dist: certbot>=4.0.0
+Requires-Dist: acme>=4.1.1
+Requires-Dist: certbot>=4.1.1
 Provides-Extra: docs
 Requires-Dist: Sphinx>=1.0; extra == "docs"
 Requires-Dist: sphinx_rtd_theme; extra == "docs"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/certbot_dns_dnsimple-4.0.0/certbot_dns_dnsimple/__init__.py 
new/certbot_dns_dnsimple-4.1.1/certbot_dns_dnsimple/__init__.py
--- old/certbot_dns_dnsimple-4.0.0/certbot_dns_dnsimple/__init__.py     
2025-04-08 00:03:33.000000000 +0200
+++ new/certbot_dns_dnsimple-4.1.1/certbot_dns_dnsimple/__init__.py     
1970-01-01 01:00:00.000000000 +0100
@@ -1,89 +0,0 @@
-"""
-The `~certbot_dns_dnsimple.dns_dnsimple` plugin automates the process of
-completing a ``dns-01`` challenge (`~acme.challenges.DNS01`) by creating, and
-subsequently removing, TXT records using the DNSimple API.
-
-.. note::
-   The plugin is not installed by default. It can be installed by heading to
-   `certbot.eff.org <https://certbot.eff.org/instructions#wildcard>`_, 
choosing your system and
-   selecting the Wildcard tab.
-
-Named Arguments
----------------
-
-========================================  =====================================
-``--dns-dnsimple-credentials``            DNSimple credentials_ INI file.
-                                          (Required)
-``--dns-dnsimple-propagation-seconds``    The number of seconds to wait for DNS
-                                          to propagate before asking the ACME
-                                          server to verify the DNS record.
-                                          (Default: 30)
-========================================  =====================================
-
-
-Credentials
------------
-
-Use of this plugin requires a configuration file containing DNSimple API
-credentials, obtained from your DNSimple
-`account page <https://dnsimple.com/user>`_.
-
-.. code-block:: ini
-   :name: credentials.ini
-   :caption: Example credentials file:
-
-   # DNSimple API credentials used by Certbot
-   dns_dnsimple_token = MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAw
-
-The path to this file can be provided interactively or using the
-``--dns-dnsimple-credentials`` command-line argument. Certbot records the path
-to this file for use during renewal, but does not store the file's contents.
-
-.. caution::
-   You should protect these API credentials as you would the password to your
-   DNSimple account. Users who can read this file can use these credentials
-   to issue arbitrary API calls on your behalf. Users who can cause Certbot to
-   run using these credentials can complete a ``dns-01`` challenge to acquire
-   new certificates or revoke existing certificates for associated domains,
-   even if those domains aren't being managed by this server.
-
-Certbot will emit a warning if it detects that the credentials file can be
-accessed by other users on your system. The warning reads "Unsafe permissions
-on credentials configuration file", followed by the path to the credentials
-file. This warning will be emitted each time Certbot uses the credentials file,
-including for renewal, and cannot be silenced except by addressing the issue
-(e.g., by using a command like ``chmod 600`` to restrict access to the file).
-
-
-Examples
---------
-
-.. code-block:: bash
-   :caption: To acquire a certificate for ``example.com``
-
-   certbot certonly \\
-     --dns-dnsimple \\
-     --dns-dnsimple-credentials ~/.secrets/certbot/dnsimple.ini \\
-     -d example.com
-
-.. code-block:: bash
-   :caption: To acquire a single certificate for both ``example.com`` and
-             ``www.example.com``
-
-   certbot certonly \\
-     --dns-dnsimple \\
-     --dns-dnsimple-credentials ~/.secrets/certbot/dnsimple.ini \\
-     -d example.com \\
-     -d www.example.com
-
-.. code-block:: bash
-   :caption: To acquire a certificate for ``example.com``, waiting 60 seconds
-             for DNS propagation
-
-   certbot certonly \\
-     --dns-dnsimple \\
-     --dns-dnsimple-credentials ~/.secrets/certbot/dnsimple.ini \\
-     --dns-dnsimple-propagation-seconds 60 \\
-     -d example.com
-
-"""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/certbot_dns_dnsimple-4.0.0/certbot_dns_dnsimple/_internal/__init__.py 
new/certbot_dns_dnsimple-4.1.1/certbot_dns_dnsimple/_internal/__init__.py
--- old/certbot_dns_dnsimple-4.0.0/certbot_dns_dnsimple/_internal/__init__.py   
2025-04-08 00:03:33.000000000 +0200
+++ new/certbot_dns_dnsimple-4.1.1/certbot_dns_dnsimple/_internal/__init__.py   
1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-"""Internal implementation of `~certbot_dns_dnsimple.dns_dnsimple` plugin."""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/certbot_dns_dnsimple-4.0.0/certbot_dns_dnsimple/_internal/dns_dnsimple.py 
new/certbot_dns_dnsimple-4.1.1/certbot_dns_dnsimple/_internal/dns_dnsimple.py
--- 
old/certbot_dns_dnsimple-4.0.0/certbot_dns_dnsimple/_internal/dns_dnsimple.py   
    2025-04-08 00:03:33.000000000 +0200
+++ 
new/certbot_dns_dnsimple-4.1.1/certbot_dns_dnsimple/_internal/dns_dnsimple.py   
    1970-01-01 01:00:00.000000000 +0100
@@ -1,52 +0,0 @@
-"""DNS Authenticator for DNSimple DNS."""
-import logging
-from typing import Any
-from typing import Callable
-
-from requests import HTTPError
-
-from certbot import errors
-from certbot.plugins import dns_common_lexicon
-
-logger = logging.getLogger(__name__)
-
-ACCOUNT_URL = 'https://dnsimple.com/user'
-
-
-class Authenticator(dns_common_lexicon.LexiconDNSAuthenticator):
-    """DNS Authenticator for DNSimple
-
-    This Authenticator uses the DNSimple v2 API to fulfill a dns-01 challenge.
-    """
-
-    description = 'Obtain certificates using a DNS TXT record (if you are 
using DNSimple for DNS).'
-
-    def __init__(self, *args: Any, **kwargs: Any) -> None:
-        super().__init__(*args, **kwargs)
-        self._add_provider_option('token',
-                                  f'User access token for DNSimple v2 API. 
(See {ACCOUNT_URL}.)',
-                                  'auth_token')
-
-    @classmethod
-    def add_parser_arguments(cls, add: Callable[..., None],
-                             default_propagation_seconds: int = 30) -> None:
-        super().add_parser_arguments(add, default_propagation_seconds)
-        add('credentials', help='DNSimple credentials INI file.')
-
-    def more_info(self) -> str:
-        return 'This plugin configures a DNS TXT record to respond to a dns-01 
challenge using ' + \
-               'the DNSimple API.'
-
-    @property
-    def _provider_name(self) -> str:
-        return 'dnsimple'
-
-    def _handle_http_error(self, e: HTTPError, domain_name: str) -> 
errors.PluginError:
-        hint = None
-        if str(e).startswith('401 Client Error: Unauthorized for url:'):
-            hint = 'Is your API token value correct?'
-
-        hint_disp = f' ({hint})' if hint else ''
-
-        return errors.PluginError(f'Error determining zone identifier for 
{domain_name}: '
-                                  f'{e}.{hint_disp}')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/certbot_dns_dnsimple-4.0.0/certbot_dns_dnsimple/_internal/tests/__init__.py 
new/certbot_dns_dnsimple-4.1.1/certbot_dns_dnsimple/_internal/tests/__init__.py
--- 
old/certbot_dns_dnsimple-4.0.0/certbot_dns_dnsimple/_internal/tests/__init__.py 
    2025-04-08 00:03:33.000000000 +0200
+++ 
new/certbot_dns_dnsimple-4.1.1/certbot_dns_dnsimple/_internal/tests/__init__.py 
    1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-"""certbot-dns-dnsimple tests"""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/certbot_dns_dnsimple-4.0.0/certbot_dns_dnsimple/_internal/tests/dns_dnsimple_test.py
 
new/certbot_dns_dnsimple-4.1.1/certbot_dns_dnsimple/_internal/tests/dns_dnsimple_test.py
--- 
old/certbot_dns_dnsimple-4.0.0/certbot_dns_dnsimple/_internal/tests/dns_dnsimple_test.py
    2025-04-08 00:03:33.000000000 +0200
+++ 
new/certbot_dns_dnsimple-4.1.1/certbot_dns_dnsimple/_internal/tests/dns_dnsimple_test.py
    1970-01-01 01:00:00.000000000 +0100
@@ -1,37 +0,0 @@
-"""Tests for certbot_dns_dnsimple._internal.dns_dnsimple."""
-from unittest import mock
-import sys
-
-import pytest
-from requests import Response
-from requests.exceptions import HTTPError
-
-from certbot.compat import os
-from certbot.plugins import dns_test_common
-from certbot.plugins import dns_test_common_lexicon
-from certbot.tests import util as test_util
-
-TOKEN = 'foo'
-
-
-class AuthenticatorTest(test_util.TempDirTestCase,
-                        
dns_test_common_lexicon.BaseLexiconDNSAuthenticatorTest):
-
-    LOGIN_ERROR = HTTPError('401 Client Error: Unauthorized for url: ...', 
response=Response())
-
-    def setUp(self):
-        super().setUp()
-
-        from certbot_dns_dnsimple._internal.dns_dnsimple import Authenticator
-
-        path = os.path.join(self.tempdir, 'file.ini')
-        dns_test_common.write({"dnsimple_token": TOKEN}, path)
-
-        self.config = mock.MagicMock(dnsimple_credentials=path,
-                                     dnsimple_propagation_seconds=0)  # don't 
wait during tests
-
-        self.auth = Authenticator(self.config, "dnsimple")
-
-
-if __name__ == "__main__":
-    sys.exit(pytest.main(sys.argv[1:] + [__file__]))  # pragma: no cover
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/certbot_dns_dnsimple-4.0.0/certbot_dns_dnsimple.egg-info/PKG-INFO 
new/certbot_dns_dnsimple-4.1.1/certbot_dns_dnsimple.egg-info/PKG-INFO
--- old/certbot_dns_dnsimple-4.0.0/certbot_dns_dnsimple.egg-info/PKG-INFO       
2025-04-08 00:03:37.000000000 +0200
+++ new/certbot_dns_dnsimple-4.1.1/certbot_dns_dnsimple.egg-info/PKG-INFO       
1970-01-01 01:00:00.000000000 +0100
@@ -1,46 +0,0 @@
-Metadata-Version: 2.4
-Name: certbot-dns-dnsimple
-Version: 4.0.0
-Summary: DNSimple DNS Authenticator plugin for Certbot
-Home-page: https://github.com/certbot/certbot
-Author: Certbot Project
-Author-email: certbot-...@eff.org
-License: Apache License 2.0
-Classifier: Development Status :: 5 - Production/Stable
-Classifier: Environment :: Plugins
-Classifier: Intended Audience :: System Administrators
-Classifier: License :: OSI Approved :: Apache Software License
-Classifier: Operating System :: POSIX :: Linux
-Classifier: Programming Language :: Python
-Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.9
-Classifier: Programming Language :: Python :: 3.10
-Classifier: Programming Language :: Python :: 3.11
-Classifier: Programming Language :: Python :: 3.12
-Classifier: Programming Language :: Python :: 3.13
-Classifier: Topic :: Internet :: WWW/HTTP
-Classifier: Topic :: Security
-Classifier: Topic :: System :: Installation/Setup
-Classifier: Topic :: System :: Networking
-Classifier: Topic :: System :: Systems Administration
-Classifier: Topic :: Utilities
-Requires-Python: >=3.9
-License-File: LICENSE.txt
-Requires-Dist: dns-lexicon>=3.14.1
-Requires-Dist: acme>=4.0.0
-Requires-Dist: certbot>=4.0.0
-Provides-Extra: docs
-Requires-Dist: Sphinx>=1.0; extra == "docs"
-Requires-Dist: sphinx_rtd_theme; extra == "docs"
-Provides-Extra: test
-Requires-Dist: pytest; extra == "test"
-Dynamic: author
-Dynamic: author-email
-Dynamic: classifier
-Dynamic: home-page
-Dynamic: license
-Dynamic: license-file
-Dynamic: provides-extra
-Dynamic: requires-dist
-Dynamic: requires-python
-Dynamic: summary
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/certbot_dns_dnsimple-4.0.0/certbot_dns_dnsimple.egg-info/SOURCES.txt 
new/certbot_dns_dnsimple-4.1.1/certbot_dns_dnsimple.egg-info/SOURCES.txt
--- old/certbot_dns_dnsimple-4.0.0/certbot_dns_dnsimple.egg-info/SOURCES.txt    
2025-04-08 00:03:37.000000000 +0200
+++ new/certbot_dns_dnsimple-4.1.1/certbot_dns_dnsimple.egg-info/SOURCES.txt    
1970-01-01 01:00:00.000000000 +0100
@@ -1,22 +0,0 @@
-LICENSE.txt
-MANIFEST.in
-README.rst
-setup.py
-certbot_dns_dnsimple/__init__.py
-certbot_dns_dnsimple/py.typed
-certbot_dns_dnsimple.egg-info/PKG-INFO
-certbot_dns_dnsimple.egg-info/SOURCES.txt
-certbot_dns_dnsimple.egg-info/dependency_links.txt
-certbot_dns_dnsimple.egg-info/entry_points.txt
-certbot_dns_dnsimple.egg-info/requires.txt
-certbot_dns_dnsimple.egg-info/top_level.txt
-certbot_dns_dnsimple/_internal/__init__.py
-certbot_dns_dnsimple/_internal/dns_dnsimple.py
-certbot_dns_dnsimple/_internal/tests/__init__.py
-certbot_dns_dnsimple/_internal/tests/dns_dnsimple_test.py
-docs/.gitignore
-docs/Makefile
-docs/api.rst
-docs/conf.py
-docs/index.rst
-docs/make.bat
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/certbot_dns_dnsimple-4.0.0/certbot_dns_dnsimple.egg-info/dependency_links.txt
 
new/certbot_dns_dnsimple-4.1.1/certbot_dns_dnsimple.egg-info/dependency_links.txt
--- 
old/certbot_dns_dnsimple-4.0.0/certbot_dns_dnsimple.egg-info/dependency_links.txt
   2025-04-08 00:03:37.000000000 +0200
+++ 
new/certbot_dns_dnsimple-4.1.1/certbot_dns_dnsimple.egg-info/dependency_links.txt
   1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/certbot_dns_dnsimple-4.0.0/certbot_dns_dnsimple.egg-info/entry_points.txt 
new/certbot_dns_dnsimple-4.1.1/certbot_dns_dnsimple.egg-info/entry_points.txt
--- 
old/certbot_dns_dnsimple-4.0.0/certbot_dns_dnsimple.egg-info/entry_points.txt   
    2025-04-08 00:03:37.000000000 +0200
+++ 
new/certbot_dns_dnsimple-4.1.1/certbot_dns_dnsimple.egg-info/entry_points.txt   
    1970-01-01 01:00:00.000000000 +0100
@@ -1,2 +0,0 @@
-[certbot.plugins]
-dns-dnsimple = certbot_dns_dnsimple._internal.dns_dnsimple:Authenticator
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/certbot_dns_dnsimple-4.0.0/certbot_dns_dnsimple.egg-info/requires.txt 
new/certbot_dns_dnsimple-4.1.1/certbot_dns_dnsimple.egg-info/requires.txt
--- old/certbot_dns_dnsimple-4.0.0/certbot_dns_dnsimple.egg-info/requires.txt   
2025-04-08 00:03:37.000000000 +0200
+++ new/certbot_dns_dnsimple-4.1.1/certbot_dns_dnsimple.egg-info/requires.txt   
1970-01-01 01:00:00.000000000 +0100
@@ -1,10 +0,0 @@
-dns-lexicon>=3.14.1
-acme>=4.0.0
-certbot>=4.0.0
-
-[docs]
-Sphinx>=1.0
-sphinx_rtd_theme
-
-[test]
-pytest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/certbot_dns_dnsimple-4.0.0/certbot_dns_dnsimple.egg-info/top_level.txt 
new/certbot_dns_dnsimple-4.1.1/certbot_dns_dnsimple.egg-info/top_level.txt
--- old/certbot_dns_dnsimple-4.0.0/certbot_dns_dnsimple.egg-info/top_level.txt  
2025-04-08 00:03:37.000000000 +0200
+++ new/certbot_dns_dnsimple-4.1.1/certbot_dns_dnsimple.egg-info/top_level.txt  
1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-certbot_dns_dnsimple
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/certbot_dns_dnsimple-4.0.0/setup.py 
new/certbot_dns_dnsimple-4.1.1/setup.py
--- old/certbot_dns_dnsimple-4.0.0/setup.py     2025-04-08 00:03:33.000000000 
+0200
+++ new/certbot_dns_dnsimple-4.1.1/setup.py     2025-06-12 20:08:35.000000000 
+0200
@@ -4,7 +4,7 @@
 from setuptools import find_packages
 from setuptools import setup
 
-version = '4.0.0'
+version = '4.1.1'
 
 install_requires = [
     # This version of lexicon is required to address the problem described in
@@ -40,7 +40,7 @@
     author="Certbot Project",
     author_email='certbot-...@eff.org',
     license='Apache License 2.0',
-    python_requires='>=3.9',
+    python_requires='>=3.9.2',
     classifiers=[
         'Development Status :: 5 - Production/Stable',
         'Environment :: Plugins',
@@ -62,7 +62,8 @@
         'Topic :: Utilities',
     ],
 
-    packages=find_packages(),
+    packages=find_packages(where='src'),
+    package_dir={'': 'src'},
     include_package_data=True,
     install_requires=install_requires,
     extras_require={
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/certbot_dns_dnsimple-4.0.0/src/certbot_dns_dnsimple/__init__.py 
new/certbot_dns_dnsimple-4.1.1/src/certbot_dns_dnsimple/__init__.py
--- old/certbot_dns_dnsimple-4.0.0/src/certbot_dns_dnsimple/__init__.py 
1970-01-01 01:00:00.000000000 +0100
+++ new/certbot_dns_dnsimple-4.1.1/src/certbot_dns_dnsimple/__init__.py 
2025-06-12 20:08:34.000000000 +0200
@@ -0,0 +1,89 @@
+"""
+The `~certbot_dns_dnsimple.dns_dnsimple` plugin automates the process of
+completing a ``dns-01`` challenge (`~acme.challenges.DNS01`) by creating, and
+subsequently removing, TXT records using the DNSimple API.
+
+.. note::
+   The plugin is not installed by default. It can be installed by heading to
+   `certbot.eff.org <https://certbot.eff.org/instructions#wildcard>`_, 
choosing your system and
+   selecting the Wildcard tab.
+
+Named Arguments
+---------------
+
+========================================  =====================================
+``--dns-dnsimple-credentials``            DNSimple credentials_ INI file.
+                                          (Required)
+``--dns-dnsimple-propagation-seconds``    The number of seconds to wait for DNS
+                                          to propagate before asking the ACME
+                                          server to verify the DNS record.
+                                          (Default: 30)
+========================================  =====================================
+
+
+Credentials
+-----------
+
+Use of this plugin requires a configuration file containing DNSimple API
+credentials, obtained from your DNSimple
+`account page <https://dnsimple.com/user>`_.
+
+.. code-block:: ini
+   :name: credentials.ini
+   :caption: Example credentials file:
+
+   # DNSimple API credentials used by Certbot
+   dns_dnsimple_token = MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAw
+
+The path to this file can be provided interactively or using the
+``--dns-dnsimple-credentials`` command-line argument. Certbot records the path
+to this file for use during renewal, but does not store the file's contents.
+
+.. caution::
+   You should protect these API credentials as you would the password to your
+   DNSimple account. Users who can read this file can use these credentials
+   to issue arbitrary API calls on your behalf. Users who can cause Certbot to
+   run using these credentials can complete a ``dns-01`` challenge to acquire
+   new certificates or revoke existing certificates for associated domains,
+   even if those domains aren't being managed by this server.
+
+Certbot will emit a warning if it detects that the credentials file can be
+accessed by other users on your system. The warning reads "Unsafe permissions
+on credentials configuration file", followed by the path to the credentials
+file. This warning will be emitted each time Certbot uses the credentials file,
+including for renewal, and cannot be silenced except by addressing the issue
+(e.g., by using a command like ``chmod 600`` to restrict access to the file).
+
+
+Examples
+--------
+
+.. code-block:: bash
+   :caption: To acquire a certificate for ``example.com``
+
+   certbot certonly \\
+     --dns-dnsimple \\
+     --dns-dnsimple-credentials ~/.secrets/certbot/dnsimple.ini \\
+     -d example.com
+
+.. code-block:: bash
+   :caption: To acquire a single certificate for both ``example.com`` and
+             ``www.example.com``
+
+   certbot certonly \\
+     --dns-dnsimple \\
+     --dns-dnsimple-credentials ~/.secrets/certbot/dnsimple.ini \\
+     -d example.com \\
+     -d www.example.com
+
+.. code-block:: bash
+   :caption: To acquire a certificate for ``example.com``, waiting 60 seconds
+             for DNS propagation
+
+   certbot certonly \\
+     --dns-dnsimple \\
+     --dns-dnsimple-credentials ~/.secrets/certbot/dnsimple.ini \\
+     --dns-dnsimple-propagation-seconds 60 \\
+     -d example.com
+
+"""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/certbot_dns_dnsimple-4.0.0/src/certbot_dns_dnsimple/_internal/__init__.py 
new/certbot_dns_dnsimple-4.1.1/src/certbot_dns_dnsimple/_internal/__init__.py
--- 
old/certbot_dns_dnsimple-4.0.0/src/certbot_dns_dnsimple/_internal/__init__.py   
    1970-01-01 01:00:00.000000000 +0100
+++ 
new/certbot_dns_dnsimple-4.1.1/src/certbot_dns_dnsimple/_internal/__init__.py   
    2025-06-12 20:08:34.000000000 +0200
@@ -0,0 +1 @@
+"""Internal implementation of `~certbot_dns_dnsimple.dns_dnsimple` plugin."""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/certbot_dns_dnsimple-4.0.0/src/certbot_dns_dnsimple/_internal/dns_dnsimple.py
 
new/certbot_dns_dnsimple-4.1.1/src/certbot_dns_dnsimple/_internal/dns_dnsimple.py
--- 
old/certbot_dns_dnsimple-4.0.0/src/certbot_dns_dnsimple/_internal/dns_dnsimple.py
   1970-01-01 01:00:00.000000000 +0100
+++ 
new/certbot_dns_dnsimple-4.1.1/src/certbot_dns_dnsimple/_internal/dns_dnsimple.py
   2025-06-12 20:08:34.000000000 +0200
@@ -0,0 +1,52 @@
+"""DNS Authenticator for DNSimple DNS."""
+import logging
+from typing import Any
+from typing import Callable
+
+from requests import HTTPError
+
+from certbot import errors
+from certbot.plugins import dns_common_lexicon
+
+logger = logging.getLogger(__name__)
+
+ACCOUNT_URL = 'https://dnsimple.com/user'
+
+
+class Authenticator(dns_common_lexicon.LexiconDNSAuthenticator):
+    """DNS Authenticator for DNSimple
+
+    This Authenticator uses the DNSimple v2 API to fulfill a dns-01 challenge.
+    """
+
+    description = 'Obtain certificates using a DNS TXT record (if you are 
using DNSimple for DNS).'
+
+    def __init__(self, *args: Any, **kwargs: Any) -> None:
+        super().__init__(*args, **kwargs)
+        self._add_provider_option('token',
+                                  f'User access token for DNSimple v2 API. 
(See {ACCOUNT_URL}.)',
+                                  'auth_token')
+
+    @classmethod
+    def add_parser_arguments(cls, add: Callable[..., None],
+                             default_propagation_seconds: int = 30) -> None:
+        super().add_parser_arguments(add, default_propagation_seconds)
+        add('credentials', help='DNSimple credentials INI file.')
+
+    def more_info(self) -> str:
+        return 'This plugin configures a DNS TXT record to respond to a dns-01 
challenge using ' + \
+               'the DNSimple API.'
+
+    @property
+    def _provider_name(self) -> str:
+        return 'dnsimple'
+
+    def _handle_http_error(self, e: HTTPError, domain_name: str) -> 
errors.PluginError:
+        hint = None
+        if str(e).startswith('401 Client Error: Unauthorized for url:'):
+            hint = 'Is your API token value correct?'
+
+        hint_disp = f' ({hint})' if hint else ''
+
+        return errors.PluginError(f'Error determining zone identifier for 
{domain_name}: '
+                                  f'{e}.{hint_disp}')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/certbot_dns_dnsimple-4.0.0/src/certbot_dns_dnsimple/_internal/tests/__init__.py
 
new/certbot_dns_dnsimple-4.1.1/src/certbot_dns_dnsimple/_internal/tests/__init__.py
--- 
old/certbot_dns_dnsimple-4.0.0/src/certbot_dns_dnsimple/_internal/tests/__init__.py
 1970-01-01 01:00:00.000000000 +0100
+++ 
new/certbot_dns_dnsimple-4.1.1/src/certbot_dns_dnsimple/_internal/tests/__init__.py
 2025-06-12 20:08:34.000000000 +0200
@@ -0,0 +1 @@
+"""certbot-dns-dnsimple tests"""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/certbot_dns_dnsimple-4.0.0/src/certbot_dns_dnsimple/_internal/tests/dns_dnsimple_test.py
 
new/certbot_dns_dnsimple-4.1.1/src/certbot_dns_dnsimple/_internal/tests/dns_dnsimple_test.py
--- 
old/certbot_dns_dnsimple-4.0.0/src/certbot_dns_dnsimple/_internal/tests/dns_dnsimple_test.py
        1970-01-01 01:00:00.000000000 +0100
+++ 
new/certbot_dns_dnsimple-4.1.1/src/certbot_dns_dnsimple/_internal/tests/dns_dnsimple_test.py
        2025-06-12 20:08:34.000000000 +0200
@@ -0,0 +1,37 @@
+"""Tests for certbot_dns_dnsimple._internal.dns_dnsimple."""
+from unittest import mock
+import sys
+
+import pytest
+from requests import Response
+from requests.exceptions import HTTPError
+
+from certbot.compat import os
+from certbot.plugins import dns_test_common
+from certbot.plugins import dns_test_common_lexicon
+from certbot.tests import util as test_util
+
+TOKEN = 'foo'
+
+
+class AuthenticatorTest(test_util.TempDirTestCase,
+                        
dns_test_common_lexicon.BaseLexiconDNSAuthenticatorTest):
+
+    LOGIN_ERROR = HTTPError('401 Client Error: Unauthorized for url: ...', 
response=Response())
+
+    def setUp(self):
+        super().setUp()
+
+        from certbot_dns_dnsimple._internal.dns_dnsimple import Authenticator
+
+        path = os.path.join(self.tempdir, 'file.ini')
+        dns_test_common.write({"dnsimple_token": TOKEN}, path)
+
+        self.config = mock.MagicMock(dnsimple_credentials=path,
+                                     dnsimple_propagation_seconds=0)  # don't 
wait during tests
+
+        self.auth = Authenticator(self.config, "dnsimple")
+
+
+if __name__ == "__main__":
+    sys.exit(pytest.main(sys.argv[1:] + [__file__]))  # pragma: no cover
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/certbot_dns_dnsimple-4.0.0/src/certbot_dns_dnsimple.egg-info/PKG-INFO 
new/certbot_dns_dnsimple-4.1.1/src/certbot_dns_dnsimple.egg-info/PKG-INFO
--- old/certbot_dns_dnsimple-4.0.0/src/certbot_dns_dnsimple.egg-info/PKG-INFO   
1970-01-01 01:00:00.000000000 +0100
+++ new/certbot_dns_dnsimple-4.1.1/src/certbot_dns_dnsimple.egg-info/PKG-INFO   
2025-06-12 20:08:39.000000000 +0200
@@ -0,0 +1,46 @@
+Metadata-Version: 2.4
+Name: certbot-dns-dnsimple
+Version: 4.1.1
+Summary: DNSimple DNS Authenticator plugin for Certbot
+Home-page: https://github.com/certbot/certbot
+Author: Certbot Project
+Author-email: certbot-...@eff.org
+License: Apache License 2.0
+Classifier: Development Status :: 5 - Production/Stable
+Classifier: Environment :: Plugins
+Classifier: Intended Audience :: System Administrators
+Classifier: License :: OSI Approved :: Apache Software License
+Classifier: Operating System :: POSIX :: Linux
+Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.9
+Classifier: Programming Language :: Python :: 3.10
+Classifier: Programming Language :: Python :: 3.11
+Classifier: Programming Language :: Python :: 3.12
+Classifier: Programming Language :: Python :: 3.13
+Classifier: Topic :: Internet :: WWW/HTTP
+Classifier: Topic :: Security
+Classifier: Topic :: System :: Installation/Setup
+Classifier: Topic :: System :: Networking
+Classifier: Topic :: System :: Systems Administration
+Classifier: Topic :: Utilities
+Requires-Python: >=3.9.2
+License-File: LICENSE.txt
+Requires-Dist: dns-lexicon>=3.14.1
+Requires-Dist: acme>=4.1.1
+Requires-Dist: certbot>=4.1.1
+Provides-Extra: docs
+Requires-Dist: Sphinx>=1.0; extra == "docs"
+Requires-Dist: sphinx_rtd_theme; extra == "docs"
+Provides-Extra: test
+Requires-Dist: pytest; extra == "test"
+Dynamic: author
+Dynamic: author-email
+Dynamic: classifier
+Dynamic: home-page
+Dynamic: license
+Dynamic: license-file
+Dynamic: provides-extra
+Dynamic: requires-dist
+Dynamic: requires-python
+Dynamic: summary
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/certbot_dns_dnsimple-4.0.0/src/certbot_dns_dnsimple.egg-info/SOURCES.txt 
new/certbot_dns_dnsimple-4.1.1/src/certbot_dns_dnsimple.egg-info/SOURCES.txt
--- 
old/certbot_dns_dnsimple-4.0.0/src/certbot_dns_dnsimple.egg-info/SOURCES.txt    
    1970-01-01 01:00:00.000000000 +0100
+++ 
new/certbot_dns_dnsimple-4.1.1/src/certbot_dns_dnsimple.egg-info/SOURCES.txt    
    2025-06-12 20:08:39.000000000 +0200
@@ -0,0 +1,22 @@
+LICENSE.txt
+MANIFEST.in
+README.rst
+setup.py
+docs/.gitignore
+docs/Makefile
+docs/api.rst
+docs/conf.py
+docs/index.rst
+docs/make.bat
+src/certbot_dns_dnsimple/__init__.py
+src/certbot_dns_dnsimple/py.typed
+src/certbot_dns_dnsimple.egg-info/PKG-INFO
+src/certbot_dns_dnsimple.egg-info/SOURCES.txt
+src/certbot_dns_dnsimple.egg-info/dependency_links.txt
+src/certbot_dns_dnsimple.egg-info/entry_points.txt
+src/certbot_dns_dnsimple.egg-info/requires.txt
+src/certbot_dns_dnsimple.egg-info/top_level.txt
+src/certbot_dns_dnsimple/_internal/__init__.py
+src/certbot_dns_dnsimple/_internal/dns_dnsimple.py
+src/certbot_dns_dnsimple/_internal/tests/__init__.py
+src/certbot_dns_dnsimple/_internal/tests/dns_dnsimple_test.py
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/certbot_dns_dnsimple-4.0.0/src/certbot_dns_dnsimple.egg-info/dependency_links.txt
 
new/certbot_dns_dnsimple-4.1.1/src/certbot_dns_dnsimple.egg-info/dependency_links.txt
--- 
old/certbot_dns_dnsimple-4.0.0/src/certbot_dns_dnsimple.egg-info/dependency_links.txt
       1970-01-01 01:00:00.000000000 +0100
+++ 
new/certbot_dns_dnsimple-4.1.1/src/certbot_dns_dnsimple.egg-info/dependency_links.txt
       2025-06-12 20:08:39.000000000 +0200
@@ -0,0 +1 @@
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/certbot_dns_dnsimple-4.0.0/src/certbot_dns_dnsimple.egg-info/entry_points.txt
 
new/certbot_dns_dnsimple-4.1.1/src/certbot_dns_dnsimple.egg-info/entry_points.txt
--- 
old/certbot_dns_dnsimple-4.0.0/src/certbot_dns_dnsimple.egg-info/entry_points.txt
   1970-01-01 01:00:00.000000000 +0100
+++ 
new/certbot_dns_dnsimple-4.1.1/src/certbot_dns_dnsimple.egg-info/entry_points.txt
   2025-06-12 20:08:39.000000000 +0200
@@ -0,0 +1,2 @@
+[certbot.plugins]
+dns-dnsimple = certbot_dns_dnsimple._internal.dns_dnsimple:Authenticator
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/certbot_dns_dnsimple-4.0.0/src/certbot_dns_dnsimple.egg-info/requires.txt 
new/certbot_dns_dnsimple-4.1.1/src/certbot_dns_dnsimple.egg-info/requires.txt
--- 
old/certbot_dns_dnsimple-4.0.0/src/certbot_dns_dnsimple.egg-info/requires.txt   
    1970-01-01 01:00:00.000000000 +0100
+++ 
new/certbot_dns_dnsimple-4.1.1/src/certbot_dns_dnsimple.egg-info/requires.txt   
    2025-06-12 20:08:39.000000000 +0200
@@ -0,0 +1,10 @@
+dns-lexicon>=3.14.1
+acme>=4.1.1
+certbot>=4.1.1
+
+[docs]
+Sphinx>=1.0
+sphinx_rtd_theme
+
+[test]
+pytest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/certbot_dns_dnsimple-4.0.0/src/certbot_dns_dnsimple.egg-info/top_level.txt 
new/certbot_dns_dnsimple-4.1.1/src/certbot_dns_dnsimple.egg-info/top_level.txt
--- 
old/certbot_dns_dnsimple-4.0.0/src/certbot_dns_dnsimple.egg-info/top_level.txt  
    1970-01-01 01:00:00.000000000 +0100
+++ 
new/certbot_dns_dnsimple-4.1.1/src/certbot_dns_dnsimple.egg-info/top_level.txt  
    2025-06-12 20:08:39.000000000 +0200
@@ -0,0 +1 @@
+certbot_dns_dnsimple

Reply via email to