Commit graph

20 commits

Author SHA1 Message Date
Tadej Janež
6f5a455aac
Modernize developer installation
Support the popular pip editable installation mode.

To work-around a problem in setuptools' develop target, generalize
'install_dir' to say all packages are in 'src' (for more info, see:
https://github.com/pypa/pip/issues/126).

Remove pre-generated bin/tito-dev script.
2020-03-24 09:25:44 +01:00
Tadej Janež
9820841af5
Automatically create tito's console script
Create tito.cli.main() which serves as command line's entry point that
can be used:
- by setuptools' 'console_scripts' entry point mechanism for automatic
  script creation,
- via 'if __name__ == "__main__":'.

Remove pre-generated bin/tito script.

Update SPEC file.
2020-03-24 09:25:41 +01:00
Alex Wood
d73ab2d661 Replace old Perl script for munging RPM release number. 2015-06-10 18:31:36 -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
Alex Wood
fd4af9ef85 Parsing spec files and bumping their versions or releases is now in Python. 2011-10-13 13:38:42 -04:00
Miroslav Suchý
4ac2994e41 do not print TB when user hit Ctrl+C 2011-05-04 21:42:15 -03:00
Miroslav Suchý
4555676e3b correct typo "bump-bump-release" 2010-12-06 13:15:59 +01:00
Miroslav Suchý
7c3c04f796 add new tagger: zStreamTagger - bump up release part after dist tag 2010-11-26 16:55:11 +01:00
Miroslav Suchý
64fdac6c79 add new build class distributionbuilder 2010-11-25 17:57:00 +01:00
Devan Goodwin
9ab84803b7 Fix bad tito script args. 2010-05-24 11:13:07 -03:00
Devan Goodwin
a0cdf98405 Test tito via CLI class rather than shell commands.
Should allow for much better error checking.
2010-05-24 00:44:47 -03:00
Devan Goodwin
79f58c17c1 Add tito-dev script to run directly from source.
Add bin/ to the end of your PATH and tito-dev will run everything from
source checkout rather than what may/may not be installed on the system.
This includes the perl script in bin/ which land in /usr/bin normally.
2010-05-23 21:31:12 -03:00
jesus m. rodriguez
967bf8b0ba use latest commit instead of HEAD for --test. 2010-04-29 12:55:39 -04:00
jesus m. rodriguez
11e0090257 add support for passing in the commit count 2010-04-26 23:00:08 +08:00
Devan Goodwin
0de5290258 Expand tagging tests. 2009-07-25 12:39:22 -03:00
James Bowes
a25384556b Resurrect accidentally removed bin/tito file 2009-07-21 09:17:57 -03:00
Steve 'Ashcrow' Milner
0668e526b4 updated license in all source files
Signed-off-by: Devan Goodwin <dgoodwin@rm-rf.ca>
2009-07-21 20:08:18 +08:00
Devan Goodwin
27f3597664 Make auxiliary perl scripts executable. 2009-07-20 23:11:57 -03:00
Devan Goodwin
907b2a1c85 Remove unecessary Python path adjustment. 2009-07-20 22:47:44 -03:00
Devan Goodwin
e87345d7b7 Initial commit.
Importing tito code from Spacewalk as is.
2009-07-18 15:17:14 -03:00