Skip to content

Commit bb2474d

Browse files
author
Surya Penumatcha
committed
fix(build): updating build files
1 parent 1da6c33 commit bb2474d

File tree

3 files changed

+18
-29
lines changed

3 files changed

+18
-29
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ notifications:
1010
matrix:
1111
include:
1212
- python: 3.5
13-
# - python: 3.6
14-
# - python: 3.7
15-
# - python: 3.8
13+
- python: 3.6
14+
- python: 3.7
15+
- python: 3.8
1616

1717
before_install:
1818
- npm install npm@latest -g

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ Service Name | Imported Class Name
3838
To install, use `pip` or `easy_install`:
3939

4040
```bash
41-
pip install --upgrade "iaesdk>=1.0.0"
41+
pip install --upgrade "iaesdk>=1.0.1"
4242
```
4343

4444
or
4545

4646
```bash
47-
easy_install --upgrade "iaesdk>=1.0.0"
47+
easy_install --upgrade "iaesdk>=1.0.1"
4848
```
4949

5050
## Using the SDK

setup.py

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
__version__ = '1.0.1'
2323
PACKAGE_NAME = 'iaesdk'
24+
PACKAGE_DESC = 'Python client library for IBM Cloud Analytics Engine Services'
2425

2526
with open('requirements.txt') as f:
2627
install_requires = [str(req) for req in pkg_resources.parse_requirements(f)]
@@ -37,23 +38,6 @@
3738
os.system('python setup.py sdist upload -r pypi')
3839
sys.exit()
3940

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-
5741
class PyTest(TestCommand):
5842
def finalize_options(self):
5943
TestCommand.finalize_options(self)
@@ -73,32 +57,37 @@ class PyTestIntegration(PyTest):
7357
def finalize_options(self):
7458
self.test_args = ['--strict', '--verbose', '--tb=long', 'test/integration']
7559

60+
with open("README.md", "r") as fh:
61+
readme = fh.read()
7662

77-
setup(name=PACKAGE_NAME,
63+
setup(name=PACKAGE_NAME.replace('_', '-'),
7864
version=__version__,
79-
description='iaesdk client library',
65+
description=PACKAGE_DESC,
8066
license='Apache 2.0',
8167
install_requires=install_requires,
8268
tests_require=tests_require,
8369
cmdclass={'test': PyTest, 'test_unit': PyTestUnit, 'test_integration': PyTestIntegration},
8470
author='IBM',
8571
author_email='[email protected]',
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',
8874
url='https://github.com/IBM/ibm-iae-python-sdk',
8975
packages=[PACKAGE_NAME],
9076
include_package_data=True,
9177
keywords=PACKAGE_NAME,
9278
classifiers=[
9379
'Programming Language :: Python',
9480
'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',
9585
'Development Status :: 4 - Beta',
9686
'Intended Audience :: Developers',
9787
'License :: OSI Approved :: Apache Software License',
9888
'Operating System :: OS Independent',
9989
'Topic :: Software Development :: Libraries :: Python Modules',
100-
'Topic :: Software Development :: Libraries :: Application '
101-
'Frameworks',
90+
'Topic :: Software Development :: Libraries :: Application Frameworks',
10291
],
10392
zip_safe=True
104-
)
93+
)

0 commit comments

Comments
 (0)