Commit Graph
33 Commits
Author SHA1 Message Date
classabbyamp 7588e217af common/scripts/lint-commits: fail on merge and fixup commits 2026-02-03 08:33:25 -05:00
classabbyamp ad33074566 hooks/verify-python-deps: minor fixups 2026-01-04 20:04:38 -05:00
Đoàn Trần Công Danh 4523df22b1 hooks/verify-python: fix for gi.repository 2026-01-05 07:06:06 +07:00
classabbyampandĐoàn Trần Công Danh 6f3d869d75 common/scripts/parse-py-metadata: track internally-provided python modules
Co-authored-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
2026-01-04 12:54:40 -05:00
classabbyamp 87ca1cc3bf common/scripts: add script to generate distfiles from meson wrap files
useful for mesa, where there are a signficant number of crates
referenced via meson wrap files, but this could be generally useful for
other meson-based packages that do a similar thing for vendored
libraries.

This could be further extended in the future to add support for
git/hg/svn wraps by adding subclasses of `Wrap` that support those
metadata options.

setting `MESON_PACKAGE_CACHE_DIR` allows meson to look for tarballs for
wraps it needs automatically.
2025-12-13 19:35:19 -05:00
Gonzalo Tornaría 8936feca84 hooks/pre-pkg/06-verify-python-deps: support alternative packages 2025-05-12 08:08:37 -04:00
classabbyamp 4649c32a54 .github, common/travis: run CI without root
this should allow package tests that check things like writability to
succeed and have fewer skipped tests in CI.

- switch to using the `void-LIBC-full` container
- use `uchroot` instead of `ethereal`
- simplify some scripts for this change
2025-03-02 00:41:44 -05:00
classabbyamp be0eace9e9 common/scripts/parse-py-metadata: handle extras properly 2024-12-24 14:51:38 -05:00
classabbyamp 3719c1f29c common/scripts/parse-py-metadata: always ignore tzdata 2024-12-23 15:53:35 -05:00
classabbyamp a4b74b62a1 common/scripts/parse-py-metadata.py: add script to parse python module metadata
this script uses python3-packaging-bootstrap to extract information
about python modules, including their names and dependencies for use by
xbps-src hooks
2024-12-14 07:44:02 -05:00
Gonzalo Tornaría d8c079c8df common/scripts/xbps-cycles.py: add -Q and -K options for dependencies 2024-04-08 08:57:46 +07:00
Piotr Wójcik 2cb460d7d7 common/scripts/lint-conflicts: fix full repo check
adjust for `xlocate: output aligned, don't show "git grep" column`
2023-11-11 16:29:44 +01:00
Andrew J. Hesford b270c7b115 common/scripts/xbps-cycles.py: skip subpackage dependency checks
Dependency checks for subpackages produce the same results as dependency
checks for the main package; skipping subpackages improves performance.
2023-08-17 10:47:41 -04:00
classabbyamp e1e20d20ed spdx-licenses-list: update to 3.21. 2023-06-25 18:09:53 -04:00
classabbyamp 2438f3a3a4 common/scripts/lint-conflicts: add bootstrap repo 2023-02-03 20:32:46 -06:00
Đoàn Trần Công Danh ce8e8797bc lint-commits: forbid localhost email, too 2023-02-02 19:15:34 +07:00
Đoàn Trần Công Danh a4e7150995 lint-commits: disallow noreply emails 2023-01-11 09:28:30 +07:00
Đoàn Trần Công Danh 0db458e461 xbps-cycles: fix a typo 2022-12-28 08:56:13 +07:00
classabbyamp 8fe8739a23 common/: remove PATH adds from CI scripts
they are now specified in the workflow file
2022-10-25 14:23:46 -04:00
Đoàn Trần Công Danh 7662f1c433 lint-version: fix check-reverts 2022-09-19 07:51:14 +07:00
Đoàn Trần Công Danh 6ed4695842 lint-version: check reverts 2022-09-17 23:32:50 +07:00
Đoàn Trần Công Danh e6a34da6d1 lint-version-change: correctly print multiline variables 2022-09-17 23:32:50 +07:00
Đoàn Trần Công Danh 7510b96218 common: simplify logic to find git
From chroot-git 2.33.1, we always have an executable named git
for other build infrastructure and lints.

Let's remove the shenanegan to find which git to be used, prepend the
path to chroot-git's git into $PATH, and let's the shell call the
correct git for us instead.
2022-09-17 23:32:50 +07:00
Piotr Wójcik bda9720be0 common/scripts/lint-conflicts: handle emptied packages 2022-05-10 20:34:49 +02:00
0x5c cc27e8e6f7 common/travis/xlint.sh: print Github annotations
Turns xlint, version lint, and commit lint messages into warning or error
annotaions. All are printed with special highlighting in the action log and
summary. Xlint and version lint annotations are shown inline in the changes tab
and commit view. Annotations without line number are shown at line 1.
2022-05-05 21:34:11 +02:00
Piotr Wójcik e4e53fc98b common/: add script finding file conflicts 2022-05-05 21:29:41 +02:00
Piotr Wójcik ef7119e11d common/lint-commits: error out on non-conventional subject 2021-11-03 22:31:25 +01:00
Piotr Wójcik dc6adc808f common/lint-commits: catch non-conventional subject 2021-10-29 21:24:06 +02:00
Piotr Wójcik 18d9a5dd55 common/xbps-cycles.py: deterministic cycle path 2021-06-30 21:09:10 +02:00
Piotr Wójcik 287624675c common/xbps-cycles.py: Add cache option
allows to modify deps and see if cycle is resolved
2021-06-30 21:09:10 +02:00
Érico Nogueira d0c9f994da common/scripts: import xbps-cycles.
From https://github.com/ahesford/xbps-cycles, that is based on
https://gist.github.com/Chocimier/de76441493ec7775c201dac0bb03ced5 .
License is compatible with void-packages. Will be run in CI, so it
should live in the same repository.
2021-06-30 21:09:10 +02:00
Piotr Wójcik c0331b57eb common: add lint-version-change 2021-05-27 21:18:38 +02:00
Đoàn Trần Công Danh 1f07584a66 common: add basic commit lint
Warn if:
* subject is longer than 50 characters

Error if:
* any lines are longer than 80 characters except it's footnotes
* second line is not blank
2021-05-21 15:56:44 +07:00