Compare commits

28 Commits

Author SHA1 Message Date
8eeb7fab40 chore(deps): update dependency pylint to v3.3.4
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
Python Linters / pylint (pull_request) Successful in 34s
Python Linters / formatting (pull_request) Successful in 30s
Python Linters / mypy (pull_request) Successful in 31s
REUSE Compliance / reuse (pull_request) Successful in 14s
Selftests / test-build-install (pull_request) Successful in 1m14s
Selftests / test-sync (pull_request) Successful in 58s
2025-01-31 23:06:44 +00:00
bea16d9b67 Bump version: 0.2.1 → 0.2.2
All checks were successful
Python package / build (push) Successful in 1m14s
Python Linters / pylint (push) Successful in 43s
Python Linters / formatting (push) Successful in 37s
Python Linters / mypy (push) Successful in 41s
Selftests / test-build-install (push) Successful in 40s
Selftests / test-sync (push) Successful in 1m2s
REUSE Compliance / reuse (push) Successful in 19s
2025-01-12 21:25:37 +01:00
f9e46060cf Revert "update release workflow to be based on releases"
Some checks failed
Python Linters / formatting (push) Waiting to run
Python Linters / mypy (push) Waiting to run
REUSE Compliance / reuse (push) Waiting to run
Selftests / test-build-install (push) Waiting to run
Selftests / test-sync (push) Waiting to run
Python Linters / pylint (push) Has been cancelled
This reverts commit be86ebad40.

