Skip to content

Commit 08d40b2

Browse files
committed
Prepare 0.7.3 release.
- replace open() calls with io.open() for Python 3 compatibility, fix `UnicodeDecodeError` - add `create_direct_pay_by_user_url` doc for Wap site
1 parent 62f9cff commit 08d40b2

File tree

4 files changed

+42
-4
lines changed

4 files changed

+42
-4
lines changed

CHANGES.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
Changelog
22
==============================
33

4+
5+
0.7.3 - Dec.14, 2015
6+
--------------------------------
7+
8+
- replace open() calls with io.open() for Python 3 compatibility,
9+
fix `UnicodeDecodeError`
10+
- add `create_direct_pay_by_user_url` doc for Wap site
11+
12+
413
0.7.2 - Nov.1, 2015
514
--------------------------------
615

README.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ Or you can use `seller_id` instead of `seller_email`:
5151
5252
>>> alipay = Alipay(pid='your_alipay_pid', key='your_alipay_key', seller_id='your_seller_id')
5353
54+
5455
Generate direct payment url
5556
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5657

@@ -66,6 +67,18 @@ Introduction: https://b.alipay.com/order/productDetail.htm?productId=20121112003
6667
_return_url', notify_url='your_order_notify_url')
6768
'https://mapi.alipay.com/gateway.do?seller_email=.....'
6869
70+
..
71+
72+
生成即时到账支付链接 (Wap)
73+
74+
.. code-block:: python
75+
76+
>>> alipay_wap = Alipay(pid='your_alipay_pid', key='your_alipay_key', seller_id='your_seller_id')
77+
>>> alipay_wap.create_direct_pay_by_user_url(out_trade_no='your_order_id', subject='your_order_subject', total_fee='100.0', return_url='your_order
78+
_return_url', notify_url='your_order_notify_url')
79+
'https://mapi.alipay.com/gateway.do?seller_email=.....'
80+
81+
6982
Generate partner trade payment url
7083
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7184

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
[bdist_wheel]
1+
[wheel]
22
universal = 1

setup.py

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
1+
# -*- coding: utf-8 -*-
12
import os
3+
import io
24
from setuptools import setup
35
from setuptools import find_packages
46

57
here = os.path.abspath(os.path.dirname(__file__))
6-
README = open(os.path.join(here, 'README.rst')).read()
7-
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
8+
README = io.open(os.path.join(here, 'README.rst'), encoding='UTF-8').read()
9+
CHANGES = io.open(os.path.join(here, 'CHANGES.rst'), encoding='UTF-8').read()
810

911
setup(name='alipay',
10-
version='0.7.2',
12+
version='0.7.3',
1113
description='An Unofficial Alipay API for Python',
1214
long_description=README + '\n\n' + CHANGES,
15+
classifiers=[
16+
'Intended Audience :: Developers',
17+
'License :: OSI Approved :: BSD License',
18+
'Operating System :: OS Independent',
19+
'Programming Language :: Python :: 2',
20+
'Programming Language :: Python :: 2.6',
21+
'Programming Language :: Python :: 2.7',
22+
'Programming Language :: Python :: 3',
23+
'Programming Language :: Python :: 3.3',
24+
'Programming Language :: Python :: 3.4',
25+
'Programming Language :: Python :: 3.5',
26+
'Topic :: Software Development :: Libraries :: Python Modules',
27+
],
28+
keywords='alipay',
1329
author='Eric Lo',
1430
author_email='[email protected]',
1531
url='https://github.com/lxneng/alipay',

0 commit comments

Comments
 (0)