Skip to content

Commit 28e692a

Browse files
committed
feat(setup): Add dns extras for pyDNS
+ Add an `extras_require` section in ` setup.py` for installing `pyDNS` dependency, for non Windows. + Updated docs.
1 parent eaf2668 commit 28e692a

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

README.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ For check the domain mx and verify email exits you must have the `pyDNS` package
2020

2121
pip install pyDNS
2222

23+
or install them both in one step from the beginning::
24+
25+
pip install validate-email[dns]
26+
2327

2428
USAGE
2529
=====
@@ -50,4 +54,4 @@ Check if the host has SMTP Server and the email really exists::
5054

5155
TODOs and BUGS
5256
==============
53-
See: http://github.com/syrusakbary/validate_email/issues
57+
See: http://github.com/syrusakbary/validate_email/issues

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,8 @@
1010
long_description=open('README.rst').read(),
1111
keywords = 'email validation verification mx verify',
1212
url = 'http://github.com/syrusakbary/validate_email',
13+
extras_require = {
14+
'dns"sys_platform != "win32"': ['pyDNS']
15+
},
1316
license = 'LGPL',
1417
)

0 commit comments

Comments
 (0)