File tree Expand file tree Collapse file tree 7 files changed +19
-758
lines changed
continuous_integration/recipes/distributed Expand file tree Collapse file tree 7 files changed +19
-758
lines changed Original file line number Diff line number Diff line change 55# https://flake8.readthedocs.io/en/latest/user/error-codes.html
66
77# Note: there cannot be spaces after commas here
8- exclude = __init__.py,versioneer.py, distributed/_concurrent_futures_thread.py
8+ exclude = __init__.py,distributed/_concurrent_futures_thread.py
99ignore =
1010 # Ignores below are aligned with black https://github.com/psf/black/blob/main/.flake8
1111 # Whitespace before ':'
Original file line number Diff line number Diff line change 55# Cython files
66* .c
77* .so
8- distributed /scheduler.html
98
109build /
1110dist /
1211* .egg-info
1312docs /build
14- continuous_integration /hdfs-initialized
1513.DS_Store
1614.cache
1715.coverage
3230.venv /
3331.mypy_cache /
3432
33+ # Project specific
34+ continuous_integration /hdfs-initialized
35+ distributed /scheduler.html
36+ distributed /_version.py
37+
38+ # Test reports
3539reports /
3640test_report * .html
3741test_report * .db
Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ requirements:
2727 - python >=3.10
2828 - pip
2929 - dask-core {{ dask_version }}
30- - versioneer =0.29
31- - setuptools >=62.6
30+ - setuptools-scm
31+ - setuptools >=80
3232 - tomli # [py<311]
3333 run :
3434 - python >=3.10
Original file line number Diff line number Diff line change 1919import dask
2020from dask .config import config # type: ignore
2121
22- from distributed ._version import get_versions
2322from distributed .actor import Actor , ActorFuture , BaseActorFuture
2423from distributed .client import (
2524 Client ,
7776)
7877from distributed .worker_client import local_client , worker_client
7978
80-
81- def __getattr__ (name ):
82- global __version__ , __git_revision__
83-
84- if name == "__version__" :
85- from importlib .metadata import version
86-
87- __version__ = version ("distributed" )
88- return __version__
89-
90- if name == "__git_revision__" :
91- from distributed ._version import get_versions
92-
93- __git_revision__ = get_versions ()["full-revisionid" ]
94- return __git_revision__
95-
96- raise AttributeError (f"module { __name__ !r} has no attribute { name !r} " )
79+ try :
80+ # Backwards compatibility with versioneer
81+ from distributed ._version import __commit_id__ as __git_revision__
82+ from distributed ._version import __version__
83+ except ImportError :
84+ __git_revision__ = "unknown"
85+ __version__ = "unknown"
9786
9887
9988__all__ = [
@@ -142,7 +131,6 @@ def __getattr__(name):
142131 "get_client" ,
143132 "get_task_metadata" ,
144133 "get_task_stream" ,
145- "get_versions" ,
146134 "get_worker" ,
147135 "local_client" ,
148136 "performance_report" ,
You can’t perform that action at this time.
0 commit comments