Skip to content

Commit 36b6625

Browse files
authored
Merge pull request #475 from Der-Henning/dev
update dependencies
2 parents 07f3089 + 953b337 commit 36b6625

26 files changed

+1122
-208
lines changed

.devcontainer/devcontainer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"VARIANT": "3.11",
1313
// Options
1414
// "NODE_VERSION": "lts/*",
15-
"POETRY_VERSION": "1.7.1"
15+
"POETRY_VERSION": "1.8.2"
1616
}
1717
},
1818
// Set *default* container specific settings.json values on container create.

.github/workflows/dependabot.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414

1515
env:
1616
PYTHON_VERSION: '3.11'
17-
POETRY_VERSION: 1.7.1
17+
POETRY_VERSION: 1.8.2
1818

1919
jobs:
2020
run:

.github/workflows/release.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
env:
1212
PYTHON_VERSION: '3.11'
13-
POETRY_VERSION: 1.7.1
13+
POETRY_VERSION: 1.8.2
1414

1515
jobs:
1616
docker-images:
@@ -108,13 +108,22 @@ jobs:
108108
poetry-version: ${{ env.POETRY_VERSION }}
109109
python-version: ${{ env.PYTHON_VERSION }}
110110
without: test
111-
- name: Run PyInstaller
111+
- name: Run PyInstaller (linux/macos)
112+
if: matrix.tag == 'linux' || matrix.tag == 'macos'
112113
run: |
113114
poetry run pyinstaller scanner.spec
114115
cp ./config.sample.ini ./dist/config.ini
115116
cp ./README.md ./dist/README.md
116117
cp ./LICENSE ./dist/LICENSE
117118
./dist/scanner -v
119+
- name: Run PyInstaller (win)
120+
if: matrix.tag == 'win'
121+
run: |
122+
poetry run pyinstaller scanner_win.spec
123+
cp ./config.sample.ini ./dist/scanner/config.ini
124+
cp ./README.md ./dist/scanner/README.md
125+
cp ./LICENSE ./dist/scanner/LICENSE
126+
./dist/scanner/scanner -v
118127
- name: Make filename for archive
119128
id: filename
120129
shell: bash
@@ -124,7 +133,7 @@ jobs:
124133
run: zip -j ./${{ steps.filename.outputs.FILENAME }} ./dist/*
125134
- name: Zip files (win)
126135
if: matrix.tag == 'win'
127-
run: Compress-Archive ./dist/* ./${{ steps.filename.outputs.FILENAME }}
136+
run: Compress-Archive ./dist/scanner/* ./${{ steps.filename.outputs.FILENAME }}
128137
- name: Upload archive
129138
uses: actions/upload-artifact@v4
130139
with:

.github/workflows/tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55

66
env:
7-
POETRY_VERSION: 1.7.1
7+
POETRY_VERSION: 1.8.2
88

99
jobs:
1010
tests:
@@ -30,4 +30,4 @@ jobs:
3030
run: poetry run pre-commit run -a
3131
- name: Run tests
3232
run: poetry run pytest -v -m "not tgtg_api" --cov=tgtg_scanner --cov-report=xml
33-
- uses: codecov/codecov-action@v3
33+
- uses: codecov/codecov-action@v4

.github/workflows/tgtg.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
env:
88
PYTHON_VERSION: '3.11'
9-
POETRY_VERSION: 1.7.1
9+
POETRY_VERSION: 1.8.2
1010

1111
jobs:
1212
test:

.pre-commit-config.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
exclude: (build|dist)
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.5.0
4+
rev: v4.6.0
55
hooks:
66
- id: trailing-whitespace
77
- id: check-added-large-files
@@ -13,7 +13,7 @@ repos:
1313
- id: check-added-large-files
1414

1515
- repo: https://github.com/ambv/black
16-
rev: 24.2.0
16+
rev: 24.4.2
1717
hooks:
1818
- id: black
1919
args: [--line-length, '130', --target-version, py38]
@@ -31,7 +31,7 @@ repos:
3131
args: [--max-line-length, '130']
3232

3333
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
34-
rev: v2.12.0
34+
rev: v2.13.0
3535
hooks:
3636
- id: pretty-format-toml
3737
args: [--autofix]
@@ -42,13 +42,13 @@ repos:
4242
args: [--autofix]
4343

4444
- repo: https://github.com/igorshubovych/markdownlint-cli
45-
rev: v0.39.0
45+
rev: v0.40.0
4646
hooks:
4747
- id: markdownlint
4848
args: [--fix]
4949

5050
- repo: https://github.com/python-poetry/poetry
51-
rev: 1.8.0
51+
rev: 1.8.2
5252
hooks:
5353
- id: poetry-check
5454
- id: poetry-lock
@@ -57,7 +57,7 @@ repos:
5757
args: [-f, requirements.txt, -o, requirements.txt, --without-hashes]
5858

5959
- repo: https://github.com/pre-commit/mirrors-mypy
60-
rev: v1.8.0
60+
rev: v1.10.0
6161
hooks:
6262
- id: mypy
6363
additional_dependencies: [types-requests]

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ Alternatively, install all required development environment dependencies, includ
222222
make install
223223
```
224224

225-
For developement and testing it is sometimes usefull to trigger TGTG Magic Bag events.
225+
For developement and testing it is sometimes useful to trigger TGTG Magic Bag events.
226226
For this purpose you can run the TGTG dev API proxy server.
227227
The proxy redirects all requests to the official TGTG API server.
228228
The responses from the item endpoint are modified by randomizing the amount of available magic bags.
@@ -245,7 +245,7 @@ make server
245245

246246
Feel free to create and contribute new notifiers for other services and endpoints.
247247
You can use an existing notifier as a template or build upon the webhook notifier.
248-
E.g. see the [ifttt notifier](https://github.com/Der-Henning/tgtg/blob/main/src/notifiers/ifttt.py).
248+
E.g. see the [ifttt notifier](https://github.com/Der-Henning/tgtg/blob/main/tgtg_scanner/notifiers/ifttt.py).
249249

250250
---
251251
If you want to support me, feel free to buy me a coffee.

config.sample.ini

+9
Original file line numberDiff line numberDiff line change
@@ -185,3 +185,12 @@ URL =
185185
Enabled = false
186186
Command =
187187
; Cron =
188+
189+
[DISCORD]
190+
## Register an application and associated bot user for use with TGTG scanner at https://discord.com/developers/applications
191+
## See wiki for more information
192+
Enabled = false
193+
Prefix = !
194+
Token =
195+
Body =
196+
; Cron =

docker/Dockerfile

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ ENV PYTHONUNBUFFERED=1 \
55
PIP_NO_CACHE_DIR=off \
66
PIP_DISABLE_PIP_VERSION_CHECK=on \
77
PIP_NO_WARN_SCRIPT_LOCATION=0 \
8-
PIP_ROOT_USER_ACTION=ignore
8+
PIP_ROOT_USER_ACTION=ignore \
9+
AIOHTTP_NO_EXTENSIONS=1 \
10+
MULTIDICT_NO_EXTENSIONS=1 \
11+
YARL_NO_EXTENSIONS=1
912
ENV TGTG_TOKEN_PATH=/tokens
1013
ENV LOGS_PATH=/logs
1114
ENV DOCKER=true

docker/Dockerfile.alpine

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ ENV PYTHONUNBUFFERED=1 \
55
PIP_NO_CACHE_DIR=off \
66
PIP_DISABLE_PIP_VERSION_CHECK=on \
77
PIP_NO_WARN_SCRIPT_LOCATION=0 \
8-
PIP_ROOT_USER_ACTION=ignore
8+
PIP_ROOT_USER_ACTION=ignore \
9+
AIOHTTP_NO_EXTENSIONS=1 \
10+
MULTIDICT_NO_EXTENSIONS=1 \
11+
YARL_NO_EXTENSIONS=1
912
ENV TGTG_TOKEN_PATH=/tokens
1013
ENV LOGS_PATH=/logs
1114
ENV DOCKER=true

0 commit comments

Comments
 (0)