1
1
# -*- coding: utf-8 -*-
2
+
3
+ import io
4
+ import os
5
+
2
6
from setuptools import setup , find_packages
3
- import codecs
4
- install_requires = ['requests' ]
5
7
6
8
7
- def readme ():
8
- with codecs .open ('README.rst' , encoding = 'utf-8' ) as f :
9
- return f .read ()
9
+ def get_spec (filename ):
10
+ def wrapper ():
11
+ here = os .path .dirname (__file__ )
12
+ result = {}
13
+ with io .open (os .path .join (here , filename ), encoding = 'utf-8' ) as src_file :
14
+ result = src_file .read ()
15
+ return result
16
+ return wrapper
10
17
11
18
19
+ get_readme = get_spec ('README.rst' )
20
+ get_requirements = get_spec ('requirements.txt' )
12
21
setup (
13
22
name = 'iamport-rest-client' ,
14
23
version = '0.8.2' ,
24
+ description = "REST client for I'mport;(http://www.iamport.kr)" ,
25
+ long_description = get_readme (),
26
+ url = 'https://github.com/iamport/iamport-rest-client-python' ,
15
27
packages = find_packages (),
16
- include_package_data = True ,
17
- install_requires = install_requires ,
18
- setup_requires = ['pytest-runner' ],
19
28
author = 'PerhapsSPY' ,
20
29
21
- url = 'https://github.com/iamport/iamport-rest-client-python' ,
22
- description = "REST client for I'mport;(http://www.iamport.kr)" ,
23
- long_description = readme (),
30
+ include_package_data = True ,
31
+ install_requires = get_requirements (),
24
32
license = 'MIT' ,
25
33
zip_safe = False ,
26
34
data_files = [
27
35
(
28
36
'shared/typehints/python2.7' ,
29
37
['iamport/client.pyi' ],
30
38
),
31
- (
32
- 'shared/typehints/python3.5' ,
33
- ['iamport/client.pyi' ],
34
- ),
35
39
(
36
40
'shared/typehints/python3.6' ,
37
41
['iamport/client.pyi' ],
@@ -44,6 +48,10 @@ def readme():
44
48
'shared/typehints/python3.8' ,
45
49
['iamport/client.pyi' ],
46
50
),
51
+ (
52
+ 'shared/typehints/python3.9' ,
53
+ ['iamport/client.pyi' ],
54
+ ),
47
55
],
48
56
classifiers = [
49
57
'Development Status :: 2 - Pre-Alpha' ,
@@ -52,13 +60,11 @@ def readme():
52
60
'License :: OSI Approved :: MIT License' ,
53
61
'Operating System :: OS Independent' ,
54
62
'Programming Language :: Python' ,
55
- 'Programming Language :: Python :: 2' ,
56
63
'Programming Language :: Python :: 2.7' ,
57
- 'Programming Language :: Python :: 3' ,
58
- 'Programming Language :: Python :: 3.5' ,
59
64
'Programming Language :: Python :: 3.6' ,
60
65
'Programming Language :: Python :: 3.7' ,
61
66
'Programming Language :: Python :: 3.8' ,
67
+ 'Programming Language :: Python :: 3.9' ,
62
68
'Programming Language :: Python :: Implementation :: CPython' ,
63
69
'Programming Language :: Python :: Implementation :: PyPy' ,
64
70
'Topic :: Software Development :: Libraries :: Python Modules' ,
0 commit comments