Commit graph

875 commits

Author SHA1 Message Date
Alex Wood
ea0ea51552 Unit test new common functions and fix revealed bugs. 2015-05-18 14:00:19 -04:00
Alex Wood
53fadc2ae2 Rename tests so they have valid Python module names.
Hyphens are not allowed in module names.
2015-05-18 14:00:19 -04:00
Alex Wood
0c4238f8a4 Remove compatibility test for Python 2.4.
The Python 2.4 style of getting an exception object is forbidden by the
test_exceptions_3 test.  Something has to give, and Tito is not being
built for RHEL 5 anymore.
2015-05-15 13:07:35 -04:00
Alex Wood
f86eba599d Use a context manager for editing the meta-data file. 2015-05-15 13:07:35 -04:00
Alex Wood
fff6823de1 Sync working repository with the repository Mead will use. 2015-05-15 13:07:35 -04:00
Alex Wood
f5aef02d81 Allow for both arguments and properties to be supplied to Maven.
- Supply specfile argument to rhpkg
- Rename Mead releaser
2015-05-15 13:07:35 -04:00
Alex Wood
d8e81191e6 Build rhpkg maven-build command correctly. 2015-05-15 13:07:35 -04:00
Alex Wood
16581a2327 Correct Mead Builder issues. 2015-05-15 13:07:35 -04:00
Alex Wood
8cdb558692 Remove unused variable assignments.
Also prevent shadowing of the "file" builtin.
2015-05-15 13:07:35 -04:00
Alex Wood
e63739c48e Add Mead releaser functionality.
Also build source tarballs through Maven and fall back to git-archive if
necessary.
2015-05-15 13:07:35 -04:00
Alex Wood
4917e0a520 Add tagging for Mead projects.
Also hide some of the logic for Mead stuff so that Taggers and Builders
can be more agnostic about the project type.
2015-05-15 13:07:35 -04:00
Alex Wood
2d73c8d230 Add support for Mead.
Tito can now build a project with Maven, expose the Maven artifacts to
a Cheetah template, and then build the SRPM (and RPM) using the
rendered template and the Maven artifacts.
2015-05-15 13:07:35 -04:00
Alex Wood
f3f243adb1 Make checksum calculations for tar headers encoding aware. 2015-05-15 13:07:34 -04:00
Alex Wood
fb0d60cd6b Add more robust reading in TarFixer.
Python's read(N) function only guarantees that it will read no more
than N bytes but not that it will return N bytes.  This patch adds a
function that will ensure exactly N bytes are read.
2015-05-15 13:07:34 -04:00
Alex Wood
09d89eb4ef Fix tarball timestamps from git archive with Python.
Tito passes "git archive" a tree ID.  The "git archive" man page states:

    git archive behaves differently when given a tree ID versus when
    given a commit ID or tag ID. In the first case the current time
    is used as the modification time of each file in the archive.

Using the current time means that every time we build the source
tarball, the file fingerprint will change since the metadata in the
tarball changes.  We don't want that since build systems track the
fingerprint to see if the actual source has changed.

