688 Commits

Author SHA1 Message Date
Christoph Reiter
0909a67fa4 pypi: support extracting project names from PURL references
For example "pkg:pypi/django@1.11.1" -> django

This means we can get rid of the non-purl "pypi" mapping in PKGBUILDS
2025-02-16 20:34:35 +01:00
Christoph Reiter
b29a9d37f4 Update deps 2025-02-16 19:17:48 +01:00
Christoph Reiter
a19180130b pkgextra: allow multiple values for reference mapping
Since we added PURLs instead of key->value we map to key->list[value]
since the keys are not longer unique.
2025-02-16 19:12:52 +01:00
Christoph Reiter
7f4f822e9b make newer mypy happy
it can't figure out that .version can never be None there,
so refactor to add asserts
2025-02-07 16:11:13 +01:00
Christoph Reiter
75a8642223 Update deps 2025-02-07 16:04:23 +01:00
Christoph Reiter
9887129d68 Update deps 2025-01-25 07:29:21 +01:00
Christoph Reiter
48fab4d6c6 CI: test with 3.13 and update actions/setup-python 2025-01-17 19:04:03 +01:00
Christoph Reiter
863b35e117 Higher prio to WAITING_FOR_BUILD 2025-01-17 19:01:17 +01:00
Christoph Reiter
04fbe06c18 Fix queue sorting for real
It was passing the display text to the sort function, not the
enum value, so only worked by accident. Refactor/rename things a
bit to make this more clear.

Also give the unknown/unprocessed state a higher priority, so it
shows up before the finished builds. Same for manual builds, since
they require user action.
2025-01-17 18:51:34 +01:00
Christoph Reiter
2adcca84ae queue: sort by status first
It was sorted by change date before, which does not say when
something was merged but when it was commited.

At least for me, I want to see if there are any problems and what is
currently building when looking at the queue, and only then what already
is there. Might be different for other users.

Sort by the status priority instead. The priority is the same one used to
decide the most important build status to show in the list for the
different build types.
2025-01-17 13:25:14 +01:00
Christoph Reiter
04fc810176 flake8 2025-01-17 11:35:41 +01:00
Christoph Reiter
b4dd495b8d base: add option to filter by repo
mostly useful to show only cygwin packages for example
2025-01-17 11:29:38 +01:00
Christoph Reiter
bf40a8d007 pypi: stop guessing the pypi name based on the package name
To avoid false positives in case there is "python-foo" and "foo" in the repo.
Also rename/comment some things to make them more clear.
2025-01-17 11:06:18 +01:00
Christoph Reiter
0219cf6979 Update deps 2025-01-17 10:46:10 +01:00
Christoph Reiter
b6a05b9f93 pypi: don't use it just as a fallback for new versions
In case Arch and pypi both had the package we would prefer Arch.
While that helps in case Arch tries to keep older versions to keep
everything compatible, there are cases where things are outdated
in Arch and updates happend despite being in conflict,
so in reality we need to check ourselves anyway.
2024-12-26 12:44:17 +01:00
Christoph Reiter
2b9af9419c sbom: adjust for sbom mapping changes
The "name" of the sbom components no longer contain the pkgbase
we can use to map vulns. Instead components now have one ore more
properties with the key "msys2:pkgbase" and the value being the pkgbase.
2024-12-23 15:32:57 +01:00
Christoph Reiter
6b994cc5ad frontend: update deps; add min-width to theme switcher to avoid layout shift 2024-12-19 09:05:54 +01:00
Christoph Reiter
1ef2cef6a8 Update deps 2024-12-19 08:51:39 +01:00
Christoph Reiter
201f234c02 security: use "vulnerability reporting" everywhere
We are just reporting what others found, so avoid "scanning"
2024-12-19 08:50:20 +01:00
Christoph Reiter
429377548e Update deps 2024-12-18 08:00:07 +01:00
Christoph Reiter
c9a38147cd drop clang32 2024-12-18 07:58:31 +01:00
Christoph Reiter
e6e5bc74ad security: list all the packages missing vuln metadata
It's a bit of a wall of text right now, but we need to show them
somewhere so we can fix them.
2024-12-14 10:53:14 +01:00
Christoph Reiter
73aa5d60bf outofdate: fix total package number in case a repo filter is active
only count packages for the active filter
2024-12-14 10:48:46 +01:00
Christoph Reiter
d42899e01f security: show git version as well, like everywhere else 2024-12-06 18:09:44 +01:00
Christoph Reiter
1db24694a1 Update deps
one small typing fix uncovered by newer mypy
2024-12-06 18:00:01 +01:00
Christoph Reiter
0859f77eef Update deps
hopefully fixes trusted_hosts
2024-10-12 15:58:23 +02:00
Christoph Reiter
5cade52753 Update deps 2024-10-07 07:43:35 +02:00
Christoph Reiter
73bc537d8d Update deps 2024-09-21 11:08:02 +02:00
Christoph Reiter
b6190a960b package -> packages
for consistency
2024-09-15 17:07:03 +02:00
Christoph Reiter
3c7444c0a3 Get rid of the repo query param for single packages
We keep package names unique, and if for some reason they wouldn't be
we show both packages on that page then.

