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>2020-09-11 01:57:59 +0300
committerGitHub <noreply@github.com>2020-09-11 01:57:59 +0300
commit55d411f1ebd9a8db5157ecac1c5ce8e1d542088c (patch)
tree5254398cce02d37fa50968245d59c36060b62d96 /certbot-dns-cloudxns
parent7ddd327f63260c1258e1149a253897d23fa39349 (diff)
Remove deprecated `python setup.py test` call and update packager guide (#8262)
Fixes #7585 This PR removes the specific configuration to configure the test runner included in `setuptools` to use pytest, the deprecated parameters related to setuptools testing in `setup.py`, and update the packaging guide to use `python -m pytest` instead of `python setup.py test`. The farm test `test_sdist.sh` is also updated to use directly pytest. This test is designed to reproduce the steps used by OS integrators when they package `certbot`, and ensure that we are not breaking something that will impact their work. We discussed with integrators from RHEL/CentOS and Debian, and they are fine with us testing sdist directly with pytest. One execution of the `test_sdist.sh` farm test with the modifications made by this PR can be seen here: https://dev.azure.com/certbot/certbot/_build/results?buildId=2606&view=results * Remove setuptools deprecated features about testing * Updating packaging guide * Add changelog entry
Diffstat (limited to 'certbot-dns-cloudxns')
-rw-r--r--certbot-dns-cloudxns/setup.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/certbot-dns-cloudxns/setup.py b/certbot-dns-cloudxns/setup.py
index 37324e9fc..d776699ed 100644
--- a/certbot-dns-cloudxns/setup.py
+++ b/certbot-dns-cloudxns/setup.py
@@ -5,7 +5,6 @@ import sys
from setuptools import __version__ as setuptools_version
from setuptools import find_packages
from setuptools import setup
-from setuptools.command.test import test as TestCommand
version = '1.9.0.dev0'
@@ -42,20 +41,6 @@ docs_extras = [
'sphinx_rtd_theme',
]
-class PyTest(TestCommand):
- user_options = []
-
- def initialize_options(self):
- TestCommand.initialize_options(self)
- self.pytest_args = ''
-
- def run_tests(self):
- import shlex
- # import here, cause outside the eggs aren't loaded
- import pytest
- errno = pytest.main(shlex.split(self.pytest_args))
- sys.exit(errno)
-
setup(
name='certbot-dns-cloudxns',
version=version,
@@ -97,7 +82,4 @@ setup(
'dns-cloudxns = certbot_dns_cloudxns._internal.dns_cloudxns:Authenticator',
],
},
- tests_require=["pytest"],
- test_suite='certbot_dns_cloudxns',
- cmdclass={"test": PyTest},
)