File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from pyisemail .diagnosis import BaseDiagnosis
22from pyisemail .email_validator import EmailValidator
33from pyisemail .reference import Reference
4+ from pyisemail .validators import DNSValidator
45from pyisemail .validators import ParserValidator
5- from pyisemail .validators . dns_validator import DNSValidator
6+ from pyisemail .version import VERSION
67
7- __version__ = '1.0.0'
8+ __version__ = VERSION
89__all__ = ['is_email' ]
910
1011
Original file line number Diff line number Diff line change 1+ VERSION = '1.0.1'
Original file line number Diff line number Diff line change 22__copyright__ = "Copyright (c) 2013 Michael Herold"
33__license__ = "MIT"
44
5+ import os
56import sys
67from setuptools import setup
7- from pyisemail import __version__
88
99kwargs = {}
1010
2323elif sys .version_info [0 ] == 3 :
2424 dnspython = "dnspython3"
2525
26+ def get_version ():
27+ basedir = os .path .dirname (__file__ )
28+ with open (os .path .join (basedir , 'pyisemail/version.py' )) as f :
29+ locals = {}
30+ exec (f .read (), locals )
31+ return locals ['VERSION' ]
32+ raise RuntimeError ('No version information found.' )
33+
2634setup (
2735 name = "pyIsEmail" ,
28- version = __version__ ,
36+ version = get_version () ,
2937 description = "Simple, robust email validation" ,
3038 long_description = long_description ,
3139 classifiers = [
Original file line number Diff line number Diff line change @@ -679,9 +679,14 @@ Date Tests Version Notes
679679 </test >
680680 <test id =" 100" >
681681 <address >test@xn--hxajbheg2az3al.xn--jxalpdlp</address >
682- <comment >A valid IDN from ICANN's <a href =" http://idn.icann.org/#The_example.test_names" >IDN TLD evaluation gateway</a ></comment >
682+ <comment >
683+ A valid IDN from ICANN's <a href =" http://idn.icann.org/#The_example.test_names" >IDN TLD evaluation gateway</a >.
684+ Marked as flaky on 2014-01-27, as the DNS lookup started
685+ returning false and the IDN page is down for maintenance.
686+ </comment >
683687 <category >ISEMAIL_VALID_CATEGORY</category >
684688 <diagnosis >ISEMAIL_VALID</diagnosis >
689+ <flaky >True</flaky >
685690 <source >Michael Rushton</source >
686691 <sourcelink >http://squiloople.com/tag/email/</sourcelink >
687692 </test >
You can’t perform that action at this time.
0 commit comments