Skip to content

Commit 8044aa1

Browse files
committed
Merge branch 'hotfix/v1.0.1'
2 parents b8b8859 + dbdcc5f commit 8044aa1

4 files changed

Lines changed: 20 additions & 5 deletions

File tree

pyisemail/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
from pyisemail.diagnosis import BaseDiagnosis
22
from pyisemail.email_validator import EmailValidator
33
from pyisemail.reference import Reference
4+
from pyisemail.validators import DNSValidator
45
from 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

pyisemail/version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VERSION = '1.0.1'

setup.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
__copyright__ = "Copyright (c) 2013 Michael Herold"
33
__license__ = "MIT"
44

5+
import os
56
import sys
67
from setuptools import setup
7-
from pyisemail import __version__
88

99
kwargs = {}
1010

@@ -23,9 +23,17 @@
2323
elif 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+
2634
setup(
2735
name="pyIsEmail",
28-
version=__version__,
36+
version=get_version(),
2937
description="Simple, robust email validation",
3038
long_description=long_description,
3139
classifiers=[

tests/data/tests.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)