Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"env": {
// "PYTEST_ADDOPTS": "--no-cov"
},
"envFile": "${workspaceFolder}/.env/dev.env",
"envFile": "${workspaceFolder}/asterisk.env/dev.env",
"name": "Python: The Current File",
"program": "${file}",
"request": "launch",
Expand Down
56 changes: 56 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
// See article list links:
//
// 1. https://go.microsoft.com/fwlink/?LinkId=733558
// 2. https://vscode-docs.readthedocs.io/en/stable/editor/tasks/
// 3. https://code.visualstudio.com/docs/editor/variables-reference/
// 4. https://docs.brew.sh/Homebrew-and-Python/
//
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "1. Python Clean",
"type": "shell",
"linux": {
"command": "${workspaceFolder}/Temp/bash/clean/.rmcache.sh"
},
"osx": {
"command": "${workspaceFolder}/Temp/bash/clean/.rmcache.sh"
},
"windows": {
"command": "${workspaceFolder}/Temp/bash/clean/.rmcache.ps1"
}
},
{
"label": "2. Python@2 or Python@3 Env",
"type": "shell",
"linux": {
"command": "echo ${workspaceFolder}"
},
"osx": {
"command": "python -c 'import sys;import json;print(json.dumps(sys.path, indent=4))'"
},
"windows": {
"command": "echo ${workspaceFolder}"
}
},
{
"label": "Z. Test",
"type": "shell",
"linux": {
"command": "echo ${workspaceFolder}"
},
"osx": {
// "command": "echo ${config:editor.fontSize}"
// "command": "echo ${config:python.envFile}"
// "command": "echo ${env:PYTHONPATH}"
// "command": "echo ${env:PATH}"
"command": "echo ${workspaceFolder}"
},
"windows": {
"command": "echo ${workspaceFolder}"
}
}
]
}
2 changes: 2 additions & 0 deletions .rmcache.ps1 → Temp/bash/clean/.rmcache.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ Remove-Item -Path .\src\com.dvsnier.*.egg-info -Recurse
Remove-Item -Path .\dist\* -Recurse
## ./out/log/*
Remove-Item -Path .\out\log\* -Recurse
## .pytest_cache
Remove-Item -Path .\.pytest_cache\* -Recurse
## __pycache__
Get-ChildItem -Path . -include __pycache__ -Recurse | Remove-Item
2 changes: 2 additions & 0 deletions .rmcache.sh → Temp/bash/clean/.rmcache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ find ./src -path "*com.dvsnier*" -delete
find ./dist -path "*" ! -name "dist" -delete
## ./out/log/*
find ./out/log -path "*" ! -name "log" -delete
## .pytest_cache
find ./.pytest_cache -path "*" ! -name ".pytest_cache" -delete
## __pycache__
find . -type d -name __pycache__ -exec rm -r {} +
17 changes: 17 additions & 0 deletions Temp/debug/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# README

## 说明

1. python@2.rb

```bash
# the install python@2 script
python@2.rb
```

2. get-pip.py

```bash
# the upgrade pip script
get-pip.py
```
24,306 changes: 24,306 additions & 0 deletions Temp/debug/get-pip.py

Large diffs are not rendered by default.

Loading