This process was previously handled in an enigmatic Perl script that
lacked any comments whatsoever.  Converting it to well-commented Python
makes the process less mysterious and speedier since Tito doesn't need
to shell out to Perl.
2015-05-15 13:07:34 -04:00
Devan Goodwin
35baac73e0 Merge pull request #173 from xsuchy/pr161
substitute /releng for /.tito #161
2015-05-14 15:59:36 -03:00
Devan Goodwin
30ea82b302 Merge pull request #174 from xsuchy/pr141
clarify --offline option #141
2015-05-14 15:48:16 -03:00
Devan Goodwin
245696d405 Merge pull request #176 from jflorian/develop
bash-completion for tito command
2015-05-14 15:44:22 -03:00
Devan Goodwin
dcbbb7f01a Add tito spec later in test dockerfiles.
It changes a lot and rebuilding everything sucks.
2015-05-12 16:07:04 -03:00
Devan Goodwin
f9b0212529 Merge branch 'master' of github.com:dgoodwin/tito 2015-05-12 16:06:56 -03:00
Devan Goodwin
81958c0941 Merge branch 'domcleal-builder-rpmbuild-options'
t push origin master# the commit.
2015-05-12 16:06:14 -03:00
Devan Goodwin
6b4f6ad1f8 Merge branch 'builder-rpmbuild-options' of https://github.com/domcleal/tito into domcleal-builder-rpmbuild-options 2015-05-12 15:35:39 -03:00
Devan Goodwin
48fae1914b Merge pull request #164 from ringerc/patch-1
Help new packagers find tools related to tito
2015-05-12 15:34:36 -03:00
Devan Goodwin
43f9ce2dd3 Drop F20 docker tests. 2015-05-09 08:53:11 -03:00
Devan Goodwin
8f9f6ae3fd Add F21 docker testing. 2015-05-09 08:49:14 -03:00
Devan Goodwin
901bdf1d22 Docker test cleanup. 2015-05-08 16:15:02 -03:00
Devan Goodwin
efee896150 Restore rawhide docker tests. 2015-05-08 15:59:35 -03:00
Devan Goodwin
e8e7f63662 Restore F20 Python 3 docker tests. 2015-05-08 13:05:38 -03:00
Devan Goodwin
d1b1e9611b Restore F20 Python 2 docker tests. 2015-05-08 12:55:52 -03:00
Devan Goodwin
50526722e0 EL6 docker tests now fully passing. 2015-05-08 12:07:38 -03:00
Devan Goodwin
70ed5db073 Merge branch '167-el6-spec' of https://github.com/domcleal/tito into docker-test-repair 2015-05-08 11:46:59 -03:00
John Florian
a4f6c52d33 Merge branch 'refs/heads/feature-bash-completion' into develop 2015-05-06 15:44:41 -04:00
John Florian
59c8f361a9 New - bash-completion facilities
Here's an initial go at getting some bash-completion for the tito
command-line.  Module options are a union of those culled from both
"tito MODULE --help" and "man tito" -- there are discrepancies.  Some
options were deliberately omitted such as those documented as deprecated
or "avoid using this please".  All short options are also omitted as
their completion would not save any typing but would hinder the
accessibility of the longer options.
2015-05-06 14:51:37 -04:00
Devan Goodwin
bf2d285061 Get the docker test suite up and running again. 2015-05-01 15:37:53 -03:00
Miroslav Suchý
f5f9e22437 clarify --offline option #141 2015-04-26 15:17:26 +02:00
Miroslav Suchý
843dd2cc51 substitute /releng for /.tito #161
if /releng is present it will be used. Otherwise /.tito will be used.
2015-04-26 14:56:26 +02:00
Dominic Cleal
d3faffa94b Allow override of rpmbuild_options from builder arguments
Instead of being a command line-only option, the string of extra rpmbuild
arguments can now be passed in via the general builder args mechanism, so it
can even be configured from releasers.conf.

Fixes #155
2015-04-23 10:54:24 +01:00
Dominic Cleal
3a1075c7bb Fixes macro initialisation on EL6, F22+
Use unversioned macros for EL6, don't reset python_sitelib on F22+ and
always use the Python binary determined for the OS, not python3 for the
shebang line.

Fixes #167, #168
2015-04-20 15:21:47 +01:00
Craig Ringer
2e93695f3f Help new packagers find tools related to tito
tito is an easily discovered tool when looking for information on rpm packaging, especially SCM integration.

There are now some useful related tools, like mock's SCM integration, mockchain, Koji, fedpkg, etc that are not especially easily discovered by new packagers. Making these more visible by documenting them in tito's README would be a help to new packagers.
2015-03-26 14:20:09 +08:00
Devan Goodwin
4091af9591 Merge pull request #157 from xsuchy/python3
Python3
2015-03-02 08:42:57 -04:00
Devan Goodwin
3a49745cd4 Update releasers. 2015-03-02 08:38:32 -04:00
Devan Goodwin
9a92485a6d Automatic commit of package [tito] release [0.5.6-1]. 2014-12-23 11:36:41 -04:00
Devan Goodwin
c79aa1bc97 Merge branch 'master' of github.com:dgoodwin/tito 2014-12-23 11:34:17 -04:00
Devan Goodwin
52fee81d8c Require new srpm_disttag for rsync/yum releasers.
Fixes issue where just build srpm would be deleted as too old if
building for a newer looking disttag in mock. (i.e. f20 building for
f21)

Also generates more correct looking SRPMs in all cases.
2014-12-23 11:33:36 -04:00
Devan Goodwin
dcddbbfdfe Drop more test only requirements from spec. 2014-12-10 13:18:04 -04:00
Devan Goodwin
6b0d5c98a6 Drop the git-annex dependency.
Want to keep this as a soft dependency like brew/koji etc. You need it if you
intend to use that releaser/builder.
2014-12-10 13:13:36 -04:00
Devan Goodwin
01c152081a Merge branch 'xsuchy-wildcards' 2014-12-10 13:13:03 -04:00
Devan Goodwin
40242ea438 Merge branch 'wildcards' of https://github.com/xsuchy/tito into xsuchy-wildcards
Conflicts:
	test/functional/singleproject_tests.py
2014-12-10 13:12:52 -04:00
Devan Goodwin
c5889ae09c Merge branch 'master' of github.com:dgoodwin/tito 2014-12-10 13:07:51 -04:00
Devan Goodwin
66931b0adf Merge pull request #153 from domcleal/mock-builder-cleanup
MockBuilder: cleanup underlying builder on completion
2014-12-10 12:56:25 -04:00