Skip to content

Commit

Permalink
Fix installation on Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
houtianze committed May 23, 2021
1 parent 7cfec01 commit 766a43a
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions HISTORY.md
@@ -1,5 +1,6 @@
### Version History:

- 1.7.2: Fix release.sh
- 1.7.1: Fix upgrading in Python2 (unicode file name support seems to be broken)
- 1.7.0: Follow Baidu's encrypted MD5 algorithm
- 1.6.11: Revert the previous change - Baidu PCS's behavior is wrong and makes no sense
Expand Down
2 changes: 2 additions & 0 deletions HISTORY.rst
@@ -1,6 +1,8 @@
Version History:
~~~~~~~~~~~~~~~~

- 1.7.2: Fix release.sh

- 1.7.1: Fix upgrading in Python2 (unicode file name support seems to
be broken)

Expand Down
2 changes: 1 addition & 1 deletion bypy/const.py
Expand Up @@ -12,7 +12,7 @@

# https://packaging.python.org/single_source_version/
__title__ = 'bypy'
__version__ = '1.7.1'
__version__ = '1.7.2'
__author__ = 'Hou Tianze'
__license__ = 'MIT'
__desc__ = 'Python client for Baidu Yun (Personal Cloud Storage) 百度云/百度网盘 Python 客户端'
Expand Down
1 change: 0 additions & 1 deletion bypy/test/configdir/bypy.json.expired

This file was deleted.

8 changes: 4 additions & 4 deletions release.sh
Expand Up @@ -20,15 +20,15 @@ check() {
command -v "$1" || { echo "'$1' doesn't exist, aborting."; exit -1; }
}

pycmd=python3

check git
check python
check $pycmd
check pandoc
check pyflakes
check twine
check jq

pycmd=python

actual=0
build=0
install=0
Expand Down Expand Up @@ -114,7 +114,7 @@ main() {

if [ "$build" -eq 1 ]
then
rm -Rf dist/*
eval $pycmd setup.py clean --all
eval $pycmd setup.py bdist_wheel #sdist
fi

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
@@ -1,5 +1,5 @@
[metadata]
description-file = README.rst
long_description = file: README.rst

[bdist_wheel]
universal = 1
2 changes: 1 addition & 1 deletion update/update.json
@@ -1,5 +1,5 @@
{
"comment": "Update info",
"recommendedVersion": "1.7.1",
"recommendedVersion": "1.7.2",
"minimumRequiredVersion": "1.6.0"
}

0 comments on commit 766a43a

Please sign in to comment.