domino-proxy 0.17.8__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.
Files changed (103) hide show
  1. domino_proxy-0.17.8/.editorconfig +14 -0
  2. domino_proxy-0.17.8/.gitattributes +6 -0
  3. domino_proxy-0.17.8/.github/ISSUE_TEMPLATE/bug_report.yml +36 -0
  4. domino_proxy-0.17.8/.github/ISSUE_TEMPLATE/config.yml +5 -0
  5. domino_proxy-0.17.8/.github/dependabot.yml +10 -0
  6. domino_proxy-0.17.8/.github/pull_request_template.md +11 -0
  7. domino_proxy-0.17.8/.github/workflows/distribution.yml +126 -0
  8. domino_proxy-0.17.8/.github/workflows/publish-pypi.yml +55 -0
  9. domino_proxy-0.17.8/.github/workflows/release.yml +41 -0
  10. domino_proxy-0.17.8/.github/workflows/verify.yml +61 -0
  11. domino_proxy-0.17.8/.gitignore +37 -0
  12. domino_proxy-0.17.8/CHANGELOG.md +343 -0
  13. domino_proxy-0.17.8/CLAUDE.md +35 -0
  14. domino_proxy-0.17.8/CONTRIBUTING.md +68 -0
  15. domino_proxy-0.17.8/LICENSE +674 -0
  16. domino_proxy-0.17.8/MANIFEST.in +14 -0
  17. domino_proxy-0.17.8/NOTICE +24 -0
  18. domino_proxy-0.17.8/PKG-INFO +90 -0
  19. domino_proxy-0.17.8/README.md +163 -0
  20. domino_proxy-0.17.8/README.pypi.md +49 -0
  21. domino_proxy-0.17.8/SECURITY.md +13 -0
  22. domino_proxy-0.17.8/assets/README.md +18 -0
  23. domino_proxy-0.17.8/assets/domino-logo.gif +0 -0
  24. domino_proxy-0.17.8/assets/domino-logo.png +0 -0
  25. domino_proxy-0.17.8/docs/AGENT.md +162 -0
  26. domino_proxy-0.17.8/docs/ARCHITECTURE.md +40 -0
  27. domino_proxy-0.17.8/docs/DELIVERY.md +120 -0
  28. domino_proxy-0.17.8/docs/DISTRIBUTION.md +164 -0
  29. domino_proxy-0.17.8/docs/PLATFORMS.md +45 -0
  30. domino_proxy-0.17.8/docs/USAGE.md +796 -0
  31. domino_proxy-0.17.8/domino +8 -0
  32. domino_proxy-0.17.8/install.sh +22 -0
  33. domino_proxy-0.17.8/licenses/mihomo-GPL-3.0.txt +674 -0
  34. domino_proxy-0.17.8/pyproject.toml +53 -0
  35. domino_proxy-0.17.8/scripts/build_distribution.py +247 -0
  36. domino_proxy-0.17.8/scripts/build_release.py +347 -0
  37. domino_proxy-0.17.8/scripts/build_resources.py +56 -0
  38. domino_proxy-0.17.8/scripts/check_repository.py +95 -0
  39. domino_proxy-0.17.8/scripts/fetch_test_core.py +41 -0
  40. domino_proxy-0.17.8/scripts/package_home.py +50 -0
  41. domino_proxy-0.17.8/scripts/render_logo.py +131 -0
  42. domino_proxy-0.17.8/scripts/verify.py +26 -0
  43. domino_proxy-0.17.8/scripts/verify_artifacts.py +73 -0
  44. domino_proxy-0.17.8/scripts/verify_pip.py +89 -0
  45. domino_proxy-0.17.8/scripts/verify_ssh.py +105 -0
  46. domino_proxy-0.17.8/setup.cfg +4 -0
  47. domino_proxy-0.17.8/src/domino_agent.py +209 -0
  48. domino_proxy-0.17.8/src/domino_agent_backend.py +40 -0
  49. domino_proxy-0.17.8/src/domino_cli.py +2545 -0
  50. domino_proxy-0.17.8/src/domino_completion.py +165 -0
  51. domino_proxy-0.17.8/src/domino_install.py +30 -0
  52. domino_proxy-0.17.8/src/domino_linux.py +289 -0
  53. domino_proxy-0.17.8/src/domino_logs.py +64 -0
  54. domino_proxy-0.17.8/src/domino_macos.py +557 -0
  55. domino_proxy-0.17.8/src/domino_model.py +85 -0
  56. domino_proxy-0.17.8/src/domino_proxy.egg-info/PKG-INFO +90 -0
  57. domino_proxy-0.17.8/src/domino_proxy.egg-info/SOURCES.txt +101 -0
  58. domino_proxy-0.17.8/src/domino_proxy.egg-info/dependency_links.txt +1 -0
  59. domino_proxy-0.17.8/src/domino_proxy.egg-info/entry_points.txt +3 -0
  60. domino_proxy-0.17.8/src/domino_proxy.egg-info/requires.txt +16 -0
  61. domino_proxy-0.17.8/src/domino_proxy.egg-info/top_level.txt +17 -0
  62. domino_proxy-0.17.8/src/domino_resources.py +102 -0
  63. domino_proxy-0.17.8/src/domino_service.py +627 -0
  64. domino_proxy-0.17.8/src/domino_shell.py +437 -0
  65. domino_proxy-0.17.8/src/domino_sources.py +396 -0
  66. domino_proxy-0.17.8/src/domino_store.py +98 -0
  67. domino_proxy-0.17.8/src/domino_subscriptions.py +921 -0
  68. domino_proxy-0.17.8/src/domino_tui.py +1171 -0
  69. domino_proxy-0.17.8/src/install_domino.py +2472 -0
  70. domino_proxy-0.17.8/tests/__init__.py +1 -0
  71. domino_proxy-0.17.8/tests/source_assertions.py +13 -0
  72. domino_proxy-0.17.8/tests/test_agent.py +610 -0
  73. domino_proxy-0.17.8/tests/test_bootstrap.py +296 -0
  74. domino_proxy-0.17.8/tests/test_catch.py +365 -0
  75. domino_proxy-0.17.8/tests/test_cli.py +127 -0
  76. domino_proxy-0.17.8/tests/test_clients.py +176 -0
  77. domino_proxy-0.17.8/tests/test_command_syntax.py +156 -0
  78. domino_proxy-0.17.8/tests/test_completion.py +173 -0
  79. domino_proxy-0.17.8/tests/test_controls.py +219 -0
  80. domino_proxy-0.17.8/tests/test_delay_configs.py +472 -0
  81. domino_proxy-0.17.8/tests/test_deployment.py +134 -0
  82. domino_proxy-0.17.8/tests/test_distribution.py +212 -0
  83. domino_proxy-0.17.8/tests/test_independence.py +97 -0
  84. domino_proxy-0.17.8/tests/test_linux_desktop_integration.py +49 -0
  85. domino_proxy-0.17.8/tests/test_linux_proxy.py +177 -0
  86. domino_proxy-0.17.8/tests/test_logs.py +26 -0
  87. domino_proxy-0.17.8/tests/test_macos.py +974 -0
  88. domino_proxy-0.17.8/tests/test_management.py +272 -0
  89. domino_proxy-0.17.8/tests/test_nodes.py +296 -0
  90. domino_proxy-0.17.8/tests/test_overview_banner.py +78 -0
  91. domino_proxy-0.17.8/tests/test_release.py +333 -0
  92. domino_proxy-0.17.8/tests/test_remote.py +912 -0
  93. domino_proxy-0.17.8/tests/test_repository.py +60 -0
  94. domino_proxy-0.17.8/tests/test_resources.py +107 -0
  95. domino_proxy-0.17.8/tests/test_rules.py +208 -0
  96. domino_proxy-0.17.8/tests/test_shell.py +560 -0
  97. domino_proxy-0.17.8/tests/test_source.py +890 -0
  98. domino_proxy-0.17.8/tests/test_source_delivery.py +336 -0
  99. domino_proxy-0.17.8/tests/test_sources_store.py +344 -0
  100. domino_proxy-0.17.8/tests/test_subscriptions.py +974 -0
  101. domino_proxy-0.17.8/tests/test_traffic.py +167 -0
  102. domino_proxy-0.17.8/tests/test_tui.py +779 -0
  103. domino_proxy-0.17.8/tests/test_ui_parity.py +181 -0
