debian/0000755000000000000000000000000012002065304007156 5ustar debian/compat0000644000000000000000000000000211761606376010401 0ustar 7 debian/pycompat0000644000000000000000000000000211761606376010752 0ustar 2 debian/control0000644000000000000000000000134312002064355010567 0ustar Source: datapm Section: text Priority: optional Maintainer: J. Félix Ontañón Build-Depends: debhelper (>= 7), quilt, python-all-dev, python-support, python-setuptools (>=0.6c), Standards-Version: 3.9.2 Homepage: http://okfn.org/projects/dpm Vcs-Browser: https://github.com/okfn/dpm Package: datapm Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-ckanclient (>= 0.3), python-pkg-resources, python-sqlalchemy, python-simplejson, python-sqlite Description: Data packaging system and utilities datapm, data package manager, is a command line tool and python library for working with Data Packages and interacting with data repositories like the Data Hub. debian/changelog0000644000000000000000000000073612002064664011046 0ustar datapm (0.10-1.1) unstable; urgency=low * Non-maintainer upload with maintainer approval. * Add Depends on python-pkg-resources. Closes: #681901 * Add *.egg-info/* to debian/clean to fix FTBFS if built twice in a row. Closes: #682053 -- Evgeni Golov Thu, 19 Jul 2012 22:07:11 +0200 datapm (0.10-1) unstable; urgency=low * Initial release (Closes: #664566) -- J. Félix Ontañón Sun, 18 Mar 2012 11:15:20 +0100 debian/datapm.manpages0000644000000000000000000000002011761606376012156 0ustar debian/datapm.1 debian/copyright0000644000000000000000000000232411761606376011137 0ustar This package was debianized by J. Félix Ontañón on Sun, 18 Feb 2012 11:15:20 +0100. It was downloaded from http://github.com/okfn/dpm Copyright (c) 2005-2012, Open Knowledge Foundation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/clean0000644000000000000000000000001512002064441010160 0ustar *.egg-info/* debian/patches/0000755000000000000000000000000011761606376010632 5ustar debian/patches/RenameAsDPM0000644000000000000000000000547011761606376012617 0ustar Index: dpm-0.10/dpm/cli/__init__.py =================================================================== --- dpm-0.10.orig/dpm/cli/__init__.py 2012-03-18 18:20:22.850545445 +0100 +++ dpm-0.10/dpm/cli/__init__.py 2012-03-18 17:51:25.000000000 +0100 @@ -21,9 +21,9 @@ For an introduction to dpm see the manual: - $ dpm man + $ datapm man -About information (including license details) is available via `dpm about`. +About information (including license details) is available via `datapm about`. ''' def run(self, options, args): @@ -55,7 +55,7 @@ initial_args = sys.argv[1:] options, args = parser.parse_args(initial_args) if not args: - parser.error('You must give a command (use "dpm help" see a list of commands)') + parser.error('You must give a command (use "datapm help" see a list of commands)') command = args[0].lower() if command not in _commands: parser.error('No command by the name %s %s' % (os.path.basename(sys.argv[0]), command)) Index: dpm-0.10/dpm/cli/standard.py =================================================================== --- dpm-0.10.orig/dpm/cli/standard.py 2012-03-18 18:20:25.806545473 +0100 +++ dpm-0.10/dpm/cli/standard.py 2012-03-18 17:51:25.000000000 +0100 @@ -17,13 +17,13 @@ class AboutCommand(Command): name = 'about' usage = '%prog' - summary = 'About dpm' + summary = 'About datapm' def run(self, options, args): about = \ -'''dpm version %s. +'''datapm version %s. -dpm is Open Knowledge and Open Source. For copyright and license details +datapm is Open Knowledge and Open Source. For copyright and license details run the 'license' command. For more information about dpm and how to use it run the `man` command. Index: dpm-0.10/dpm/__init__.py =================================================================== --- dpm-0.10.orig/dpm/__init__.py 2012-03-18 18:20:28.434545499 +0100 +++ dpm-0.10/dpm/__init__.py 2012-03-18 17:57:58.402532000 +0100 @@ -1,4 +1,4 @@ -'''dpm is a python library and command line tool for working with `Data +'''datapm is a python library and command line tool for working with `Data Packages`_ and interacting with data hubs like CKAN_. For more information visit the documentation at: Index: dpm-0.10/setup.py =================================================================== --- dpm-0.10.orig/setup.py 2012-03-18 18:20:30.594545520 +0100 +++ dpm-0.10/setup.py 2012-03-18 17:51:25.000000000 +0100 @@ -8,7 +8,7 @@ __description_long__ = '' setup( - name='dpm', + name='datapm', version=__version__, # metadata author='Open Knowledge Foundation', @@ -28,7 +28,7 @@ datapkg_index.txt=setuptools.command.egg_info:write_arg [console_scripts] - dpm=dpm.cli:main + datapm=dpm.cli:main [dpm.cli] help = dpm.cli:HelpCommand debian/patches/series0000644000000000000000000000004011761606376012041 0ustar SkipInstallRequires RenameAsDPM debian/patches/SkipInstallRequires0000644000000000000000000000104511761606376014532 0ustar Index: dpm-0.10/setup.py =================================================================== --- dpm-0.10.orig/setup.py 2012-02-05 12:04:50.529602518 +0100 +++ dpm-0.10/setup.py 2012-02-05 12:05:02.021602627 +0100 @@ -23,11 +23,6 @@ packages=find_packages(), include_package_data=True, - install_requires=[ - 'setuptools>=0.6c', - # make ckan support obligatory for time being - 'ckanclient>=0.3', - ], entry_points=''' [egg_info.writers] datapkg_index.txt=setuptools.command.egg_info:write_arg debian/source/0000755000000000000000000000000011761606376010503 5ustar debian/source/format0000644000000000000000000000001411761606376011711 0ustar 3.0 (quilt) debian/rules0000755000000000000000000000013111761606376010256 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 #export DH_OPTIONS=-v %: dh $@ --with python2 debian/datapm.10000644000000000000000000001332611761606376010540 0ustar .\"Created with GNOME Manpages Editor Wizard .\"http://sourceforge.net/projects/gmanedit2 .TH datapm 1 "February 6, 2012" "" "Data package manager" .SH NAME datapm \- data packaging system and utilities .SH SYNOPSIS .B datapm COMMAND [\fIOPTIONS\fP] .SH DESCRIPTION \fBdatapm\fP (data package manager) is a command line tool and python library and for working with Data Packages and interacting with data hubs like those powered by CKAN .SH COMMANDS .PP .B about .RS 4 About \fBdatapm\fP .RE .PP .B clone \fIsrc-spec\fP \fIpath\fP [\fIformat-pattern\fP] [\fIurl-pattern\fP] .RS 4 Download a package (i.e. metadata and resources) specified by \fIsrc-spec\fP to \fIpath\fP Resources to retrieve are selected interactively if no \fIformat-pattern\fP is given. If provided, the optional glob-style \fIformat-pattern\fP and \fIurl-pattern\fP arguments are matched against the format and url of the resource to determine whether it should be retrieved. .RE .PP .B download \fIsrc-spec\fP \fIpath\fP [\fIformat-pattern\fP] [\fIurl-pattern\fP] .RS 4 Download a package (i.e. metadata and resources) specified by \fIsrc-spec\fP to \fIpath\fP Resources to retrieve are selected interactively if no \fIformat-pattern\fP is given. If provided, the optional glob-style \fIformat-pattern\fP and \fIurl-pattern\fP arguments are matched against the format and url of the resource to determine whether it should be retrieved. .RE .PP .B dump \fIpkg-spec\fP \fIpath-of-resource-within-pkg\fP .RS 4 Dump contents of specified resource in specified package to stdout. .RE .PP .B help .RS 4 Show available commands .RE .PP .B info \fIpackage-spec\fP [\fImanifest\fP] .RS 4 Get information about a package (print package metadata). If \fImanifest\fP specified then show manifest info rather than package metadata. WARNING: if you change the metadata for a python distribution you may need to rebuild the egg-info for changes to show up here. .RE .PP .B init [\fIpath-or-name\fP] .RS 4 Initialize a data package at path. Package Name will be taken from last portion of path. If path simply a name then create in the current directory. .RE .PP .B license .RS 4 Show the license .RE .PP .B list [\fIindex-spec\fP] .RS 4 List registered packages. If \fIindex-spec\fP is not provided use default index. .RE .PP .B man .RS 4 Show the manual .RE .PP .B push [\fIsource-file\fP] [\fIwebstore-url\fP] .RS 4 Push local package in current directory to remote repository specified in \fI.dpm/config\fP. Alternatively push a single file to the webstore. .RE .PP .B register \fsrc-spec\fp \fIdest-spec\fP .RS 4 Register package at \fIsrc-spec\fP into index at \fIdest-spec\fP. .RE .PP .B search \fIindex-spec\fP \fIquery\fP .RS 4 Search registered packages in \fIindex-spec\fP. .RE .PP .B setup \fIaction\fP .RS 4 \fIconfig\fP [\fIlocation\fP]: Create configuration file at \fIlocation\fP. If not \fIlocation\fP specified use default (see --config). .RE .RS 4 \fIindex\fP [\fIlocation\fP]: Setup an index at location specified in config. .RE .RS 4 \fIrepo\fP: Setup a repository. The repository will be created at the location specified via the --repository option or default location specified by config. .RE .RE .PP .B update \fIsrc-spec\fP \fIdest-spec\fP .RS 4 As for register. .RE .PP .B upload \fIpath\fP \fIupload-spec\fP .RS 4 Upload a file or package at \fIpath\fP to \fIupload-spec\fP. The \fIupload-spec\fP are of the form: upload-dest-id://BUCKET/LABEL For example: ## default ckan upload ckan://BUCKET/LABEL ## an s3 upload destination my-s3://BUCKET/LABEL ## local pairtree my-pairtree://BUCKET/LABEL ## google storage my-google-storage://BUCKET/LABEL Upload destinations are specified in your datapm config file and are of the form: [upload:dest-id] ofs.backend = s3|google|archive.org|... ## see OFS documentation for a given backend config-option = config-value .RE .SH OPTIONS .PP \fB\-\-version\fR .RS 4 show program's version number and exit .RE .PP \fB\-h\fR, \fB\-\-help\fR .RS 4 show this help message and exit .RE .PP \fB\-v\fR, \fB\-\-verbose\fR .RS 4 Give more output .RE .PP \fB\-d\fR, \fB\-\-debug\fR .RS 4 Print debug output .RE .PP \fB\-q\fR, \fB\-\-quiet\fR .RS 4 Give less output .RE .PP \fB\-\-log=\fP\fIFILENAME\fP .RS 4 Log file where a complete (maximum verbosity) record will be kept .RE .PP \fB\-c CONFIG\fR, \fB\-\-config=\fP\fICONFIG\fP .RS 4 Path to config file (if any) - defaults to $HOME/.dpmrc .RE .PP \fB\-r REPOSITORY\fR, \fB\-\-repository=\fP\fIREPOSITORY\fP .RS 4 Path to repository - overrides value in config .RE .PP \fB\-k API_KEY\fR, \fB\-\-api\-key=\fP\fIAPI_KEY\fP .RS 4 CKAN API Key (overrides value in config) .RE .SH CONFIGURATION FILE [dpm] repo.default_path = $HOME/.dpm/repository index.default = file [index:ckan] ckan.url = http://thedatahub.org/api/ ckan.api_key = [index:db] db.dburi = sqlite://$HOME/.datapm/repository/index.db [upload:ckan] ofs.backend = reststore host = http://storage.ckan.net .SH FILES .I ~/.dpmrc .RS Per user \fBdatapm\fP configuration file. .SH EXAMPLES Grabbing some data from an index .br \fBdatapm\fP index-add \fIfile:///....\fP \fBdatapm\fP update \fBdatapm\fP search "\fImilitary spending\fP" \fIsome-id\fP Military Spending 1890-1914 \fIsome-id-2\fP Military Spending 1890-1914 (normalized) \fBdatapm\fP install \fIsome-id\fP \fBdatapm\fP plot \fIsome-id\fP .br Get two different datasets and use them together .br \fBdatapm\fP install \fIpkg-a\fP \fBdatapm\fP install \fIpkg-b\fP \fBdatapm\fP create merged # manual merge # e.g. PPP, GDP \fBdatapm\fP register \fImy-merged-package\fP .br .SH SEE ALSO For more information visit the documentation at: \fIhttp://readthedocs.org/docs/dpm\fR debian/README.Debian0000644000000000000000000000025211761606376011243 0ustar datapm for Debian -------------- Upstream dpm renamed as datapm dpm-11a manpage included -- J. Félix Ontañón Sun, 18 Mar 2012 11:27:38 +0100 debian/watch0000644000000000000000000000012011761606376010225 0ustar version=3 http://pypi.python.org/packages/source/d/dpm/dpm-([0-9a-z.]+)\.tar.gz