You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@livy.apache.org by "Zhongwei Zhu (Jira)" <ji...@apache.org> on 2021/04/16 17:10:00 UTC
[jira] [Created] (LIVY-853) livy-python-api module build failed due
to tests_require in setup.py
Zhongwei Zhu created LIVY-853:
---------------------------------
Summary: livy-python-api module build failed due to tests_require in setup.py
Key: LIVY-853
URL: https://issues.apache.org/jira/browse/LIVY-853
Project: Livy
Issue Type: Improvement
Components: Build
Affects Versions: 0.7.0
Reporter: Zhongwei Zhu
Build failed due to tests_require in setup.py even for no related change. Stacktrace as below:
Couldn't find index page for 'pytest-runner' (maybe misspelled?)
No local packages or working download links found for pytest-runner
Traceback (most recent call last):
File "setup.py", line 58, in <module>
tests_require=['pytest']
File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 318, in __init__
self.fetch_build_eggs(attrs['setup_requires'])
File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 375, in fetch_build_eggs
replace_conflicting=True,
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 851, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1123, in best_match
return self.obtain(req, installer)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1135, in obtain
return installer(requirement)
File "/usr/local/lib/python2.7/dist-packages/setuptools/dist.py", line 443, in fetch_build_egg
return cmd.easy_install(req)
File "/usr/local/lib/python2.7/dist-packages/setuptools/command/easy_install.py", line 667, in easy_install
raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')
Link is [https://travis-ci.com/github/apache/incubator-livy/jobs/498541463]
Based on [https://pypi.org/project/pytest-runner/] , ‘setup_requires’ and ‘tests_require’ are deprecated, and should be removed.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)