debian/0000755000000000000000000000000012302376527007175 5ustar debian/copyright0000644000000000000000000000177712200020701011115 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: python-warlock Source: git://github.com/bcwaldon/warlock.git Files: debian/* Copyright: 2012 Canonical Ltd 2012, Thomas Goirand License: Apache-2 Files: * Copyright: 2012 Brian Waldon License: Apache-2 License: Apache-2 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. . On Debian-based systems the full text of the Apache version 2.0 license can be found in `/usr/share/common-licenses/Apache-2.0'. debian/changelog0000644000000000000000000000235412302376527011053 0ustar python-warlock (1.1.0-0ubuntu2) trusty; urgency=medium * Rebuild to drop files installed into /usr/share/pyshared. -- Matthias Klose Sun, 23 Feb 2014 13:53:27 +0000 python-warlock (1.1.0-0ubuntu1) trusty; urgency=medium * New upstream release: - debian/patches/python-3.patch: Dropped no longer needed. -- Chuck Short Tue, 17 Dec 2013 08:31:44 -0500 python-warlock (1.0.1-2) unstable; urgency=low * Cleans correctly (package can build twice). * Adds python3 support (Closes: #717469). * Relicenses the packaging using Apache-2.0 (with prior agreement from Canonical, see #717469). -- Thomas Goirand Wed, 24 Jul 2013 15:01:57 +0800 python-warlock (1.0.1-1) unstable; urgency=low * New upstream release. * Ran wrap-and-sort. * Standard-Version: is now 3.9.4. -- Thomas Goirand Thu, 30 May 2013 15:47:07 +0800 python-warlock (1.0.0-1) unstable; urgency=low * Now upstream release. * Uploading to unstable. -- Thomas Goirand Sat, 11 May 2013 06:50:16 +0000 python-warlock (0.8.1-1) experimental; urgency=low * Initial release (Closes: #687510). -- Thomas Goirand Tue, 09 Oct 2012 11:55:15 +0000 debian/compat0000644000000000000000000000000212200020701010344 0ustar 9 debian/patches/0000755000000000000000000000000012254051130010606 5ustar debian/control0000644000000000000000000000432512254051217010574 0ustar Source: python-warlock Section: python Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: PKG OpenStack Uploaders: Julien Danjou , Thomas Goirand , Mehdi Abaakouk Build-Depends: debhelper (>= 9), openstack-pkg-tools, python-all (>= 2.6.6-3~), python-json-patch (>= 0.10), python-jsonschema, python-nose, python-setuptools, python-six, python3-all (>= 3.1.2-7~), python3-json-patch, python3-jsonschema, python3-nose, python3-setuptools, python3-six Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=openstack/python-warlock.git Vcs-Git: git://anonscm.debian.org/openstack/python-warlock.git Homepage: http://pypi.python.org/pypi/warlock Package: python-warlock Architecture: all Pre-Depends: dpkg (>= 1.15.6~) Depends: python-json-patch (>= 0.10), python-jsonschema (>= 0.7), ${misc:Depends}, ${python:Depends} Description: object model built on top of JSON schema - python 2.x With python-warlock, you can build self-validating Python objects using JSON schemas. First, a schema describe the type of data, then after creating the object, python-warlock checks that added or edited attributes correspond to the initial schema. If they don't, an exception is raised. . This package contains the Python 2.x module. Package: python3-warlock Architecture: all Pre-Depends: dpkg (>= 1.15.6~) Depends: python3-json-patch (>= 0.10), python3-jsonschema (>= 0.7), ${misc:Depends}, ${python3:Depends} Description: object model built on top of JSON schema - python 3.x With python-warlock, you can build self-validating Python objects using JSON schemas. First, a schema describe the type of data, then after creating the object, python-warlock checks that added or edited attributes correspond to the initial schema. If they don't, an exception is raised. . This package contains the Python 3.x module. debian/CHANGELOG0000644000000000000000000002053712200020701010367 0ustar commit 694756c2cdf4a02c81e19daaa2103d3bda438e92 Author: Brian Waldon Date: Thu Jan 31 07:37:58 2013 -0800 Bump version to 0.8.1 commit 6d13c02ad48e0d2f7a095f040228757208452259 Author: Brian Waldon Date: Thu Jan 31 07:24:00 2013 -0800 Update README with JSON Patch example Also, replace the remaining tabs with spaces. commit c55fca16a5980562ee226238c6fd45f1149c83c6 Author: Brian Waldon Date: Thu Jan 31 07:17:02 2013 -0800 Move HACKING to HACKING.txt commit c4d87ac700d3849bcb8140cbf8a2e9475a50c449 Author: Brian Waldon Date: Thu Jan 31 07:16:37 2013 -0800 Add license headers to source files commit 286c8dbcc363edefadb1e7591fe60d9edc9e9f5e Author: Brian Waldon Date: Sun Jan 20 15:00:29 2013 -0800 Update version to 0.8.0 commit d5cdd5c561c6587db1e46e400402b365d72a5bf6 Author: Brian Waldon Date: Sun Jan 20 15:07:35 2013 -0800 Relax jsonpatch dep to >=0.10,<=0.12 commit 455fe617d9ff09963806aa020c11a907c8253727 Author: Brian Waldon Date: Sat Dec 22 15:28:21 2012 -0800 Rename Model method validator to validate commit c0e7fba643b69d078ea16ead675432449e4b3185 Author: Brian Waldon Date: Sat Dec 22 15:27:57 2012 -0800 Adding documentation of Model methods commit c2c446193089a717a9cbc3eeca73c1a30a0f7b6b Author: Rob Date: Tue Nov 27 13:22:57 2012 -0500 Made validator inheritable by base classes. commit 98a44c660136b7089cf3e8ed95254b475ab4d085 Author: Rob Date: Tue Nov 27 11:16:13 2012 -0500 Break up core pieces into separate modules - Create model.py to hold the core Model class - Create exceptions.py to hold all custom exceptions commit e8f0a5ade79156cfe18ae5ec25c5737cc1f7e532 Author: Brian Waldon Date: Mon Nov 26 12:26:25 2012 -0500 Bump version to 0.7.0 commit c265073862706e48965b0e6312e281fcb726d8fa Author: Brian Waldon Date: Mon Nov 26 11:41:14 2012 -0500 Use jsonpatch to provide a JSON patch document The attribute "patch" of a model now returns a string representing all of the operations that have occurred on the model since it was created in JSON patch form. commit ec39437bfd7a710e5ac5d4e4ca3236391c90998a Author: Brian Waldon Date: Mon Nov 26 11:40:09 2012 -0500 Allow delattr and del operations commit d34e169d1eb97b6fa84acf39ec2722d9ce77eaba Author: Brian Waldon Date: Mon Nov 19 14:08:18 2012 -0800 Update README to reflect exception output commit c8e3fbd246f65d4c2da8088cff1d752f65d63bf7 Author: Brian Waldon Date: Mon Nov 19 14:00:54 2012 -0800 Bump version to 0.6.0 commit 40abb76f3bfa45501b1c085577d6aa0dfb9f6c4d Author: Brian Waldon Date: Mon Nov 19 13:59:22 2012 -0800 Add helful text to Exceptions Fixes issue #2 commit cd69c88a692e1ffbdcc5ceafd2dab45ec20d38d5 Author: Brian Waldon Date: Mon Nov 19 13:45:37 2012 -0800 Update jsonschema dep to >=0.7,<1 commit 53c43921c8e087f86c4852c06aedce49fa522854 Author: Brian Waldon Date: Tue Oct 9 10:53:11 2012 -0700 Bump version to 0.5.0 commit 26df3051f7c331c9fa9c69ab0ccba47d8dad4613 Merge: 0a6f016 1001d39 Author: Brian Waldon Date: Mon Oct 8 17:13:02 2012 -0700 Merge pull request #1 from termie/dict_base switch to a dict-based object commit 1001d393fe6012ef5c0a2d1cc7744fd5f240aea6 Author: termie Date: Mon Oct 8 16:14:32 2012 -0700 switch to a dict-based object commit 0a6f016295dc7609bf88b1d36458aeab2aeb4014 Author: Brian Waldon Date: Sun Jul 29 20:13:57 2012 -0700 Add 'changes' attribute to models The 'changes' attribute returns a dictionary representing the state of any top-level properties that have been changed since the object was instantiated. Bump version to v0.4.0 commit 69aed68984cf4aba359193e143b63c7d54a91414 Author: Brian Waldon Date: Fri Jul 27 12:55:50 2012 -0700 Refactor attribute access methods Clean up the implementation of the __getattr__, __setattr__, __getitem__, and __setitem__ methods. This does fix a bug where a lookup using dict-like syntax would raise an AttribtueError. That will now correctly raise a KeyError. Bump version to v0.3.1 commit f2b38319ba986c566dc9aaaf74747facfe1a1b0c Author: Brian Waldon Date: Fri Jul 27 12:45:24 2012 -0700 Add items method to model This is similar to the iteritems method in implementation - it exposes the 'items' method of the internal dictionary. Bump version to v0.3.0 commit 2c24556370b82dac6f97d316ec75931a74987b86 Author: Brian Waldon Date: Fri Jul 27 11:28:01 2012 -0700 Enable dict-style access to models Allow get and set of model attributes using dict-like syntax (i.e. model['attribute'] = 'value'). Bump version to 0.2.0 commit d93ca7833f4907939507bc99648de4d4d6eb0616 Author: Brian Waldon Date: Fri Jul 13 17:55:14 2012 -0700 Bump version to v0.1.0 commit 0e64e19d22d5972001c593e516eaf460b8a94866 Author: Brian Waldon Date: Fri Jul 13 17:54:32 2012 -0700 Add iteritems method to model commit 02833d7c24e9f26d982e2412bbee33aa55b423f1 Author: Brian Waldon Date: Fri Jul 13 17:46:34 2012 -0700 Bump version to v0.0.2 commit f25ce31640ec30429cd6408ee6e768e9788f9af3 Author: Brian Waldon Date: Thu Jun 7 13:27:46 2012 -0700 Cast schema name to string commit d5a35f967616d527c17abe97dca4140da3b29951 Author: Brian Waldon Date: Sat Jun 2 12:44:12 2012 -0700 Locking jsonschema dep on v0.2 commit 9a56c9b3d52f45af1acdcccb4f6ea6011579bac7 Author: Brian Waldon Date: Sat Jun 2 12:42:26 2012 -0700 Fixing requirements commit 78cca7b414c45ceaacf621140c5483469e26d03d Author: Brian Waldon Date: Sat Jun 2 12:25:17 2012 -0700 Update README.md commit f123669b5acfb5c2d134fc6a15e1eee866234ddf Author: Brian Waldon Date: Sat Jun 2 12:15:33 2012 -0700 Fixing deps in tox.ini commit f428e0b51fc0d161be79478be1647abe5d2e3098 Author: Brian Waldon Date: Sat Jun 2 12:12:19 2012 -0700 Add Python 2.6 to tox runner commit 155a5c29b099f71ec057c64c9dc5c1e8b6db9b62 Author: Brian Waldon Date: Sat Jun 2 12:04:00 2012 -0700 Adding pep8 runner in tox.ini commit 6995f48c5ce48a472d689afd6de94aa54fa989d2 Author: Brian Waldon Date: Sat Jun 2 09:47:59 2012 -0700 Use jsonschema for operation validation commit c64a586a9a48c8e54e5c702376443767e723fca7 Author: Brian Waldon Date: Fri Jun 1 15:15:48 2012 -0700 Settling on warlock.model_factory Also making pylint happier commit 96ef8b7a5faa6b8c744e658f33923cb571f50564 Author: Brian Waldon Date: Fri Jun 1 15:00:38 2012 -0700 Add basic test and implement minimal logic commit 4160dc4e65dc4c5c8ba2f2245512586490072f60 Author: Brian Waldon Date: Fri Jun 1 14:34:50 2012 -0700 Renaming README to README.md commit b1f4a0b9d23fe8279ca2d17d391c34693892b1c2 Author: Brian Waldon Date: Fri Jun 1 14:33:49 2012 -0700 Adding README commit a5be0449637268b9d6822bcc7b359ba85b9e5f44 Author: Brian Waldon Date: Fri Jun 1 14:02:49 2012 -0700 Add Apache 2.0 LICENSE file commit bfcb925643a8362dc057c01313d2bb1f63ef778f Author: Brian Waldon Date: Fri Jun 1 14:00:30 2012 -0700 Break out requirements into separate file commit 8b9d789ccc5ed1840e8a7173c304c86f954a5447 Author: Brian Waldon Date: Fri Jun 1 13:57:20 2012 -0700 Set reasonable version and add description commit 44a97e9723371bfaafc57074583559d297d1e88e Author: Brian Waldon Date: Fri Jun 1 13:55:45 2012 -0700 Expanding .gitignore commit cd6467fe76502732dbd98232b138af6ce036652e Author: Brian Waldon Date: Fri Jun 1 13:51:26 2012 -0700 Project bootstrapping debian/python3-warlock.docs0000644000000000000000000000003312200020701013060 0ustar README.md requirements.txt debian/rules0000755000000000000000000000131312200020701010224 0ustar #!/usr/bin/make -f PYTHONS:=$(shell pyversions -vr) PYTHON3S:=$(shell py3versions -vr) UPSTREAM_GIT = git://github.com/bcwaldon/warlock.git include /usr/share/openstack-pkg-tools/pkgos.make %: dh $@ --buildsystem=python_distutils --with python2,python3 override_dh_auto_install: set -e && for pyvers in $(PYTHONS); do \ python$$pyvers setup.py install --install-layout=deb \ --root $(CURDIR)/debian/python-warlock; \ done set -e && for pyvers in $(PYTHON3S); do \ python$$pyvers setup.py install --install-layout=deb \ --root $(CURDIR)/debian/python3-warlock; \ done override_dh_auto_test: nosetests nosetests3 || true override_dh_auto_clean: dh_auto_clean rm -rf build rm -rf *.egg-info debian/source/0000755000000000000000000000000012200020701010446 5ustar debian/source/format0000644000000000000000000000001412200020701011654 0ustar 3.0 (quilt) debian/gbp.conf0000644000000000000000000000023712200020701010567 0ustar [DEFAULT] upstream-branch = master debian-branch = debian/unstable upstream-tag = %(version)s compression = xz [git-buildpackage] export-dir = ../build-area/ debian/python-warlock.docs0000644000000000000000000000003312200020701012775 0ustar README.md requirements.txt debian/watch0000644000000000000000000000011712200020701010176 0ustar version=3 http://pypi.python.org/packages/source/w/warlock warlock-(.*).tar.gz