Let's not add a query param to every URL for such an edge case.
2024-09-15 17:06:51 +02:00
Christoph Reiter
106f1e42ec More 404 reponses when things couldn't be found 2024-09-15 16:35:03 +02:00
Christoph Reiter
b6ecb4abae Use the correct template for when no package with the name is found
The virtual package template doesn't cover that case
2024-09-15 16:16:38 +02:00
Christoph Reiter
aee5de581e Fix TemplateResponse deprecation warning
the request should be passed as the first arg now
2024-09-15 16:13:40 +02:00
Christoph Reiter
1958c2cf98 port to new fastapi lifespan api 2024-09-15 16:10:09 +02:00
Christoph Reiter
8c0c9b65e7 Fix pydantic deprecation warning 2024-09-15 16:01:17 +02:00
Christoph Reiter
1178edde11 Sort repos by priority and not by name
Use the order of the repos in the config as the order for everything else.
selection inputs, package groupes etc
2024-09-15 15:42:14 +02:00
Christoph Reiter
2b03c69a8f add flake8 config to reuse config 2024-09-12 14:13:03 +02:00
Christoph Reiter
1844af449a Update deps; drop setup.cfg 2024-09-12 13:52:07 +02:00
Christoph Reiter
a2d66ef817 package: fix missing version info for all provides/conflicts/replaces 2024-08-28 08:24:33 +02:00
Christoph Reiter
5f4c810561 Update deps 2024-08-28 08:14:53 +02:00
Christoph Reiter
020360de4f Update deps 2024-08-16 08:32:07 +02:00
Christoph Reiter
0ec93350fe preload the fonts 2024-08-09 23:41:41 +02:00
Christoph Reiter
1ff07f8252 Update frontend deps; drop woff support
nearly everything supports woff2 now
2024-08-09 12:02:19 +02:00
Christoph Reiter
e4b1d3bc21 Update deps 2024-08-09 11:47:59 +02:00
Christoph Reiter
023e901977 Update deps 2024-08-02 09:43:19 +02:00
Christoph Reiter
4fd8eb8cc3 Change the styling a bot for the sub-list headings
So it looks different to the main list headings in mobile view.
Not ideal.. but maybe better?
2024-07-23 17:41:28 +02:00
Christoph Reiter
c81a8e797e npm: update deps; rollup: use esm mode 2024-07-23 09:40:33 +02:00
Christoph Reiter
a9fa23b06f Update deps 2024-07-23 09:35:11 +02:00
Christoph Reiter
461f08c905 package removals: show more context
add links, and show the dependency type
2024-07-23 09:33:11 +02:00
Christoph Reiter
fd3925efa0 Only show an outdated banner if the git version is too old
And not the version in the repo.
If the new version is in git, there is usually nothing to do, except
waiting for it to reach the repo.
2024-07-23 00:14:27 +02:00