diff options
author | Adrien Ferrand <adferrand@users.noreply.github.com> | 2020-09-11 01:57:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-11 01:57:59 +0300 |
commit | 55d411f1ebd9a8db5157ecac1c5ce8e1d542088c (patch) | |
tree | 5254398cce02d37fa50968245d59c36060b62d96 /acme | |
parent | 7ddd327f63260c1258e1149a253897d23fa39349 (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 'acme')
-rw-r--r-- | acme/setup.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/acme/setup.py b/acme/setup.py index 20244a7ad..9e1d838fa 100644 --- a/acme/setup.py +++ b/acme/setup.py @@ -4,7 +4,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' @@ -47,22 +46,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='acme', version=version, @@ -94,7 +77,4 @@ setup( 'dev': dev_extras, 'docs': docs_extras, }, - test_suite='acme', - tests_require=["pytest"], - cmdclass={"test": PyTest}, ) |