-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
77 lines (64 loc) · 2.04 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# -*- coding: utf-8 -*-
import sys
import os
import re
from setuptools import setup, find_packages
here = os.path.dirname(__file__)
package_path = os.path.join(here, 'zengin_code')
version = ''
with open(os.path.join(package_path, '__init__.py'), 'r') as f:
version = re.compile(
r".*__version__ = '(.*?)'\n", re.S).match(f.read()).group(1)
version = '{0}.{1}'.format(version, open(os.path.join(
package_path, 'source-data', 'data', 'updated_at'
), 'r').read().strip())
readme = open(os.path.join(here, 'README.rst')).read()
requires = [
'six',
]
setup_requires = [
'pytest-runner',
]
tests_require = [
'pytest-cov',
'pytest',
]
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries',
]
setup(
name='zengin_code',
version=version,
description='bank codes and branch codes for Japanese.',
long_description=readme,
url='https://github.com/zengin-code/zengin-py',
author='Zengin Code',
author_email='[email protected]',
classifiers=classifiers,
keywords=['zengin', 'bank', 'japanese'],
install_requires=requires,
setup_requires=setup_requires,
tests_require=tests_require,
packages=find_packages(exclude=['tests']),
include_package_data=True,
package_data={
'zengin_code': [
'source-data/data/md5', 'source-data/data/updated_at',
'source-data/data/*.json', 'source-data/data/branches/*.json'
]
},
license='MIT',
)