Commit graph

99 commits

Author SHA1 Message Date
8a5711cc78
packaging: fix specfile URL 2023-09-07 16:27:37 +00:00
240313d3d2
forge.lua: fix indentation 2023-09-04 20:33:27 +00:00
c0b72704e3
Release 0.1.0
Some checks reported errors
builds.sr.ht/37 Job failed
builds.sr.ht/38 Job failed
builds.sr.ht/main Job failed
v0.1.0
2023-09-04 15:12:42 -05:00
6856173468
flesh out CONTRIBUTING instructions 2023-09-04 20:07:55 +00:00
cf8a35ceb5
rpmeval.sh: add USAGE EXAMPLES 2023-09-04 20:01:43 +00:00
4f8a4dc6b7
rpmeval.sh: allow specifying custom RPM path 2023-09-04 19:57:37 +00:00
2410329783
lint: fix PLW1510 error
We don't use `check=True`. Checking the returncode is handled manually.
2023-08-18 17:56:34 +00:00
354ce4a51e
add -b flag to %forgeversion; update test vectors
This allows using %forgeversion with a custom base version.
2023-08-18 17:54:24 +00:00
f06ccd7dff
%forgeversion: use %version0 instead of %version
See the discussion in
https://pagure.io/packaging-committee/pull-request/1295.
Note that `fedora.zalias` sets %version0 to %version if the former is
not set, but this change makes sure that %version0 is preferred if the
macros are set differently.
2023-08-18 17:52:35 +00:00
c1684e58bb
tests: fix _TestVector.expected_undefined type 2023-08-14 03:44:34 +00:00
c4b13b4a0e
tests: check %forgesetup 2023-08-14 01:23:49 +00:00
a2bc546f71
Release 0.0.1
Some checks reported errors
builds.sr.ht/37 Job failed
builds.sr.ht/38 Job failed
builds.sr.ht/main Job failed
v0.0.1
2023-08-13 18:29:55 -05:00
b59ca1cecd
packaging: add NEWS.md to %doc 2023-08-13 21:32:12 +00:00
397477a192
packaging: remove rededundant DESTDIR argument
This is part of the %make_install definition.
2023-08-13 21:03:22 +00:00
b7d96e62af
tests: cache macros_path and lua_path
We don't need to retrieve these values every time a macro is evaluated.
2023-08-13 19:42:37 +00:00
45a21f43f3
make linters happy 2023-08-13 18:12:59 +00:00
79c3369eab
packaging: add missing python3-pyyaml BR 2023-08-13 18:08:34 +00:00
360c5bb96f
add release workflow 2023-08-13 18:06:45 +00:00
37864994f9
add missing Copr Makefile 2023-08-13 17:42:31 +00:00
ea9dc41a5d
.builds: add copr-webhook 2023-08-13 17:35:10 +00:00
c3ee4d9f82
add noxfile to run tests and mockbuilds 2023-08-13 17:25:35 +00:00
145b7fc72a
add %forgeversion to add snapshot info to Version
See the %forgeversion docstring for usage
2023-08-13 16:57:01 +00:00
6ba0cccb01
tests: improve github commit test fixtures 2023-08-13 16:50:30 +00:00
7d2be0f775
tests: improve test_vectors stdout/stderr checking 2023-08-13 16:44:32 +00:00
c042018e47
.builds: remove epel-rpm-macros rich dep altogether
We're not running tests on EL to begin with, and dnf doesn't seem to
know what to do with this:

    Error: Unable to find a match: (epel-rpm-macros if epel-release)

Relates: ab6bb0016c
2023-08-13 07:41:15 +00:00
dd6657bbbc
tests: add test vectors for multisource specfiles
Fixes: https://todo.sr.ht/~gotmax23/forge-srpm-macros/4
2023-08-13 07:39:43 +00:00
ab6bb0016c
.builds: escape spaces in packages
This works around a builds.sr.ht bug. We can remove it once builds.sr.ht
starts properly shell-escaping values in the `packages` list.
2023-08-13 07:22:44 +00:00
5a7f18a303
README: add Compatibility section 2023-08-13 07:19:00 +00:00
6c2de5104c
ci: test on Fedora 37 and 38 2023-08-13 07:12:00 +00:00
f34ce358c4
tests: add bitbucket test vector 2023-08-13 07:09:28 +00:00
800a8a119e
tests: add test vectors for Pagure 2023-08-13 07:09:28 +00:00
ee028f92fc
forge.lua: add missing archiveext for pagure_ns_fork
Previously, the forge macros attempted to download nonexistent .tar.bz2
archives for Pagure namespace forks.
2023-08-13 07:09:28 +00:00
407f690676
forge.lua: fix syntax error for pagure_ns_fork
The configuration for Pagure namespace fork repositories had a syntax
error (missing parenthesis).
2023-08-13 07:09:28 +00:00
45f4ca7b41
tests: add extensive yaml test vectors file
Fixes: https://todo.sr.ht/~gotmax23/forge-srpm-macros/2
2023-08-13 07:09:28 +00:00
1b71a04fce
tests: remove returns to fix PytestReturnNotNoneWarning 2023-08-13 03:22:52 +00:00
95c47de696
add draft forge-srpm-macros.spec 2023-08-11 03:55:30 +00:00
c48d057924
add rpmeval.sh to test macro evaluation 2023-03-28 22:53:04 -05:00
006d6e40cb tests: use MACRO_LUA_DIR env var instead of MACRO_LUA_PATH 2023-03-27 19:28:10 -05:00
a5efbf7ebc tests: check urls for nested Gitlab subgroups 2023-03-27 19:28:02 -05:00
eef674b8b2 forge: Allow unlimited subgroups in GitLab URLs
GitLab allows one to create groups within groups up to 20 levels [1],
but we really don't need to check that. One can just take the last
part of the path and treat that as the repo, instead of assuming it's
always domain.tld/group/repo.

[1] https://docs.gitlab.com/ee/user/group/subgroups/index.html
2023-03-27 19:28:02 -05:00
e958b0eb6e
add builds.sr.ht CI badge 2023-03-27 17:56:46 -05:00
9b79de3f97
tests: add test_slash_tags 2023-03-27 17:35:16 -05:00
916ef82bd5
add support for codeberg 2023-03-27 16:18:54 -05:00
e76dff1629
add .gitignore 2023-03-27 14:32:33 -05:00
98f662df06 .builds: add reuse lint 2023-03-27 14:28:51 -05:00
917bb0f00b add CONTRIBUTING 2023-03-27 14:28:51 -05:00
1a76c0caab
add CI job 2023-03-27 14:10:51 -05:00
b7e60c0aab
add initial testing aparatus
- Add evaluater fixture to evaluate macros against the lua and macro
  defintions in the local directory.
- Add unit tests for the most basic functionality.
2023-03-27 14:08:23 -05:00
37da5d7bf9
init 2023-03-27 14:08:22 -05:00