Skip to content

Commit 8099226

Browse files
committed
Move version info into module
1 parent 6549f43 commit 8099226

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

getdents/__about__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
__version__ = "0.4.1"
2+
3+
__all__ = [
4+
"__version__",
5+
]

getdents/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ def getdents(path: str, buff_size: int = 32768) -> Iterator[DirectoryEntry]:
5353
os.close(fd)
5454

5555

56-
__version__ = "0.4.0"
5756
__all__ = [
5857
"DT_BLK",
5958
"DT_CHR",

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ packages = ["getdents"]
4141
include-package-data = true
4242

4343
[tool.setuptools.dynamic]
44-
version = {attr = "getdents.__version__"}
44+
version = {attr = "getdents.__about__.__version__"}
4545

4646
[tool.setuptools.package-data]
4747
getdents = ["py.typed"]

0 commit comments

Comments
 (0)