You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/usr/bin/env pythonfrom __future__ importannotationsimportosfromsetuptoolsimportfind_packages, setupsetup(
name="distributed",
version="0.0.0",
description="Distributed scheduler for Dask",
url="https://distributed.dask.org",
project_urls={
"Source": "https://github.com/dask/distributed",
},
maintainer="Matthew Rocklin",
maintainer_email="mrocklin@gmail.com",
python_requires=">=3.8",
license="BSD",
package_data={
"": ["templates/index.html", "template.html"],
"distributed": ["http/templates/*.html", "py.typed"],
},
include_package_data=True,
install_requires=[],
packages=find_packages(exclude=["*tests*"]),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Scientific/Engineering",
"Topic :: System :: Distributed Computing",
],
entry_points=""" [console_scripts] dask-ssh=distributed.cli.dask_ssh:main dask-scheduler=distributed.cli.dask_scheduler:main dask-worker=distributed.cli.dask_worker:main [dask_cli] scheduler=distributed.cli.dask_scheduler:main worker=distributed.cli.dask_worker:main ssh=distributed.cli.dask_ssh:main spec=distributed.cli.dask_spec:main """,
# https://mypy.readthedocs.io/en/latest/installed_packages.htmlzip_safe=False,
)
results in:
Traceback (most recent call last):
File "/home/graingert/.local/pipx/.cache/f9e756ed0e98ae6/bin/setup-py-upgrade", line 8, in <module>
sys.exit(main())
File "/home/graingert/.local/pipx/.cache/f9e756ed0e98ae6/lib/python3.10/site-packages/setup_py_upgrade.py", line 182, in main
sections = {k: _reformat(v) for k, v in visitor.sections.items() if v}
File "/home/graingert/.local/pipx/.cache/f9e756ed0e98ae6/lib/python3.10/site-packages/setup_py_upgrade.py", line 182, in <dictcomp>
sections = {k: _reformat(v) for k, v in visitor.sections.items() if v}
File "/home/graingert/.local/pipx/.cache/f9e756ed0e98ae6/lib/python3.10/site-packages/setup_py_upgrade.py", line 148, in _reformat
for key, value in section.items():
AttributeError: 'str' object has no attribute 'items'
The text was updated successfully, but these errors were encountered:
example setup.py:
results in:
The text was updated successfully, but these errors were encountered: