-
Notifications
You must be signed in to change notification settings - Fork 52
/
setup.py
executable file
·40 lines (32 loc) · 1.01 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
#! /usr/bin/env python
import logging
from setuptools import setup, find_packages, Command
from i18naddress.downloader import download
class DownloadJSONFiles(Command):
description = 'Download all addresses data from Google i18n API'
user_options = []
logger = None
def initialize_options(self):
logging.basicConfig()
self.logger = logging.getLogger('i18naddress.downloader')
self.logger.setLevel(logging.DEBUG)
def finalize_options(self):
pass
def run(self):
download()
setup(
name='google-i18n-address',
author='Mirumee Software',
author_email='hello@mirumee.com',
description='Address validation helpers for Google\'s i18n address database', # noqa
license='BSD',
version='1.0.1',
url='https://github.com/mirumee/google-i18n-address',
packages=find_packages(),
include_package_data=True,
install_requires=[
'requests>=2.7.0',
],
cmdclass={'update_validation_files': DownloadJSONFiles},
zip_safe=False
)