-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
60 lines (51 loc) · 1.78 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
53
54
55
56
57
58
59
60
import subprocess
import sys
from setuptools import setup
version = 'v0.3.0'
def test_suite():
try:
import unittest2
unittest = unittest2
except Exception:
import unittest
test_loader = unittest.TestLoader()
test_suite = test_loader.discover('tests', pattern='maintest.py')
return test_suite
if sys.argv[-1] == 'publish':
subprocess.call(["python", "setup.py", "sdist", "upload"])
subprocess.call(["git", "tag", version])
subprocess.call(["git", "push", "--tags"])
print("All Done!")
sys.exit()
setup(
name='fasttld',
version=version[1:],
packages=['fasttld'],
url='https://github.com/jophy/fasttld',
license='MIT',
author='Jophy',
author_email='[email protected]',
description='High performance TLD extraction module based on the compressed trie data '
'structure implemented with the builtin python dict().',
include_package_data=True,
zip_safe=False,
install_requires=['idna', 'setuptools'],
test_suite='setup.test_suite',
classifiers=[
"Development Status :: 5 - Production/Stable",
"Topic :: Utilities",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
],
)