Skip to content

Commit 18f0b0b

Browse files
authored
adlfs: get rid of versioneer and cleanup building (fsspec#446)
1 parent ea2f449 commit 18f0b0b

File tree

9 files changed

+63
-2512
lines changed

9 files changed

+63
-2512
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,6 @@ tests/dummyfiles/*
145145

146146
# Azurite
147147
*azurite*
148-
*blobstorage*
148+
*blobstorage*
149+
150+
/adlfs/_version.py

.pre-commit-config.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ repos:
99
hooks:
1010
- id: black
1111
language_version: python3
12-
exclude: versioneer.py
1312
args:
1413
- --target-version=py38
1514
- repo: https://github.com/pre-commit/pre-commit-hooks
1615
rev: v2.3.0
1716
hooks:
1817
- id: flake8
19-
language_version: python3
18+
language_version: python3

MANIFEST.in

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
include versioneer.py
2-
include adlfs/_version.py
31
include LICENSE.txt
2+
include adlfs/_version.py

adlfs/__init__.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
from ._version import get_versions
21
from .gen1 import AzureDatalakeFileSystem
32
from .spec import AzureBlobFile, AzureBlobFileSystem
43

54
__all__ = ["AzureBlobFileSystem", "AzureBlobFile", "AzureDatalakeFileSystem"]
65

7-
__version__ = get_versions()["version"]
8-
del get_versions
9-
10-
from ._version import get_versions
11-
12-
__version__ = get_versions()["version"]
13-
del get_versions
6+
try:
7+
from ._dvc_version import version as __version__ # type: ignore[import]
8+
from ._dvc_version import version_tuple # type: ignore[import]
9+
except ImportError:
10+
__version__ = "UNKNOWN"
11+
version_tuple = (0, 0, __version__) # type: ignore[assignment]

0 commit comments

Comments
 (0)