Commit graph

989 commits

Author SHA1 Message Date
Devan Goodwin
3f692f132a Add a KojiGitReleaser.
Originating from the Spacewalk project, this will allow you to build
through koji but by specifying a URL to git and a tag, rather than
submitting an srpm directly.
2011-10-25 11:27:08 -03:00
Devan Goodwin
60ce1c79e9 Merge branch 'master' of https://github.com/awood/tito
Conflicts:
	src/tito/cli.py
2011-10-24 12:26:31 -03:00
Devan Goodwin
1062426b19 Fix koji tito.props release hack. 2011-10-24 11:38:35 -03:00
Alex Wood
3a621a9cc2 Adding --use-version to allow Tito to force a version to use. 2011-10-21 16:23:01 -04:00
Devan Goodwin
b5ef1cf8ad Allow mock builder to override the config dir. 2011-10-18 16:48:07 -03:00
Devan Goodwin
90f5774ae8 Koji release target config fixes. 2011-10-18 10:07:09 -03:00
Devan Goodwin
dd4688d8a2 squash 2011-10-18 10:01:54 -03:00
Devan Goodwin
93f2ab12e0 Support SCRATCH=1 env variable for koji releaser. 2011-10-18 09:57:11 -03:00
Devan Goodwin
6a35225ad7 Support ONLY_TAGS env variable for koji releaser. 2011-10-18 09:55:53 -03:00
Devan Goodwin
41ce73a5ae Cleanup, add TODO. 2011-10-17 23:26:06 -03:00
Devan Goodwin
8298b5e304 List releasers option. 2011-10-17 14:26:31 -03:00
Devan Goodwin
e023b08c9d Fix bug printing releasers when none provided. 2011-10-17 14:10:38 -03:00
Devan Goodwin
587daeeb2a Fix --all option. 2011-10-17 12:56:49 -03:00
Devan Goodwin
f5fd187352 Add --all option for release. 2011-10-17 12:18:23 -03:00
Devan Goodwin
d2c7fdf042 Documentation update.
More to come...
2011-10-16 14:34:23 -03:00
Devan Goodwin
72ff053cad Respect --dry-run when releasing to yum. 2011-10-16 13:26:08 -03:00
Devan Goodwin
d94aacae64 Another fix for multi-target releasing. 2011-10-16 13:25:55 -03:00
Devan Goodwin
3e8335fdce Fix output bug. 2011-10-16 12:56:35 -03:00
Devan Goodwin
1f9b18ef06 Fix bug with multi-target release. 2011-10-16 12:51:01 -03:00
Devan Goodwin
376eafcc1b Allow releaseing to multiple targets at once, and add --all-starting-with. 2011-10-16 12:08:02 -03:00
Devan Goodwin
b8fabef70f Continue porting releasers to use target config. 2011-10-16 11:49:34 -03:00
Devan Goodwin
f40f2935a8 Make auto-install available to all builders. 2011-10-16 08:54:32 -03:00
Devan Goodwin
15ebcb4470 Allow setting specific builder and passing builder args on CLI.
Can now build with a specific builder, and pass it required arguments.

i.e. tito build --builder mock --builder-arg mock=fedora-16-x86_64
2011-10-15 16:55:28 -03:00
Devan Goodwin
35f31ea0df Add new mechanism for passing custom arguments to builders.
This is something to avoid using if possible, you wouldn't want to
require these for a builder that's the default for your project,
otherwise you'd need to specify it every time you ran the CLI.

However builders like the mock builder need to know which mock config to
use, and it could be multiple values for one project trying to do builds
for multiple OSs.