This isn't possible with act
2025-01-12 21:24:57 +01:00
b250c89d38 Bump version: 0.2.0 → 0.2.1
All checks were successful
Python Linters / pylint (push) Successful in 40s
Python Linters / formatting (push) Successful in 36s
Python Linters / mypy (push) Successful in 38s
REUSE Compliance / reuse (push) Successful in 8s
Selftests / test-build-install (push) Successful in 42s
Selftests / test-sync (push) Successful in 1m3s
2025-01-12 21:17:45 +01:00
9a598a799d Merge pull request 'Update release workflow' (#26) from release-workflow into main
Some checks are pending
Python Linters / pylint (push) Waiting to run
Python Linters / formatting (push) Waiting to run
Python Linters / mypy (push) Waiting to run
REUSE Compliance / reuse (push) Waiting to run
Selftests / test-build-install (push) Waiting to run
Selftests / test-sync (push) Waiting to run
Reviewed-on: #26
2025-01-12 21:17:35 +01:00
be86ebad40 update release workflow to be based on releases
All checks were successful
Python Linters / pylint (pull_request) Successful in 45s
Python Linters / formatting (pull_request) Successful in 37s
Python Linters / mypy (pull_request) Successful in 38s
REUSE Compliance / reuse (pull_request) Successful in 9s
Selftests / test-build-install (pull_request) Successful in 40s
Selftests / test-sync (pull_request) Successful in 1m2s
2025-01-12 21:15:46 +01:00
a61f197da9 add bump-my-version 2025-01-12 21:15:25 +01:00
6ed3e30f56 fix poetry install in ubuntu 24.04
All checks were successful
Python Linters / pylint (push) Successful in 40s
Python Linters / formatting (push) Successful in 37s
Python Linters / mypy (push) Successful in 37s
REUSE Compliance / reuse (push) Successful in 9s
Selftests / test-build-install (push) Successful in 40s
Selftests / test-sync (push) Successful in 1m4s
2025-01-12 21:06:39 +01:00
a613879338 make log file destination configurable 2025-01-12 21:06:39 +01:00
78b9e3fd15 Merge pull request 'chore(deps): update fsfe/reuse-action action to v5' (#24) from renovate/fsfe-reuse-action-5.x into main
All checks were successful
Python Linters / pylint (push) Successful in 48s
Python Linters / formatting (push) Successful in 51s
Python Linters / mypy (push) Successful in 55s
REUSE Compliance / reuse (push) Successful in 16s
Selftests / test-build-install (push) Successful in 53s
Selftests / test-sync (push) Successful in 1m20s
Reviewed-on: #24
2024-12-16 11:09:46 +01:00
d47ea047b9 chore(deps): update fsfe/reuse-action action to v5
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
Python Linters / pylint (pull_request) Successful in 45s
Python Linters / formatting (pull_request) Successful in 53s
Python Linters / mypy (pull_request) Successful in 56s
REUSE Compliance / reuse (pull_request) Successful in 28s
Selftests / test-build-install (pull_request) Successful in 54s
Selftests / test-sync (pull_request) Successful in 1m29s
2024-12-16 10:03:00 +00:00
7f82643a25 Merge pull request 'chore(deps): update fsfe/reuse-action action to v4' (#22) from renovate/fsfe-reuse-action-4.x into main
All checks were successful
Python Linters / formatting (push) Successful in 1m17s
Python Linters / pylint (push) Successful in 1m26s
REUSE Compliance / reuse (push) Successful in 24s
Python Linters / mypy (push) Successful in 44s
Selftests / test-build-install (push) Successful in 45s
Selftests / test-sync (push) Successful in 1m5s
Reviewed-on: #22
2024-07-08 13:09:07 +02:00
f88df253e5 chore(deps): update fsfe/reuse-action action to v4
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
Python Linters / pylint (pull_request) Successful in 1m17s
Python Linters / formatting (pull_request) Successful in 26s
Python Linters / mypy (pull_request) Successful in 28s
REUSE Compliance / reuse (pull_request) Successful in 18s
Selftests / test-build-install (pull_request) Successful in 42s
Selftests / test-sync (pull_request) Successful in 1m25s
2024-07-06 22:03:59 +00:00
e68ef71536 Merge pull request 'chore(deps): update dependency pylint to v3.1.0' (#16) from renovate/pylint-3.x-lockfile into main
All checks were successful
Python Linters / formatting (push) Successful in 46s
Python Linters / pylint (push) Successful in 54s
REUSE Compliance / reuse (push) Successful in 11s
Python Linters / mypy (push) Successful in 47s
Selftests / test-build-install (push) Successful in 45s
Selftests / test-sync (push) Successful in 57s
Reviewed-on: #16
2024-03-01 13:42:41 +01:00
3c9130be14 Merge branch 'main' into renovate/pylint-3.x-lockfile
All checks were successful
Python Linters / formatting (pull_request) Successful in 54s
Python Linters / pylint (pull_request) Successful in 1m4s
REUSE Compliance / reuse (pull_request) Successful in 12s
Python Linters / mypy (pull_request) Successful in 52s
Selftests / test-build-install (pull_request) Successful in 50s
Selftests / test-sync (pull_request) Successful in 1m0s
2024-03-01 13:37:39 +01:00
90966e0c89 Merge pull request 'chore(deps): update fsfe/reuse-action action to v3' (#17) from renovate/fsfe-reuse-action-3.x into main
All checks were successful
Python Linters / formatting (push) Successful in 1m34s
Python Linters / pylint (push) Successful in 1m45s
REUSE Compliance / reuse (push) Successful in 25s
Python Linters / mypy (push) Successful in 46s
Selftests / test-build-install (push) Successful in 54s
Selftests / test-sync (push) Successful in 1m34s
Reviewed-on: #17
2024-03-01 13:27:48 +01:00
7002577290 chore(deps): update fsfe/reuse-action action to v3
All checks were successful
Python Linters / pylint (pull_request) Successful in 1m26s
Python Linters / formatting (pull_request) Successful in 38s
REUSE Compliance / reuse (pull_request) Successful in 26s
Python Linters / mypy (pull_request) Successful in 53s
Selftests / test-build-install (pull_request) Successful in 51s
Selftests / test-sync (pull_request) Successful in 1m35s
2024-02-27 23:02:11 +00:00
5d22f31c19 chore(deps): update dependency pylint to v3.1.0
Some checks failed
Python Linters / pylint (pull_request) Failing after 22s
Python Linters / formatting (pull_request) Failing after 33s
Python Linters / mypy (pull_request) Failing after 36s
REUSE Compliance / reuse (pull_request) Successful in 22s
Selftests / test-build-install (pull_request) Failing after 33s
Selftests / test-sync (pull_request) Failing after 36s
2024-02-25 23:03:15 +00:00
ffa853cb2a Merge pull request 'chore(deps): update dependency black to v24.2.0' (#15) from renovate/black-24.x-lockfile into main
All checks were successful
Python Linters / formatting (push) Successful in 1m30s
Python Linters / pylint (push) Successful in 1m41s
REUSE Compliance / reuse (push) Successful in 22s
Python Linters / mypy (push) Successful in 51s
Selftests / test-build-install (push) Successful in 47s
Selftests / test-sync (push) Successful in 1m6s
Reviewed-on: #15
2024-02-17 09:19:43 +01:00
c152bccd81 chore(deps): update dependency black to v24.2.0
All checks were successful
Python Linters / pylint (pull_request) Successful in 36s
Python Linters / formatting (pull_request) Successful in 45s
Python Linters / mypy (pull_request) Successful in 49s
REUSE Compliance / reuse (pull_request) Successful in 9s
Selftests / test-build-install (pull_request) Successful in 47s
Selftests / test-sync (pull_request) Successful in 1m29s
2024-02-12 23:02:34 +00:00
83a64a3c63 Merge pull request 'chore(deps): update jrubics/poetry-publish action to v2' (#14) from renovate/jrubics-poetry-publish-2.x into main
All checks were successful
Python Linters / pylint (push) Successful in 1m4s
Python Linters / formatting (push) Successful in 56s
Python Linters / mypy (push) Successful in 59s
REUSE Compliance / reuse (push) Successful in 10s
Selftests / test-build-install (push) Successful in 53s
Selftests / test-sync (push) Successful in 1m17s
Reviewed-on: #14
2024-02-09 09:46:14 +01:00
75fee2d622 chore(deps): update jrubics/poetry-publish action to v2
All checks were successful
Python Linters / pylint (pull_request) Successful in 1m0s
Python Linters / formatting (pull_request) Successful in 50s
Python Linters / mypy (pull_request) Successful in 50s
REUSE Compliance / reuse (pull_request) Successful in 20s
Selftests / test-build-install (pull_request) Successful in 53s
Selftests / test-sync (pull_request) Successful in 1m12s
2024-02-08 23:04:26 +00:00
8bcadaab3f Merge pull request 'chore(deps): update dependency black to v24.1.1' (#13) from renovate/black-24.x-lockfile into main
All checks were successful
Python Linters / pylint (push) Successful in 1m5s
Python Linters / formatting (push) Successful in 53s
Python Linters / mypy (push) Successful in 55s
REUSE Compliance / reuse (push) Successful in 11s
Selftests / test-build-install (push) Successful in 53s
Selftests / test-sync (push) Successful in 1m17s
Reviewed-on: #13
2024-01-29 16:32:12 +01:00
73ac8287dc chore(deps): update dependency black to v24.1.1
All checks were successful
Python Linters / pylint (pull_request) Successful in 39s
Python Linters / formatting (pull_request) Successful in 46s
REUSE Compliance / reuse (pull_request) Successful in 10s
Python Linters / mypy (pull_request) Successful in 50s
Selftests / test-build-install (pull_request) Successful in 46s
Selftests / test-sync (pull_request) Successful in 1m9s
2024-01-28 23:02:49 +00:00
d7b517dcfd Merge pull request 'chore(deps): update dependency black to v24' (#12) from renovate/black-24.x into main
All checks were successful
Python Linters / pylint (push) Successful in 1m0s
Python Linters / formatting (push) Successful in 50s
Python Linters / mypy (push) Successful in 52s
REUSE Compliance / reuse (push) Successful in 10s
Selftests / test-build-install (push) Successful in 49s
Selftests / test-sync (push) Successful in 1m19s
Reviewed-on: #12
2024-01-27 12:13:55 +01:00
408be1f7a5 chore(deps): update dependency black to v24
All checks were successful
Python Linters / pylint (pull_request) Successful in 39s
Python Linters / formatting (pull_request) Successful in 45s
Python Linters / mypy (pull_request) Successful in 48s
REUSE Compliance / reuse (pull_request) Successful in 9s
Selftests / test-build-install (pull_request) Successful in 43s
Selftests / test-sync (pull_request) Successful in 1m16s
2024-01-26 23:02:51 +00:00
9da3e2437a Merge pull request 'chore(deps): update actions/checkout action to v4' (#11) from renovate/actions-checkout-4.x into main
All checks were successful
Python Linters / formatting (push) Successful in 1m33s
Python Linters / pylint (push) Successful in 1m45s
REUSE Compliance / reuse (push) Successful in 22s
Python Linters / mypy (push) Successful in 53s
Selftests / test-build-install (push) Successful in 52s
Selftests / test-sync (push) Successful in 1m7s
Reviewed-on: #11
2024-01-17 19:49:50 +01:00
4c334858b2 chore(deps): update actions/checkout action to v4
All checks were successful
Python Linters / pylint (pull_request) Successful in 1m21s
Python Linters / formatting (pull_request) Successful in 26s
Python Linters / mypy (pull_request) Successful in 44s
REUSE Compliance / reuse (pull_request) Successful in 9s
Selftests / test-build-install (pull_request) Successful in 46s
Selftests / test-sync (pull_request) Successful in 1m19s
2024-01-16 23:00:41 +00:00
8 changed files with 60 additions and 47 deletions

View File

@@ -12,8 +12,10 @@ inputs:
runs:
using: "composite"
steps:
- name: Add pipx to PATH
run: echo "/root/.local/bin" >> ${GITHUB_PATH}
- name: Install poetry
run: pip install poetry
run: pipx install poetry
- name: Install poetry package
run: poetry install --no-interaction ${{ inputs.poetry_install_args }}
shell: bash

View File

@@ -14,7 +14,7 @@ jobs:
pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install dependencies
uses: ./.gitea/actions/poetrybuild
- name: Lint with pylint
@@ -23,7 +23,7 @@ jobs:
formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install dependencies
uses: ./.gitea/actions/poetrybuild
- name: Test formatting with isort and black
@@ -34,7 +34,7 @@ jobs:
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install dependencies
uses: ./.gitea/actions/poetrybuild
- name: Test typing with mypy

View File

@@ -13,6 +13,6 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Build and publish to PyPI
uses: https://github.com/JRubics/poetry-publish@v1.17
uses: https://github.com/JRubics/poetry-publish@v2.0
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}

View File

@@ -16,4 +16,4 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Check REUSE Compliance
uses: https://github.com/fsfe/reuse-action@v2
uses: https://github.com/fsfe/reuse-action@v5

View File

@@ -14,11 +14,13 @@ on:
jobs:
# Test building the package and installing it via pip3
test-build-install:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Add pipx to PATH
run: echo "/root/.local/bin" >> ${GITHUB_PATH}
- name: Install poetry
run: pip install poetry
run: pipx install poetry
- name: Build package
run: poetry build
- name: Install package

73
poetry.lock generated
View File

@@ -1,14 +1,14 @@
# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand.
# This file is automatically @generated by Poetry 1.8.4 and should not be changed by hand.
[[package]]
name = "astroid"
version = "3.0.2"
version = "3.3.8"
description = "An abstract syntax tree for Python with inference support."
optional = false
python-versions = ">=3.8.0"
python-versions = ">=3.9.0"
files = [
{file = "astroid-3.0.2-py3-none-any.whl", hash = "sha256:d6e62862355f60e716164082d6b4b041d38e2a8cf1c7cd953ded5108bac8ff5c"},
{file = "astroid-3.0.2.tar.gz", hash = "sha256:4a61cf0a59097c7bb52689b0fd63717cd2a8a14dc9f1eee97b82d814881c8c91"},
{file = "astroid-3.3.8-py3-none-any.whl", hash = "sha256:187ccc0c248bfbba564826c26f070494f7bc964fd286b6d9fff4420e55de828c"},
{file = "astroid-3.3.8.tar.gz", hash = "sha256:a88c7994f914a4ea8572fac479459f4955eeccc877be3f2d959a33273b0cf40b"},
]
[package.dependencies]
@@ -16,33 +16,33 @@ typing-extensions = {version = ">=4.0.0", markers = "python_version < \"3.11\""}
[[package]]
name = "black"
version = "23.12.1"
version = "24.2.0"
description = "The uncompromising code formatter."
optional = false
python-versions = ">=3.8"
files = [
{file = "black-23.12.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:e0aaf6041986767a5e0ce663c7a2f0e9eaf21e6ff87a5f95cbf3675bfd4c41d2"},
{file = "black-23.12.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c88b3711d12905b74206227109272673edce0cb29f27e1385f33b0163c414bba"},
{file = "black-23.12.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a920b569dc6b3472513ba6ddea21f440d4b4c699494d2e972a1753cdc25df7b0"},
{file = "black-23.12.1-cp310-cp310-win_amd64.whl", hash = "sha256:3fa4be75ef2a6b96ea8d92b1587dd8cb3a35c7e3d51f0738ced0781c3aa3a5a3"},
{file = "black-23.12.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:8d4df77958a622f9b5a4c96edb4b8c0034f8434032ab11077ec6c56ae9f384ba"},
{file = "black-23.12.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:602cfb1196dc692424c70b6507593a2b29aac0547c1be9a1d1365f0d964c353b"},
{file = "black-23.12.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9c4352800f14be5b4864016882cdba10755bd50805c95f728011bcb47a4afd59"},
{file = "black-23.12.1-cp311-cp311-win_amd64.whl", hash = "sha256:0808494f2b2df923ffc5723ed3c7b096bd76341f6213989759287611e9837d50"},
{file = "black-23.12.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:25e57fd232a6d6ff3f4478a6fd0580838e47c93c83eaf1ccc92d4faf27112c4e"},
{file = "black-23.12.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2d9e13db441c509a3763a7a3d9a49ccc1b4e974a47be4e08ade2a228876500ec"},
{file = "black-23.12.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6d1bd9c210f8b109b1762ec9fd36592fdd528485aadb3f5849b2740ef17e674e"},
{file = "black-23.12.1-cp312-cp312-win_amd64.whl", hash = "sha256:ae76c22bde5cbb6bfd211ec343ded2163bba7883c7bc77f6b756a1049436fbb9"},
{file = "black-23.12.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:1fa88a0f74e50e4487477bc0bb900c6781dbddfdfa32691e780bf854c3b4a47f"},
{file = "black-23.12.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:a4d6a9668e45ad99d2f8ec70d5c8c04ef4f32f648ef39048d010b0689832ec6d"},
{file = "black-23.12.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b18fb2ae6c4bb63eebe5be6bd869ba2f14fd0259bda7d18a46b764d8fb86298a"},
{file = "black-23.12.1-cp38-cp38-win_amd64.whl", hash = "sha256:c04b6d9d20e9c13f43eee8ea87d44156b8505ca8a3c878773f68b4e4812a421e"},
{file = "black-23.12.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:3e1b38b3135fd4c025c28c55ddfc236b05af657828a8a6abe5deec419a0b7055"},
{file = "black-23.12.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4f0031eaa7b921db76decd73636ef3a12c942ed367d8c3841a0739412b260a54"},
{file = "black-23.12.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:97e56155c6b737854e60a9ab1c598ff2533d57e7506d97af5481141671abf3ea"},
{file = "black-23.12.1-cp39-cp39-win_amd64.whl", hash = "sha256:dd15245c8b68fe2b6bd0f32c1556509d11bb33aec9b5d0866dd8e2ed3dba09c2"},
{file = "black-23.12.1-py3-none-any.whl", hash = "sha256:78baad24af0f033958cad29731e27363183e140962595def56423e626f4bee3e"},
{file = "black-23.12.1.tar.gz", hash = "sha256:4ce3ef14ebe8d9509188014d96af1c456a910d5b5cbf434a09fef7e024b3d0d5"},
{file = "black-24.2.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:6981eae48b3b33399c8757036c7f5d48a535b962a7c2310d19361edeef64ce29"},
{file = "black-24.2.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:d533d5e3259720fdbc1b37444491b024003e012c5173f7d06825a77508085430"},
{file = "black-24.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:61a0391772490ddfb8a693c067df1ef5227257e72b0e4108482b8d41b5aee13f"},
{file = "black-24.2.0-cp310-cp310-win_amd64.whl", hash = "sha256:992e451b04667116680cb88f63449267c13e1ad134f30087dec8527242e9862a"},
{file = "black-24.2.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:163baf4ef40e6897a2a9b83890e59141cc8c2a98f2dda5080dc15c00ee1e62cd"},
{file = "black-24.2.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:e37c99f89929af50ffaf912454b3e3b47fd64109659026b678c091a4cd450fb2"},
{file = "black-24.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4f9de21bafcba9683853f6c96c2d515e364aee631b178eaa5145fc1c61a3cc92"},
{file = "black-24.2.0-cp311-cp311-win_amd64.whl", hash = "sha256:9db528bccb9e8e20c08e716b3b09c6bdd64da0dd129b11e160bf082d4642ac23"},
{file = "black-24.2.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:d84f29eb3ee44859052073b7636533ec995bd0f64e2fb43aeceefc70090e752b"},
{file = "black-24.2.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:1e08fb9a15c914b81dd734ddd7fb10513016e5ce7e6704bdd5e1251ceee51ac9"},
{file = "black-24.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:810d445ae6069ce64030c78ff6127cd9cd178a9ac3361435708b907d8a04c693"},
{file = "black-24.2.0-cp312-cp312-win_amd64.whl", hash = "sha256:ba15742a13de85e9b8f3239c8f807723991fbfae24bad92d34a2b12e81904982"},
{file = "black-24.2.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:7e53a8c630f71db01b28cd9602a1ada68c937cbf2c333e6ed041390d6968faf4"},
{file = "black-24.2.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:93601c2deb321b4bad8f95df408e3fb3943d85012dddb6121336b8e24a0d1218"},
{file = "black-24.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a0057f800de6acc4407fe75bb147b0c2b5cbb7c3ed110d3e5999cd01184d53b0"},
{file = "black-24.2.0-cp38-cp38-win_amd64.whl", hash = "sha256:faf2ee02e6612577ba0181f4347bcbcf591eb122f7841ae5ba233d12c39dcb4d"},
{file = "black-24.2.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:057c3dc602eaa6fdc451069bd027a1b2635028b575a6c3acfd63193ced20d9c8"},
{file = "black-24.2.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:08654d0797e65f2423f850fc8e16a0ce50925f9337fb4a4a176a7aa4026e63f8"},
{file = "black-24.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ca610d29415ee1a30a3f30fab7a8f4144e9d34c89a235d81292a1edb2b55f540"},
{file = "black-24.2.0-cp39-cp39-win_amd64.whl", hash = "sha256:4dd76e9468d5536abd40ffbc7a247f83b2324f0c050556d9c371c2b9a9a95e31"},
{file = "black-24.2.0-py3-none-any.whl", hash = "sha256:e8a6ae970537e67830776488bca52000eaa37fa63b9988e8c487458d9cd5ace6"},
{file = "black-24.2.0.tar.gz", hash = "sha256:bce4f25c27c3435e4dace4815bcb2008b87e167e3bf4ee47ccdc5ce906eb4894"},
]
[package.dependencies]
@@ -287,24 +287,24 @@ vulture = ["vulture"]
[[package]]
name = "pylint"
version = "3.0.3"
version = "3.3.4"
description = "python code static checker"
optional = false
python-versions = ">=3.8.0"
python-versions = ">=3.9.0"
files = [
{file = "pylint-3.0.3-py3-none-any.whl", hash = "sha256:7a1585285aefc5165db81083c3e06363a27448f6b467b3b0f30dbd0ac1f73810"},
{file = "pylint-3.0.3.tar.gz", hash = "sha256:58c2398b0301e049609a8429789ec6edf3aabe9b6c5fec916acd18639c16de8b"},
{file = "pylint-3.3.4-py3-none-any.whl", hash = "sha256:289e6a1eb27b453b08436478391a48cd53bb0efb824873f949e709350f3de018"},
{file = "pylint-3.3.4.tar.gz", hash = "sha256:74ae7a38b177e69a9b525d0794bd8183820bfa7eb68cc1bee6e8ed22a42be4ce"},
]
[package.dependencies]
astroid = ">=3.0.1,<=3.1.0-dev0"
astroid = ">=3.3.8,<=3.4.0-dev0"
colorama = {version = ">=0.4.5", markers = "sys_platform == \"win32\""}
dill = [
{version = ">=0.2", markers = "python_version < \"3.11\""},
{version = ">=0.3.6", markers = "python_version >= \"3.11\""},
{version = ">=0.3.7", markers = "python_version >= \"3.12\""},
{version = ">=0.3.6", markers = "python_version >= \"3.11\" and python_version < \"3.12\""},
]
isort = ">=4.2.5,<5.13.0 || >5.13.0,<6"
isort = ">=4.2.5,<5.13.0 || >5.13.0,<7"
mccabe = ">=0.6,<0.8"
platformdirs = ">=2.2.0"
tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""}
@@ -339,6 +339,7 @@ files = [
{file = "PyYAML-6.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34"},
{file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"},
{file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"},
{file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef"},
{file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"},
{file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"},
{file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"},
@@ -431,4 +432,4 @@ files = [
[metadata]
lock-version = "2.0"
python-versions = "^3.10"
content-hash = "332efc80877eca1b272474c2e628ab22411accbcd37e72188e0e26bd618fba32"
content-hash = "210c4e76af0d8495eaec216a827eeb3d3ea247faf7234dc33735d3f8cb3583f4"

View File

@@ -22,7 +22,7 @@ pyyaml = "^6.0.1"
[tool.poetry.group.dev.dependencies]
pylint = "^3.0.0"
isort = "^5.12.0"
black = "^23.9.1"
black = "^24.0.0"
mypy = "^1.5.1"
pylama = "^8.4.1"
types-pyyaml = "^6.0.12.11"

View File

@@ -27,6 +27,11 @@ from ._seafile import (
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("-c", "--configdir", required=True, help="The config directory")
parser.add_argument(
"-l",
"--logfile",
help="The path to the logfile. Default: <configdir>/seafile_mirror.log",
)
parser.add_argument(
"-d",
"--dry",
@@ -52,14 +57,17 @@ parser.add_argument(
parser.add_argument("--version", action="version", version="%(prog)s " + __version__)
def main(): # pylint: disable=too-many-locals, too-many-statements
def main(): # pylint: disable=too-many-locals, too-many-statements, too-many-branches
"""Main function"""
args = parser.parse_args()
# Set files depending on configdir
configdir = args.configdir.rstrip("/") + "/"
configfile = configdir + "seafile_mirror.conf.yaml"
cachefile = configdir + ".seafile_mirror.db.json"
logfile = configdir + "seafile_mirror.log"
if args.logfile:
logfile = args.logfile
else:
logfile = configdir + "seafile_mirror.log"
# Logging
log = logging.getLogger()