We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Pyvista tests breaking
Looks like latest pyvista 0.27.2 changed some internal APIs:

```python
    def pyvista_render_window():
        """
        Allow to download and create a more complex example easily
        """
        from pyvista import examples
        sphere = pv.Sphere() #test actor
        globe = examples.load_globe() #test texture
        head = examples.download_head() #test volume
        uniform = examples.load_uniform() #test structured grid
    
        scalars=sphere.points[:, 2]
>       sphere._add_point_array(scalars, 'test', set_active=True) #allow to test scalars
E       AttributeError: 'PolyData' object has no attribute '_add_point_array'
```

Cc @xavArtley 

--- 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 #!/usr/bin/env python
2 
3 import os
4 import shutil
5 import sys
6 import json
7 
8 from setuptools import setup, find_packages
9 from setuptools.command.develop import develop
10 from setuptools.command.install import install
11 from setuptools.command.sdist import sdist
12 
13 import pyct.build
14 
15 
16 def get_setup_version(reponame):
17     """
18     Helper to get the current version from either git describe or the
19     .version file (if available).
20     """
21     basepath = os.path.split(__file__)[0]
22     version_file_path = os.path.join(basepath, reponame, '.version')
23     try:
24         from param import version
25     except Exception:
26         version = None
27     if version is not None:
28         return version.Version.setup_version(basepath, reponame, archive_commit="$Format:%h$")
29     else:
30         print("WARNING: param>=1.6.0 unavailable. If you are installing a package, "
31               "this warning can safely be ignored. If you are creating a package or "
32               "otherwise operating in a git repository, you should install param>=1.6.0.")
33         return json.load(open(version_file_path, 'r'))['version_string']
34 
35 
36 def _build_paneljs():
37     from bokeh.ext import build
38     from panel.compiler import bundle_resources
39     print("Building custom models:")
40     panel_dir = os.path.join(os.path.dirname(__file__), "panel")
41     build(panel_dir)
42     print("Bundling custom model resources:")
43     bundle_resources()
44 
45 
46 class CustomDevelopCommand(develop):
47     """Custom installation for development mode."""
48 
49     def run(self):
50         _build_paneljs()
51         develop.run(self)
52 
53 
54 class CustomInstallCommand(install):
55     """Custom installation for install mode."""
56 
57     def run(self):
58         _build_paneljs()
59         install.run(self)
60 
61 
62 class CustomSdistCommand(sdist):
63     """Custom installation for sdist mode."""
64 
65     def run(self):
66         _build_paneljs()
67         sdist.run(self)
68 
69 
70 _COMMANDS = {
71     'develop': CustomDevelopCommand,
72     'install': CustomInstallCommand,
73     'sdist':   CustomSdistCommand,
74 }
75 
76 try:
77     from wheel.bdist_wheel import bdist_wheel
78 
79     class CustomBdistWheelCommand(bdist_wheel):
80         """Custom bdist_wheel command to force cancelling qiskit-terra wheel
81         creation."""
82 
83         def run(self):
84             """Do nothing so the command intentionally fails."""
85             _build_paneljs()
86             bdist_wheel.run(self)
87 
88     _COMMANDS['bdist_wheel'] = CustomBdistWheelCommand
89 except Exception:
90     pass
91 
92 ########## dependencies ##########
93 
94 install_requires = [
95     'bokeh >=2.2.2',
96     'param >=1.9.3',
97     'pyviz_comms >=0.7.4',
98     'markdown',
99     'requests',
100     'tqdm',
101     'pyct >=0.4.4'
102 ]
103 
104 _recommended = [
105     'notebook >=5.4',
106     'holoviews >=1.13.2',
107     'matplotlib',
108     'pillow',
109     'plotly'
110 ]
111 
112 _tests = [
113     'flake8',
114     'parameterized',
115     'pytest',
116     'scipy',
117     'nbsmoke >=0.2.0',
118     'pytest-cov',
119     'codecov',
120     'folium',
121     'ipympl',
122     'twine',
123     'pandas',
124     'ipython >=7.0'
125 ]
126 
127 extras_require = {
128     'examples': [
129         'hvplot',
130         'plotly',
131         'altair',
132         'streamz',
133         'vega_datasets',
134         'vtk',
135         'scikit-learn',
136         'datashader',
137         'jupyter_bokeh',
138         'django',
139         'channels',
140         'pyvista <0.27', # temporary fix for tests 
141         'ipywidgets',
142         'ipywidgets_bokeh',
143         'ipyvolume',
144         'ipyleaflet'
145     ],
146     'tests': _tests,
147     'recommended': _recommended,
148     'doc': _recommended + [
149         'nbsite >=0.6.1',
150         'nbconvert <6.0',
151         'sphinx_holoviz_theme',
152         'selenium',
153         'phantomjs',
154         'graphviz',
155         'lxml',
156     ]
157 }
158 
159 extras_require['all'] = sorted(set(sum(extras_require.values(), [])))
160 
161 # Superset of what's in pyproject.toml (includes non-python
162 # dependencies).  Also, pyproject.toml isn't supported by all tools
163 # anyway (e.g. older versions of pip, or conda - which also supports
164 # non-python dependencies). Note that setup_requires isn't used
165 # because it doesn't work well with pip.
166 extras_require['build'] = [
167     'param >=1.9.2',
168     'pyct >=0.4.4',
169     'setuptools >=30.3.0',
170     'bokeh >=2.0.0',
171     'pyviz_comms >=0.6.0',
172     # non-python dependency
173     'nodejs >=10.13.0',
174 ]
175 
176 setup_args = dict(
177     name='panel',
178     version=get_setup_version("panel"),
179     description='A high level app and dashboarding solution for Python.',
180     long_description=open('README.md').read() if os.path.isfile('README.md') else 'Consult README.md',
181     long_description_content_type="text/markdown",
182     author="HoloViz",
183     author_email="developers@holoviz.org",
184     maintainer="HoloViz",
185     maintainer_email="developers@holoviz.org",
186     platforms=['Windows', 'Mac OS X', 'Linux'],
187     license='BSD',
188     url='http://panel.holoviz.org',
189     cmdclass=_COMMANDS,
190     packages=find_packages(),
191     include_package_data=True,
192     classifiers=[
193         "License :: OSI Approved :: BSD License",
194         "Development Status :: 5 - Production/Stable",
195         "Programming Language :: Python :: 3",
196         "Programming Language :: Python :: 3.6",
197         "Programming Language :: Python :: 3.7",
198         "Programming Language :: Python :: 3.8",
199         "Operating System :: OS Independent",
200         "Intended Audience :: Developers",
201         "Intended Audience :: Science/Research",
202         "Intended Audience :: Financial and Insurance Industry",
203         "Intended Audience :: Healthcare Industry",
204         "Intended Audience :: Information Technology",
205         "Intended Audience :: Legal Industry",
206         "Intended Audience :: Other Audience",
207         "Intended Audience :: Science/Research",
208         "Natural Language :: English",
209         "Topic :: Scientific/Engineering",
210         "Topic :: Scientific/Engineering :: Visualization",
211         "Topic :: Scientific/Engineering :: Information Analysis",
212         "Topic :: Office/Business",
213         "Topic :: Office/Business :: Financial",
214         "Topic :: Software Development :: Libraries"],
215     python_requires=">=3.6",
216     entry_points={
217         'console_scripts': [
218             'panel = panel.command:main'
219         ]
220     },
221     install_requires=install_requires,
222     extras_require=extras_require,
223     tests_require=extras_require['tests']
224 )
225 
226 if __name__ == "__main__":
227     example_path = os.path.join(os.path.dirname(os.path.abspath(__file__)),
228                                 'panel', 'examples')
229 
230     if 'develop' not in sys.argv and 'egg_info' not in sys.argv:
231         pyct.build.examples(example_path, __file__, force=True)
232 
233     version = setup_args['version']
234     if 'post' not in version:
235         with open('./panel/package.json') as f:
236             package_json = json.load(f)
237         js_version = package_json['version']
238         if version != 'None' and version.split('+')[0] != js_version.replace('-', ''):
239             raise ValueError("panel.js version (%s) does not match "
240                              "panel version (%s). Cannot build release."
241                              % (js_version, version))
242 
243     setup(**setup_args)
244 
245     if os.path.isdir(example_path):
246         shutil.rmtree(example_path)
247
```
--- 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
@@ -137,7 +137,7 @@
         'jupyter_bokeh',
         'django',
         'channels',
-        'pyvista <0.27', # temporary fix for tests 
+        'pyvista',
         'ipywidgets',
         'ipywidgets_bokeh',
         'ipyvolume',

{"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -137,7 +137,7 @@\n         'jupyter_bokeh',\n         'django',\n         'channels',\n-        'pyvista <0.27', # temporary fix for tests \n+        'pyvista',\n         'ipywidgets',\n         'ipywidgets_bokeh',\n         'ipyvolume',\n", "issue": "Pyvista tests breaking\nLooks like latest pyvista 0.27.2 changed some internal APIs:\r\n\r\n```python\r\n    def pyvista_render_window():\r\n        \"\"\"\r\n        Allow to download and create a more complex example easily\r\n        \"\"\"\r\n        from pyvista import examples\r\n        sphere = pv.Sphere() #test actor\r\n        globe = examples.load_globe() #test texture\r\n        head = examples.download_head() #test volume\r\n        uniform = examples.load_uniform() #test structured grid\r\n    \r\n        scalars=sphere.points[:, 2]\r\n>       sphere._add_point_array(scalars, 'test', set_active=True) #allow to test scalars\r\nE       AttributeError: 'PolyData' object has no attribute '_add_point_array'\r\n```\r\n\r\nCc @xavArtley \n", "before_files": [{"content": "#!/usr/bin/env python\n\nimport os\nimport shutil\nimport sys\nimport json\n\nfrom setuptools import setup, find_packages\nfrom setuptools.command.develop import develop\nfrom setuptools.command.install import install\nfrom setuptools.command.sdist import sdist\n\nimport pyct.build\n\n\ndef get_setup_version(reponame):\n    \"\"\"\n    Helper to get the current version from either git describe or the\n    .version file (if available).\n    \"\"\"\n    basepath = os.path.split(__file__)[0]\n    version_file_path = os.path.join(basepath, reponame, '.version')\n    try:\n        from param import version\n    except Exception:\n        version = None\n    if version is not None:\n        return version.Version.setup_version(basepath, reponame, archive_commit=\"$Format:%h$\")\n    else:\n        print(\"WARNING: param>=1.6.0 unavailable. If you are installing a package, \"\n              \"this warning can safely be ignored. If you are creating a package or \"\n              \"otherwise operating in a git repository, you should install param>=1.6.0.\")\n        return json.load(open(version_file_path, 'r'))['version_string']\n\n\ndef _build_paneljs():\n    from bokeh.ext import build\n    from panel.compiler import bundle_resources\n    print(\"Building custom models:\")\n    panel_dir = os.path.join(os.path.dirname(__file__), \"panel\")\n    build(panel_dir)\n    print(\"Bundling custom model resources:\")\n    bundle_resources()\n\n\nclass CustomDevelopCommand(develop):\n    \"\"\"Custom installation for development mode.\"\"\"\n\n    def run(self):\n        _build_paneljs()\n        develop.run(self)\n\n\nclass CustomInstallCommand(install):\n    \"\"\"Custom installation for install mode.\"\"\"\n\n    def run(self):\n        _build_paneljs()\n        install.run(self)\n\n\nclass CustomSdistCommand(sdist):\n    \"\"\"Custom installation for sdist mode.\"\"\"\n\n    def run(self):\n        _build_paneljs()\n        sdist.run(self)\n\n\n_COMMANDS = {\n    'develop': CustomDevelopCommand,\n    'install': CustomInstallCommand,\n    'sdist':   CustomSdistCommand,\n}\n\ntry:\n    from wheel.bdist_wheel import bdist_wheel\n\n    class CustomBdistWheelCommand(bdist_wheel):\n        \"\"\"Custom bdist_wheel command to force cancelling qiskit-terra wheel\n        creation.\"\"\"\n\n        def run(self):\n            \"\"\"Do nothing so the command intentionally fails.\"\"\"\n            _build_paneljs()\n            bdist_wheel.run(self)\n\n    _COMMANDS['bdist_wheel'] = CustomBdistWheelCommand\nexcept Exception:\n    pass\n\n########## dependencies ##########\n\ninstall_requires = [\n    'bokeh >=2.2.2',\n    'param >=1.9.3',\n    'pyviz_comms >=0.7.4',\n    'markdown',\n    'requests',\n    'tqdm',\n    'pyct >=0.4.4'\n]\n\n_recommended = [\n    'notebook >=5.4',\n    'holoviews >=1.13.2',\n    'matplotlib',\n    'pillow',\n    'plotly'\n]\n\n_tests = [\n    'flake8',\n    'parameterized',\n    'pytest',\n    'scipy',\n    'nbsmoke >=0.2.0',\n    'pytest-cov',\n    'codecov',\n    'folium',\n    'ipympl',\n    'twine',\n    'pandas',\n    'ipython >=7.0'\n]\n\nextras_require = {\n    'examples': [\n        'hvplot',\n        'plotly',\n        'altair',\n        'streamz',\n        'vega_datasets',\n        'vtk',\n        'scikit-learn',\n        'datashader',\n        'jupyter_bokeh',\n        'django',\n        'channels',\n        'pyvista <0.27', # temporary fix for tests \n        'ipywidgets',\n        'ipywidgets_bokeh',\n        'ipyvolume',\n        'ipyleaflet'\n    ],\n    'tests': _tests,\n    'recommended': _recommended,\n    'doc': _recommended + [\n        'nbsite >=0.6.1',\n        'nbconvert <6.0',\n        'sphinx_holoviz_theme',\n        'selenium',\n        'phantomjs',\n        'graphviz',\n        'lxml',\n    ]\n}\n\nextras_require['all'] = sorted(set(sum(extras_require.values(), [])))\n\n# Superset of what's in pyproject.toml (includes non-python\n# dependencies).  Also, pyproject.toml isn't supported by all tools\n# anyway (e.g. older versions of pip, or conda - which also supports\n# non-python dependencies). Note that setup_requires isn't used\n# because it doesn't work well with pip.\nextras_require['build'] = [\n    'param >=1.9.2',\n    'pyct >=0.4.4',\n    'setuptools >=30.3.0',\n    'bokeh >=2.0.0',\n    'pyviz_comms >=0.6.0',\n    # non-python dependency\n    'nodejs >=10.13.0',\n]\n\nsetup_args = dict(\n    name='panel',\n    version=get_setup_version(\"panel\"),\n    description='A high level app and dashboarding solution for Python.',\n    long_description=open('README.md').read() if os.path.isfile('README.md') else 'Consult README.md',\n    long_description_content_type=\"text/markdown\",\n    author=\"HoloViz\",\n    author_email=\"developers@holoviz.org\",\n    maintainer=\"HoloViz\",\n    maintainer_email=\"developers@holoviz.org\",\n    platforms=['Windows', 'Mac OS X', 'Linux'],\n    license='BSD',\n    url='http://panel.holoviz.org',\n    cmdclass=_COMMANDS,\n    packages=find_packages(),\n    include_package_data=True,\n    classifiers=[\n        \"License :: OSI Approved :: BSD License\",\n        \"Development Status :: 5 - Production/Stable\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.6\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Operating System :: OS Independent\",\n        \"Intended Audience :: Developers\",\n        \"Intended Audience :: Science/Research\",\n        \"Intended Audience :: Financial and Insurance Industry\",\n        \"Intended Audience :: Healthcare Industry\",\n        \"Intended Audience :: Information Technology\",\n        \"Intended Audience :: Legal Industry\",\n        \"Intended Audience :: Other Audience\",\n        \"Intended Audience :: Science/Research\",\n        \"Natural Language :: English\",\n        \"Topic :: Scientific/Engineering\",\n        \"Topic :: Scientific/Engineering :: Visualization\",\n        \"Topic :: Scientific/Engineering :: Information Analysis\",\n        \"Topic :: Office/Business\",\n        \"Topic :: Office/Business :: Financial\",\n        \"Topic :: Software Development :: Libraries\"],\n    python_requires=\">=3.6\",\n    entry_points={\n        'console_scripts': [\n            'panel = panel.command:main'\n        ]\n    },\n    install_requires=install_requires,\n    extras_require=extras_require,\n    tests_require=extras_require['tests']\n)\n\nif __name__ == \"__main__\":\n    example_path = os.path.join(os.path.dirname(os.path.abspath(__file__)),\n                                'panel', 'examples')\n\n    if 'develop' not in sys.argv and 'egg_info' not in sys.argv:\n        pyct.build.examples(example_path, __file__, force=True)\n\n    version = setup_args['version']\n    if 'post' not in version:\n        with open('./panel/package.json') as f:\n            package_json = json.load(f)\n        js_version = package_json['version']\n        if version != 'None' and version.split('+')[0] != js_version.replace('-', ''):\n            raise ValueError(\"panel.js version (%s) does not match \"\n                             \"panel version (%s). Cannot build release.\"\n                             % (js_version, version))\n\n    setup(**setup_args)\n\n    if os.path.isdir(example_path):\n        shutil.rmtree(example_path)\n", "path": "setup.py"}], "after_files": [{"content": "#!/usr/bin/env python\n\nimport os\nimport shutil\nimport sys\nimport json\n\nfrom setuptools import setup, find_packages\nfrom setuptools.command.develop import develop\nfrom setuptools.command.install import install\nfrom setuptools.command.sdist import sdist\n\nimport pyct.build\n\n\ndef get_setup_version(reponame):\n    \"\"\"\n    Helper to get the current version from either git describe or the\n    .version file (if available).\n    \"\"\"\n    basepath = os.path.split(__file__)[0]\n    version_file_path = os.path.join(basepath, reponame, '.version')\n    try:\n        from param import version\n    except Exception:\n        version = None\n    if version is not None:\n        return version.Version.setup_version(basepath, reponame, archive_commit=\"$Format:%h$\")\n    else:\n        print(\"WARNING: param>=1.6.0 unavailable. If you are installing a package, \"\n              \"this warning can safely be ignored. If you are creating a package or \"\n              \"otherwise operating in a git repository, you should install param>=1.6.0.\")\n        return json.load(open(version_file_path, 'r'))['version_string']\n\n\ndef _build_paneljs():\n    from bokeh.ext import build\n    from panel.compiler import bundle_resources\n    print(\"Building custom models:\")\n    panel_dir = os.path.join(os.path.dirname(__file__), \"panel\")\n    build(panel_dir)\n    print(\"Bundling custom model resources:\")\n    bundle_resources()\n\n\nclass CustomDevelopCommand(develop):\n    \"\"\"Custom installation for development mode.\"\"\"\n\n    def run(self):\n        _build_paneljs()\n        develop.run(self)\n\n\nclass CustomInstallCommand(install):\n    \"\"\"Custom installation for install mode.\"\"\"\n\n    def run(self):\n        _build_paneljs()\n        install.run(self)\n\n\nclass CustomSdistCommand(sdist):\n    \"\"\"Custom installation for sdist mode.\"\"\"\n\n    def run(self):\n        _build_paneljs()\n        sdist.run(self)\n\n\n_COMMANDS = {\n    'develop': CustomDevelopCommand,\n    'install': CustomInstallCommand,\n    'sdist':   CustomSdistCommand,\n}\n\ntry:\n    from wheel.bdist_wheel import bdist_wheel\n\n    class CustomBdistWheelCommand(bdist_wheel):\n        \"\"\"Custom bdist_wheel command to force cancelling qiskit-terra wheel\n        creation.\"\"\"\n\n        def run(self):\n            \"\"\"Do nothing so the command intentionally fails.\"\"\"\n            _build_paneljs()\n            bdist_wheel.run(self)\n\n    _COMMANDS['bdist_wheel'] = CustomBdistWheelCommand\nexcept Exception:\n    pass\n\n########## dependencies ##########\n\ninstall_requires = [\n    'bokeh >=2.2.2',\n    'param >=1.9.3',\n    'pyviz_comms >=0.7.4',\n    'markdown',\n    'requests',\n    'tqdm',\n    'pyct >=0.4.4'\n]\n\n_recommended = [\n    'notebook >=5.4',\n    'holoviews >=1.13.2',\n    'matplotlib',\n    'pillow',\n    'plotly'\n]\n\n_tests = [\n    'flake8',\n    'parameterized',\n    'pytest',\n    'scipy',\n    'nbsmoke >=0.2.0',\n    'pytest-cov',\n    'codecov',\n    'folium',\n    'ipympl',\n    'twine',\n    'pandas',\n    'ipython >=7.0'\n]\n\nextras_require = {\n    'examples': [\n        'hvplot',\n        'plotly',\n        'altair',\n        'streamz',\n        'vega_datasets',\n        'vtk',\n        'scikit-learn',\n        'datashader',\n        'jupyter_bokeh',\n        'django',\n        'channels',\n        'pyvista',\n        'ipywidgets',\n        'ipywidgets_bokeh',\n        'ipyvolume',\n        'ipyleaflet'\n    ],\n    'tests': _tests,\n    'recommended': _recommended,\n    'doc': _recommended + [\n        'nbsite >=0.6.1',\n        'nbconvert <6.0',\n        'sphinx_holoviz_theme',\n        'selenium',\n        'phantomjs',\n        'graphviz',\n        'lxml',\n    ]\n}\n\nextras_require['all'] = sorted(set(sum(extras_require.values(), [])))\n\n# Superset of what's in pyproject.toml (includes non-python\n# dependencies).  Also, pyproject.toml isn't supported by all tools\n# anyway (e.g. older versions of pip, or conda - which also supports\n# non-python dependencies). Note that setup_requires isn't used\n# because it doesn't work well with pip.\nextras_require['build'] = [\n    'param >=1.9.2',\n    'pyct >=0.4.4',\n    'setuptools >=30.3.0',\n    'bokeh >=2.0.0',\n    'pyviz_comms >=0.6.0',\n    # non-python dependency\n    'nodejs >=10.13.0',\n]\n\nsetup_args = dict(\n    name='panel',\n    version=get_setup_version(\"panel\"),\n    description='A high level app and dashboarding solution for Python.',\n    long_description=open('README.md').read() if os.path.isfile('README.md') else 'Consult README.md',\n    long_description_content_type=\"text/markdown\",\n    author=\"HoloViz\",\n    author_email=\"developers@holoviz.org\",\n    maintainer=\"HoloViz\",\n    maintainer_email=\"developers@holoviz.org\",\n    platforms=['Windows', 'Mac OS X', 'Linux'],\n    license='BSD',\n    url='http://panel.holoviz.org',\n    cmdclass=_COMMANDS,\n    packages=find_packages(),\n    include_package_data=True,\n    classifiers=[\n        \"License :: OSI Approved :: BSD License\",\n        \"Development Status :: 5 - Production/Stable\",\n        \"Programming Language :: Python :: 3\",\n        \"Programming Language :: Python :: 3.6\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Operating System :: OS Independent\",\n        \"Intended Audience :: Developers\",\n        \"Intended Audience :: Science/Research\",\n        \"Intended Audience :: Financial and Insurance Industry\",\n        \"Intended Audience :: Healthcare Industry\",\n        \"Intended Audience :: Information Technology\",\n        \"Intended Audience :: Legal Industry\",\n        \"Intended Audience :: Other Audience\",\n        \"Intended Audience :: Science/Research\",\n        \"Natural Language :: English\",\n        \"Topic :: Scientific/Engineering\",\n        \"Topic :: Scientific/Engineering :: Visualization\",\n        \"Topic :: Scientific/Engineering :: Information Analysis\",\n        \"Topic :: Office/Business\",\n        \"Topic :: Office/Business :: Financial\",\n        \"Topic :: Software Development :: Libraries\"],\n    python_requires=\">=3.6\",\n    entry_points={\n        'console_scripts': [\n            'panel = panel.command:main'\n        ]\n    },\n    install_requires=install_requires,\n    extras_require=extras_require,\n    tests_require=extras_require['tests']\n)\n\nif __name__ == \"__main__\":\n    example_path = os.path.join(os.path.dirname(os.path.abspath(__file__)),\n                                'panel', 'examples')\n\n    if 'develop' not in sys.argv and 'egg_info' not in sys.argv:\n        pyct.build.examples(example_path, __file__, force=True)\n\n    version = setup_args['version']\n    if 'post' not in version:\n        with open('./panel/package.json') as f:\n            package_json = json.load(f)\n        js_version = package_json['version']\n        if version != 'None' and version.split('+')[0] != js_version.replace('-', ''):\n            raise ValueError(\"panel.js version (%s) does not match \"\n                             \"panel version (%s). Cannot build release.\"\n                             % (js_version, version))\n\n    setup(**setup_args)\n\n    if os.path.isdir(example_path):\n        shutil.rmtree(example_path)\n", "path": "setup.py"}]}