From 3031af150dd90ba63ab9c3b8b57161dc5d72ef69 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 21 Nov 2011 05:35:23 +0000 Subject: Release preparation. --- ext.wscript | 14 ++++++----- lv2/ns/ext/dynmanifest/dynmanifest.ttl | 17 +------------- lv2/ns/ext/dynmanifest/lv2-dynmanifest.doap.ttl | 4 ++-- lv2/ns/ext/uri-map/uri-map.ttl | 31 +++++++++++++++++-------- lv2/ns/ext/urid/urid.ttl | 27 ++++++++++++++++----- lv2/ns/lv2core/lv2core.doap.ttl | 2 +- wscript | 22 ++++++++++++++---- 7 files changed, 71 insertions(+), 46 deletions(-) diff --git a/ext.wscript b/ext.wscript index 7795eb4..276bee9 100644 --- a/ext.wscript +++ b/ext.wscript @@ -1,7 +1,8 @@ #!/usr/bin/env python +import glob import os -import sys import shutil +import sys from waflib.extras import autowaf as autowaf import waflib.Scripting as Scripting import waflib.Logs as Logs @@ -116,7 +117,7 @@ def build(bld): bld.symlink_as(os.path.join(include_dir, info.NAME), os.path.relpath(bundle_dir, include_dir)) -def write_news(doap_file): +def write_news(): import rdflib import textwrap from time import strftime, strptime @@ -130,9 +131,10 @@ def write_news(doap_file): m = rdflib.ConjunctiveGraph() try: - m.parse(doap_file, format='n3') - except: - print('warning: no DOAP file found, unable to generate NEWS') + for i in glob.glob('*.ttl'): + m.parse(i, format='n3') + except Exception as e: + print('warning: error parsing data, unable to generate NEWS ' + str(e)) return spec = m.value(None, rdf.type, doap.Project) @@ -181,7 +183,7 @@ class Dist(Scripting.Dist): lv2extinfo_py.close() # Write NEWS file - write_news('lv2-%s.doap.ttl' % info.NAME) + write_news() # Build distribution Scripting.Dist.archive(self) diff --git a/lv2/ns/ext/dynmanifest/dynmanifest.ttl b/lv2/ns/ext/dynmanifest/dynmanifest.ttl index d48208c..330f143 100644 --- a/lv2/ns/ext/dynmanifest/dynmanifest.ttl +++ b/lv2/ns/ext/dynmanifest/dynmanifest.ttl @@ -23,22 +23,7 @@ @prefix xsd: . - a doap:Project , - lv2:Specification ; - doap:license ; - doap:name "LV2 Dynamic Manifest" ; - doap:homepage ; - doap:created "2009-06-13" ; - doap:shortdesc "An LV2-based specification for dynamic data generation." ; - doap:programming-language "C" ; - doap:release [ - doap:revision "1.2" ; - doap:created "2011-11-20" - ] ; - doap:maintainer [ - a foaf:Person ; - foaf:name "Stefano D'Angelo" - ] ; + a lv2:Specification ; lv2:documentation """

