From 023d47715a61688662e1541665054296c6f0d7f0 Mon Sep 17 00:00:00 2001 From: "Joshua Z. Zhang" Date: Tue, 9 Feb 2021 09:20:34 -0800 Subject: [PATCH] fix wheels con't --- .github/workflows/pypi.yml | 4 ++-- include/decord/runtime/c_runtime_api.h | 2 +- python/decord/_ffi/libinfo.py | 2 +- src/runtime/file_util.cc | 2 +- tools/update_version.py | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 3529221..e9736b8 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -42,8 +42,8 @@ jobs: sudo rm ./python/dist/decord-*-linux_x86_64.whl which python which pip - find ./python/dist/ -type f -iname "decord*manylinux2010_x86_64.whl" -exec sh -c "zip --delete '{}' 'numpy/*' | true" \; - find ./python/dist/ -type f -iname "decord*manylinux2010_x86_64.whl" -exec sh -c "zip --delete '{}' 'pip/*' | true" \; + sudo find ./python/dist/ -type f -iname "decord*manylinux2010_x86_64.whl" -exec sh -c "zip --delete '{}' 'numpy/*' | true" \; + sudo find ./python/dist/ -type f -iname "decord*manylinux2010_x86_64.whl" -exec sh -c "zip --delete '{}' 'pip/*' | true" \; find ./python/dist/ -type f -iname "decord*manylinux2010_x86_64.whl" -exec sh -c "which python && python -m pip install '{}' --force-reinstall" \; python -c "import decord; print(decord.__version__)" python -m nose -v ./tests/python/unittests/test_video_reader.py diff --git a/include/decord/runtime/c_runtime_api.h b/include/decord/runtime/c_runtime_api.h index 97e1f4a..406a447 100644 --- a/include/decord/runtime/c_runtime_api.h +++ b/include/decord/runtime/c_runtime_api.h @@ -43,7 +43,7 @@ #endif // DECORD version -#define DECORD_VERSION "0.5.1" +#define DECORD_VERSION "0.5.2" // DECORD Runtime is DLPack compatible. diff --git a/python/decord/_ffi/libinfo.py b/python/decord/_ffi/libinfo.py index 44104ff..e17d56a 100644 --- a/python/decord/_ffi/libinfo.py +++ b/python/decord/_ffi/libinfo.py @@ -87,4 +87,4 @@ def find_lib_path(name=None, search_path=None, optional=False): # We use the version of the incoming release for code # that is under development. # The following line is set by decord/python/update_version.py -__version__ = "0.5.1" +__version__ = "0.5.2" diff --git a/src/runtime/file_util.cc b/src/runtime/file_util.cc index f3b9726..edf2666 100644 --- a/src/runtime/file_util.cc +++ b/src/runtime/file_util.cc @@ -117,7 +117,7 @@ void SaveBinaryToFile( void SaveMetaDataToFile( const std::string& file_name, const std::unordered_map& fmap) { - std::string version = "0.5.1"; + std::string version = "0.5.2"; std::ofstream fs(file_name.c_str()); CHECK(!fs.fail()) << "Cannot open file " << file_name; dmlc::JSONWriter writer(&fs); diff --git a/tools/update_version.py b/tools/update_version.py index 44331a8..c620d06 100644 --- a/tools/update_version.py +++ b/tools/update_version.py @@ -11,7 +11,7 @@ # current version # We use the version of the incoming release for code # that is under development -__version__ = "0.5.1" +__version__ = "0.5.2" # Implementations def update(file_name, pattern, repl):