Skip to content

Commit

Permalink
Merge pull request #1 from rizdaprasetya/master
Browse files Browse the repository at this point in the history
add travis-ci integration
  • Loading branch information
rizdaprasetya authored Oct 26, 2018
2 parents 8c3e1db + bf85607 commit ec996d0
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
language: python
python:
# - "2.6" # deprecated version of python
- "2.7"
# - "3.3" # deprecated version of python not supported by pytest
- "3.4"
- "3.5"
- "3.6"
- "3.7-dev"
# command to install dependencies
install:
- pip install pytest
- pip install .
# command to run tests
script:
- pytest
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Midtrans Client - Python
===============

[![Build Status](https://travis-ci.org/rizdaprasetya/midtrans-python-client.svg?branch=master)](https://travis-ci.org/rizdaprasetya/midtrans-python-client)

Midtrans ❤️ Python! 🐍

This is the Official Python API client/library for Midtrans Payment API. Visit [https://midtrans.com](https://midtrans.com). More information about the product and see documentation at [http://docs.midtrans.com](http://docs.midtrans) for more technical details.
Expand Down
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

setuptools.setup(
name="midtransclient",
version="1.0.1",
version="1.0.2",
author="Rizda Prasetya",
author_email="[email protected]",
license='MIT',
Expand All @@ -24,7 +24,6 @@
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
Expand Down
4 changes: 2 additions & 2 deletions tests/helpers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys
def is_str(target_str):
if sys.version_info[0] >= 3:
return type(target_str) is str
return target_str is basestring
return isinstance(target_str, str)
return isinstance(target_str, basestring)

0 comments on commit ec996d0

Please sign in to comment.