@@ -0,0 +1,14 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ end_of_line = lf
6
+ insert_final_newline = true
7
+
8
+ [*.py]
9
+ indent_style = space
10
+ indent_size = 4
11
+
12
+ [*.{yml,yaml,toml}]
13
+ indent_style = space
14
+ indent_size = 2
@@ -0,0 +1,6 @@
1
+ * text=auto eol=lf
2
+ *.gif binary
3
+ *.png binary
4
+ *.webp binary
5
+ *.whl binary
6
+ *.gz binary
@@ -0,0 +1,36 @@
1
+ name: 问题反馈
2
+ description: 提交可复现的 Domino 问题
3
+ body:
4
+ - type: markdown
5
+ attributes:
6
+ value: 请使用合成配置,隐藏订阅地址、控制密钥、节点凭据和私有主机信息。
7
+ - type: input
8
+ id: version
9
+ attributes:
10
+ label: Domino 版本
11
+ description: domino --version
12
+ validations:
13
+ required: true
14
+ - type: input
15
+ id: platform
16
+ attributes:
17
+ label: 系统、架构与 Python 版本
18
+ placeholder: Ubuntu 24.04 / x86_64 / Python 3.12
19
+ validations:
20
+ required: true
21
+ - type: textarea
22
+ id: steps
23
+ attributes:
24
+ label: 复现步骤与脱敏命令
25
+ validations:
26
+ required: true
27
+ - type: textarea
28
+ id: outcome
29
+ attributes:
30
+ label: 预期结果与实际结果
31
+ validations:
32
+ required: true
33
+ - type: textarea
34
+ id: logs
35
+ attributes:
36
+ label: 脱敏错误摘要
@@ -0,0 +1,5 @@
1
+ blank_issues_enabled: true
2
+ contact_links:
3
+ - name: 私密安全报告
4
+ url: https://github.com/KJaebye/domino/security/advisories/new
5
+ about: 凭据泄露或安全漏洞请勿提交公开 Issue
@@ -0,0 +1,10 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: github-actions
4
+ directory: /
5
+ schedule:
6
+ interval: monthly
7
+ - package-ecosystem: pip
8
+ directory: /
9
+ schedule:
10
+ interval: monthly
@@ -0,0 +1,11 @@
1
+ ## 变化
2
+
3
+ 说明触发问题的场景及改动后的行为。
4
+
5
+ ## 验证
6
+
7
+ 列出实际运行的检查、结果,以及尚未验证的平台。涉及 macOS / Ubuntu 或本机 / SSH 差异时分别说明。
8
+
9
+ ## 兼容性
10
+
11
+ 说明命令、JSON / Agent、配置格式或依赖是否变化。日志、截图和示例请隐去凭据。
@@ -0,0 +1,126 @@
1
+ name: Distribution smoke tests
2
+ on:
3
+ workflow_dispatch:
4
+ permissions:
5
+ contents: read
6
+ jobs:
7
+ ubuntu:
8
+ strategy:
9
+ fail-fast: false
10
+ matrix:
11
+ os: [ubuntu-22.04, ubuntu-24.04, ubuntu-24.04-arm]
12
+ runs-on: ${{ matrix.os }}
13
+ timeout-minutes: 15
14
+ steps:
15
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
16
+ with:
17
+ persist-credentials: false
18
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
19
+ with:
20
+ python-version: '3.9'
21
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
22
+ with:
23
+ ref: eccb8b0935e55c448af1e5e518bec37a479ef93c # Real 0.17.5 upgrade baseline
24
+ path: .baseline
25
+ persist-credentials: false
26
+ - run: python -m pip install '.[dev]'
27
+ - run: python -m unittest tests.test_distribution tests.test_release -q
28
+ - run: python scripts/build_release.py && python scripts/verify_artifacts.py
29
+ - name: Build the previous release and test pip upgrade and removal
30
+ run: |
31
+ python .baseline/scripts/build_release.py
32
+ python scripts/verify_pip.py --previous-release .baseline/dist/release
33
+ python scripts/build_distribution.py --release .baseline/dist/release --output /tmp/domino-previous-distribution
34
+ - name: Build a signed apt repository with a disposable CI key
35
+ shell: bash
36
+ run: |
37
+ export GNUPGHOME="$(mktemp -d)"
38
+ chmod 700 "$GNUPGHOME"
39
+ gpg --batch --passphrase '' --quick-generate-key 'Domino CI <ci@example.invalid>' ed25519 sign 1d
40
+ fingerprint="$(gpg --batch --with-colons --list-secret-keys | awk -F: '$1=="fpr" {print $10; exit}')"
41
+ python scripts/build_distribution.py --output /tmp/domino-distribution --sign-key "$fingerprint"
42
+ gpg --verify /tmp/domino-distribution/apt/dists/stable/InRelease
43
+ rm -rf "$GNUPGHOME"
44
+ - name: Install, upgrade and remove through apt while preserving user files
45
+ shell: bash
46
+ run: |
47
+ echo 'deb [signed-by=/tmp/domino-distribution/apt/domino-archive-keyring.gpg] file:/tmp/domino-distribution/apt stable main' > /tmp/domino-ci.list
48
+ sudo apt-get update -o Dir::Etc::sourcelist=/tmp/domino-ci.list -o Dir::Etc::sourceparts=- -o APT::Get::List-Cleanup=0
49
+ sudo apt-get install -y --no-install-recommends /tmp/domino-previous-distribution/*.deb
50
+ test "$(/usr/bin/domino --version)" = 0.17.5
51
+ temporary_home="$(mktemp -d)"
52
+ HOME="$temporary_home" /usr/bin/domino --help
53
+ test -z "$(ls -A "$temporary_home")"
54
+ python scripts/package_home.py seed "$temporary_home" /tmp/domino-home.json
55
+ sudo env HOME="$temporary_home" apt-get install -y --only-upgrade --no-install-recommends -o Dir::Etc::sourcelist=/tmp/domino-ci.list -o Dir::Etc::sourceparts=- domino-proxy
56
+ test "$(dpkg-query -W -f='${Version}' domino-proxy)" = "$(python -c 'import domino_cli; print(domino_cli.VERSION)')-1"
57
+ dpkg-deb --info /tmp/domino-distribution/*.deb
58
+ test -z "$(dpkg-query -L domino-proxy | grep -E '/(systemd|LaunchAgents)/' || true)"
59
+ HOME="$temporary_home" /usr/bin/domino --version
60
+ HOME="$temporary_home" /usr/bin/domino --help
61
+ sudo env HOME="$temporary_home" /usr/bin/domino --version
62
+ test -z "$(find /usr/lib/domino -name __pycache__ -print -quit)"
63
+ python scripts/package_home.py check "$temporary_home" /tmp/domino-home.json
64
+ sudo env HOME="$temporary_home" apt-get remove -y domino-proxy
65
+ test ! -e /usr/bin/domino
66
+ test ! -e /usr/bin/domino-install
67
+ test ! -e /usr/lib/domino
68
+ test ! -e /usr/share/doc/domino-proxy
69
+ python scripts/package_home.py check "$temporary_home" /tmp/domino-home.json
70
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
71
+ with:
72
+ name: deb-${{ matrix.os }}
73
+ path: /tmp/domino-distribution
74
+ homebrew:
75
+ runs-on: macos-15
76
+ timeout-minutes: 20
77
+ steps:
78
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
79
+ with:
80
+ persist-credentials: false
81
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
82
+ with:
83
+ python-version: '3.13'
84
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
85
+ with:
86
+ ref: eccb8b0935e55c448af1e5e518bec37a479ef93c # Real 0.17.5 upgrade baseline
87
+ path: .baseline
88
+ persist-credentials: false
89
+ - run: python -m pip install '.[dev]' && python scripts/build_release.py
90
+ - run: python .baseline/scripts/build_release.py
91
+ - name: Install, upgrade and remove from a local, unpublished tap
92
+ shell: bash
93
+ env:
94
+ # Brew adds and removes its own tap trust records during this lifecycle.
95
+ # Keep those records separate without changing Domino's XDG_CONFIG_HOME.
96
+ HOMEBREW_XDG_CONFIG_HOME: /tmp/domino-brew-config
97
+ HOMEBREW_CACHE: /tmp/domino-brew-cache
98
+ HOMEBREW_LOGS: /tmp/domino-brew-logs
99
+ run: |
100
+ brew tap-new domino-ci/local
101
+ python - <<'PY'
102
+ from pathlib import Path
103
+ import re, subprocess
104
+ tap = Path(subprocess.check_output(['brew', '--repository', 'domino-ci/local'], text=True).strip())
105
+ for source, destination in [('.baseline/dist/release', tap / 'Formula/domino.rb'),
106
+ ('dist/release', Path('/tmp/domino-upgrade.rb'))]:
107
+ release = Path(source).resolve()
108
+ formula = (release / 'domino.rb.in').read_text()
109
+ runtime = next(release.glob('domino-runtime-*.tar.gz'))
110
+ formula = re.sub(r'^ url .*$', ' url "' + runtime.as_uri() + '"', formula, flags=re.M)
111
+ destination.write_text(formula)
112
+ PY
113
+ brew install domino-ci/local/domino
114
+ temporary_home="$(mktemp -d)"
115
+ test "$(HOME="$temporary_home" "$(brew --prefix domino-ci/local/domino)/bin/domino" --version)" = 0.17.5
116
+ test -z "$(ls -A "$temporary_home")"
117
+ python scripts/package_home.py seed "$temporary_home" /tmp/domino-home.json
118
+ cp /tmp/domino-upgrade.rb "$(brew --repository domino-ci/local)/Formula/domino.rb"
119
+ HOME="$temporary_home" HOMEBREW_NO_AUTO_UPDATE=1 brew upgrade domino-ci/local/domino
120
+ brew test domino-ci/local/domino
121
+ test "$(HOME="$temporary_home" "$(brew --prefix domino-ci/local/domino)/bin/domino" --version)" = "$(python -c 'import domino_cli; print(domino_cli.VERSION)')"
122
+ python scripts/package_home.py check "$temporary_home" /tmp/domino-home.json
123
+ prefix="$(brew --prefix domino-ci/local/domino)"
124
+ HOME="$temporary_home" brew uninstall --force domino-ci/local/domino
125
+ test ! -e "$prefix"
126
+ python scripts/package_home.py check "$temporary_home" /tmp/domino-home.json
@@ -0,0 +1,55 @@
1
+ name: Publish to PyPI
2
+ on:
3
+ workflow_dispatch:
4
+ permissions:
5
+ contents: read
6
+ jobs:
7
+ build:
8
+ if: startsWith(github.ref, 'refs/tags/v')
9
+ runs-on: ubuntu-22.04
10
+ timeout-minutes: 15
11
+ steps:
12
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
13
+ with:
14
+ persist-credentials: false
15
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
16
+ with:
17
+ python-version: '3.9'
18
+ - name: Require a chosen license and an exact version tag
19
+ env:
20
+ EXPECTED_TAG: ${{ github.ref_name }}
21
+ run: |
22
+ test -s LICENSE
23
+ python - <<'PY'
24
+ import os, sys
25
+ sys.path.insert(0, "src")
26
+ import domino_cli
27
+ assert os.environ['EXPECTED_TAG'] == 'v' + domino_cli.VERSION, 'Tag and source version differ'
28
+ PY
29
+ - run: python -m pip install '.[dev]'
30
+ - run: python -m unittest tests.test_distribution tests.test_release -q
31
+ - run: python scripts/build_release.py && python scripts/verify_artifacts.py
32
+ - run: python scripts/verify_pip.py
33
+ - run: python -m build --sdist --outdir dist/pypi
34
+ - run: cp dist/release/*.whl dist/pypi/ && python -m twine check dist/pypi/*
35
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
36
+ with:
37
+ name: pypi-distributions
38
+ path: dist/pypi/*
39
+ if-no-files-found: error
40
+ publish:
41
+ needs: build
42
+ runs-on: ubuntu-24.04
43
+ timeout-minutes: 10
44
+ environment:
45
+ name: pypi
46
+ url: https://pypi.org/p/domino-proxy
47
+ permissions:
48
+ id-token: write
49
+ steps:
50
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # pinned main
51
+ with:
52
+ name: pypi-distributions
53
+ path: dist/
54
+ - name: Publish using a configured PyPI Trusted Publisher
55
+ uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # release/v1
@@ -0,0 +1,41 @@
1
+ name: Release artifacts
2
+ on:
3
+ workflow_dispatch:
4
+ permissions:
5
+ contents: read
6
+ jobs:
7
+ verify:
8
+ uses: ./.github/workflows/verify.yml
9
+ build:
10
+ needs: verify
11
+ runs-on: ubuntu-22.04
12
+ timeout-minutes: 15
13
+ steps:
14
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
15
+ with:
16
+ persist-credentials: false
17
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
18
+ with:
19
+ python-version: '3.9'
20
+ - run: python -m pip install '.[dev]'
21
+ - run: python scripts/check_repository.py
22
+ - run: python scripts/build_release.py
23
+ - run: python scripts/verify_artifacts.py
24
+ - run: python scripts/verify_pip.py
25
+ - run: python -m build --sdist --outdir dist/pypi
26
+ - run: cp dist/release/*.whl dist/pypi/
27
+ - run: python -m twine check dist/pypi/*
28
+ - run: python scripts/build_distribution.py
29
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
30
+ with:
31
+ name: domino-release
32
+ if-no-files-found: error
33
+ path: |
34
+ dist/release/*.whl
35
+ dist/release/domino-runtime-*.tar.gz
36
+ dist/release/release.json
37
+ dist/release/SHA256SUMS
38
+ dist/release/domino.rb.in
39
+ dist/artifact-verification.json
40
+ dist/pypi/*
41
+ dist/distribution-*/**
@@ -0,0 +1,61 @@
1
+ name: Verify
2
+ on:
3
+ workflow_call:
4
+ workflow_dispatch:
5
+ push:
6
+ pull_request:
7
+ permissions:
8
+ contents: read
9
+ concurrency:
10
+ group: verify-${{ github.workflow }}-${{ github.ref }}
11
+ cancel-in-progress: true
12
+ jobs:
13
+ regression:
14
+ timeout-minutes: 20
15
+ strategy:
16
+ fail-fast: false
17
+ matrix:
18
+ include:
19
+ - {os: ubuntu-22.04, python: '3.9'}
20
+ - {os: ubuntu-22.04, python: '3.10'}
21
+ - {os: ubuntu-24.04, python: '3.12'}
22
+ - {os: ubuntu-24.04-arm, python: '3.12'}
23
+ - {os: ubuntu-26.04, python: '3.14'}
24
+ - {os: macos-15-intel, python: '3.9'}
25
+ - {os: macos-15-intel, python: '3.13'}
26
+ - {os: macos-15, python: '3.14'}
27
+ runs-on: ${{ matrix.os }}
28
+ steps:
29
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
30
+ with:
31
+ persist-credentials: false
32
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
33
+ with:
34
+ python-version: ${{ matrix.python }}
35
+ - name: Install isolated Linux test dependencies
36
+ if: runner.os == 'Linux'
37
+ run: sudo apt-get update && sudo apt-get install -y zsh dbus-x11 dconf-cli dconf-service gsettings-desktop-schemas
38
+ - run: python -m pip install '.[dev]'
39
+ - run: python scripts/check_repository.py
40
+ - name: Fetch test core using authenticated release metadata
41
+ env:
42
+ GH_TOKEN: ${{ github.token }}
43
+ run: |
44
+ mkdir -p .test-resources
45
+ gh api repos/MetaCubeX/mihomo/releases/tags/v1.19.33 > .test-resources/release.json
46
+ python scripts/fetch_test_core.py --release-json .test-resources/release.json --output .test-resources/mihomo
47
+ - run: python scripts/verify.py --require-core
48
+ env:
49
+ DOMINO_TEST_CORE: ${{ github.workspace }}/.test-resources/mihomo
50
+ - run: python scripts/build_release.py
51
+ - run: python scripts/verify_artifacts.py
52
+ - run: python scripts/verify_pip.py
53
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
54
+ if: always()
55
+ with:
56
+ name: verification-${{ matrix.os }}-${{ matrix.python }}
57
+ path: |
58
+ dist/verification.json
59
+ dist/repository-verification.json
60
+ dist/artifact-verification.json
61
+ dist/pip-verification.json
@@ -0,0 +1,37 @@
1
+ .domino/
2
+ __pycache__/
3
+ mihomo-release.json
4
+ .venv/
5
+ dist/
6
+ build/
7
+ *.egg-info/
8
+ .coverage
9
+ .test-resources/
10
+ *.tar.gz
11
+
12
+ # Local credentials, private exports, and machine-specific files
13
+ .env
14
+ .env.*
15
+ !.env.example
16
+ *.pem
17
+ *.key
18
+ id_rsa
19
+ id_ed25519
20
+ secrets/
21
+ private/
22
+ .claude/settings.local.json
23
+ .DS_Store
24
+ .pytest_cache/
25
+ *.whl
26
+ .ruff_cache/
27
+ .mypy_cache/
28
+ .tox/
29
+ htmlcov/
30
+ *.sqlite
31
+ *.sqlite3
32
+ *.db
33
+
34
+ # Generated Debian packages and archive signatures
35
+ *.deb
36
+ *.changes
37
+ *.buildinfo