Skip to content

Commit

Permalink
Merge pull request #6 from doronz88/feature/setuptools-scm
Browse files Browse the repository at this point in the history
pyproject: add `setuptools-scm`
  • Loading branch information
doronz88 authored Apr 11, 2024
2 parents e4a5cda + 23892e4 commit 77b5124
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 184 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ MANIFEST
.vscode
cmake-build-debug
CMakeLists.txt
pytun_pmd3/_version.py
*.egg-info
*.bak
*.pyc
Expand Down
10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[project]
name = "pytun-pmd3"
version = "2.0.3"
description = "python-pytun fork with darwin and windows support (IPv6-ONLY)"
readme = "README.md"
requires-python = ">=3.8"
Expand All @@ -23,6 +22,7 @@ classifiers = [
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
]
dynamic = ["version"]

[project.optional-dependencies]
test = ["pytest"]
Expand All @@ -37,6 +37,12 @@ package-data = { "pytun_pmd3" = ["wintun/**/*"] }
[tool.setuptools.packages.find]
exclude = ["docs*", "tests*"]

[tool.setuptools.dynamic]
version = {attr = "pytun_pmd3._version.__version__"}

[tool.setuptools_scm]
version_file = "pytun_pmd3/_version.py"

[build-system]
requires = ["setuptools>=43.0.0", "wheel"]
requires = ["setuptools>=43.0.0", "setuptools_scm>=8", "wheel"]
build-backend = "setuptools.build_meta"
2 changes: 1 addition & 1 deletion pytun_pmd3/wintun.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import subprocess
from ctypes import POINTER, Structure, WinDLL, byref, c_ubyte, c_ulonglong, c_void_p, create_unicode_buffer, \
get_last_error, string_at
from ctypes.wintypes import BOOL, BOOLEAN, BYTE, DWORD, HANDLE, LARGE_INTEGER, LPCWSTR, ULARGE_INTEGER, ULONG, USHORT
from ctypes.wintypes import BOOL, BOOLEAN, BYTE, DWORD, HANDLE, LARGE_INTEGER, LPCWSTR, ULONG, USHORT
from pathlib import Path
from socket import AF_INET6
from uuid import uuid4
Expand Down
89 changes: 0 additions & 89 deletions test/test_tap.py

This file was deleted.

92 changes: 0 additions & 92 deletions test/test_tun.py

This file was deleted.

0 comments on commit 77b5124

Please sign in to comment.