Commit graph

1124 commits

Author SHA1 Message Date
Jakub Kadlcik
5b05b611a7 Fix traceback related to undefined variable
Fixup after 68d8b21
Obsoletes PR #487
2024-01-28 13:53:16 +01:00
Jakub Kadlcik
b9d6d2b96b Use rpm.ds instead of deprecated hdr.dsFromHeader
Fix #481
See also https://github.com/rpm-software-management/mock/pull/1223

As a reproducer, I used the following releaser:

    [yum]
    releaser = tito.release.YumRepoReleaser
    builder = tito.builder.Builder
    srpm_disttag = fc39
    rsync = /tmp/tito/yum-repo

and then did `tito release yum`.
2024-01-28 13:43:52 +01:00
Jakub Kadlcik
3cb798fa83 Support branch aliases in releasers
Fix #430
2024-01-15 13:19:29 +01:00
Pavel Raiskup
9d1c10f52f packit: generate tarball by tito, read Version from spec
Complements: #483
Relates: #480
2024-01-12 15:02:00 +01:00
Pavel Raiskup
a096b21484 Bump the ENVRA built directly from git master branch
Fixes: #480
2024-01-12 10:51:01 +01:00
Jakub Kadlcik
18b1badd60 Rename --without-init to --ignore-missing-config
The behavior changed. We now build non-initialized projects without
any additional parameter. The `--without-init` could be confusing
because it could be understood as ignoring `.tito` directory even if
it is there. Which is not true, if `.tito` directory exists, the
parameter does nothing. It is only used to silence warnings.
2024-01-11 11:14:14 +01:00
Jakub Kadlcik
68d8b219db Building in non-initialized project without explicit parameter
Fix #472
2024-01-11 11:14:14 +01:00
Miroslav Suchý
39943ba3fc document how to automate bodhi updates
Fixes: #428
2024-01-05 17:26:25 +01:00
Jakub Kadlcik
87f8076adb Use raw strings for regex patterns
I am fixing the following syntax warnings and more.

/home/jkadlcik/git/tito/src/tito/common.py:81: SyntaxWarning: invalid escape sequence '\d'
  source_pattern = re.compile('^Source\d+?:\s*(.*)')
