From d260b7854f7228118efb75d8980f1a3b961d99ce Mon Sep 17 00:00:00 2001 From: Stevie Gayet Date: Thu, 11 May 2023 23:24:28 +0200 Subject: [PATCH 1/2] chore(build): remove deprecated `zip_safe` parameter --- setup.py | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.py b/setup.py index 8e15d1e9c..dace15c53 100644 --- a/setup.py +++ b/setup.py @@ -110,7 +110,6 @@ def readme(): 'Source': 'https://github.com/celery/kombu' }, platforms=['any'], - zip_safe=False, license='BSD-3-Clause', cmdclass={'test': pytest}, python_requires=">=3.7", From e32c077bc69ca314373197e4bf882a3fe11185f6 Mon Sep 17 00:00:00 2001 From: Stevie Gayet Date: Thu, 11 May 2023 23:28:01 +0200 Subject: [PATCH 2/2] chore(build): remove `cmdclass` parameter --- setup.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/setup.py b/setup.py index dace15c53..50de0cc59 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,6 @@ import sys import setuptools -import setuptools.command.test try: from setuptools import setup @@ -80,18 +79,6 @@ def extras(*p): return reqs('extras', *p) -class pytest(setuptools.command.test.test): - user_options = [('pytest-args=', 'a', 'Arguments to pass to py.test')] - - def initialize_options(self): - super().initialize_options() - self.pytest_args = [] - - def run_tests(self): - import pytest - sys.exit(pytest.main(self.pytest_args)) - - def readme(): with open('README.rst') as f: return f.read() @@ -111,7 +98,6 @@ def readme(): }, platforms=['any'], license='BSD-3-Clause', - cmdclass={'test': pytest}, python_requires=">=3.7", install_requires=reqs('default.txt'), tests_require=reqs('test.txt'),