5.0.2 - Revert to using publicsuffix instead of publicsuffix2

This commit is contained in:
Sean Whalen
2018-11-26 15:01:22 -05:00
parent 3d59be3ec3
commit f19ea5b950
5 changed files with 12 additions and 7 deletions
+5
View File
@@ -1,3 +1,8 @@
5.0.2
-----
- Revert to using `publicsuffix` instead of `publicsuffix2`
5.0.1
-----
+1 -1
View File
@@ -38,7 +38,7 @@ from parsedmarc.utils import is_outlook_msg, convert_outlook_msg
from parsedmarc.utils import timestamp_to_human, human_timestamp_to_datetime
from parsedmarc.utils import parse_email
__version__ = "5.0.1"
__version__ = "5.0.2"
logger = logging.getLogger("parsedmarc")
logger.debug("parsedmarc v{0}".format(__version__))
+3 -3
View File
@@ -23,9 +23,9 @@ import dns.exception
import geoip2.database
import geoip2.errors
import requests
import publicsuffix2
import publicsuffix
__version__ = "4.3.9"
__version__ = "5.0.2"
USER_AGENT = "Mozilla/5.0 ((0 {1})) parsedmarc/{2}".format(
platform.system(),
@@ -99,7 +99,7 @@ def get_base_domain(domain):
logger.warning(
"Failed to download an updated PSL {0}".format(error))
with open(psl_path, encoding="utf-8") as psl_file:
psl = publicsuffix2.PublicSuffixList(psl_file)
psl = publicsuffix.PublicSuffixList(psl_file)
return psl.get_public_suffix(domain)
+1 -1
View File
@@ -2,7 +2,7 @@ dnspython
expiringdict
urllib3<1.24,>=1.21.1
requests
publicsuffix2
publicsuffix
xmltodict
geoip2
dnspython
+2 -2
View File
@@ -14,7 +14,7 @@ from setuptools import setup
from codecs import open
from os import path
__version__ = "5.0.1"
__version__ = "5.0.2"
description = "A Python package and CLI for parsing aggregate and " \
"forensic DMARC reports"
@@ -92,7 +92,7 @@ setup(
# your project is installed. For an analysis of "install_requires" vs pip's
# requirements files see:
# https://packaging.python.org/en/latest/requirements.html
install_requires=['dnspython', 'expiringdict', 'publicsuffix2',
install_requires=['dnspython', 'expiringdict', 'publicsuffix',
'xmltodict', 'geoip2', 'urllib3<1.24,>=1.21.1',
'requests', 'imapclient', 'mail-parser', 'dateparser',
'elasticsearch==6.3.1',