We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Drop version constraint of Sphinx
<!-- Please write a clear and concise description of the feature proposal. -->

## Motivation

Since sphinx v4.0.0, CIs failed to build the document. #2657 tries to resolve the failures by adding the version constraint. But, it would be great to remove the constraint by fixing the root problem.

## Possible solutions

- Remove the constraint by finding the root problem.
- Wait for forthcoming sphinx: other sphinx users reported the bug of sphinx 4.0.0 (see [milestones of sphinx 4.0.1](https://github.com/sphinx-doc/sphinx/milestone/106)). 



--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `setup.py`
Content:
```
1 import os
2 from typing import Dict
3 from typing import List
4 from typing import Optional
5 
6 import pkg_resources
7 from setuptools import find_packages
8 from setuptools import setup
9 
10 
11 def get_version() -> str:
12 
13     version_filepath = os.path.join(os.path.dirname(__file__), "optuna", "version.py")
14     with open(version_filepath) as f:
15         for line in f:
16             if line.startswith("__version__"):
17                 return line.strip().split()[-1][1:-1]
18     assert False
19 
20 
21 def get_long_description() -> str:
22 
23     readme_filepath = os.path.join(os.path.dirname(__file__), "README.md")
24     with open(readme_filepath) as f:
25         return f.read()
26 
27 
28 def get_install_requires() -> List[str]:
29 
30     requirements = [
31         "alembic",
32         "cliff",
33         "cmaes>=0.8.2",
34         "colorlog",
35         "numpy",
36         "packaging>=20.0",
37         "scipy!=1.4.0",
38         "sqlalchemy>=1.1.0",
39         "tqdm",
40         "PyYAML",  # Only used in `optuna/cli.py`.
41     ]
42     return requirements
43 
44 
45 def get_tests_require() -> List[str]:
46 
47     return get_extras_require()["testing"]
48 
49 
50 def get_extras_require() -> Dict[str, List[str]]:
51 
52     requirements = {
53         "checking": [
54             "black",
55             "hacking",
56             "isort",
57             "blackdoc",
58             "mypy",
59             "types-setuptools",
60             "types-redis",
61             "types-PyYAML",
62         ],
63         "codecov": ["codecov", "pytest-cov"],
64         "doctest": [
65             "cma",
66             "matplotlib>=3.0.0",
67             "pandas",
68             "plotly>=4.0.0",
69             "scikit-learn>=0.24.2",
70             "scikit-optimize",
71             "mlflow",
72         ],
73         "document": [
74             # TODO(nzw): Remove the version constraint after resolving the issue
75             # https://github.com/optuna/optuna/issues/2658.
76             "sphinx<4.0.0",
77             "sphinx_rtd_theme",
78             "sphinx-copybutton",
79             "sphinx-gallery",
80             "sphinx-plotly-directive",
81             "pillow",
82             "matplotlib",
83             "scikit-learn",
84             "plotly>=4.0.0",  # optuna/visualization.
85             "pandas",
86             "lightgbm",
87             "torch==1.10.0",
88             "torchvision==0.11.1",
89             "torchaudio==0.10.0",
90             "thop",
91         ],
92         "experimental": ["redis"],
93         "testing": [
94             "chainer>=5.0.0",
95             "cma",
96             "fakeredis",
97             "lightgbm",
98             "matplotlib>=3.0.0",
99             "mlflow",
100             "mpi4py",
101             "mxnet",
102             "pandas",
103             "plotly>=4.0.0",
104             "pytest",
105             "scikit-learn>=0.24.2",
106             "scikit-optimize",
107             "xgboost",
108             "tensorflow",
109             "tensorflow-datasets",
110             "pytorch-ignite",
111             "pytorch-lightning>=1.5.0",
112             "skorch",
113             "catalyst>=21.3",
114             "torch==1.10.0 ; sys_platform=='darwin'",
115             "torch==1.10.0+cpu ; sys_platform!='darwin'",
116             "torchvision==0.11.1 ; sys_platform=='darwin'",
117             "torchvision==0.11.1+cpu ; sys_platform!='darwin'",
118             "torchaudio==0.10.0",
119             # TODO(himkt): Remove `nltk` after solving
120             # https://github.com/allenai/allennlp/issues/5521
121             "nltk<3.6.6",
122             "allennlp>=2.2.0 ; python_version>'3.6'",
123             "botorch>=0.4.0 ; python_version>'3.6'",
124             "fastai",
125         ],
126         "tests": [
127             "fakeredis",
128             "pytest",
129         ],
130         "optional": [
131             "matplotlib>=3.0.0",  # optuna/visualization/matplotlib
132             "pandas",  # optuna/study.py
133             "plotly>=4.0.0",  # optuna/visualization.
134             "redis",  # optuna/storages/redis.py.
135             "scikit-learn>=0.24.2",
136             # optuna/visualization/param_importances.py.
137         ],
138         "integration": [
139             "chainer>=5.0.0",
140             "cma",
141             "lightgbm",
142             "mlflow",
143             "wandb",
144             "mpi4py",
145             "mxnet",
146             "pandas",
147             "scikit-learn>=0.24.2",
148             "scikit-optimize",
149             "xgboost",
150             "tensorflow",
151             "tensorflow-datasets",
152             "pytorch-ignite",
153             "pytorch-lightning>=1.5.0",
154             "skorch",
155             "catalyst>=21.3",
156             "torch==1.10.0 ; sys_platform=='darwin'",
157             "torch==1.10.0+cpu ; sys_platform!='darwin'",
158             "torchvision==0.11.1 ; sys_platform=='darwin'",
159             "torchvision==0.11.1+cpu ; sys_platform!='darwin'",
160             "torchaudio==0.10.0",
161             # TODO(himkt): Remove `nltk` after solving
162             # https://github.com/allenai/allennlp/issues/5521
163             "nltk<3.6.6",
164             "allennlp>=2.2.0 ; python_version>'3.6'",
165             "botorch>=0.4.0 ; python_version>'3.6'",
166             "fastai",
167         ],
168         "benchmark": [
169             "asv",
170             "virtualenv",
171         ],
172     }
173 
174     return requirements
175 
176 
177 def find_any_distribution(pkgs: List[str]) -> Optional[pkg_resources.Distribution]:
178 
179     for pkg in pkgs:
180         try:
181             return pkg_resources.get_distribution(pkg)
182         except pkg_resources.DistributionNotFound:
183             pass
184     return None
185 
186 
187 setup(
188     name="optuna",
189     version=get_version(),
190     description="A hyperparameter optimization framework",
191     long_description=get_long_description(),
192     long_description_content_type="text/markdown",
193     author="Takuya Akiba",
194     author_email="akiba@preferred.jp",
195     url="https://optuna.org/",
196     packages=find_packages(exclude=("tests", "tests.*", "benchmarks")),
197     package_data={
198         "optuna": [
199             "storages/_rdb/alembic.ini",
200             "storages/_rdb/alembic/*.*",
201             "storages/_rdb/alembic/versions/*.*",
202             "py.typed",
203         ]
204     },
205     python_requires=">=3.6",
206     install_requires=get_install_requires(),
207     tests_require=get_tests_require(),
208     extras_require=get_extras_require(),
209     entry_points={
210         "console_scripts": ["optuna = optuna.cli:main"],
211         "optuna.command": [
212             "create-study = optuna.cli:_CreateStudy",
213             "delete-study = optuna.cli:_DeleteStudy",
214             "study set-user-attr = optuna.cli:_StudySetUserAttribute",
215             "studies = optuna.cli:_Studies",
216             "trials = optuna.cli:_Trials",
217             "best-trial = optuna.cli:_BestTrial",
218             "best-trials = optuna.cli:_BestTrials",
219             "study optimize = optuna.cli:_StudyOptimize",
220             "storage upgrade = optuna.cli:_StorageUpgrade",
221             "ask = optuna.cli:_Ask",
222             "tell = optuna.cli:_Tell",
223         ],
224     },
225     classifiers=[
226         "Development Status :: 5 - Production/Stable",
227         "Intended Audience :: Science/Research",
228         "Intended Audience :: Developers",
229         "License :: OSI Approved :: MIT License",
230         "Programming Language :: Python :: 3",
231         "Programming Language :: Python :: 3.6",
232         "Programming Language :: Python :: 3.7",
233         "Programming Language :: Python :: 3.8",
234         "Programming Language :: Python :: 3.9",
235         "Programming Language :: Python :: 3 :: Only",
236         "Topic :: Scientific/Engineering",
237         "Topic :: Scientific/Engineering :: Mathematics",
238         "Topic :: Scientific/Engineering :: Artificial Intelligence",
239         "Topic :: Software Development",
240         "Topic :: Software Development :: Libraries",
241         "Topic :: Software Development :: Libraries :: Python Modules",
242     ],
243 )
244
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -71,9 +71,7 @@
             "mlflow",
         ],
         "document": [
-            # TODO(nzw): Remove the version constraint after resolving the issue
-            # https://github.com/optuna/optuna/issues/2658.
-            "sphinx<4.0.0",
+            "sphinx",
             "sphinx_rtd_theme",
             "sphinx-copybutton",
             "sphinx-gallery",

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -71,9 +71,7 @@\n             \"mlflow\",\n         ],\n         \"document\": [\n-            # TODO(nzw): Remove the version constraint after resolving the issue\n-            # https://github.com/optuna/optuna/issues/2658.\n-            \"sphinx<4.0.0\",\n+            \"sphinx\",\n             \"sphinx_rtd_theme\",\n             \"sphinx-copybutton\",\n             \"sphinx-gallery\",\n", "issue": "Drop version constraint of Sphinx\n<!-- Please write a clear and concise description of the feature proposal. -->\r\n\r\n## Motivation\r\n\r\nSince sphinx v4.0.0, CIs failed to build the document. #2657 tries to resolve the failures by adding the version constraint. But, it would be great to remove the constraint by fixing the root problem.\r\n\r\n## Possible solutions\r\n\r\n- Remove the constraint by finding the root problem.\r\n- Wait for forthcoming sphinx: other sphinx users reported the bug of sphinx 4.0.0 (see [milestones of sphinx 4.0.1](https://github.com/sphinx-doc/sphinx/milestone/106)). \r\n\r\n\n", "before_files": [{"content": "import os\nfrom typing import Dict\nfrom typing import List\nfrom typing import Optional\n\nimport pkg_resources\nfrom setuptools import find_packages\nfrom setuptools import setup\n\n\ndef get_version() -> str:\n\n    version_filepath = os.path.join(os.path.dirname(__file__), \"optuna\", \"version.py\")\n    with open(version_filepath) as f:\n        for line in f:\n            if line.startswith(\"__version__\"):\n                return line.strip().split()[-1][1:-1]\n    assert False\n\n\ndef get_long_description() -> str:\n\n    readme_filepath = os.path.join(os.path.dirname(__file__), \"README.md\")\n    with open(readme_filepath) as f:\n        return f.read()\n\n\ndef get_install_requires() -> List[str]:\n\n    requirements = [\n        \"alembic\",\n        \"cliff\",\n        \"cmaes>=0.8.2\",\n        \"colorlog\",\n        \"numpy\",\n        \"packaging>=20.0\",\n        \"scipy!=1.4.0\",\n        \"sqlalchemy>=1.1.0\",\n        \"tqdm\",\n        \"PyYAML\",  # Only used in `optuna/cli.py`.\n    ]\n    return requirements\n\n\ndef get_tests_require() -> List[str]:\n\n    return get_extras_require()[\"testing\"]\n\n\ndef get_extras_require() -> Dict[str, List[str]]:\n\n    requirements = {\n        \"checking\": [\n            \"black\",\n            \"hacking\",\n            \"isort\",\n            \"blackdoc\",\n            \"mypy\",\n            \"types-setuptools\",\n            \"types-redis\",\n            \"types-PyYAML\",\n        ],\n        \"codecov\": [\"codecov\", \"pytest-cov\"],\n        \"doctest\": [\n            \"cma\",\n            \"matplotlib>=3.0.0\",\n            \"pandas\",\n            \"plotly>=4.0.0\",\n            \"scikit-learn>=0.24.2\",\n            \"scikit-optimize\",\n            \"mlflow\",\n        ],\n        \"document\": [\n            # TODO(nzw): Remove the version constraint after resolving the issue\n            # https://github.com/optuna/optuna/issues/2658.\n            \"sphinx<4.0.0\",\n            \"sphinx_rtd_theme\",\n            \"sphinx-copybutton\",\n            \"sphinx-gallery\",\n            \"sphinx-plotly-directive\",\n            \"pillow\",\n            \"matplotlib\",\n            \"scikit-learn\",\n            \"plotly>=4.0.0\",  # optuna/visualization.\n            \"pandas\",\n            \"lightgbm\",\n            \"torch==1.10.0\",\n            \"torchvision==0.11.1\",\n            \"torchaudio==0.10.0\",\n            \"thop\",\n        ],\n        \"experimental\": [\"redis\"],\n        \"testing\": [\n            \"chainer>=5.0.0\",\n            \"cma\",\n            \"fakeredis\",\n            \"lightgbm\",\n            \"matplotlib>=3.0.0\",\n            \"mlflow\",\n            \"mpi4py\",\n            \"mxnet\",\n            \"pandas\",\n            \"plotly>=4.0.0\",\n            \"pytest\",\n            \"scikit-learn>=0.24.2\",\n            \"scikit-optimize\",\n            \"xgboost\",\n            \"tensorflow\",\n            \"tensorflow-datasets\",\n            \"pytorch-ignite\",\n            \"pytorch-lightning>=1.5.0\",\n            \"skorch\",\n            \"catalyst>=21.3\",\n            \"torch==1.10.0 ; sys_platform=='darwin'\",\n            \"torch==1.10.0+cpu ; sys_platform!='darwin'\",\n            \"torchvision==0.11.1 ; sys_platform=='darwin'\",\n            \"torchvision==0.11.1+cpu ; sys_platform!='darwin'\",\n            \"torchaudio==0.10.0\",\n            # TODO(himkt): Remove `nltk` after solving\n            # https://github.com/allenai/allennlp/issues/5521\n            \"nltk<3.6.6\",\n            \"allennlp>=2.2.0 ; python_version>'3.6'\",\n            \"botorch>=0.4.0 ; python_version>'3.6'\",\n            \"fastai\",\n        ],\n        \"tests\": [\n            \"fakeredis\",\n            \"pytest\",\n        ],\n        \"optional\": [\n            \"matplotlib>=3.0.0\",  # optuna/visualization/matplotlib\n            \"pandas\",  # optuna/study.py\n            \"plotly>=4.0.0\",  # optuna/visualization.\n            \"redis\",  # optuna/storages/redis.py.\n            \"scikit-learn>=0.24.2\",\n            # optuna/visualization/param_importances.py.\n        ],\n        \"integration\": [\n            \"chainer>=5.0.0\",\n            \"cma\",\n            \"lightgbm\",\n            \"mlflow\",\n            \"wandb\",\n            \"mpi4py\",\n            \"mxnet\",\n            \"pandas\",\n            \"scikit-learn>=0.24.2\",\n            \"scikit-optimize\",\n            \"xgboost\",\n            \"tensorflow\",\n            \"tensorflow-datasets\",\n            \"pytorch-ignite\",\n            \"pytorch-lightning>=1.5.0\",\n            \"skorch\",\n            \"catalyst>=21.3\",\n            \"torch==1.10.0 ; sys_platform=='darwin'\",\n            \"torch==1.10.0+cpu ; sys_platform!='darwin'\",\n            \"torchvision==0.11.1 ; sys_platform=='darwin'\",\n            \"torchvision==0.11.1+cpu ; sys_platform!='darwin'\",\n            \"torchaudio==0.10.0\",\n            # TODO(himkt): Remove `nltk` after solving\n            # https://github.com/allenai/allennlp/issues/5521\n            \"nltk<3.6.6\",\n            \"allennlp>=2.2.0 ; python_version>'3.6'\",\n            \"botorch>=0.4.0 ; python_version>'3.6'\",\n            \"fastai\",\n        ],\n        \"benchmark\": [\n            \"asv\",\n            \"virtualenv\",\n        ],\n    }\n\n    return requirements\n\n\ndef find_any_distribution(pkgs: List[str]) -> Optional[pkg_resources.Distribution]:\n\n    for pkg in pkgs:\n        try:\n            return pkg_resources.get_distribution(pkg)\n        except pkg_resources.DistributionNotFound:\n            pass\n    return None\n\n\nsetup(\n    name=\"optuna\",\n    version=get_version(),\n    description=\"A hyperparameter optimization framework\",\n    long_description=get_long_description(),\n    long_description_content_type=\"text/markdown\",\n    author=\"Takuya Akiba\",\n    author_email=\"akiba@preferred.jp\",\n    url=\"https://optuna.org/\",\n    packages=find_packages(exclude=(\"tests\", \"tests.*\", \"benchmarks\")),\n    package_data={\n        \"optuna\": [\n            \"storages/_rdb/alembic.ini\",\n            \"storages/_rdb/alembic/*.*\",\n            \"storages/_rdb/alembic/versions/*.*\",\n            \"py.typed\",\n        ]\n    },\n    python_requires=\">=3.6\",\n    install_requires=get_install_requires(),\n    tests_require=get_tests_require(),\n    extras_require=get_extras_require(),\n    entry_points={\n        \"console_scripts\": [\"optuna = optuna.cli:main\"],\n        \"optuna.command\": [\n            \"create-study = optuna.cli:_CreateStudy\",\n            \"delete-study = optuna.cli:_DeleteStudy\",\n            \"study set-user-attr = optuna.cli:_StudySetUserAttribute\",\n            \"studies = optuna.cli:_Studies\",\n            \"trials = optuna.cli:_Trials\",\n            \"best-trial = optuna.cli:_BestTrial\",\n            \"best-trials = optuna.cli:_BestTrials\",\n            \"study optimize = optuna.cli:_StudyOptimize\",\n            \"storage upgrade = optuna.cli:_StorageUpgrade\",\n            \"ask = optuna.cli:_Ask\",\n            \"tell = optuna.cli:_Tell\",\n        ],\n    },\n    classifiers=[\n        \"Development Status :: 5 - Production/Stable\",\n        \"Intended Audience :: Science/Research\",\n        \"Intended Audience :: Developers\",\n        \"License :: OSI Approved :: MIT License\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.6\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n        \"Programming Language :: Python :: 3 :: Only\",\n        \"Topic :: Scientific/Engineering\",\n        \"Topic :: Scientific/Engineering :: Mathematics\",\n        \"Topic :: Scientific/Engineering :: Artificial Intelligence\",\n        \"Topic :: Software Development\",\n        \"Topic :: Software Development :: Libraries\",\n        \"Topic :: Software Development :: Libraries :: Python Modules\",\n    ],\n)\n", "path": "setup.py"}], "after_files": [{"content": "import os\nfrom typing import Dict\nfrom typing import List\nfrom typing import Optional\n\nimport pkg_resources\nfrom setuptools import find_packages\nfrom setuptools import setup\n\n\ndef get_version() -> str:\n\n    version_filepath = os.path.join(os.path.dirname(__file__), \"optuna\", \"version.py\")\n    with open(version_filepath) as f:\n        for line in f:\n            if line.startswith(\"__version__\"):\n                return line.strip().split()[-1][1:-1]\n    assert False\n\n\ndef get_long_description() -> str:\n\n    readme_filepath = os.path.join(os.path.dirname(__file__), \"README.md\")\n    with open(readme_filepath) as f:\n        return f.read()\n\n\ndef get_install_requires() -> List[str]:\n\n    requirements = [\n        \"alembic\",\n        \"cliff\",\n        \"cmaes>=0.8.2\",\n        \"colorlog\",\n        \"numpy\",\n        \"packaging>=20.0\",\n        \"scipy!=1.4.0\",\n        \"sqlalchemy>=1.1.0\",\n        \"tqdm\",\n        \"PyYAML\",  # Only used in `optuna/cli.py`.\n    ]\n    return requirements\n\n\ndef get_tests_require() -> List[str]:\n\n    return get_extras_require()[\"testing\"]\n\n\ndef get_extras_require() -> Dict[str, List[str]]:\n\n    requirements = {\n        \"checking\": [\n            \"black\",\n            \"hacking\",\n            \"isort\",\n            \"blackdoc\",\n            \"mypy\",\n            \"types-setuptools\",\n            \"types-redis\",\n            \"types-PyYAML\",\n        ],\n        \"codecov\": [\"codecov\", \"pytest-cov\"],\n        \"doctest\": [\n            \"cma\",\n            \"matplotlib>=3.0.0\",\n            \"pandas\",\n            \"plotly>=4.0.0\",\n            \"scikit-learn>=0.24.2\",\n            \"scikit-optimize\",\n            \"mlflow\",\n        ],\n        \"document\": [\n            \"sphinx\",\n            \"sphinx_rtd_theme\",\n            \"sphinx-copybutton\",\n            \"sphinx-gallery\",\n            \"sphinx-plotly-directive\",\n            \"pillow\",\n            \"matplotlib\",\n            \"scikit-learn\",\n            \"plotly>=4.0.0\",  # optuna/visualization.\n            \"pandas\",\n            \"lightgbm\",\n            \"torch==1.10.0\",\n            \"torchvision==0.11.1\",\n            \"torchaudio==0.10.0\",\n            \"thop\",\n        ],\n        \"experimental\": [\"redis\"],\n        \"testing\": [\n            \"chainer>=5.0.0\",\n            \"cma\",\n            \"fakeredis\",\n            \"lightgbm\",\n            \"matplotlib>=3.0.0\",\n            \"mlflow\",\n            \"mpi4py\",\n            \"mxnet\",\n            \"pandas\",\n            \"plotly>=4.0.0\",\n            \"pytest\",\n            \"scikit-learn>=0.24.2\",\n            \"scikit-optimize\",\n            \"xgboost\",\n            \"tensorflow\",\n            \"tensorflow-datasets\",\n            \"pytorch-ignite\",\n            \"pytorch-lightning>=1.5.0\",\n            \"skorch\",\n            \"catalyst>=21.3\",\n            \"torch==1.10.0 ; sys_platform=='darwin'\",\n            \"torch==1.10.0+cpu ; sys_platform!='darwin'\",\n            \"torchvision==0.11.1 ; sys_platform=='darwin'\",\n            \"torchvision==0.11.1+cpu ; sys_platform!='darwin'\",\n            \"torchaudio==0.10.0\",\n            # TODO(himkt): Remove `nltk` after solving\n            # https://github.com/allenai/allennlp/issues/5521\n            \"nltk<3.6.6\",\n            \"allennlp>=2.2.0 ; python_version>'3.6'\",\n            \"botorch>=0.4.0 ; python_version>'3.6'\",\n            \"fastai\",\n        ],\n        \"tests\": [\n            \"fakeredis\",\n            \"pytest\",\n        ],\n        \"optional\": [\n            \"matplotlib>=3.0.0\",  # optuna/visualization/matplotlib\n            \"pandas\",  # optuna/study.py\n            \"plotly>=4.0.0\",  # optuna/visualization.\n            \"redis\",  # optuna/storages/redis.py.\n            \"scikit-learn>=0.24.2\",\n            # optuna/visualization/param_importances.py.\n        ],\n        \"integration\": [\n            \"chainer>=5.0.0\",\n            \"cma\",\n            \"lightgbm\",\n            \"mlflow\",\n            \"wandb\",\n            \"mpi4py\",\n            \"mxnet\",\n            \"pandas\",\n            \"scikit-learn>=0.24.2\",\n            \"scikit-optimize\",\n            \"xgboost\",\n            \"tensorflow\",\n            \"tensorflow-datasets\",\n            \"pytorch-ignite\",\n            \"pytorch-lightning>=1.5.0\",\n            \"skorch\",\n            \"catalyst>=21.3\",\n            \"torch==1.10.0 ; sys_platform=='darwin'\",\n            \"torch==1.10.0+cpu ; sys_platform!='darwin'\",\n            \"torchvision==0.11.1 ; sys_platform=='darwin'\",\n            \"torchvision==0.11.1+cpu ; sys_platform!='darwin'\",\n            \"torchaudio==0.10.0\",\n            # TODO(himkt): Remove `nltk` after solving\n            # https://github.com/allenai/allennlp/issues/5521\n            \"nltk<3.6.6\",\n            \"allennlp>=2.2.0 ; python_version>'3.6'\",\n            \"botorch>=0.4.0 ; python_version>'3.6'\",\n            \"fastai\",\n        ],\n        \"benchmark\": [\n            \"asv\",\n            \"virtualenv\",\n        ],\n    }\n\n    return requirements\n\n\ndef find_any_distribution(pkgs: List[str]) -> Optional[pkg_resources.Distribution]:\n\n    for pkg in pkgs:\n        try:\n            return pkg_resources.get_distribution(pkg)\n        except pkg_resources.DistributionNotFound:\n            pass\n    return None\n\n\nsetup(\n    name=\"optuna\",\n    version=get_version(),\n    description=\"A hyperparameter optimization framework\",\n    long_description=get_long_description(),\n    long_description_content_type=\"text/markdown\",\n    author=\"Takuya Akiba\",\n    author_email=\"akiba@preferred.jp\",\n    url=\"https://optuna.org/\",\n    packages=find_packages(exclude=(\"tests\", \"tests.*\", \"benchmarks\")),\n    package_data={\n        \"optuna\": [\n            \"storages/_rdb/alembic.ini\",\n            \"storages/_rdb/alembic/*.*\",\n            \"storages/_rdb/alembic/versions/*.*\",\n            \"py.typed\",\n        ]\n    },\n    python_requires=\">=3.6\",\n    install_requires=get_install_requires(),\n    tests_require=get_tests_require(),\n    extras_require=get_extras_require(),\n    entry_points={\n        \"console_scripts\": [\"optuna = optuna.cli:main\"],\n        \"optuna.command\": [\n            \"create-study = optuna.cli:_CreateStudy\",\n            \"delete-study = optuna.cli:_DeleteStudy\",\n            \"study set-user-attr = optuna.cli:_StudySetUserAttribute\",\n            \"studies = optuna.cli:_Studies\",\n            \"trials = optuna.cli:_Trials\",\n            \"best-trial = optuna.cli:_BestTrial\",\n            \"best-trials = optuna.cli:_BestTrials\",\n            \"study optimize = optuna.cli:_StudyOptimize\",\n            \"storage upgrade = optuna.cli:_StorageUpgrade\",\n            \"ask = optuna.cli:_Ask\",\n            \"tell = optuna.cli:_Tell\",\n        ],\n    },\n    classifiers=[\n        \"Development Status :: 5 - Production/Stable\",\n        \"Intended Audience :: Science/Research\",\n        \"Intended Audience :: Developers\",\n        \"License :: OSI Approved :: MIT License\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.6\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n        \"Programming Language :: Python :: 3 :: Only\",\n        \"Topic :: Scientific/Engineering\",\n        \"Topic :: Scientific/Engineering :: Mathematics\",\n        \"Topic :: Scientific/Engineering :: Artificial Intelligence\",\n        \"Topic :: Software Development\",\n        \"Topic :: Software Development :: Libraries\",\n        \"Topic :: Software Development :: Libraries :: Python Modules\",\n    ],\n)\n", "path": "setup.py"}]}