changeset 241:478d4217fe03 2.04 2.04.0

Created a branch for the 2.04 release
author Oleg Oshmyan <chortos@inbox.lv>
date Tue, 11 Dec 2012 01:08:08 +0200
parents 2798cbebd83a
children 08ffa5a975e8
files setup-exe.py setup.py upreckon/upreckon-vcs
diffstat 3 files changed, 5 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- a/setup-exe.py	Tue Dec 11 02:48:00 2012 +0200
+++ b/setup-exe.py	Tue Dec 11 01:08:08 2012 +0200
@@ -30,7 +30,7 @@
 os.rename('upreckon/unix.py', 'upreckon/unix.py~')
 try:
 	setup(name='Upreckon',
-	      version='2.04.0dev',
+	      version='2.04.0',
 	      author='Oleg Oshmyan',
 	      author_email='chortos@inbox.lv',
 	      url='http://chortos.selfip.net/~astiob/upreckon/',
--- a/setup.py	Tue Dec 11 02:48:00 2012 +0200
+++ b/setup.py	Tue Dec 11 01:08:08 2012 +0200
@@ -28,7 +28,7 @@
 	ext_modules = []
 
 setup(name='upreckon',
-      version='2.04.0dev',
+      version='2.04.0',
       author='Oleg Oshmyan',
       author_email='chortos@inbox.lv',
       url='http://chortos.selfip.net/~astiob/upreckon/',
--- a/upreckon/upreckon-vcs	Tue Dec 11 02:48:00 2012 +0200
+++ b/upreckon/upreckon-vcs	Tue Dec 11 01:08:08 2012 +0200
@@ -11,10 +11,8 @@
 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('-c', '--cleanup', dest='cleanup', action='store_true', default=False, help='delete the copies of input/output files and exit')
-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,24 +74,16 @@
 	for taskname in options.problems or globalconf.problems:
 		problem = Problem(taskname)
 		
-		if ntasks and not (options.cleanup or options.copyonly): say()
+		if ntasks: say()
 		if shouldprintnames: say(taskname)
 		
-		if options.cleanup:
-			problem.cleanup()
-		elif options.copyonly:
-			problem.copytestdata()
-		else:
-			real, max = problem.test()
+		real, max = problem.test()
 		
 		ntasks += 1
 		nfulltasks += real == max
 		realscore += real
 		maxscore += max
 	
-	if options.cleanup or options.copyonly:
-		sys.exit()
-	
 	if ntasks != 1:
 		say()
 		say('Grand total: %g/%g weighted points; %d/%d problems solved fully' % (realscore, maxscore, nfulltasks, ntasks))