-
Notifications
You must be signed in to change notification settings - Fork 67
/
setup.py
54 lines (44 loc) · 1.55 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
import zipcodetw.builder
from setuptools.command.install import install
class zipcodetw_install(install):
def run(self):
print('Building ZIP code index ... ')
sys.stdout.flush()
zipcodetw.builder.build()
install.run(self)
import zipcodetw
from setuptools import setup, find_packages
setup(
name = 'zipcodetw',
version = '0.6.8',
description = 'Find Taiwan ZIP code by address fuzzily.',
long_description = open('README.rst', encoding='UTF-8').read(),
author = 'Mosky',
url = 'https://github.com/moskytw/zipcodetw',
author_email = '[email protected]',
license = 'MIT',
platforms = 'any',
classifiers = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Topic :: Utilities',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages = find_packages(),
install_requires = ['six', 'unicodecsv'],
package_data = {'zipcodetw': ['*.csv', '*.db']},
cmdclass = {'install': zipcodetw_install},
)