Georges-Antoine Assi
90e0e688b7
Merge branch 'master' into calc-file-hashes-roms
2024-08-09 11:36:50 -04:00
Michael Manganiello
16cb380cc0
misc: Use async interface for stream-zip
...
Replace use of synchronous `stream_zip` implementation, with
`async_stream_zip`. [1]
[1] https://stream-zip.docs.trade.gov.uk/async-interface/
2024-07-27 18:31:20 -03:00
Georges-Antoine Assi
2c2adb4112
Merge branch 'master' into calc-file-hashes-roms
2024-07-27 16:39:46 -04:00
Georges-Antoine Assi
3a9cef24e0
get it all wokring
2024-07-27 13:30:52 -04:00
Georges-Antoine Assi
ecc021e824
Merge branch 'master' into calc-file-hashes-roms
2024-07-27 12:17:18 -04:00
Michael Manganiello
749e4d65c1
misc: Use PYTEST_VERSION variable to detect Pytest runs
...
Pytest v8.2 introduced the `PYTEST_VERSION` environment variable [1],
that can be used to check if code is running from within a pytest run.
This way, we can avoid checking the loaded `sys` modules.
[1] https://docs.pytest.org/en/stable/changelog.html#id57
2024-07-27 12:03:44 -03:00
Michael Manganiello
aced1f1ff2
misc: Migrate IGDBBaseHandler to async
...
Convert `IGDBBaseHandler` methods to be asynchronous, and use an `httpx`
async client, instead of `requests` sync client.
This change also removes the direct dependency with `requests`, as the
project no longer uses it, preferring `httpx` instead.
2024-07-26 21:19:01 -03:00
Georges-Antoine Assi
efc0b75cdb
Merge branch 'master' into calc-file-hashes-roms
2024-07-25 22:42:46 -04:00
Michael Manganiello
959e896aa3
misc: Replace pytest-vcr dependency with pytest-recording
...
`pytest-vcr` [1] is no longer maintained (last commit was in 2020), and
`VCR.py` recommends [2] `pytest-recording` instead.
Also, `pytest-vcr` does not correctly support `httpx` [3].
This change also removes unused cassettes.
[1] https://github.com/ktosiek/pytest-vcr
[2] https://vcrpy.readthedocs.io/en/latest/usage.html#pytest-integration
[3] https://github.com/ktosiek/pytest-vcr/issues/46
2024-07-24 12:39:41 -03:00
Michael Manganiello
56066d6765
misc: Migrate filesystem resource handler to async
...
For filesystem resource handler, `requests` calls have been replaced
with `httpx`, and file I/O has been replaced with `anyio` utils.
The existing approach to save covers and screenshots, by calling
`shutil.copyfileobj` with the raw response is no longer needed. `httpx`
does not provide a file-like object when streaming [1], so there's no
easy drop-in replacement.
However, the applied solution correctly builds the file iteratively, by
consuming the response in chunks.
[1] https://github.com/encode/httpx/discussions/2296
2024-07-24 00:18:17 -03:00
Georges-Antoine Assi
77afe55625
add support for extracting content in compressed files
2024-07-18 21:50:24 -04:00
Georges-Antoine Assi
591e41a4d5
start checking for specific file exts
2024-07-18 20:51:48 -04:00
zurdi
f7b14b43d6
fixed everything from trunk
2024-07-09 13:43:14 +02:00
zurdi
375898221d
added ipykernel to dev dependencies
2024-06-27 12:50:43 +02:00
Michael Manganiello
b99ededced
misc: Migrate to SQLAlchemy declarative models
...
This change applies the guided migration process recommended by
SQLAlchemy [1], up to step 4, to have declarative ORM models that better
support Python typing.
The change was tested by running `alembic check`, which does not find
any schema changes.
Errors reported by `mypy` go down to 170, from the original 223 in the
current `master` commit.
[1] https://docs.sqlalchemy.org/en/20/changelog/whatsnew_20.html#migrating-an-existing-mapping
2024-06-25 23:03:20 -03:00
Michael Manganiello
707b2ec6bd
fix: Remove abandoned dependency aioredis
...
`aioredis` is abandoned, and has been replaced by `redis.asyncio`.
Currently, the project doesn't use `aioredis` directly, but depends on
it for `socketio.AsyncRedisManager`. This change is safe, as `socketio`
has been prioritizing `redis.asyncio` over `aioredis` since `v5.6.0` [1].
[1] 0e7691b776
2024-06-23 18:12:38 -03:00
Michael Manganiello
ed635d69cc
misc: Move fakeredis to test dependencies
...
`fakeredis` is only needed when running tests, so we can move it to the
`test` dependency group.
2024-06-23 11:10:25 -03:00
Georges-Antoine Assi
9b62641d55
Merge branch 'master' into trunk-io
2024-05-31 18:42:43 -04:00
Georges-Antoine Assi
95412760be
Remove pagination from roms endpoints
2024-05-31 12:15:52 -04:00
Zurdi
44f10a560c
Solve merge into release conflicts
2024-05-31 16:46:35 +02:00
Georges-Antoine Assi
2b60402a04
start fixing mypy issues
2024-05-21 19:22:14 -04:00
Georges-Antoine Assi
2a980a04e6
last bits of fixes
2024-05-21 17:52:13 -04:00
Georges-Antoine Assi
a7cf0d389a
run trunk format on all files
2024-05-21 10:18:13 -04:00
dependabot[bot]
ee28b7ee8d
---
...
updated-dependencies:
- dependency-name: requests
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-05-21 05:33:54 +00:00
Georges-Antoine Assi
b1a14a6f22
add authlib jose
2024-05-12 21:33:53 -04:00
Georges-Antoine Assi
5bce52f9d4
drop numpy and jose
2024-05-12 21:13:41 -04:00
dependabot[bot]
3c5bff39fe
Bump gunicorn from 21.2.0 to 22.0.0
...
Bumps [gunicorn](https://github.com/benoitc/gunicorn ) from 21.2.0 to 22.0.0.
- [Release notes](https://github.com/benoitc/gunicorn/releases )
- [Commits](https://github.com/benoitc/gunicorn/compare/21.2.0...22.0.0 )
---
updated-dependencies:
- dependency-name: gunicorn
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-17 02:51:23 +00:00
dependabot[bot]
60f02eec98
Bump pillow from 10.2.0 to 10.3.0
...
Bumps [pillow](https://github.com/python-pillow/Pillow ) from 10.2.0 to 10.3.0.
- [Release notes](https://github.com/python-pillow/Pillow/releases )
- [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst )
- [Commits](https://github.com/python-pillow/Pillow/compare/10.2.0...10.3.0 )
---
updated-dependencies:
- dependency-name: pillow
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-03 16:47:54 +00:00
Georges-Antoine Assi
82fa7ae025
add yarl explicit dep
2024-03-26 21:17:40 -04:00
Georges-Antoine Assi
fd196165b8
add fake redis for tests
2024-03-26 20:37:38 -04:00
Georges-Antoine Assi
770313c1f1
hset all in cache for quick access
2024-03-26 19:03:42 -04:00
Psych0D0g
8f5536c69b
switch to gunicorn for handling backend app
2024-03-25 21:56:19 +01:00
zurdi
b2392d0acc
replaced old zurdi15/romm url to rommapp/romm
2024-03-25 02:49:08 +01:00
Georges-Antoine Assi
6bee52cc98
implement session middlware
2024-03-17 11:37:37 -04:00
Georges-Antoine Assi
e62ef192dc
Bump python to 3.11 + packages
2024-03-17 00:23:48 -04:00
Georges-Antoine Assi
7ca551b743
switched to jwt backed sessions
2024-02-16 10:00:54 -05:00
Georges-Antoine Assi
77aca3fad7
siwtch to build on tag
2024-02-10 12:43:39 -05:00
Georges-Antoine Assi
b76ecb29d2
Repo cleanup prep for 3.0 release
2024-02-10 10:05:20 -05:00
Zurdi
045ed5425a
added poetry_npm support
2023-12-13 14:21:48 +01:00
Georges-Antoine Assi
be0b36c439
Multi lang and multi region support
2023-12-03 11:27:35 -05:00
Georges-Antoine Assi
821e7cc930
Merge branch 'master' into models-refactor
2023-11-03 21:42:06 -04:00
zurdi
66c1e3c04b
resize igdb cover when needed
2023-11-03 17:01:03 +01:00
zurdi
546cbe1b4a
version upgraded to 2.1.0 + updated readme/changelog
2023-10-31 16:30:12 +01:00
Georges-Antoine Assi
5eced8a94c
Merge branch 'master' into scheduled-tasks
2023-10-30 11:19:47 -04:00
Zurdi
248dcb791d
Update pyproject.toml
2023-10-29 12:48:00 +01:00
Georges-Antoine Assi
89a87249cb
Merge branch 'master' into scheduled-tasks
2023-10-27 15:27:22 -04:00
Lukas Wingerberg
10f34a6495
add venv to docker and refactor to get rid of python build dependencies that are not needed at runtime
2023-10-22 15:56:05 +02:00
Lukas Wingerberg
8015558398
refactor to alpine base and fix some more paths to work on readonly rootfs
2023-10-22 12:45:34 +02:00
Georges-Antoine Assi
50199611eb
Add mame xml and scheduled tasks
2023-09-15 13:11:41 -04:00
Georges-Antoine Assi
04ba6f493b
Switch igdb/sgdb IDs to int + update fastapi/pydantic
2023-09-14 10:06:43 -04:00