Commit graph

1122 commits

Author SHA1 Message Date
Ernestas Kulik
3a79fdde9f Move to python-blessed
As python-blessings is unmaintained nowadays and is not packaged for
EPEL 8, it might be good to move to an active fork.

Related: https://bugzilla.redhat.com/show_bug.cgi?id=1777377
2020-01-13 09:04:38 +01:00
Jakub Kadlcik
e2bbb4da66 Fix the Source0 URL and prep phase
Fixing this build error

    line 40: cd: tito-tito-0.6.12: No such file or directory

We don't need the weird directory naming because it is possible to
pass an optional part of the URL specifying the targeted filename.

See https://fedoraproject.org/wiki/Packaging:SourceURL#Git_Tags

However, we still can't define `Source0` as an URL because then the
checksum differs from what `tito build --tgz` produces
2020-01-06 14:01:33 +01:00
Jakub Kadlcik
fbef7d7f02 Automatic commit of package [tito] release [0.6.12-1].
Created by command:

/usr/bin/tito tag
2019-12-20 17:19:06 +01:00
Jakub Kadlčík
780a7dda65
Merge pull request #350 from FrostyX/update-releaser-branches
Update fedora releaser branches
2019-12-20 17:03:27 +01:00
Jakub Kadlcik
c8c44686b9 Update fedora releaser branches 2019-12-20 16:32:27 +01:00
Jakub Kadlčík
91ed57efcd
Merge pull request #349 from FrostyX/merge-downstream-patches
Merge downstream patches
2019-12-20 16:27:42 +01:00
Igor Gnatenko
3ab90dac58 Remove obsolete Group tag
References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag
2019-12-06 23:28:34 +01:00
Adam Williamson
655bf0b87e Update URL and Source locations
The old site no longer appears to exist, nor do the tarballs.
Use github instead.
2019-12-06 23:28:12 +01:00
Adam Williamson
6d8e0adb8e Fix cheetah binary dependency (it's not always in python-cheetah) 2019-12-06 23:26:29 +01:00
Adam Williamson
a116d503ad Correct and make less confusing the conditional Python macros
This was using 'python_sitelib' in a non-standard way (it got
defined to either python2_sitelib or python3_sitelib depending
on whether we're doing a python2 or python3 build). Igor saw
the uses of 'python_sitelib' and assumed it was just using the
old name for 'the python 2 sitelib' and changed them all to
'python2_sitelib'...which broke all Fedora builds.

This fixes that problem and renames the package's confusing
'python_sitelib' and 'pythonbin' so hopefully no-one will make
the same mistake in future.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2019-12-06 23:24:00 +01:00
Brian C. Lane
e6f4811e07 Drop unused fedora-cert Require line from tito.spec 2019-12-06 23:23:42 +01:00
Igor Gnatenko
71a861c2a8 python-devel → python2-devel
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-12-06 23:22:14 +01:00
Igor Gnatenko
cf56cf36ce %{python_sitelib} → %{python2_sitelib}
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-12-06 23:22:02 +01:00
Igor Gnatenko
632d0a4f5a Remove %clean section
None of currently supported distributions need that.
Last one was EL5 which is EOL for a while.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-12-06 23:20:55 +01:00
Devan Goodwin
7f3016953e
Merge pull request #348 from FrostyX/python3-on-epel
Use python3 on EPEL8
2019-12-02 08:01:12 -04:00
Jakub Kadlcik
3dbde91000 Use python3 on EPEL8 2019-12-02 00:25:43 +01:00
Devan Goodwin
e75b8d378f
Merge pull request #344 from xsuchy/spec
two bugfixes to spec file
2019-10-03 08:09:04 -03:00
Devan Goodwin
fd6945d84b
Merge pull request #345 from xsuchy/tarutf8
Partial revert "Fix #335. Handle source tarballs with UTF8 characters…
2019-10-03 08:07:42 -03:00
Miroslav Suchý
9c3f00f2cf Partial revert "Fix #335. Handle source tarballs with UTF8 characters in the name."
This partialy reverts commit 03509b36d5.
It removes just test and keep the functionality.

The test cannot be there right now because tito 0.6.11 and older will choke on this and will produce demaged tarball.

This revert can be added back later when all devel has tito in version 0.6.12 or higher.

Resolves: #337
2019-10-03 09:35:24 +02:00
Miroslav Suchý
72e51fe833 disable macro in comment
macros are evaluated even in comments
2019-10-03 08:38:12 +02:00
Miroslav Suchý
f1bcf5c261 do not require obsoleted fedora-cert
fedora-cert does not exists on Fedora 31+
It has been obsoleted by fedora-packager, but not provided
  https://src.fedoraproject.org/rpms/fedora-packager/blob/master/f/fedora-packager.spec#_23
This make tito uninstallable on Fedora 31+.
2019-10-03 08:36:03 +02:00
Devan Goodwin
8bd9c721de
Merge pull request #343 from schlupov/tito_build_traceback
tito build --test --rpm -i Traceback on Fedora 31
2019-10-02 11:35:39 -03:00
Silvie Chlupova
e0cc5fe989 tito build --test --rpm -i Traceback on Fedora 31
Fixes: #341
2019-10-02 12:36:32 +02:00
adamladd17
8b02dbed00
Update common.py
Add in a check to confirm we get the original root commit has in case there are multiple. This can occur when two separate repositories are merged in to one new one. Without this addition the count will always return 0.
2019-09-04 12:56:54 -04:00
Devan Goodwin
d6c7824177
Merge pull request #328 from bcl/master-signed-tags
Enable GnuPG signed tags
2019-07-31 08:14:13 -03:00
Brian C. Lane
8387e57608 Enable GnuPG signed tags
Add 'sign_tag = 1' to the [buildconfig] section of tito.props to enable
it.
2019-07-30 11:51:41 -07:00
Devan Goodwin
86dc621bf4
Merge pull request #336 from awood/master
Fix UnicodeDecodeError caused by source tarballs with utf8 names.
2019-04-10 15:51:39 -03:00
Alex Wood
03509b36d5 Fix #335. Handle source tarballs with UTF8 characters in the name.
Following the principals of https://nedbatchelder.com/text/unipain.html
our goal is to decode bytes in to unicode as soon as we read them and
encode unicode date to bytes at the last second.

The specific problem we were seeing was caused by calling "encode" on a
byte string rather than a unicode string.  Python attempts to be
"helpful" and tries to decode the bytes as ASCII in order to provide a
unicode string to the encode function.  Since the bytes aren't ASCII,
the decode fails and we get the UnicodeDecodeError despite the fact that
we never explicitly asked for a decode at all.

Also, calculate checksums correctly for tarballs that have files with
UTF8 characters in the file name.
2019-04-10 14:20:02 -04:00
Alex Wood
77d54e6579 Add missing dependency declarations. 2019-04-09 14:34:23 -04:00
Alex Wood
fc12574880 BuildRoot is long deprecated and caused tests to fail. 2019-04-08 17:10:17 -04:00
Devan Goodwin
9ef7874044
Merge pull request #327 from kahowell/fedora_distgit
Do not touch tests/ or gating.yaml in dist-git
2018-11-30 07:51:15 -04:00
Kevin Howell
38ea08981b Do not touch tests/ or gating.yaml in dist-git
- `tests/` is part of Fedora's Standard Test Interface (see https://fedoraproject.org/wiki/CI/Standard_Test_Interface )
- `gating.yaml` is part of Fedora's CI/Gating (see https://fedoraproject.org/wiki/CI/Gating )
2018-11-29 16:50:19 -05:00
Devan Goodwin
801ceef051
Merge pull request #326 from bby-bishopclark/patch-1
Don't pluralize with apostrophes
2018-10-12 14:47:24 -03:00
bby-bishopclark
98a517554b
Don't pluralize with apostrophes
Apostrophes aren't for pluralization.  Let's avoid that.
2018-10-12 10:29:41 -07:00
Devan Goodwin
1d311e7916
Merge pull request #325 from Conan-Kudo/susetagger
Add support for SUSE-style detached changelogs
2018-09-17 08:02:58 -03:00
Neal Gompa
b0e2d57934 Releaser: Ensure rpmlintrc files are copied when releasing
A number of build systems support using <pkg>.rpmlintrc for
rpmlintrc files that are used and associated with a specific
package build. These should be committed and pushed when
releasing with tito.
2018-09-16 20:46:33 -04:00
Neal Gompa
597e4de1e0 Releaser: Ensure SUSE-style changes file is copied when releasing
Since we support the case with a SUSE-style detached changelog,
we need to ensure that the changes file is going to be committed
when tito makes a release and pushes it.
2018-09-16 18:34:35 -04:00
Neal Gompa
9494cc13b7 Tagger: Add SUSETagger to support SUSE-style detached changelogs
SUSE-style RPM packaging generally prefers having the RPM changelog
detached from the main RPM spec file as a changes file. This file is
typically named <pkg>.changes (corresponding to <pkg>.spec).

At package build time in the Open Build Service, the content of the
changes file is reformatted to the RPM changelog structure and
appended to the spec file by the build system before rpmbuild
processes it.

This change adds support for this particular workflow, which is
common in communities using an instance of the Open Build Service,
such as (open)SUSE.

This was originally authored by Michael Calmer. The code was ported
to work on Python 3 and adapted for the current tito codebase
by Neal Gompa.

Co-authored-by: Michael Calmer <mc@suse.de>
Co-authored-by: Neal Gompa <ngompa13@gmail.com>
2018-09-16 18:34:35 -04:00
Devan Goodwin
0942baa121
Merge pull request #324 from falcon006/add_gitlfs_support
Add support for building with Git LFS.
2018-07-24 08:58:04 -03:00
Nicholas Tillman
25fc538888 Add support for building with Git LFS. 2018-07-20 14:45:38 -07:00
Devan Goodwin
05f43d20bc
Merge pull request #318 from mtinberg/master
use built-in shutil.copy2 instead of relying external cp file globbing
2018-04-23 08:13:18 -03:00
Devan Goodwin
bc3bf14f54
Merge pull request #317 from treydock/fix-mock-double-build
Avoid double builds with mock
2018-03-05 08:43:18 -04:00
Mark Tinberg
00a084f7d2 use built-in shutil.copy2 instead of relying external cp file globbing 2018-03-02 15:03:58 -06:00
Trey Dockendorf
dcd355949e Avoid double builds with mock
According to mock man page the default behavior without a command flag is to run --rebuild.
This change avoids what is essentially doing --rebuild twice.
2018-03-02 12:59:06 -05:00
Yuxiang Zhu
03b4656823 run_command_print should behave similar to run_command
The existing implementation of `run_command_print` uses `shlex.split`
to split command line arguments into an array, but it doesn't handle
wildcards like `run_command`. This breaks Mock build because of failure
of copying generated RPMs.

This PR also adds `print_on_success` argument and unify the behavior of
error handling.

Reproduction:
``` bash
$ tito build --test --rpm --output=artifacts/el6 --builder=tito.builder.MockBuilder --arg=mock=eng-rhel-6-candidate-x86_64
...
INFO: Results and/or logs in: /var/lib/mock/ERROR: Error running command: cp -v /home/fedora/jenkins/workspace/rcm-pulp-rpm-package/artifacts/el6/rpmbuild-pulp-rpm4f6rzL/mockoutput/*.rpm /home/fedora/jenkins/workspace/rcm-pulp-rpm-package/artifacts/el6
```
2018-01-03 18:42:59 +08:00
Devan Goodwin
18babd175f
Merge pull request #309 from dgoodwin/fix-test-suite
Fix rsync failures in dockerized tests, update for F27.
2017-12-07 12:01:11 -04:00
Devan Goodwin
03196239a7 Fix rsync failures in dockerized tests, update for F27. 2017-12-07 11:12:11 -04:00
Devan Goodwin
cc7e168011 Automatic commit of package [tito] release [0.6.11-1].
Created by command:

/usr/bin/tito tag
2017-12-07 09:57:27 -04:00
Devan Goodwin
73448515e2
Merge pull request #307 from adammhaile/master
Fixing remote_git_name
2017-12-04 14:44:52 -04:00
Adam Haile
8c92f424fc Fixing remote_git_name 2017-12-04 13:43:43 -05:00