Compare commits

12 Commits

Author SHA1 Message Date
64f3256d3d sort
Some checks failed
Python Linters / formatting (pull_request) Has been cancelled
Python Linters / mypy (pull_request) Has been cancelled
Python Linters / pylint (pull_request) Has been cancelled
REUSE Compliance / reuse (pull_request) Successful in 9s
Selftests / test-build-install (pull_request) Failing after 8s
Selftests / test-sync (pull_request) Has been cancelled
2025-01-12 19:55:01 +01:00
bf9d229fc7 add cache
Some checks failed
Python Linters / pylint (pull_request) Failing after 58s
Python Linters / formatting (pull_request) Failing after 10s
Python Linters / mypy (pull_request) Failing after 10s
REUSE Compliance / reuse (pull_request) Successful in 8s
Selftests / test-build-install (pull_request) Failing after 7s
Selftests / test-sync (pull_request) Failing after 9s
2025-01-12 19:45:10 +01:00
553dffae1f prod
Some checks failed
Python Linters / formatting (pull_request) Successful in 1m4s
Python Linters / pylint (pull_request) Failing after 1m12s
REUSE Compliance / reuse (pull_request) Successful in 14s
Selftests / test-build-install (pull_request) Failing after 11s
Python Linters / mypy (pull_request) Successful in 1m5s
Selftests / test-sync (pull_request) Failing after 58s
2025-01-12 19:37:37 +01:00
7ea7181947 syntax
Some checks failed
Python Linters / pylint (pull_request) Failing after 14s
Python Linters / formatting (pull_request) Failing after 14s
Python Linters / mypy (pull_request) Failing after 13s
REUSE Compliance / reuse (pull_request) Successful in 13s
Selftests / test-build-install (pull_request) Failing after 10s
Selftests / test-sync (pull_request) Failing after 11s
2025-01-12 19:36:45 +01:00
dfd8f242e8 try copy paste
Some checks failed
Python Linters / pylint (pull_request) Failing after 55s
Python Linters / formatting (pull_request) Failing after 54s
Python Linters / mypy (pull_request) Failing after 9s
REUSE Compliance / reuse (pull_request) Successful in 12s
Selftests / test-build-install (pull_request) Failing after 11s
Selftests / test-sync (pull_request) Failing after 9s
2025-01-12 19:06:41 +01:00
4dc7f8dc15 neu
Some checks failed
Python Linters / pylint (pull_request) Failing after 12s
Python Linters / formatting (pull_request) Failing after 12s
Python Linters / mypy (pull_request) Failing after 11s
REUSE Compliance / reuse (pull_request) Successful in 12s
Selftests / test-build-install (pull_request) Failing after 12s
Selftests / test-sync (pull_request) Failing after 12s
2025-01-12 13:24:19 +01:00
b5d635d92e echo to path
Some checks failed
Python Linters / pylint (pull_request) Failing after 14s
Python Linters / formatting (pull_request) Failing after 13s
Python Linters / mypy (pull_request) Failing after 14s
REUSE Compliance / reuse (pull_request) Successful in 13s
Selftests / test-build-install (pull_request) Failing after 11s
Selftests / test-sync (pull_request) Failing after 12s
2025-01-12 13:22:39 +01:00
752c2a37ae printenv
Some checks failed
Python Linters / pylint (pull_request) Failing after 51s
Python Linters / formatting (pull_request) Failing after 51s
REUSE Compliance / reuse (pull_request) Successful in 15s
Selftests / test-build-install (pull_request) Failing after 11s
Python Linters / mypy (pull_request) Failing after 51s
Selftests / test-sync (pull_request) Failing after 38s
2025-01-12 13:19:58 +01:00
069ffd94e3 echo
Some checks failed
Python Linters / pylint (pull_request) Failing after 53s
Python Linters / formatting (pull_request) Failing after 53s
REUSE Compliance / reuse (pull_request) Successful in 14s
Selftests / test-build-install (pull_request) Failing after 11s
Python Linters / mypy (pull_request) Failing after 50s
Selftests / test-sync (pull_request) Failing after 39s
2025-01-12 13:14:55 +01:00
8a778247ca try CI fixes
Some checks failed
Python Linters / pylint (pull_request) Failing after 51s
Python Linters / formatting (pull_request) Failing after 51s
REUSE Compliance / reuse (pull_request) Successful in 12s
Selftests / test-build-install (pull_request) Failing after 12s
Python Linters / mypy (pull_request) Failing after 45s
Selftests / test-sync (pull_request) Failing after 35s
2025-01-12 12:27:43 +01:00
6eaf0a795d fix poetry install in ubuntu 24.04
Some checks failed
Python Linters / pylint (push) Failing after 48s
Python Linters / formatting (push) Failing after 50s
REUSE Compliance / reuse (push) Successful in 13s
Selftests / test-build-install (push) Failing after 11s
Python Linters / mypy (push) Failing after 48s
Selftests / test-sync (push) Failing after 35s
2025-01-12 12:25:44 +01:00
576ef895e0 make log file destination configurable
Some checks failed
Python Linters / pylint (push) Failing after 57s
Python Linters / formatting (push) Failing after 55s
REUSE Compliance / reuse (push) Successful in 18s
Python Linters / mypy (push) Failing after 11s
Selftests / test-build-install (push) Failing after 9s
Selftests / test-sync (push) Failing after 10s
2025-01-12 12:11:58 +01:00
2 changed files with 17 additions and 2 deletions

View File

@@ -12,8 +12,14 @@ inputs:
runs: runs:
using: "composite" using: "composite"
steps: steps:
- name: Add pipx to PATH
run: echo "/root/.local/bin" >> ${GITHUB_PATH}
- name: Install poetry - name: Install poetry
run: pip install poetry run: pipx install poetry
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "poetry" # caching poetry dependencies
- name: Install poetry package - name: Install poetry package
run: poetry install --no-interaction ${{ inputs.poetry_install_args }} run: poetry install --no-interaction ${{ inputs.poetry_install_args }}
shell: bash shell: bash

View File

@@ -27,6 +27,12 @@ from ._seafile import (
parser = argparse.ArgumentParser(description=__doc__) parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("-c", "--configdir", required=True, help="The config directory") parser.add_argument("-c", "--configdir", required=True, help="The config directory")
parser.add_argument(
"-l",
"--logfile",
required=True,
help="The path to the logfile. Default: <configdir>/seafile_mirror.log",
)
parser.add_argument( parser.add_argument(
"-d", "-d",
"--dry", "--dry",
@@ -59,7 +65,10 @@ def main(): # pylint: disable=too-many-locals, too-many-statements
configdir = args.configdir.rstrip("/") + "/" configdir = args.configdir.rstrip("/") + "/"
configfile = configdir + "seafile_mirror.conf.yaml" configfile = configdir + "seafile_mirror.conf.yaml"
cachefile = configdir + ".seafile_mirror.db.json" cachefile = configdir + ".seafile_mirror.db.json"
logfile = configdir + "seafile_mirror.log" if args.logfile:
logfile = args.logfile
else:
logfile = configdir + "seafile_mirror.log"
# Logging # Logging
log = logging.getLogger() log = logging.getLogger()