Skip to content

Commit e7b182d

Browse files
committed
Remove setuptools-scm
1 parent 60bd848 commit e7b182d

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v4
19-
with:
20-
fetch-tags: true
2119
- name: Build wheels
2220
uses: pypa/[email protected]
2321
- uses: actions/upload-artifact@v3
@@ -29,8 +27,6 @@ jobs:
2927
runs-on: ubuntu-latest
3028
steps:
3129
- uses: actions/checkout@v4
32-
with:
33-
fetch-tags: true
3430
- name: Build sdist
3531
run: pipx run build --sdist
3632
- uses: actions/upload-artifact@v3

getdents/__init__.py

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

5555

56+
__version__ = "0.4.0"
5657
__all__ = [
5758
"DT_BLK",
5859
"DT_CHR",

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools", "setuptools-scm", "wheel"]
2+
requires = ["setuptools", "wheel"]
33

44
[project]
55
name = "getdents"
@@ -40,11 +40,12 @@ dev = [
4040
packages = ["getdents"]
4141
include-package-data = true
4242

43+
[tool.setuptools.dynamic]
44+
version = {attr = "getdents.__version__"}
45+
4346
[tool.setuptools.package-data]
4447
getdents = ["py.typed"]
4548

46-
[tool.setuptools_scm]
47-
4849
[tool.pytest.ini_options]
4950
addopts = "--cov"
5051
minversion = "7.0"

0 commit comments

Comments
 (0)