-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
1,080 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# This workflows will upload a Python Package using Twine when a release is created | ||
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries | ||
|
||
name: Upload python package for macOS & linux | ||
|
||
on: | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
if: '! github.event.pull_request.draft' | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
include: | ||
- os: macos-latest | ||
arch: arm64 | ||
- os: macos-latest | ||
arch: x86_64 | ||
- os: ubuntu-latest | ||
arch: x86_64 | ||
- os: ubuntu-latest | ||
arch: i686 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -U build setuptools wheel twine cibuildwheel | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
CIBW_ARCHS: ${{ matrix.arch }} | ||
run: | | ||
cibuildwheel --output-dir dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
[project] | ||
name = "pytun-pmd3" | ||
version = "1.0.0" | ||
description = "python-pytun fork with Darwin support (IPv6-ONLY)" | ||
description = "python-pytun fork with darwin and windows support (IPv6-ONLY)" | ||
readme = "README.md" | ||
requires-python = ">=3.8" | ||
license = { file = "LICENSE" } | ||
keywords = ["tun", "tuntap", "darwin", "pymobiledevice3", "macos"] | ||
keywords = ["tun", "tuntap", "darwin", "pymobiledevice3", "macos", "windows"] | ||
authors = [ | ||
{ name = "doronz88", email = "[email protected]" } | ||
] | ||
|
@@ -20,6 +20,7 @@ classifiers = [ | |
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12", | ||
"Programming Language :: Python :: 3 :: Only", | ||
] | ||
|
||
|
@@ -30,6 +31,9 @@ test = ["pytest"] | |
"Homepage" = "https://github.com/doronz88/pytun-pmd3" | ||
"Bug Reports" = "https://github.com/doronz88/pytun-pmd3/issues" | ||
|
||
[tool.setuptools] | ||
package-data = { "pytun_pmd3" = ["wintun/**/*"] } | ||
|
||
[tool.setuptools.packages.find] | ||
exclude = ["docs*", "tests*"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from pytun_pmd3.wintun import TunTapDevice |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
class PyWinTunException(Exception): | ||
pass |
Oops, something went wrong.