sing-box-bin 1.12.10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sing_box_bin-1.12.10/.github/dependabot.yml +16 -0
- sing_box_bin-1.12.10/.github/workflows/build.yml +92 -0
- sing_box_bin-1.12.10/.github/workflows/main.yml +99 -0
- sing_box_bin-1.12.10/.gitignore +165 -0
- sing_box_bin-1.12.10/.pre-commit-config.yaml +51 -0
- sing_box_bin-1.12.10/.vscode/settings.json +11 -0
- sing_box_bin-1.12.10/LICENSE +21 -0
- sing_box_bin-1.12.10/PKG-INFO +69 -0
- sing_box_bin-1.12.10/README.md +27 -0
- sing_box_bin-1.12.10/assets/gif/ruff.gif +0 -0
- sing_box_bin-1.12.10/pyproject.toml +230 -0
- sing_box_bin-1.12.10/scripts/build.sh +54 -0
- sing_box_bin-1.12.10/scripts/bump.sh +8 -0
- sing_box_bin-1.12.10/scripts/format.sh +5 -0
- sing_box_bin-1.12.10/scripts/lint.sh +8 -0
- sing_box_bin-1.12.10/scripts/pre-commit.sh +9 -0
- sing_box_bin-1.12.10/scripts/test.sh +9 -0
- sing_box_bin-1.12.10/src/sing_box_bin/__init__.py +25 -0
- sing_box_bin-1.12.10/src/sing_box_bin/bin/sing-box-linux-amd64 +0 -0
- sing_box_bin-1.12.10/src/sing_box_bin/bin/sing-box-windows-amd64.exe +0 -0
- sing_box_bin-1.12.10/src/sing_box_bin/py.typed +0 -0
- sing_box_bin-1.12.10/tests/test_main.py +53 -0
- sing_box_bin-1.12.10/uv.lock +429 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
version: 2
|
|
2
|
+
updates:
|
|
3
|
+
|
|
4
|
+
- package-ecosystem: pip
|
|
5
|
+
directory: "/"
|
|
6
|
+
schedule:
|
|
7
|
+
interval: "weekly"
|
|
8
|
+
commit-message:
|
|
9
|
+
prefix: "chore(rye)"
|
|
10
|
+
|
|
11
|
+
- package-ecosystem: github-actions
|
|
12
|
+
directory: "/"
|
|
13
|
+
schedule:
|
|
14
|
+
interval: "weekly"
|
|
15
|
+
commit-message:
|
|
16
|
+
prefix: "ci(github-actions)"
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
name: Build sing-box
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
schedule:
|
|
5
|
+
- cron: '0 0 * * *'
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
check:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
outputs:
|
|
15
|
+
should_build: ${{ steps.check_version.outputs.should_build }}
|
|
16
|
+
version: ${{ steps.check_version.outputs.version }}
|
|
17
|
+
clean_version: ${{ steps.check_version.outputs.clean_version }}
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v5
|
|
20
|
+
|
|
21
|
+
- name: Check latest version
|
|
22
|
+
id: check_version
|
|
23
|
+
run: |
|
|
24
|
+
LATEST_TAG=$(curl -s https://api.github.com/repos/SagerNet/sing-box/releases/latest | jq -r .tag_name)
|
|
25
|
+
CLEAN_VERSION="${LATEST_TAG#v}"
|
|
26
|
+
|
|
27
|
+
echo "Upstream Tag: $LATEST_TAG"
|
|
28
|
+
echo "version=$LATEST_TAG" >> $GITHUB_OUTPUT
|
|
29
|
+
echo "clean_version=$CLEAN_VERSION" >> $GITHUB_OUTPUT
|
|
30
|
+
|
|
31
|
+
BIN_PATH="src/sing_box_bin/bin/sing-box"
|
|
32
|
+
|
|
33
|
+
# whether to build
|
|
34
|
+
if [ -f "$BIN_PATH" ]; then
|
|
35
|
+
chmod +x "$BIN_PATH"
|
|
36
|
+
CURRENT_TAG="v$($BIN_PATH version | head -n 1 | awk '{print $3}')"
|
|
37
|
+
|
|
38
|
+
echo "Current Binary Tag: $CURRENT_TAG"
|
|
39
|
+
|
|
40
|
+
if [ "$CURRENT_TAG" == "$LATEST_TAG" ]; then
|
|
41
|
+
echo "✅ Binary is up to date."
|
|
42
|
+
echo "should_build=false" >> $GITHUB_OUTPUT
|
|
43
|
+
else
|
|
44
|
+
echo "🔄 Update needed: $CURRENT_TAG -> $LATEST_TAG"
|
|
45
|
+
echo "should_build=true" >> $GITHUB_OUTPUT
|
|
46
|
+
fi
|
|
47
|
+
else
|
|
48
|
+
echo "⚠️ Binary does not exist, building fresh."
|
|
49
|
+
echo "should_build=true" >> $GITHUB_OUTPUT
|
|
50
|
+
fi
|
|
51
|
+
|
|
52
|
+
build-and-push:
|
|
53
|
+
needs: check
|
|
54
|
+
if: needs.check.outputs.should_build == 'true'
|
|
55
|
+
runs-on: ubuntu-latest
|
|
56
|
+
steps:
|
|
57
|
+
- uses: actions/checkout@v5
|
|
58
|
+
|
|
59
|
+
- name: Install uv
|
|
60
|
+
uses: astral-sh/setup-uv@v6
|
|
61
|
+
with:
|
|
62
|
+
enable-cache: true
|
|
63
|
+
|
|
64
|
+
- name: Install Dependencies
|
|
65
|
+
run: sudo apt-get update && sudo apt-get install -y jq
|
|
66
|
+
|
|
67
|
+
- uses: actions/setup-go@v6
|
|
68
|
+
with:
|
|
69
|
+
go-version: 'stable'
|
|
70
|
+
- run: go version
|
|
71
|
+
|
|
72
|
+
- name: Build sing-box binaries
|
|
73
|
+
run: |
|
|
74
|
+
chmod +x scripts/build.sh
|
|
75
|
+
./scripts/build.sh ${{ needs.check.outputs.version }}
|
|
76
|
+
|
|
77
|
+
- name: Commit New bin Files
|
|
78
|
+
run: |
|
|
79
|
+
git config --local user.email "action@github.com"
|
|
80
|
+
git config --local user.name "GitHub Action"
|
|
81
|
+
git add src/sing_box_bin/bin/
|
|
82
|
+
git add src/sing_box_bin/__init__.py
|
|
83
|
+
|
|
84
|
+
git commit -m "feat: update sing-box binary to version ${{ needs.check.outputs.version }}"
|
|
85
|
+
|
|
86
|
+
- name: Bump version
|
|
87
|
+
run: |
|
|
88
|
+
uv tool install bump-my-version
|
|
89
|
+
uv run bump-my-version bump --new-version "${{ needs.check.outputs.clean_version }}"
|
|
90
|
+
|
|
91
|
+
- name: Push Changes
|
|
92
|
+
run: git push origin main --tags
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
name: Test And Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ main ]
|
|
6
|
+
tags:
|
|
7
|
+
- "v*.*.*"
|
|
8
|
+
pull_request:
|
|
9
|
+
branches: [ main ]
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
test:
|
|
13
|
+
name: Run Tests / OS ${{ matrix.os }} / Python ${{ matrix.python-version }}
|
|
14
|
+
strategy:
|
|
15
|
+
matrix:
|
|
16
|
+
os: [ubuntu-latest, windows-latest]
|
|
17
|
+
python-version: ["3.11", "3.12", "3.13", "3.14"]
|
|
18
|
+
runs-on: ${{ matrix.os }}
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v5
|
|
21
|
+
|
|
22
|
+
- name: Install uv
|
|
23
|
+
uses: astral-sh/setup-uv@v6
|
|
24
|
+
with:
|
|
25
|
+
enable-cache: true
|
|
26
|
+
|
|
27
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
28
|
+
run: uv python install ${{ matrix.python-version }}
|
|
29
|
+
|
|
30
|
+
- name: Install dependencies
|
|
31
|
+
run: uv sync --python ${{ matrix.python-version }} --all-extras --dev
|
|
32
|
+
|
|
33
|
+
- name: Run Code Coverage Tests Pipeline
|
|
34
|
+
run: uv run bash scripts/pre-commit.sh
|
|
35
|
+
|
|
36
|
+
release:
|
|
37
|
+
name: Bump Version and Release
|
|
38
|
+
needs: test
|
|
39
|
+
runs-on: ubuntu-latest
|
|
40
|
+
if: startsWith(github.ref, 'refs/tags/')
|
|
41
|
+
|
|
42
|
+
permissions:
|
|
43
|
+
id-token: write # enable for OIDC [4,5]
|
|
44
|
+
contents: write
|
|
45
|
+
|
|
46
|
+
outputs:
|
|
47
|
+
version: ${{ steps.inspect_package.outputs.version }}
|
|
48
|
+
package: ${{ steps.inspect_package.outputs.package }}
|
|
49
|
+
|
|
50
|
+
environment:
|
|
51
|
+
name: pypi # display pypi in page
|
|
52
|
+
url: https://pypi.org/project/${{ steps.inspect_package.outputs.package }}/${{ steps.inspect_package.outputs.version }}
|
|
53
|
+
|
|
54
|
+
steps:
|
|
55
|
+
- uses: actions/checkout@v5
|
|
56
|
+
with:
|
|
57
|
+
fetch-depth: 0
|
|
58
|
+
|
|
59
|
+
- name: Install uv
|
|
60
|
+
uses: astral-sh/setup-uv@v6
|
|
61
|
+
with:
|
|
62
|
+
enable-cache: true
|
|
63
|
+
|
|
64
|
+
- name: Install dependencies
|
|
65
|
+
run: uv sync --dev
|
|
66
|
+
|
|
67
|
+
# add trusted-publishers on pypi first[6]
|
|
68
|
+
- name: Build
|
|
69
|
+
run: uv build
|
|
70
|
+
|
|
71
|
+
- name: Inspect package version
|
|
72
|
+
id: inspect_package
|
|
73
|
+
run: |
|
|
74
|
+
version=$(uvx hatchling version)
|
|
75
|
+
echo "version=$version" >> "$GITHUB_OUTPUT"
|
|
76
|
+
package=$(uvx hatchling metadata | jq -r .name)
|
|
77
|
+
echo "package=$package" >> "$GITHUB_OUTPUT"
|
|
78
|
+
|
|
79
|
+
- name: Publish
|
|
80
|
+
run: uv publish
|
|
81
|
+
|
|
82
|
+
- name: Generate a changelog
|
|
83
|
+
env:
|
|
84
|
+
ATTICUS_PAT: ${{ secrets.ATTICUS_PAT }}
|
|
85
|
+
run: uv run git-cliff -vv --latest --strip header --github-token "$ATTICUS_PAT" -o CHANGES.md
|
|
86
|
+
|
|
87
|
+
- name: Release
|
|
88
|
+
uses: softprops/action-gh-release@v2
|
|
89
|
+
with:
|
|
90
|
+
body_path: CHANGES.md
|
|
91
|
+
token: ${{ secrets.GITHUB_TOKEN }}
|
|
92
|
+
|
|
93
|
+
# Reference
|
|
94
|
+
# 1. https://docs.astral.sh/uv/guides/integration/github/#syncing-and-running
|
|
95
|
+
# 2. https://github.com/Kludex/python-template/blob/main/.github/workflows/main.yml
|
|
96
|
+
# 3. https://github.com/softprops/action-gh-release/tree/master/
|
|
97
|
+
# 4. https://docs.github.com/en/actions/security-for-github-actions/security-hardening-your-deployments/about-security-hardening-with-openid-connect#adding-permissions-settings
|
|
98
|
+
# 5. https://docs.github.com/en/actions/security-for-github-actions/security-hardening-your-deployments/configuring-openid-connect-in-pypi
|
|
99
|
+
# 6. https://docs.pypi.org/trusted-publishers/adding-a-publisher/
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py,cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# poetry
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
102
|
+
#poetry.lock
|
|
103
|
+
|
|
104
|
+
# pdm
|
|
105
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
106
|
+
#pdm.lock
|
|
107
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
108
|
+
# in version control.
|
|
109
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
110
|
+
.pdm.toml
|
|
111
|
+
|
|
112
|
+
# UV
|
|
113
|
+
.ruff_cache/
|
|
114
|
+
|
|
115
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
116
|
+
__pypackages__/
|
|
117
|
+
|
|
118
|
+
# Celery stuff
|
|
119
|
+
celerybeat-schedule
|
|
120
|
+
celerybeat.pid
|
|
121
|
+
|
|
122
|
+
# SageMath parsed files
|
|
123
|
+
*.sage.py
|
|
124
|
+
|
|
125
|
+
# Environments
|
|
126
|
+
.env
|
|
127
|
+
.venv
|
|
128
|
+
env/
|
|
129
|
+
venv/
|
|
130
|
+
ENV/
|
|
131
|
+
env.bak/
|
|
132
|
+
venv.bak/
|
|
133
|
+
|
|
134
|
+
# Spyder project settings
|
|
135
|
+
.spyderproject
|
|
136
|
+
.spyproject
|
|
137
|
+
|
|
138
|
+
# Rope project settings
|
|
139
|
+
.ropeproject
|
|
140
|
+
|
|
141
|
+
# mkdocs documentation
|
|
142
|
+
/site
|
|
143
|
+
|
|
144
|
+
# mypy
|
|
145
|
+
.mypy_cache/
|
|
146
|
+
.dmypy.json
|
|
147
|
+
dmypy.json
|
|
148
|
+
|
|
149
|
+
# Pyre type checker
|
|
150
|
+
.pyre/
|
|
151
|
+
|
|
152
|
+
# pytype static type analyzer
|
|
153
|
+
.pytype/
|
|
154
|
+
|
|
155
|
+
# Cython debug symbols
|
|
156
|
+
cython_debug/
|
|
157
|
+
|
|
158
|
+
# PyCharm
|
|
159
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
160
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
161
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
162
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
163
|
+
.idea/
|
|
164
|
+
|
|
165
|
+
.vscode/PythonImportHelper-v2-Completion.json
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# https://pre-commit.com/
|
|
2
|
+
# `pre-commit install` to set up the git hook scripts
|
|
3
|
+
# `pre-commit autoupdate` to update repos
|
|
4
|
+
# `pre-commit run --all-files` run hooks for all file
|
|
5
|
+
|
|
6
|
+
# exclude: (^|/)\..*
|
|
7
|
+
|
|
8
|
+
repos:
|
|
9
|
+
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
10
|
+
rev: v6.0.0
|
|
11
|
+
hooks:
|
|
12
|
+
- id: check-toml
|
|
13
|
+
- id: check-yaml
|
|
14
|
+
args: [--unsafe]
|
|
15
|
+
- id: sort-simple-yaml
|
|
16
|
+
- id: check-json
|
|
17
|
+
- id: pretty-format-json
|
|
18
|
+
args: [--autofix, --no-sort-keys,--no-ensure-ascii]
|
|
19
|
+
- id: check-added-large-files
|
|
20
|
+
args: [--maxkb=51200]
|
|
21
|
+
- id: end-of-file-fixer
|
|
22
|
+
- id: trailing-whitespace
|
|
23
|
+
- id: detect-private-key
|
|
24
|
+
|
|
25
|
+
- repo: https://github.com/codespell-project/codespell
|
|
26
|
+
rev: v2.4.1
|
|
27
|
+
hooks:
|
|
28
|
+
- id: codespell
|
|
29
|
+
args: [--write-changes]
|
|
30
|
+
files: \.(py|sh|json|yml|yaml|md)$
|
|
31
|
+
|
|
32
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
33
|
+
rev: v0.14.7
|
|
34
|
+
hooks:
|
|
35
|
+
- id: ruff
|
|
36
|
+
args: [--fix]
|
|
37
|
+
- id: ruff-format
|
|
38
|
+
|
|
39
|
+
- repo: https://github.com/astral-sh/uv-pre-commit
|
|
40
|
+
# uv version.
|
|
41
|
+
rev: 0.9.13
|
|
42
|
+
hooks:
|
|
43
|
+
# Update the uv lockfile
|
|
44
|
+
- id: uv-lock
|
|
45
|
+
|
|
46
|
+
ci:
|
|
47
|
+
autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks
|
|
48
|
+
# Settings for the https://pre-commit.ci/ continuous integration service
|
|
49
|
+
autofix_prs: true
|
|
50
|
+
autoupdate_commit_msg: ⬆ [pre-commit.ci] pre-commit autoupdate
|
|
51
|
+
autoupdate_schedule: monthly
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 A.J.Zeller
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: sing-box-bin
|
|
3
|
+
Version: 1.12.10
|
|
4
|
+
Summary: python template package
|
|
5
|
+
Project-URL: Homepage, https://github.com/aittcuszz/sing-box-bin
|
|
6
|
+
Project-URL: Issues, https://github.com/atticuszeller/sing-box-bin/issues
|
|
7
|
+
Project-URL: documentation, https://atticuszeller.github.io/sing-box-bin/
|
|
8
|
+
Project-URL: Changelog, https://github.com/atticuszeller/sing-box-bin/blob/main/CHANGELOG.md
|
|
9
|
+
Author-email: "A.J.Zeller" <hello@atticux.me>
|
|
10
|
+
Maintainer-email: "A.J.Zeller" <hello@atticux.me>
|
|
11
|
+
License: MIT License
|
|
12
|
+
|
|
13
|
+
Copyright (c) 2024 A.J.Zeller
|
|
14
|
+
|
|
15
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
16
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
17
|
+
in the Software without restriction, including without limitation the rights
|
|
18
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
19
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
20
|
+
furnished to do so, subject to the following conditions:
|
|
21
|
+
|
|
22
|
+
The above copyright notice and this permission notice shall be included in all
|
|
23
|
+
copies or substantial portions of the Software.
|
|
24
|
+
|
|
25
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
26
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
27
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
28
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
29
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
30
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
31
|
+
SOFTWARE.
|
|
32
|
+
License-File: LICENSE
|
|
33
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
34
|
+
Classifier: Programming Language :: Python
|
|
35
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
36
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
37
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
38
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
39
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
40
|
+
Requires-Python: >=3.10
|
|
41
|
+
Description-Content-Type: text/markdown
|
|
42
|
+
|
|
43
|
+
# sing-box-bin
|
|
44
|
+
|
|
45
|
+
A Python wrapper for sing-box binary releases
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
## build and bump version
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
.\scripts\build.sh "vx.y.z"
|
|
52
|
+
bump-my-version bump --new-version "x.y.z"
|
|
53
|
+
git push origin main --tags
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## install
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
uv add sing-box-bin
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## usage
|
|
63
|
+
|
|
64
|
+
```python
|
|
65
|
+
from sing_box_bin import get_bin_path
|
|
66
|
+
|
|
67
|
+
>>> get_bin_path()
|
|
68
|
+
>>> ./.sing-box-bin/ sing-box-windows-amd64.exe
|
|
69
|
+
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# sing-box-bin
|
|
2
|
+
|
|
3
|
+
A Python wrapper for sing-box binary releases
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## build and bump version
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
.\scripts\build.sh "vx.y.z"
|
|
10
|
+
bump-my-version bump --new-version "x.y.z"
|
|
11
|
+
git push origin main --tags
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## install
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
uv add sing-box-bin
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## usage
|
|
21
|
+
|
|
22
|
+
```python
|
|
23
|
+
from sing_box_bin import get_bin_path
|
|
24
|
+
|
|
25
|
+
>>> get_bin_path()
|
|
26
|
+
>>> ./.sing-box-bin/ sing-box-windows-amd64.exe
|
|
27
|
+
```
|
|
Binary file
|