forked from barseghyanartur/tld
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
52 lines (48 loc) · 1.72 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
42
43
44
45
46
47
48
49
50
51
52
import os
from setuptools import setup, find_packages
try:
readme = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
readme = readme.replace('.. code-block:: none', '.. code-block::')
except:
readme = ''
version = '0.7.4'
exec_dirs = [
'src/tld/bin/',
]
execs = []
for exec_dir in exec_dirs:
execs += [os.path.join(exec_dir, f) for f in os.listdir(exec_dir)]
setup(
name = 'tld',
version = version,
description = ("Extracts the top level domain (TLD) from the URL given."),
long_description = readme,
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Development Status :: 5 - Production/Stable",
"Topic :: Internet",
"License :: OSI Approved :: Mozilla Public License 1.1 (MPL 1.1)",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)",
],
keywords = 'tld, top level domain names, python',
author = 'Artur Barseghyan',
author_email = '[email protected]',
url = 'https://github.com/barseghyanartur/tld',
package_dir = {'': 'src'},
packages = find_packages(where='./src'),
package_data = {'tld': execs},
scripts = ['src/tld/bin/update-tld-names',],
include_package_data = True,
license = 'MPL 1.1/GPL 2.0/LGPL 2.1',
install_requires = [
'six>=1.4'
]
)