diff --git a/requirements.txt b/requirements.txt index 9d7748adf401214b95099980aaaecb875e4f153e..b3f6d692d3d27a8bb7014c1ca8248fa270908bd0 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 490c42c95970cdd333de84e458eef910342076f1..eb19c180e290d2027047b8480281e92d0e86b273 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",