1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
diff --git a/setup.cfg b/setup.cfg
index f76d2a1..4e06279 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -6,6 +6,3 @@ max-line-length=100
ignore_missing_imports=True
ignore_errors=False
pretty=True
-
-[bdist_wheel]
-universal = 1
diff --git a/setup.py b/setup.py
index de02273..28d051d 100644
--- a/setup.py
+++ b/setup.py
@@ -2,30 +2,12 @@ import codecs
import sys
from setuptools import find_packages, setup
-from setuptools.command.test import test as TestCommand
-
def version():
with open("version") as fp:
val = fp.read().rstrip()
return val
-
-class PyTest(TestCommand):
- user_options = [("pytest-args=", "a", "Arguments to pass to pytest")]
-
- def initialize_options(self):
- TestCommand.initialize_options(self)
- self.pytest_args = "--cov=pypuppetdb --cov-report=term-missing"
-
- def run_tests(self):
- import shlex
- import pytest
-
- errno = pytest.main(shlex.split(self.pytest_args))
- sys.exit(errno)
-
-
with codecs.open("README.md", encoding="utf-8") as f:
README = f.read()
@@ -54,9 +36,7 @@ setup(
long_description="\n".join((README, CHANGELOG)),
long_description_content_type="text/markdown",
keywords="puppet puppetdb",
- tests_require=requirements_test,
data_files=[("requirements_for_tests", ["requirements-test.txt"])],
- cmdclass={"test": PyTest},
install_requires=requirements,
python_requires=">=3.7.0",
classifiers=[
|