The LV2 API, on its own, cannot be used to write plugin libraries where data is dynamically generated at runtime (e.g. API wrappers), since LV2 requires diff --git a/lv2/ns/ext/dynmanifest/lv2-dynmanifest.doap.ttl b/lv2/ns/ext/dynmanifest/lv2-dynmanifest.doap.ttl index f47c381..4b6e017 100644 --- a/lv2/ns/ext/dynmanifest/lv2-dynmanifest.doap.ttl +++ b/lv2/ns/ext/dynmanifest/lv2-dynmanifest.doap.ttl @@ -16,14 +16,14 @@ doap:name "LV2 Dynamic Manifest" ; doap:homepage ; doap:created "2009-06-13" ; - doap:shortdesc "An LV2-based specification for dynamic data generation." ; + doap:shortdesc "Support for dynamic data generation." ; doap:programming-language "C" ; doap:developer [ a foaf:Person ; foaf:name "Stefano D'Angelo" ] ; doap:release [ - doap:revision "1.1" ; + doap:revision "1.2" ; doap:created "2011-11-17" ; dcs:blame ; dcs:changeset [ diff --git a/lv2/ns/ext/uri-map/uri-map.ttl b/lv2/ns/ext/uri-map/uri-map.ttl index b0a5399..2b35ba9 100644 --- a/lv2/ns/ext/uri-map/uri-map.ttl +++ b/lv2/ns/ext/uri-map/uri-map.ttl @@ -13,6 +13,7 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +@prefix dcs: . @prefix doap: . @prefix foaf: . @prefix lv2: . @@ -22,6 +23,17 @@ @prefix rdfs: . @prefix umap: . + + a foaf:Person ; + foaf:name "David Robillard" ; + foaf:homepage ; + foaf:mbox ; + rdfs:seeAlso . + +_:larsl + a foaf:Person ; + foaf:name "Lars Luthman" . + a lv2:Specification , lv2:Feature ; @@ -31,17 +43,16 @@ doap:shortdesc "A feature for mapping URIs to integers." ; doap:release [ doap:revision "1.2" ; - doap:created "2011-05-26" - ] ; - doap:maintainer [ - a foaf:Person ; - foaf:name "David Robillard" ; - foaf:homepage ; - rdfs:seeAlso - ] , [ - a foaf:Person ; - foaf:name "Lars Luthman" + doap:created "2011-05-26" ; + dcs:blame ; + dcs:changeset [ + dcs:item [ + rdfs:label "Initial release." + ] + ] ] ; + doap:maintainer , + _:larsl ; lv2:documentation """

This extension is deprecated. New implementations should use LV2 URID diff --git a/lv2/ns/ext/urid/urid.ttl b/lv2/ns/ext/urid/urid.ttl index 6fc01e6..aa46f2f 100644 --- a/lv2/ns/ext/urid/urid.ttl +++ b/lv2/ns/ext/urid/urid.ttl @@ -14,12 +14,25 @@ # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +@prefix dcs: . @prefix doap: . @prefix foaf: . @prefix lv2: . @prefix rdfs: . @prefix urid: . + + a foaf:Person ; + foaf:name "David Robillard" ; + foaf:homepage ; + foaf:mbox ; + rdfs:seeAlso . + +_:gabrbedd + a foaf:Person ; + foaf:name "Gabriel M. Beddingfield" ; + foaf:homepage . + a lv2:Specification ; doap:license ; @@ -27,13 +40,15 @@ doap:shortdesc "Features for mapping URIs to and from integers." ; doap:release [ doap:revision "1.0" ; - doap:created "2011-11-20" - ] ; - doap:developer [ - a foaf:Person ; - foaf:name "Gabriel M. Beddingfield" ; - foaf:homepage + doap:created "2011-11-20" ; + dcs:blame ; + dcs:changeset [ + dcs:item [ + rdfs:label "Initial release." + ] + ] ] ; + doap:developer _:gabrbedd ; lv2:documentation """

This extension defines a simple mechanism for plugins to map URIs to and from integers, usually for performance reasons (e.g. processing events typed by diff --git a/lv2/ns/lv2core/lv2core.doap.ttl b/lv2/ns/lv2core/lv2core.doap.ttl index bf4e372..1c12fff 100644 --- a/lv2/ns/lv2core/lv2core.doap.ttl +++ b/lv2/ns/lv2core/lv2core.doap.ttl @@ -99,7 +99,7 @@ dcs:blame ; dcs:changeset [ dcs:item [ - rdfs:label "Initial packaging." + rdfs:label "Initial release." ] ] ] ; diff --git a/wscript b/wscript index 5403b8a..7dd8786 100644 --- a/wscript +++ b/wscript @@ -57,12 +57,19 @@ def release(ctx): rdf = rdflib.Namespace('http://www.w3.org/1999/02/22-rdf-syntax-ns#') doap = rdflib.Namespace('http://usefulinc.com/ns/doap#') - manifests = glob.glob('ext/*.lv2/manifest.ttl') - manifests += glob.glob('extensions/*.lv2/manifest.ttl') + try: + shutil.rmtree('build/spec') + except: + pass + + os.makedirs('build/spec') + + manifests = glob.glob('lv2/ns/lv2core/manifest.ttl') + manifests += glob.glob('lv2/ns/*/*/manifest.ttl') for manifest in manifests: dir = os.path.dirname(manifest) name = os.path.basename(dir).replace('.lv2', '') - + m = rdflib.ConjunctiveGraph() m.parse(manifest, format='n3') @@ -78,12 +85,17 @@ def release(ctx): continue if minor != 0 and micro % 2 == 0: + autowaf.display_header('\nBuilding %s Release\n' % dir) try: subprocess.call( - ['./waf', 'distclean', 'configure', 'build', 'distcheck', 'distclean'], + ['./waf', 'distclean', 'configure', 'build', 'distcheck'], cwd=dir) + for i in glob.glob(dir + '/*.tar.bz2'): + shutil.move(i, 'build/spec') except: - Logs.error('Error building %s release' % name) + Logs.error('Error building %s release' % (name, e)) + + subprocess.call(['./waf', 'distclean'], cwd=dir) def lint(ctx): for i in (['lv2/ns/lv2core/lv2.h'] -- cgit v1.2.1