Skip to content

Commit 044c00d

Browse files
committed
fix(deprecated): Remove deprecated setuptool usage
Replace deprecated setup tool usage. Signed-off-by: Matthias Diester <matthias.diester@de.ibm.com>
1 parent 93a0285 commit 044c00d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,17 @@
1414
# limitations under the License.
1515

1616
from setuptools import setup
17-
from setuptools.command.test import test as TestCommand
1817
import os
1918
import sys
20-
import pkg_resources
2119

2220
__version__ = '4.21.1'
2321
PACKAGE_NAME = 'ibm_code_engine_sdk'
2422
PACKAGE_DESC = 'Python SDK for IBM Cloud Code Engine'
2523

2624
with open('requirements.txt') as f:
27-
install_requires = [str(req) for req in pkg_resources.parse_requirements(f)]
25+
install_requires = [line.strip() for line in f if line.strip() and not line.startswith('#')]
2826
with open('requirements-dev.txt') as f:
29-
tests_require = [str(req) for req in pkg_resources.parse_requirements(f)]
27+
tests_require = [line.strip() for line in f if line.strip() and not line.startswith('#')]
3028

3129
if sys.argv[-1] == 'publish':
3230
# test server

0 commit comments

Comments
 (0)