From: Eric S. Raymond Date: Sat, 20 Apr 2013 19:32:08 +0000 (-0400) Subject: Version bump for release 2.5. X-Git-Tag: 2.5^0 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=dad30408d699b9fdd1ecb7c3d45a556ed91ca5f3;p=freecode-submit.git Version bump for release 2.5. --- diff --git a/NEWS b/NEWS index ab4b8dd..a3265f9 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,8 @@ freecode-submit project release news +2.5 @ 2013-04-20 + Remove the obsolete Release-Focus field. + 2.4 @ 2012-06-19: Freecode JSON connections have changed from http to https. diff --git a/freecode-submit b/freecode-submit index 58f6c58..bbddde3 100755 --- a/freecode-submit +++ b/freecode-submit @@ -4,7 +4,7 @@ import sys, re, urllib2, json, netrc, email.Parser, optparse -version="2.4" +version="2.5" class Update: "Encapsulate dictionaries describing a project metadata update." @@ -201,22 +201,7 @@ class FreecodeMetadataFactory: ("Changes", "c", "changelog"), # Release ("Hide", "x", "hidden_from_frontpage"), # Release ("Release-Tag-List", "t", "tag_list"), # Release - # Note: Release Focus is no longer a real Freecode field. - # We remap it below. - ("Release-Focus", "r", "release_focus"), # Release ) - # Conventional values for release focus - focus_values = ( - "Initial freecode announcement", - "Documentation", - "Code cleanup", - "Minor feature enhancements", - "Major feature enhancements", - "Minor bugfixes", - "Major bugfixes", - "Minor security fixes", - "Major security fixes", - ) # Which attributes have project scope, all others have release scupe projectwide = ('name', 'description', @@ -295,17 +280,6 @@ class FreecodeMetadataFactory: # Hidden flag special handling if "hidden_from_frontpage" in data: data["hidden_from_frontpage"] = data["hidden_from_frontpage"] in ("Y", "y") - # Release-Focus field special handling. - if "release_focus" in data: - if data["release_focus"] in '123456789': - data["release_focus"] = FreecodeMetadataFactory.focus_values[int(data["release_focus"])-1] - if data["release_focus"] not in FreecodeMetadataFactory.focus_values: - raise FreecodeSessionException("Invalid release focus") - if "tag_list" not in data: - data["tag_list"] = data["release_focus" ] - else: - data["tag_list"].append(data["release_focus" ]) - del data["release_focus"] # Now merge in the URLs, doing symbol substitution urllist = [] for (label, furl) in urls.items(): diff --git a/freecode-submit.xml b/freecode-submit.xml index f05e38c..495e59f 100644 --- a/freecode-submit.xml +++ b/freecode-submit.xml @@ -193,15 +193,6 @@ message on standard input. - -Release-Focus:Release --r--release-focus - -Purpose of this release. See the table of release-focus types -below. - - - Release-Tag-List: Release -t--tag-list @@ -284,25 +275,6 @@ URL fields, when specified, actually change the record for the project. Only the Tag-List, Changes, Version, Release-Focus, and Hide fields are actually stored for each version. -Here are the release-focus types. Either the string or the -integer is acceptable. Case of the string is significant. - - - - -Initial freecode announcement1 -Documentation2 -Code cleanup3 -Minor feature enhancements4 -Major feature enhancements5 -Minor bugfixes6 -Major bugfixes7 -Minor security fixes8 -Major security fixes9 - - - - The following elements of Freecode project metadata cannot yet be modified using this tool: name, translation list, programming