# HG changeset patch # User Oleg Oshmyan # Date 1313696242 -10800 # Node ID ad4362bf98589c4be765ff91b4d631a18347c4ed # Parent 1cbe2c428942faa29833c2bb335cb3f5fb678cca Created a branch for the 2.03 release diff -r 1cbe2c428942 -r ad4362bf9858 setup-exe.py --- a/setup-exe.py Thu Aug 18 17:17:15 2011 +0300 +++ b/setup-exe.py Thu Aug 18 22:37:22 2011 +0300 @@ -30,7 +30,7 @@ os.rename('upreckon/unix.py', 'upreckon/unix.py~') try: setup(name='Upreckon', - version='2.03.0dev', + version='2.03.0', author='Oleg Oshmyan', author_email='chortos@inbox.lv', url='http://chortos.selfip.net/~astiob/upreckon/', diff -r 1cbe2c428942 -r ad4362bf9858 setup.py --- a/setup.py Thu Aug 18 17:17:15 2011 +0300 +++ b/setup.py Thu Aug 18 22:37:22 2011 +0300 @@ -28,7 +28,7 @@ ext_modules = [] setup(name='upreckon', - version='2.03.0dev', + version='2.03.0', author='Oleg Oshmyan', author_email='chortos@inbox.lv', url='http://chortos.selfip.net/~astiob/upreckon/', diff -r 1cbe2c428942 -r ad4362bf9858 upreckon/upreckon-vcs --- a/upreckon/upreckon-vcs Thu Aug 18 17:17:15 2011 +0300 +++ b/upreckon/upreckon-vcs Thu Aug 18 22:37:22 2011 +0300 @@ -7,13 +7,11 @@ from upreckon import compat from upreckon.compat import * -parser = optparse.OptionParser(version='Upreckon 2.03.0 ($$REV$$)', epilog='Python 2.6 or newer is required.') +parser = optparse.OptionParser(version='Upreckon 2.03.0', epilog='Python 2.6 or newer is required.') parser.add_option('-1', dest='legacy', action='store_true', default=False, help='handle configuration files in a way more compatible with test.py 1.x') parser.add_option('-p', '--problem', dest='problems', metavar='PROBLEM', action='append', help='test only the PROBLEM (this option can be specified more than once with different problem names, all of which will be tested)') parser.add_option('--list-problems', action='store_true', default=False, help='just list all problem names') -parser.add_option('-m', '--copy-io', dest='copyonly', action='store_true', default=False, help='create a copy of the input/output files of the last test case for manual testing and exit') parser.add_option('-x', '--auto-exit', dest='pause', action='store_false', default=True, help='do not wait for a key to be pressed after finishing testing') -#parser.add_option('-s', '--save-io', dest='erase', action='store_false', default=True, help='do not delete the copies of input/output files after the last test case; create copies of input files and store output in files even if the solution uses standard I/O; delete the stored input/output files if the solution uses standard I/O and the -c/--cleanup option is specified') parser.add_option('-s', '--save-io', dest='erase', action='store_false', default=True, help='do not delete the copies of input/output files after the last test case; create copies of input files and store output in files even if the solution uses standard I/O') parser.add_option('-k', '--skim', action='store_true', default=False, help='skip test groups as soon as one test case is failed') parser.add_option('--no-time-limits', dest='no_maxtime', action='store_true', default=False, help='disable all time limits') @@ -76,22 +74,16 @@ for taskname in options.problems or globalconf.problems: problem = Problem(taskname) - if ntasks and not options.copyonly: say() + if ntasks: say() if shouldprintnames: say(taskname) - if options.copyonly: - problem.copytestdata() - else: - real, max = problem.test() + real, max = problem.test() ntasks += 1 nfulltasks += real == max realscore += real maxscore += max - if options.copyonly: - sys.exit() - if ntasks != 1: say() say('Grand total: %g/%g weighted points; %d/%d problems solved fully' % (realscore, maxscore, nfulltasks, ntasks))