forked from john-kurkowski/tldextract
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
42 lines (38 loc) · 1.48 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import re
import sys
from setuptools import setup
import tldextract
# I don't want to learn reStructuredText right now, so strip Markdown links
# that make pip barf.
long_description_markdown = tldextract.tldextract.__doc__
long_description = re.sub(r'(?s)\[(.*?)\]\((http.*?)\)', r'\1', long_description_markdown)
install_requires = []
if (2,7) > sys.version_info:
install_requires.append("argparse>=1.2.1")
setup(
name = "tldextract",
version = tldextract.__version__,
author = "John Kurkowski",
author_email = "[email protected]",
description = ("Accurately separate the TLD from the registered domain and subdomains of a URL, using the Public Suffix List."),
license = "BSD License",
keywords = "tld domain subdomain url parse extract urlparse urlsplit public suffix list",
url = "https://github.com/john-kurkowski/tldextract",
packages = ['tldextract', 'tldextract.tests'],
include_package_data = True,
long_description = long_description,
classifiers = [
"Development Status :: 5 - Production/Stable",
"Topic :: Utilities",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 2.5",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
],
entry_points = {
'console_scripts':[
'tldextract = tldextract.tldextract:main', ]
},
test_suite = 'tldextract.tests.all.test_suite',
install_requires=install_requires,
)