Commit graph

225 commits

Author SHA1 Message Date
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
Devan Goodwin
737f4e4fbe Allow custom releasers to be loaded and used. 2011-06-02 14:38:33 -03:00
Devan Goodwin
9cf6dc7713 Introduce new CLI module for releases. 2011-06-02 14:07:07 -03:00
Devan Goodwin
a33a901369 Use fedpkg switch branch for git releases.
The branch names have changed on us, this should be less likely to break
than using git branch switching.
2011-05-11 13:43:25 -03:00
Miroslav Suchý
4ac2994e41 do not print TB when user hit Ctrl+C 2011-05-04 21:42:15 -03:00
Miroslav Suchý
62e85178c2 '0' is True, we want it as false
if you put in tito.props:
changelog_do_not_remove_cherrypick = 0
then it is passed as string, and '0' is taken as True
2011-04-29 09:18:08 -03:00
Devan Goodwin
04df98805a Automatic commit of package [tito] release [0.3.2-1]. 2011-04-26 21:58:44 -03:00
Devan Goodwin
72ec712faf Merge branch 'master' of github.com:dgoodwin/tito 2011-04-26 21:58:28 -03:00
Devan Goodwin
6cb5be1acb Automatic commit of package [tito] release [0.3.1-1]. 2011-04-26 21:57:58 -03:00
jesus m. rodriguez
e956c7d886 add debug logging 2011-03-22 12:48:31 -04:00
Devan Goodwin
1b43c1ec52 Merge branch 'export4' of https://github.com/xsuchy/tito into xsuchy-export4 2011-03-02 15:11:04 -04:00
Devan Goodwin
51989367dd Merge branch 'export3' of https://github.com/xsuchy/tito into xsuchy-export5 2011-03-02 15:07:39 -04:00
Miroslav Suchý
a1d178e283 flip condition so new files are added and existing files are copied 2011-03-02 15:01:28 -04:00
Miroslav Suchy
3f5dedb83d fix traceback if git_email is not specified
addressing:
Warning: user.email in ~/.gitconfig not set.Traceback (most recent call last):
File "/usr/bin/tito", line 22, in
CLI().main(sys.argv[1:])
File "/home/dev/src/tito/src/tito/cli.py", line 98, in main
return module.main(argv)
File "/home/dev/src/tito/src/tito/cli.py", line 512, in main
offline=self.options.offline)
File "/home/dev/src/tito/src/tito/tagger.py", line 65, in init
self.git_user, self.git_email.replace("+", "\+").replace(".", "\.")))
AttributeError: 'NoneType' object has no attribute 'replace'
2011-02-28 09:27:18 +01:00
Devan Goodwin
ed02340409 Fix bugs from releaser refactor. 2011-02-16 13:52:53 -04:00