From ad4bd04d81fc43a82f6a8a31c470bbded0461f41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Haitz=20Legarreta=20Gorro=C3=B1o?= Date: Mon, 16 Oct 2023 09:07:04 -0400 Subject: [PATCH] ENH: Remove unused `pkg_resources` module import Remove unused `pkg_resources` module import. Also, `pkg_resources` is deprecated in recent `setuptools` versions. Fixes: ``` * Getting build dependencies for wheel... :5: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html * Installing packages in isolated environment... (numpy>=1.20.0, wheel) * Building wheel... :5: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html ``` when trying to upload the package to TestPyPI using `$ twine upload --repository testpypi dist/*` Documentation: https://setuptools.pypa.io/en/latest/pkg_resources.html --- setup.py | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.py b/setup.py index b921d76b..06458719 100755 --- a/setup.py +++ b/setup.py @@ -2,7 +2,6 @@ import os from itertools import chain from setuptools import setup -from pkg_resources import resource_filename # url='http://pypi.python.org/pypi/whitematteranalysis/', # scripts=['bin/test1.py','bin/test2.py'],