sing-box-cli 0.0.6__tar.gz → 0.0.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 (21) hide show
  1. {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/CHANGELOG.md +6 -1
  2. {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/PKG-INFO +1 -1
  3. {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/pyproject.toml +1 -1
  4. {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/src/sing_box_service/__init__.py +1 -1
  5. {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/src/sing_box_service/service.py +4 -2
  6. {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/uv.lock +1 -1
  7. {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/.github/dependabot.yml +0 -0
  8. {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/.github/workflows/main.yml +0 -0
  9. {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/.gitignore +0 -0
  10. {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/.pre-commit-config.yaml +0 -0
  11. {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/.vscode/PythonImportHelper-v2-Completion.json +0 -0
  12. {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/.vscode/settings.json +0 -0
  13. {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/LICENSE +0 -0
  14. {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/README.md +0 -0
  15. {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/assets/image.png +0 -0
  16. {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/scripts/bump.sh +0 -0
  17. {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/scripts/format.sh +0 -0
  18. {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/scripts/lint.sh +0 -0
  19. {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/src/sing_box_service/config.py +0 -0
  20. {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/src/sing_box_service/main.py +0 -0
  21. {sing_box_cli-0.0.6 → sing_box_cli-0.0.8}/src/sing_box_service/py.typed +0 -0
@@ -2,12 +2,17 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
- ## 0.0.6 - 2025-01-09
5
+ ## 0.0.8 - 2025-01-14
6
6
 
7
7
  ### 🚀 Features
8
8
 
9
9
  - Add config clean_cache
10
10
 
11
+ ### 🐛 Bug Fixes
12
+
13
+ - Service start before network connection
14
+ - Linux service After start condition
15
+
11
16
  ### 📚 Documentation
12
17
 
13
18
  - Update linux install and run
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sing-box-cli
3
- Version: 0.0.6
3
+ Version: 0.0.8
4
4
  Summary: cross-platform sing-box-service manager.
5
5
  Project-URL: Homepage, https://github.com/aittcuszz/sing-box-service
6
6
  Project-URL: Issues, https://github.com/atticuszz/sing-box-service/issues
@@ -209,7 +209,7 @@ sort_commits = "oldest"
209
209
 
210
210
 
211
211
  [tool.bumpversion]
212
- current_version = "0.0.6"
212
+ current_version = "0.0.8"
213
213
  parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
214
214
  serialize = ["{major}.{minor}.{patch}"]
215
215
  search = "{current_version}"
@@ -2,4 +2,4 @@ from .main import main
2
2
 
3
3
  __all__ = ["main"]
4
4
 
5
- __version__ = "0.0.6"
5
+ __version__ = "0.0.8"
@@ -159,11 +159,14 @@ class LinuxServiceManager(ServiceManager):
159
159
  self.service_file = Path("/etc/systemd/system/sing-box.service")
160
160
 
161
161
  def create_service(self) -> None:
162
+ """systemctl list-units | grep -i network"""
162
163
  service_content = f"""
163
164
  [Unit]
164
165
  Description=sing-box service
165
166
  Documentation=https://sing-box.sagernet.org
166
- After=network.target nss-lookup.target
167
+ After=network-online.target NetworkManager-wait-online.service nss-lookup.target
168
+ Wants=network-online.target nss-lookup.target
169
+ BindsTo=NetworkManager.service
167
170
 
168
171
  [Service]
169
172
  Type=simple
@@ -172,7 +175,6 @@ LimitNOFILE=1000000
172
175
  CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_SYS_TIME CAP_SYS_PTRACE CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE
173
176
  AmbientCapabilities=CAP_NET_ADMIN CAP_NET_RAW CAP_NET_BIND_SERVICE CAP_SYS_TIME CAP_SYS_PTRACE CAP_DAC_READ_SEARCH CAP_DAC_OVERRIDE
174
177
  Restart=always
175
- ExecStartPre={self.config.bin_path} tools synctime -w -C {self.config.install_dir}
176
178
  ExecStart={self.config.bin_path} run -C {self.config.install_dir}
177
179
  ExecReload=/bin/kill -HUP $MAINPID
178
180
 
@@ -547,7 +547,7 @@ wheels = [
547
547
 
548
548
  [[package]]
549
549
  name = "sing-box-cli"
550
- version = "0.0.6"
550
+ version = "0.0.8"
551
551
  source = { editable = "." }
552
552
  dependencies = [
553
553
  { name = "psutil", marker = "sys_platform == 'linux' or sys_platform == 'win32'" },
File without changes
File without changes
File without changes