/home/jkadlcik/git/tito/src/tito/common.py:732: SyntaxWarning: invalid escape sequence '\s'
  ver_regex = re.compile("(\s*)(version)(\s*)(=)(\s*)(['\"])(.*)(['\"])(.*)",
/home/jkadlcik/git/tito/src/tito/tar.py:187: SyntaxWarning: invalid escape sequence '\d'
  field_size = int(re.match('(\d+)', member_template).group(1)) - 1
2024-01-04 19:02:13 +01:00
Jakub Kadlcik
4fb18d45c4 Allow tito build without .tito directory
Fix #472
2024-01-04 18:58:07 +01:00
Miroslav Suchý
37a8a23dbb unify README and index.md
README is in better state - I used that one
2024-01-04 14:10:34 +01:00
Jakub Kadlcik
9fd0c5a2c7 Fix PEP8 issues found by runtests.py 2023-08-14 14:15:32 +02:00
Jakub Kadlcik
2ad7a823dd Replace egrep with grep -E
egrep: warning: egrep is obsolescent; using grep -E
2023-08-14 14:15:32 +02:00
Jakub Kadlcik
39b298aa38 Don't use --cacheonly on DNF5
Fix #466
See #363

Actually, it still doesn't work completely but this particular issue
is fixed. I am now getting:

    Auto-installing packages:
    sudo dnf install -y /tmp/tito/noarch/tito-0.6.24-1.git.0.2a15b8c.fc39.noarch.rpm
    ...
    Failed to resolve the transaction:
    Problem: problem with installed package
      - cannot install both tito-0.6.24-1.git.0.2a15b8c.fc39.noarch and tito-0.6.24-2.fc39.noarch
      - conflicting requests

Which seems to be fixed in the dnf5 main branch:
https://github.com/rpm-software-management/dnf5/issues/722
2023-08-14 13:54:43 +02:00
Jakub Kadlcik
2a15b8c171 Automatic commit of package [tito] release [0.6.24-1].
Created by command:

/usr/bin/tito tag
2023-07-08 01:58:09 +02:00
Arcadiy Ivanov
369c6baeb5 Will now copy both source files and patch files declared in the spec
Also fix some spelling errors

fixes #463
2023-07-07 19:55:42 -04:00
Jakub Kadlčík
39449a8cc2
Fix UpstreamBuilder deprecation warning (#461)
RPM build warnings:
        %patchN is deprecated (1 usages found), use %patch N (or %patch -P N)
2023-06-30 09:43:30 +02:00
Jakub Kadlčík
deb8dd130a
Show how to specify additional mock parameters (#436)
See #435
2023-06-30 09:42:43 +02:00
Jakub Kadlčík
3aba8d0f7a
Fix the setup.py license according to tito.spec (#433)
See PR #431
2023-06-30 09:36:18 +02:00
Jakub Kadlcik
863e4c7e34 Update releasers.conf 2023-06-13 19:34:48 +02:00
Jakub Kadlcik
9973d7e92f Automatic commit of package [tito] release [0.6.23-1].
Created by command:

/usr/bin/tito tag
2023-06-13 19:01:04 +02:00
Arcadiy Ivanov
835309b6f4 Submodules may contain other submodules. Do process and add those
to the source tar.

fixes #456
2023-05-16 11:37:25 +02:00
Arcadiy Ivanov
71c8e6f652 Replace submodule--helper list with git config --get-regexp
fixes #454
2023-04-26 16:23:38 +02:00
Lumír 'Frenzy' Balhar
6324a06670 Switch tox-github-action from master to main branch 2023-04-17 01:03:11 +02:00
Miroslav Suchý
0fbe8a8937 write down the history of the name of this project 2023-03-16 21:23:40 +01:00
Miroslav Suchý
d7e329f4fb do not overwrite packit.yaml and its variants
https://packit.dev/docs/configuration/
packit.yaml can be used in dist-git for pull-from-upstream and for creating builds, or bodhi updates
2023-03-16 20:59:49 +01:00
Miroslav Suchý
df726d0bd0
add Tito. The mascot. (#432)
This is bit of archeology.
Tito was a plush toy and mascot of Red Hat Network (RHN)_team.
Later when we opensourced Satellite as the Spacewalk project
we created this project. And by that time Tito was already missing
for some time. So in honor of our mascot we decided to name this
project Tito.
2023-03-16 19:25:38 +01:00
Pavel Raiskup
91ef962220 automation: automatically build pre-release RPMs
Into https://copr.fedorainfracloud.org/coprs/g/rpm-software-management/tito/
2023-01-25 13:37:49 +01:00
Pavel Raiskup
d24d3a69a3 automation: fix the Python diff-lint C&P problem 2023-01-25 13:37:49 +01:00
Pavel Raiskup
96859ee484 automation: some useful pre-commit workflows
- enable differential PyLint checker
- enable differential ShellCheck (there's a bash script in this repo)
- enable Fedora test matrix
2023-01-24 14:14:56 +01:00
Pavel Raiskup
377527f316 packit: fixing the Fedora build failures
The %{?our_sitelib} seems weird right after the if-else tree, I'm a bit
afraid of the order of macro evaluation.  NB the 'print "foo"' used in
the corresponding detection command is needed only useful in very old
distributions.

Closes: #437
2023-01-24 14:12:19 +01:00
Jakub Kadlcik
5d3df407f9 Don't upload patches to the lookaside cache
With @xsuchy we discovered that when doing `tito release`, into Fedora
DistGit, then .patch files are being uploaded to the lookaside
cache. That is not expected behavior, we should commit them to git
only.
2023-01-24 14:11:36 +01:00
Miroslav Suchý
b78dc88fe5 use spdx license
https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_1
2022-12-02 01:22:38 +01:00
Jakub Kadlcik
d342fc617a Automatic commit of package [tito] release [0.6.22-1].
Created by command:

/usr/bin/tito tag
2022-11-14 01:10:18 +01:00
Jakub Kadlcik
253ad0714a Add F37 to releasers 2022-11-14 01:07:21 +01:00
Jakub Kadlcik
9120a2e366 Fix python2 urlretrieve import
Fix #424
2022-11-14 00:55:06 +01:00
Jerzy Drozdz
2c9e8e062a Creating submodule tars moved to seperate function 2022-10-04 02:09:37 +02:00
Jerzy Drozdz
9ec3ff6e9a Black reformated file 2022-10-04 02:09:37 +02:00
Jerzy Drozdz
f5e272eb71 Fixed aubmodule archives concatenation 2022-10-04 02:09:37 +02:00
Jerzy Drozdz
4f2037a541 Fixed issue #414 2022-10-04 02:09:37 +02:00
Jerzy Drozdz
f5d61594e3 Fixed issue #413 2022-10-04 02:09:37 +02:00
Nikos Moumoulidis
813713b290 Revert 45d431ad14
- The original change made the assumption that the git_branches[0]
  is the actual branch name that we are on, but that was incorrect.
2022-08-30 22:42:54 +02:00
Jakub Kadlcik
4c4b1268b3 Add release instructions for PyPI 2022-07-21 11:00:34 +02:00
Jakub Kadlcik
4638a05b76 Automatic commit of package [tito] release [0.6.21-1].
Created by command:

/usr/bin/tito tag
2022-07-21 10:45:05 +02:00
Jakub Kadlcik
d541c5a241 Don't release for F34 anymore 2022-07-21 10:43:39 +02:00
Jakub Kadlcik
b17cc0592b Use io.open instead of open
I don't remember if the `encoding="utf-8"` parameter for `open` is
necessary in this case but I think I added it for a reason. Let's be
safe and not remove it. Instead let's use `io.open` which supports it
even in python 2.
2022-07-21 10:39:55 +02:00
Jakub Kadlcik
bb3e661124 Properly catch TitoException
This is for example raised by builders, e.g.

    ERROR: Builder missing required argument: mock
2022-05-01 13:38:31 -04:00
Jakub Kadlcik
6570577782 Add documentation for the MockBuilder 2022-05-01 13:38:31 -04:00
Jakub Kadlcik
55454d836c Allow to define mock chroot in tito.props
[buildconfig]
    builder = tito.builder.MockBuilder

    [builder]
    mock = fedora-rawhide-x86_64
2022-05-01 13:38:31 -04:00
Jakub Kadlcik
4b4842fe3c Fix recursion error in MockBuilder
Fix #323
2022-05-01 13:38:31 -04:00