mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-08-06 06:07:21 +02:00
Compare commits
2 Commits
cc7fdcd39d
...
e02690148b
Author | SHA1 | Date | |
---|---|---|---|
e02690148b | |||
f4164c0039 |
6
.pre-commit-config.yaml
vendored
6
.pre-commit-config.yaml
vendored
@ -16,7 +16,7 @@ default_language_version:
|
|||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.6.0
|
rev: v5.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-added-large-files
|
- id: check-added-large-files
|
||||||
- id: check-case-conflict
|
- id: check-case-conflict
|
||||||
@ -54,7 +54,7 @@ repos:
|
|||||||
args: [--update-only]
|
args: [--update-only]
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
rev: "v1.11.2"
|
rev: "v1.14.1"
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
additional_dependencies: [types-tabulate]
|
additional_dependencies: [types-tabulate]
|
||||||
@ -66,7 +66,7 @@ repos:
|
|||||||
name: isort (python)
|
name: isort (python)
|
||||||
|
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 24.8.0
|
rev: 24.10.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
3.13.0rc2
|
system
|
||||||
|
@ -4,32 +4,38 @@
|
|||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
# If syncplay doesn't exist, get it
|
if [ -f "/tmp/syncplay.$(id -u).$(date -I)" ]; then
|
||||||
if [ ! -d "$HOME/src/github.com/syncplay" ]; then
|
echo "Syncplay has been touched today"
|
||||||
mkdir -p ~/src/github.com/syncplay/syncplay
|
|
||||||
git clone https://github.com/syncplay/syncplay.git ~/src/github.com/syncplay/syncplay || exit
|
|
||||||
mkdir -p ~/src/github.com/syncplay/syncplay/venv
|
|
||||||
else
|
else
|
||||||
# In this case Syncplay does exist, let's upgrade it
|
# If syncplay doesn't exist, get it
|
||||||
|
if [ ! -d "$HOME/src/github.com/syncplay" ]; then
|
||||||
|
mkdir -p ~/src/github.com/syncplay/syncplay
|
||||||
|
git clone https://github.com/syncplay/syncplay.git ~/src/github.com/syncplay/syncplay || exit
|
||||||
|
mkdir -p ~/src/github.com/syncplay/syncplay/venv
|
||||||
|
else
|
||||||
|
# In this case Syncplay does exist, let's upgrade it
|
||||||
|
cd ~/src/github.com/syncplay/syncplay || exit
|
||||||
|
git pull || exit
|
||||||
|
mkdir -p venv
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Let's ensure we have venv setup. Spellcheck complains if I won't || exit
|
||||||
|
# every cd, which I understand to mean in failure case terminate the script.
|
||||||
cd ~/src/github.com/syncplay/syncplay || exit
|
cd ~/src/github.com/syncplay/syncplay || exit
|
||||||
git pull || exit
|
python3 -m venv venv || exit
|
||||||
mkdir -p venv
|
# Switch to the venv
|
||||||
|
. ~/src/github.com/syncplay/syncplay/venv/bin/activate
|
||||||
|
|
||||||
|
# pip will complain if it has updates available, so it must be updated
|
||||||
|
# and the syncplay requirements should be up-to-date too.
|
||||||
|
pip3 install pip --upgrade
|
||||||
|
pip3 install -r requirements.txt --upgrade
|
||||||
|
pip3 install -r requirements_gui.txt --upgrade
|
||||||
|
touch /tmp/syncplay.$(id -u).$(date -I)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Let's ensure we have venv setup. Spellcheck complains if I won't || exit
|
# finally launch the syncplay with any flags specified
|
||||||
# every cd, which I understand to mean in failure case terminate the script.
|
|
||||||
cd ~/src/github.com/syncplay/syncplay || exit
|
|
||||||
python3 -m venv venv || exit
|
|
||||||
# Switch to the venv
|
|
||||||
. ~/src/github.com/syncplay/syncplay/venv/bin/activate
|
. ~/src/github.com/syncplay/syncplay/venv/bin/activate
|
||||||
|
|
||||||
# pip will complain if it has updates available, so it must be updated
|
|
||||||
# and the syncplay requirements should be up-to-date too.
|
|
||||||
pip3 install pip --upgrade
|
|
||||||
pip3 install -r requirements.txt --upgrade
|
|
||||||
pip3 install -r requirements_gui.txt --upgrade
|
|
||||||
|
|
||||||
# finally launch the syncplay server with any flags specified
|
|
||||||
~/src/github.com/syncplay/syncplay/syncplayClient.py "$@"
|
~/src/github.com/syncplay/syncplay/syncplayClient.py "$@"
|
||||||
# my syncplay launcher says this is a terminal app, so in case something goes
|
# my syncplay launcher says this is a terminal app, so in case something goes
|
||||||
# wrong, let it stay open for a moment for me to see what.
|
# wrong, let it stay open for a moment for me to see what.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@aminda/global-prettier-config": "2024.28.4"
|
"@aminda/global-prettier-config": "2025.1.0"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@9.11.0+sha512.0a203ffaed5a3f63242cd064c8fb5892366c103e328079318f78062f24ea8c9d50bc6a47aa3567cabefd824d170e78fa2745ed1f16b132e16436146b7688f19b",
|
"packageManager": "pnpm@9.15.3+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a",
|
||||||
"prettier": "@aminda/global-prettier-config"
|
"prettier": "@aminda/global-prettier-config"
|
||||||
}
|
}
|
||||||
|
50
pnpm-lock.yaml
generated
vendored
50
pnpm-lock.yaml
generated
vendored
@ -8,14 +8,14 @@ importers:
|
|||||||
.:
|
.:
|
||||||
devDependencies:
|
devDependencies:
|
||||||
"@aminda/global-prettier-config":
|
"@aminda/global-prettier-config":
|
||||||
specifier: 2024.28.4
|
specifier: 2025.1.0
|
||||||
version: 2024.28.4
|
version: 2025.1.0
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
"@aminda/global-prettier-config@2024.28.4":
|
"@aminda/global-prettier-config@2025.1.0":
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
integrity: sha512-VjyTd8fFRnLgZRAMDRr9pm5hknnsVxpTCshvvE7RAiuH72hUzC82rm5vXDJjrhkedWJir2qZjmiC5Vo2LoR4tw==,
|
integrity: sha512-8xSL+2rG5Qc4nDTz1SLwQMKC+j2ET7y7Ez+j3ZaKz4EKC9IjG4LgRGq3cHp5fWwTPnuH33zGWkUbvS+Qu+QnJA==,
|
||||||
}
|
}
|
||||||
|
|
||||||
"@prettier/plugin-ruby@4.0.4":
|
"@prettier/plugin-ruby@4.0.4":
|
||||||
@ -88,10 +88,10 @@ packages:
|
|||||||
peerDependencies:
|
peerDependencies:
|
||||||
prettier: ^3.0.3
|
prettier: ^3.0.3
|
||||||
|
|
||||||
prettier@3.3.3:
|
prettier@3.4.2:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
integrity: sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==,
|
integrity: sha512-e9MewbtFo+Fevyuxn/4rrcDAaq0IYxPGLvObpQjiZBMAzB9IGmzlnG9RZy3FFas+eBMu2vA0CszMeduow5dIuQ==,
|
||||||
}
|
}
|
||||||
engines: { node: ">=14" }
|
engines: { node: ">=14" }
|
||||||
hasBin: true
|
hasBin: true
|
||||||
@ -109,30 +109,30 @@ packages:
|
|||||||
}
|
}
|
||||||
engines: { node: ">=16.0.0" }
|
engines: { node: ">=16.0.0" }
|
||||||
|
|
||||||
tslib@2.7.0:
|
tslib@2.8.1:
|
||||||
resolution:
|
resolution:
|
||||||
{
|
{
|
||||||
integrity: sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==,
|
integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==,
|
||||||
}
|
}
|
||||||
|
|
||||||
snapshots:
|
snapshots:
|
||||||
"@aminda/global-prettier-config@2024.28.4":
|
"@aminda/global-prettier-config@2025.1.0":
|
||||||
dependencies:
|
dependencies:
|
||||||
"@prettier/plugin-ruby": 4.0.4(prettier@3.3.3)
|
"@prettier/plugin-ruby": 4.0.4(prettier@3.4.2)
|
||||||
"@prettier/plugin-xml": 3.4.1(prettier@3.3.3)
|
"@prettier/plugin-xml": 3.4.1(prettier@3.4.2)
|
||||||
prettier: 3.3.3
|
prettier: 3.4.2
|
||||||
prettier-plugin-nginx: 1.0.3
|
prettier-plugin-nginx: 1.0.3
|
||||||
prettier-plugin-sh: 0.14.0(prettier@3.3.3)
|
prettier-plugin-sh: 0.14.0(prettier@3.4.2)
|
||||||
prettier-plugin-toml: 2.0.1(prettier@3.3.3)
|
prettier-plugin-toml: 2.0.1(prettier@3.4.2)
|
||||||
|
|
||||||
"@prettier/plugin-ruby@4.0.4(prettier@3.3.3)":
|
"@prettier/plugin-ruby@4.0.4(prettier@3.4.2)":
|
||||||
dependencies:
|
dependencies:
|
||||||
prettier: 3.3.3
|
prettier: 3.4.2
|
||||||
|
|
||||||
"@prettier/plugin-xml@3.4.1(prettier@3.3.3)":
|
"@prettier/plugin-xml@3.4.1(prettier@3.4.2)":
|
||||||
dependencies:
|
dependencies:
|
||||||
"@xml-tools/parser": 1.0.11
|
"@xml-tools/parser": 1.0.11
|
||||||
prettier: 3.3.3
|
prettier: 3.4.2
|
||||||
|
|
||||||
"@taplo/core@0.1.1": {}
|
"@taplo/core@0.1.1": {}
|
||||||
|
|
||||||
@ -152,23 +152,23 @@ snapshots:
|
|||||||
|
|
||||||
prettier-plugin-nginx@1.0.3: {}
|
prettier-plugin-nginx@1.0.3: {}
|
||||||
|
|
||||||
prettier-plugin-sh@0.14.0(prettier@3.3.3):
|
prettier-plugin-sh@0.14.0(prettier@3.4.2):
|
||||||
dependencies:
|
dependencies:
|
||||||
mvdan-sh: 0.10.1
|
mvdan-sh: 0.10.1
|
||||||
prettier: 3.3.3
|
prettier: 3.4.2
|
||||||
sh-syntax: 0.4.2
|
sh-syntax: 0.4.2
|
||||||
|
|
||||||
prettier-plugin-toml@2.0.1(prettier@3.3.3):
|
prettier-plugin-toml@2.0.1(prettier@3.4.2):
|
||||||
dependencies:
|
dependencies:
|
||||||
"@taplo/lib": 0.4.0-alpha.2
|
"@taplo/lib": 0.4.0-alpha.2
|
||||||
prettier: 3.3.3
|
prettier: 3.4.2
|
||||||
|
|
||||||
prettier@3.3.3: {}
|
prettier@3.4.2: {}
|
||||||
|
|
||||||
regexp-to-ast@0.5.0: {}
|
regexp-to-ast@0.5.0: {}
|
||||||
|
|
||||||
sh-syntax@0.4.2:
|
sh-syntax@0.4.2:
|
||||||
dependencies:
|
dependencies:
|
||||||
tslib: 2.7.0
|
tslib: 2.8.1
|
||||||
|
|
||||||
tslib@2.7.0: {}
|
tslib@2.8.1: {}
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 5b0ff868c2ec5b3d9e71992817476e3f28c5c4f9
|
Subproject commit fd22db93a8e20a65595b40f362668d5e9e51284e
|
@ -1 +1 @@
|
|||||||
Subproject commit 6104f90c814d4b6f676d6d5ab3d3ab470e22f817
|
Subproject commit b48afe1131b83cd1003c9aa9bcc6820a6d132c92
|
Loading…
x
Reference in New Issue
Block a user