Skip to content

Commit 7c2e45e

Browse files
tiranfrozencemetery
authored andcommitted
Use dnspython package on Python 3
The dnspython3 package is obsolete and superseded by dnspython. The dnspython package supports Python 2 and Python 3. The change also fixes a problem with Fedora 30's new Python dependency generator. The python3-dnspython package does not provide dnspython3 distribution: nothing provides python3.7dist(dnspython3) needed by python3-kdcproxy-0.4-4.fc30.noarch See: https://pypi.org/project/dnspython3/ Signed-off-by: Christian Heimes <[email protected]>
1 parent c5f3bdb commit 7c2e45e

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

setup.py

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,34 +20,19 @@
2020
# THE SOFTWARE.
2121

2222
import os
23-
import sys
2423

25-
import setuptools
2624
from setuptools import setup
2725

28-
29-
SETUPTOOLS_VERSION = tuple(int(v) for v in setuptools.__version__.split("."))
30-
3126
install_requires = [
3227
'asn1crypto>=0.23',
28+
'dnspython'
3329
]
3430

3531
extras_require = {
3632
"tests": ["pytest", "coverage", "WebTest"],
3733
"test_pep8": ['flake8', 'flake8-import-order', 'pep8-naming']
3834
}
3935

40-
if SETUPTOOLS_VERSION >= (18, 0):
41-
extras_require.update({
42-
":python_version<'3'": ["dnspython"],
43-
":python_version>='3'": ["dnspython3"],
44-
})
45-
else:
46-
if sys.version_info.major == 2:
47-
install_requires.append("dnspython")
48-
else:
49-
install_requires.append("dnspython3")
50-
5136

5237
def read(fname):
5338
fname = os.path.join(os.path.dirname(__file__), fname)

0 commit comments

Comments
 (0)