9
9
:license: Apache 2.0
10
10
"""
11
11
12
- import sys
13
-
14
12
from setuptools import setup
15
- from setuptools .command .test import test as TestCommand
16
-
17
- setup_requires = []
18
13
19
14
install_requires = [
20
15
"requests>=2.30.0,<3.0" ,
37
32
"tomli-w" ,
38
33
]
39
34
40
- if "test" in sys .argv :
41
- setup_requires .extend (tests_require )
42
-
43
35
extras_require = {"tests" : tests_require }
44
36
45
-
46
- class PyTest (TestCommand ):
47
- """Designed to be run via `python setup.py test`"""
48
-
49
- def finalize_options (self ):
50
- TestCommand .finalize_options (self )
51
- self .test_args = []
52
- self .test_suite = True
53
-
54
- def run_tests (self ):
55
- # import here, cause outside the eggs aren't loaded
56
- import pytest
57
-
58
- errno = pytest .main (self .test_args )
59
- sys .exit (errno )
60
-
61
-
62
37
setup (
63
38
name = "responses" ,
64
- version = "0.25.3 " ,
39
+ version = "0.25.4 " ,
65
40
author = "David Cramer" ,
66
41
description = "A utility library for mocking out the `requests` Python library." ,
67
42
url = "https://github.com/getsentry/responses" ,
@@ -72,17 +47,13 @@ def run_tests(self):
72
47
"Source Code" : "https://github.com/getsentry/responses" ,
73
48
},
74
49
license = "Apache 2.0" ,
75
- long_description = open ("README.rst" ).read (),
50
+ long_description = open ("README.rst" , encoding = "utf-8" ).read (),
76
51
long_description_content_type = "text/x-rst" ,
77
52
packages = ["responses" ],
78
53
zip_safe = False ,
79
54
python_requires = ">=3.8" ,
80
55
install_requires = install_requires ,
81
56
extras_require = extras_require ,
82
- tests_require = tests_require ,
83
- setup_requires = setup_requires ,
84
- cmdclass = {"test" : PyTest },
85
- include_package_data = True ,
86
57
classifiers = [
87
58
"Intended Audience :: Developers" ,
88
59
"Intended Audience :: System Administrators" ,
0 commit comments