remove reduce_requirements
@@ -17,23 +17,21 @@ if not cupy_builder.preflight_check(ctx):
sys.exit(1)
-requirements = {
# TODO(kmaehashi): migrate to pyproject.toml (see #4727, #4619)
- 'setup': [
+setup_requires = [
'Cython>=0.29.22,<3',
'fastrlock>=0.5',
- ],
-
- 'install': [
+]
+install_requires = [
'numpy>=1.17,<1.24', # see #4773
'fastrlock>=0.5',
- ],
+]
+extras_require = {
'all': [
'scipy>=1.4,<1.10', # see #4773
'Cython>=0.29.22,<3',
'optuna>=2.0',
],
-
'stylecheck': [
'autopep8==1.5.5',
'flake8==3.8.4',
@@ -44,8 +42,9 @@ requirements = {
# 4.2 <= pytest < 6.2 is slow collecting tests and times out on CI.
'pytest>=6.2',
],
+ # TODO(kmaehashi): Remove 'jenkins' requirements.
'jenkins': [
- '-r test',
+ 'pytest>=6.2',
'pytest-timeout',
'pytest-cov',
'coveralls',
@@ -53,33 +52,9 @@ requirements = {
'coverage<5', # Otherwise, Python must be built with sqlite
],
}
+tests_require = extras_require['test']
-def reduce_requirements(key):
- # Resolve recursive requirements notation (-r)
- reqs = requirements[key]
- resolved_reqs = []
- for req in reqs:
- if req.startswith('-r'):
- depend_key = req[2:].lstrip()
- reduce_requirements(depend_key)
- resolved_reqs += requirements[depend_key]
- else:
- resolved_reqs.append(req)
- requirements[key] = resolved_reqs
-
-
-for k in requirements.keys():
- reduce_requirements(k)
-
-
-extras_require = {k: v for k, v in requirements.items() if k != 'install'}
-
-
-setup_requires = requirements['setup']
-install_requires = requirements['install']
-tests_require = requirements['test']
-
# List of files that needs to be in the distribution (sdist/wheel).
# Notes:
# - Files only needed in sdist should be added to `MANIFEST.in`.
