From 6ba640832db25599912829d7f90a399feef20828 Mon Sep 17 00:00:00 2001 From: shenxiaohai Date: Mon, 13 May 2024 11:44:23 +0800 Subject: [PATCH] ci: declare requirement directly in setup.py --- .github/workflows/python-publish.yml | 1 + setup.py | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 2b258c8..f2433c6 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -26,6 +26,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip + pip install -r requirements.txt pip install build - name: Build package run: python -m build diff --git a/setup.py b/setup.py index 671cb56..e5894c4 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,17 @@ def get_version(): url="https://github.com/veraposeidon/labelme2Datasets", author='veraposeidon', packages=find_packages(include=['labelme2datasets', 'labelme2datasets.*']), - install_requires=get_install_requires(), + install_requires=[ + 'beautifulsoup4~=4.12.3', + 'imgviz~=1.7.5', + 'labelme~=5.4.1', + 'progressbar~=2.5', + 'scikit-learn~=1.4.2', + 'xmltodict~=0.13.0', + 'setuptools~=69.5.1', + 'pillow~=10.3.0', + 'lxml~=5.2.1' + ], entry_points={ 'console_scripts': [ 'labelme_json2dataset = labelme2datasets.labelme_json2dataset:main',