21
21
22
22
__version__ = '1.0.1'
23
23
PACKAGE_NAME = 'iaesdk'
24
+ PACKAGE_DESC = 'Python client library for IBM Cloud Analytics Engine Services'
24
25
25
26
with open ('requirements.txt' ) as f :
26
27
install_requires = [str (req ) for req in pkg_resources .parse_requirements (f )]
37
38
os .system ('python setup.py sdist upload -r pypi' )
38
39
sys .exit ()
39
40
40
- # Convert README.md to README.rst for pypi
41
- try :
42
- from pypandoc import convert_file
43
-
44
- def read_md (f ):
45
- return convert_file (f , 'rst' )
46
-
47
- # read_md = lambda f: convert(f, 'rst')
48
- except :
49
- print ('warning: pypandoc module not found, '
50
- 'could not convert Markdown to RST' )
51
-
52
- def read_md (f ):
53
- return open (f , 'rb' ).read ().decode (encoding = 'utf-8' )
54
- # read_md = lambda f: open(f, 'rb').read().decode(encoding='utf-8')
55
-
56
-
57
41
class PyTest (TestCommand ):
58
42
def finalize_options (self ):
59
43
TestCommand .finalize_options (self )
@@ -73,32 +57,37 @@ class PyTestIntegration(PyTest):
73
57
def finalize_options (self ):
74
58
self .test_args = ['--strict' , '--verbose' , '--tb=long' , 'test/integration' ]
75
59
60
+ with open ("README.md" , "r" ) as fh :
61
+ readme = fh .read ()
76
62
77
- setup (name = PACKAGE_NAME ,
63
+ setup (name = PACKAGE_NAME . replace ( '_' , '-' ) ,
78
64
version = __version__ ,
79
- description = 'iaesdk client library' ,
65
+ description = PACKAGE_DESC ,
80
66
license = 'Apache 2.0' ,
81
67
install_requires = install_requires ,
82
68
tests_require = tests_require ,
83
69
cmdclass = {'test' : PyTest , 'test_unit' : PyTestUnit , 'test_integration' : PyTestIntegration },
84
70
author = 'IBM' ,
85
71
86
- long_description = read_md ( 'README.md' ) ,
87
- long_description_content_type = " text/markdown" ,
72
+ long_description = readme ,
73
+ long_description_content_type = ' text/markdown' ,
88
74
url = 'https://github.com/IBM/ibm-iae-python-sdk' ,
89
75
packages = [PACKAGE_NAME ],
90
76
include_package_data = True ,
91
77
keywords = PACKAGE_NAME ,
92
78
classifiers = [
93
79
'Programming Language :: Python' ,
94
80
'Programming Language :: Python :: 3' ,
81
+ 'Programming Language :: Python :: 3.5' ,
82
+ 'Programming Language :: Python :: 3.6' ,
83
+ 'Programming Language :: Python :: 3.7' ,
84
+ 'Programming Language :: Python :: 3.8' ,
95
85
'Development Status :: 4 - Beta' ,
96
86
'Intended Audience :: Developers' ,
97
87
'License :: OSI Approved :: Apache Software License' ,
98
88
'Operating System :: OS Independent' ,
99
89
'Topic :: Software Development :: Libraries :: Python Modules' ,
100
- 'Topic :: Software Development :: Libraries :: Application '
101
- 'Frameworks' ,
90
+ 'Topic :: Software Development :: Libraries :: Application Frameworks' ,
102
91
],
103
92
zip_safe = True
104
- )
93
+ )
0 commit comments