From 6634068ad018aba4eb715580c5bc6d592ff6cf40 Mon Sep 17 00:00:00 2001 From: wjj19950828 Date: Mon, 4 Apr 2022 20:48:36 +0800 Subject: [PATCH] Specify the pandas version --- requirements.txt | 4 +--- setup.py | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 9d7748a..b3f6d69 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,2 @@ -pre-commit -yapf == 0.28.0 -pandas +pandas == 1.3.0 treelib diff --git a/setup.py b/setup.py index 490c42c..eb19c18 100644 --- a/setup.py +++ b/setup.py @@ -6,6 +6,9 @@ long_description += "Usage: x2paddle --framework tensorflow --model tf_model.pb long_description += "GitHub: https://github.com/PaddlePaddle/X2Paddle\n" long_description += "Email: dltp-sz@baidu.com" +with open("requirements.txt") as fin: + REQUIRED_PACKAGES = fin.read() + setuptools.setup( name="x2paddle", version=x2paddle.__version__, @@ -16,6 +19,7 @@ setuptools.setup( long_description_content_type="text/plain", url="https://github.com/PaddlePaddle/x2paddle", packages=setuptools.find_packages(), + install_requires=REQUIRED_PACKAGES, classifiers=[ "Programming Language :: Python :: 3", "License :: OSI Approved :: Apache Software License", -- GitLab