Adding a "builder.prop = value" to a releaser target section will pass
the valie prop to the builder configured.
2011-10-15 16:00:01 -03:00
Devan Goodwin
3cd4b532e4 Document builder constructor arguments. 2011-10-15 15:34:44 -03:00
Devan Goodwin
a9837f3cfc HACKING tips updated. 2011-10-15 13:17:07 -03:00
Devan Goodwin
a7574706b9 Actually use releaser config instead of hardcoded values. 2011-10-15 13:11:02 -03:00
Devan Goodwin
e1eff8f63e Add a rsync username env variable for yum repo releaser. 2011-10-15 13:10:32 -03:00
Devan Goodwin
4698dff21f Restructure release CLI. 2011-10-15 13:10:32 -03:00
Devan Goodwin
7b449a2d7b Prototype mock builder and yum releaser.
Still with configuration hard coded, but demonstrates building via mock,
and then assembling built packages into a yum repository.
2011-10-15 13:10:32 -03:00
Alex Wood
fd4af9ef85 Parsing spec files and bumping their versions or releases is now in Python. 2011-10-13 13:38:42 -04:00
Devan Goodwin
df594445e3 Update for new fedpkg/Fedora git branch names... again... 2011-10-05 16:46:37 -03:00
Devan Goodwin
34c2a7dda0 Automatic commit of package [tito] release [0.3.3-1]. 2011-10-05 15:52:33 -03:00
Devan Goodwin
cc609621a6 Clarify some initial project layout documentation. 2011-09-13 10:26:16 -03:00
Devan Goodwin
76ec2ef844 Merge remote-tracking branch 'jumanjiman/master' 2011-08-02 11:27:45 -03:00
Mike McCune
8a436f47a3 match based on the tag for the package we are building
If you just find the most recent tag during a --test build
you run into git finding recent tags for *other* packages that are also
in the same git repo.  For example, if you have a git repo with 2
packages:

package-a
package-b

and you make a tag on package-a and have:

package-a-0.1.1-1

then you make a few commits and someone does a tag on package-b:

package-b-0.1.1-1

then a few more commits are done on code in package-a but nobody retags.
Now git describe will look back for the most recent tag and find
package-b-0.1.1-1 and have a commit count of the number of commits from
the package-b tag and not from the package-a tag.  By passing in the
--match option on 'git describe' we force git to only look for the tag
for the current package, not the most recent in the repo.
2011-08-02 11:18:09 -03:00
Miroslav Suchý
d70b061095 learn tito how to checkout EUS branches 2011-08-02 11:11:44 -03:00
Miroslav Suchý
e7b355b316 _update_package_metadata() does not allwo release parameter no more
this is left over after commit 7c3c04f7
Release type is now handled by overriden release_type() method.

addressing:
Traceback (most recent call last):
  File "/usr/bin/tito", line 23, in <module>
    CLI().main(sys.argv[1:])
  File "/usr/lib/python2.7/site-packages/tito/cli.py", line 98, in main
    return module.main(argv)
  File "/usr/lib/python2.7/site-packages/tito/cli.py", line 515, in main
    return tagger.run(self.options)
  File "/usr/lib/python2.7/site-packages/tito/tagger.py", line 96, in run
    self._tag_release()
  File "/usr/lib/python2.7/site-packages/tito/zstreamtagger.py", line 20, in _tag_release
    self._update_package_metadata(new_version, release=True)
TypeError: _update_package_metadata() got an unexpected keyword argument 'release'
2011-08-02 10:25:54 -03:00
Paul Morgan
7f96c673f1 resolve issue 25: avoid TB if rpmbuild fails
This also avoids TB if user CTRL-C's while rpmbuild is in progress.
2011-08-01 16:40:54 -04:00
Paul Morgan
2a801f1629 resolve "[FIXME: manual]" in manpages
For consistency across manpages, just include a single file
providing refmiscinfo attributes as described at
http://www.methods.co.nz/asciidoc/chunked/ch21.html
2011-07-22 11:55:25 -04:00
Devan Goodwin
c413cc5776 Make Fedora git builds a little more tolerant if you need to re-run. 2011-07-13 15:48:28 -03:00
Devan Goodwin
5e5623c276 Fix the binary spew in SOURCES on some weird tags. 2011-07-12 12:00:39 -03:00
Devan Goodwin
9cb426d130 Merge branch 'master' of github.com:dgoodwin/tito 2011-07-12 12:00:13 -03:00
Devan Goodwin
c624648e2f Merge pull request #22 from jumanjiman/master
provide helpful error message if user lacks write permission (issue 21)
2011-07-12 05:02:41 -07:00
Paul Morgan
4b62574d0d do not print TB when user lacks write permission 2011-07-11 14:11:50 -04:00
Devan Goodwin
d04e2adcb7 Merge branch 'master' of github.com:dgoodwin/tito 2011-06-28 13:32:39 -03:00
Devan Goodwin
33d6dc45bb Re-add build --release, just to inform users of the new command. 2011-06-28 13:32:05 -03:00
Devan Goodwin
e4bd16eba1 Fix Fedora git releaser to use more reliable commands. 2011-06-24 11:42:10 -03:00
jesus m. rodriguez
fbebe5649d it's Fedora not Feodra :D 2011-06-14 10:02:47 -04:00
Devan Goodwin
aae0b304de Remove the old tito build --release code.
Use "tito release" now.
2011-06-02 14:44:22 -03:00