forked from moskytw/zipcodetw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (37 loc) · 1.23 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
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 = zipcodetw.__version__,
description = 'Find Taiwan ZIP code by address fuzzily.',
long_description = open('README.rst').read(),
author = 'Mosky',
url = 'https://github.com/moskytw/zipcodetw',
author_email = 'mosky.tw@gmail.com',
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',
'Topic :: Utilities',
'Topic :: Software Development :: Libraries :: Python Modules',
],
packages = find_packages(),
package_data = {'zipcodetw': ['*.csv', '*.db']},
cmdclass = {'install': zipcodetw_install},
)