[Python-modules-commits] r22743 - in packages/pyhamcrest/trunk/debian (5 files)

davidvilla-guest at users.alioth.debian.org davidvilla-guest at users.alioth.debian.org
Wed Oct 3 17:25:58 UTC 2012


    Date: Wednesday, October 3, 2012 @ 17:25:56
  Author: davidvilla-guest
Revision: 22743

removing upstream egg

Added:
  packages/pyhamcrest/trunk/debian/patches/
  packages/pyhamcrest/trunk/debian/patches/remove-egg.diff
  packages/pyhamcrest/trunk/debian/patches/series
Modified:
  packages/pyhamcrest/trunk/debian/changelog
  packages/pyhamcrest/trunk/debian/rules

Modified: packages/pyhamcrest/trunk/debian/changelog
===================================================================
--- packages/pyhamcrest/trunk/debian/changelog	2012-10-03 14:59:13 UTC (rev 22742)
+++ packages/pyhamcrest/trunk/debian/changelog	2012-10-03 17:25:56 UTC (rev 22743)
@@ -1,3 +1,10 @@
+pyhamcrest (1.6-3) unstable; urgency=low
+
+  * debian/patches/remove-egg.diff to remove upstream egg (Closes: #671190)
+  * debian/ mergeWithUpstream svn property typo fixed
+
+ -- David Villa Alises <David.Villa at uclm.es>  Mon, 02 Apr 2012 01:13:03 +0200
+
 pyhamcrest (1.6-2) unstable; urgency=low
 
   * debian/watch changed to code.google.com URL

Added: packages/pyhamcrest/trunk/debian/patches/remove-egg.diff
===================================================================
--- packages/pyhamcrest/trunk/debian/patches/remove-egg.diff	                        (rev 0)
+++ packages/pyhamcrest/trunk/debian/patches/remove-egg.diff	2012-10-03 17:25:56 UTC (rev 22743)
@@ -0,0 +1,403 @@
+--- a/PyHamcrest.egg-info/PKG-INFO
++++ /dev/null
+@@ -1,270 +0,0 @@
+-Metadata-Version: 1.1
+-Name: PyHamcrest
+-Version: 1.6
+-Summary: Hamcrest framework for matcher objects
+-Home-page: http://code.google.com/p/hamcrest/
+-Author: Jon Reid
+-Author-email: jon.reid at mac.com
+-License: New BSD
+-Download-URL: http://pypi.python.org/packages/source/P/PyHamcrest/PyHamcrest-1.6.tar.gz
+-Description: * [Full documentation](http://packages.python.org/PyHamcrest)
+-        * [Latest package](http://pypi.python.org/pypi/PyHamcrest)
+-        * [Latest sources](https://github.com/jonreid/PyHamcrest)
+-        * [Hamcrest information](http://code.google.com/p/hamcrest)
+-        
+-        See also:
+-        
+-        * [OCHamcrest](https://github.com/jonreid/OCHamcrest) - Objective-C version for
+-        Cocoa and iOS.
+-        * [Quality Coding](http://jonreid.blogs.com/qualitycoding/) - Tools, tips and
+-        techniques for _building quality in_ to your iOS programs.
+-        
+-        
+-        Introduction
+-        ============
+-        
+-        PyHamcrest is a framework for writing matcher objects, allowing you to
+-        declaratively define "match" rules. There are a number of situations where
+-        matchers are invaluable, such as UI validation, or data filtering, but it is in
+-        the area of writing flexible tests that matchers are most commonly used. This
+-        tutorial shows you how to use PyHamcrest for unit testing.
+-        
+-        When writing tests it is sometimes difficult to get the balance right between
+-        overspecifying the test (and making it brittle to changes), and not specifying
+-        enough (making the test less valuable since it continues to pass even when the
+-        thing being tested is broken). Having a tool that allows you to pick out
+-        precisely the aspect under test and describe the values it should have, to a
+-        controlled level of precision, helps greatly in writing tests that are "just
+-        right." Such tests fail when the behavior of the aspect under test deviates
+-        from the expected behavior, yet continue to pass when minor, unrelated changes
+-        to the behaviour are made.
+-        
+-        Installation
+-        ============
+-        
+-        Hamcrest can be installed using the usual Python packaging tools. It depends on
+-        distribute, but as long as you have a network connection when you install, the
+-        installation process will take care of that for you.
+-        
+-        My first PyHamcrest test
+-        ========================
+-        
+-        We'll start by writing a very simple PyUnit test, but instead of using PyUnit's
+-        ``assertEqual`` method, we'll use PyHamcrest's ``assert_that`` construct and
+-        the standard set of matchers::
+-        
+-        from hamcrest import *
+-        import unittest
+-        
+-        class BiscuitTest(unittest.TestCase):
+-        def testEquals(self):
+-        theBiscuit = Biscuit('Ginger')
+-        myBiscuit = Biscuit('Ginger')
+-        assert_that(theBiscuit, equal_to(myBiscuit))
+-        
+-        if __name__ == '__main__':
+-        unittest.main()
+-        
+-        The ``assert_that`` function is a stylized sentence for making a test
+-        assertion. In this example, the subject of the assertion is the object
+-        ``theBiscuit``, which is the first method parameter. The second method
+-        parameter is a matcher for ``Biscuit`` objects, here a matcher that checks one
+-        object is equal to another using the Python ``==`` operator. The test passes
+-        since the ``Biscuit`` class defines an ``__eq__`` method.
+-        
+-        If you have more than one assertion in your test you can include an identifier
+-        for the tested value in the assertion::
+-        
+-        assert_that(theBiscuit.getChocolateChipCount(), equal_to(10), 'chocolate chips')
+-        assert_that(theBiscuit.getHazelnutCount(), equal_to(3), 'hazelnuts')
+-        
+-        As a convenience, assert_that can also be used to verify a boolean condition::
+-        
+-        assert_that(theBiscuit.isCooked(), 'cooked')
+-        
+-        This is equivalent to the ``assert_`` method of unittest.TestCase, but because
+-        it's a standalone function, it offers greater flexibility in test writing.
+-        
+-        
+-        Predefined matchers
+-        ===================
+-        
+-        PyHamcrest comes with a library of useful matchers:
+-        
+-        * Object
+-        
+-        * ``equal_to`` - match equal object
+-        * ``has_length`` - match ``len()``
+-        * ``has_property`` - match value of property with given name
+-        * ``has_string`` - match ``str()``
+-        * ``instance_of`` - match object type
+-        * ``none``, ``not_none`` - match ``None``, or not ``None``
+-        * ``same_instance`` - match same object
+-        
+-        * Number
+-        
+-        * ``close_to`` - match number close to a given value
+-        * ``greater_than``, ``greater_than_or_equal_to``, ``less_than``,
+-        ``less_than_or_equal_to`` - match numeric ordering
+-        
+-        * Text
+-        
+-        * ``contains_string`` - match part of a string
+-        * ``ends_with`` - match the end of a string
+-        * ``equal_to_ignoring_case`` - match the complete string but ignore case
+-        * ``equal_to_ignoring_whitespace`` - match the complete string but ignore
+-        extra whitespace
+-        * ``starts_with`` - match the beginning of a string
+-        * ``string_contains_in_order`` - match parts of a string, in relative order
+-        
+-        * Logical
+-        
+-        * ``all_of`` - ``and`` together all matchers
+-        * ``any_of`` - ``or`` together all matchers
+-        * ``anything`` - match anything, useful in composite matchers when you don't
+-        care about a particular value
+-        * ``is_not`` - negate the matcher
+-        
+-        * Sequence
+-        
+-        * ``contains`` - exactly match the entire sequence
+-        * ``contains_inanyorder`` - match the entire sequence, but in any order
+-        * ``has_item`` - match if given item appears in the sequence
+-        * ``has_items`` - match if all given items appear in the sequence, in any
+-        order
+-        * ``is_in`` - match if item appears in the given sequence
+-        * ``only_contains`` - match if sequence's items appear in given list
+-        
+-        * Dictionary
+-        
+-        * ``has_entries`` - match dictionary with list of key-value pairs
+-        * ``has_entry`` - match dictionary containing a key-value pair
+-        * ``has_key`` - match dictionary with a key
+-        * ``has_value`` - match dictionary with a value
+-        
+-        * Decorator
+-        
+-        * ``described_as`` - give the matcher a custom failure description
+-        * ``is_`` - decorator to improve readability - see `Syntactic sugar` below
+-        
+-        The arguments for many of these matchers accept not just a matching value, but
+-        another matcher, so matchers can be composed for greater flexibility. For
+-        example, ``only_contains(less_than(5))`` will match any sequence where every
+-        item is less than 5.
+-        
+-        
+-        Syntactic sugar
+-        ===============
+-        
+-        PyHamcrest strives to make your tests as readable as possible. For example, the
+-        ``is_`` matcher is a wrapper that doesn't add any extra behavior to the
+-        underlying matcher. The following assertions are all equivalent::
+-        
+-        assert_that(theBiscuit, equal_to(myBiscuit))
+-        assert_that(theBiscuit, is_(equal_to(myBiscuit)))
+-        assert_that(theBiscuit, is_(myBiscuit))
+-        
+-        The last form is allowed since ``is_(value)`` wraps most non-matcher arguments
+-        with ``equal_to``. But if the argument is a type, it is wrapped with
+-        ``instance_of``, so the following are also equivalent::
+-        
+-        assert_that(theBiscuit, instance_of(Biscuit))
+-        assert_that(theBiscuit, is_(instance_of(Biscuit)))
+-        assert_that(theBiscuit, is_(Biscuit))
+-        
+-        *Note that PyHamcrest's ``is_`` matcher is unrelated to Python's ``is``
+-        operator. The matcher for object identity is ``same_instance``.*
+-        
+-        
+-        Writing custom matchers
+-        =======================
+-        
+-        PyHamcrest comes bundled with lots of useful matchers, but you'll probably find
+-        that you need to create your own from time to time to fit your testing needs.
+-        This commonly occurs when you find a fragment of code that tests the same set
+-        of properties over and over again (and in different tests), and you want to
+-        bundle the fragment into a single assertion. By writing your own matcher you'll
+-        eliminate code duplication and make your tests more readable!
+-        
+-        Let's write our own matcher for testing if a calendar date falls on a Saturday.
+-        This is the test we want to write::
+-        
+-        def testDateIsOnASaturday(self):
+-        d = datetime.date(2008, 04, 26)
+-        assert_that(d, is_(on_a_saturday()))
+-        
+-        And here's the implementation::
+-        
+-        from hamcrest.core.base_matcher import BaseMatcher
+-        from hamcrest.core.helpers.hasmethod import hasmethod
+-        
+-        class IsGivenDayOfWeek(BaseMatcher):
+-        
+-        def __init__(self, day):
+-        self.day = day  # Monday is 0, Sunday is 6
+-        
+-        def _matches(self, item):
+-        if not hasmethod(item, 'weekday'):
+-        return False
+-        return item.weekday() == self.day
+-        
+-        def describe_to(self, description):
+-        day_as_string = ['Monday', 'Tuesday', 'Wednesday', 'Thursday',
+-        'Friday', 'Saturday', 'Sunday']
+-        description.append_text('calendar date falling on ')    \
+-        .append_text(day_as_string[self.day])
+-        
+-        def on_a_saturday():
+-        return IsGivenDayOfWeek(5)
+-        
+-        For our Matcher implementation we implement the ``_matches`` method - which
+-        calls the ``weekday`` method after confirming that the argument (which may not
+-        be a date) has such a method - and the ``describe_to`` method - which is used
+-        to produce a failure message when a test fails. Here's an example of how the
+-        failure message looks::
+-        
+-        assert_that(datetime.date(2008, 04, 06), is_(on_a_saturday()))
+-        
+-        fails with the message::
+-        
+-        AssertionError:
+-        Expected: is calendar date falling on Saturday
+-        got: <2008-04-06>
+-        
+-        Let's say this matcher is saved in a module named ``isgivendayofweek``. We
+-        could use it in our test by importing the factory function ``on_a_saturday``::
+-        
+-        from hamcrest import *
+-        import unittest
+-        from isgivendayofweek import on_a_saturday
+-        
+-        class DateTest(unittest.TestCase):
+-        def testDateIsOnASaturday(self):
+-        d = datetime.date(2008, 04, 26)
+-        assert_that(d, is_(on_a_saturday()))
+-        
+-        if __name__ == '__main__':
+-        unittest.main()
+-        
+-        Even though the ``on_a_saturday`` function creates a new matcher each time it
+-        is called, you should not assume this is the only usage pattern for your
+-        matcher. Therefore you should make sure your matcher is stateless, so a single
+-        instance can be reused between matches.
+-        
+-Keywords: hamcrest matchers pyunit unit test testing unittest unittesting
+-Platform: All
+-Classifier: Development Status :: 5 - Production/Stable
+-Classifier: Environment :: Console
+-Classifier: Intended Audience :: Developers
+-Classifier: License :: OSI Approved :: BSD License
+-Classifier: Natural Language :: English
+-Classifier: Operating System :: OS Independent
+-Classifier: Programming Language :: Python :: 2.5
+-Classifier: Programming Language :: Python :: 2.6
+-Classifier: Programming Language :: Python :: 2.7
+-Classifier: Programming Language :: Python :: 3.1
+-Classifier: Programming Language :: Python :: 3.2
+-Classifier: Topic :: Software Development
+-Classifier: Topic :: Software Development :: Quality Assurance
+-Classifier: Topic :: Software Development :: Testing
+-Provides: hamcrest
+--- a/PyHamcrest.egg-info/SOURCES.txt
++++ /dev/null
+@@ -1,112 +0,0 @@
+-CHANGES.txt
+-LICENSE.txt
+-MANIFEST.in
+-README.md
+-setup.cfg
+-setup.py
+-PyHamcrest.egg-info/PKG-INFO
+-PyHamcrest.egg-info/SOURCES.txt
+-PyHamcrest.egg-info/dependency_links.txt
+-PyHamcrest.egg-info/requires.txt
+-PyHamcrest.egg-info/top_level.txt
+-examples/CustomDateMatcher.py
+-examples/ExampleWithAssertThat.py
+-hamcrest/__init__.py
+-hamcrest/core/__init__.py
+-hamcrest/core/assert_that.py
+-hamcrest/core/base_description.py
+-hamcrest/core/base_matcher.py
+-hamcrest/core/description.py
+-hamcrest/core/matcher.py
+-hamcrest/core/selfdescribing.py
+-hamcrest/core/selfdescribingvalue.py
+-hamcrest/core/string_description.py
+-hamcrest/core/core/__init__.py
+-hamcrest/core/core/allof.py
+-hamcrest/core/core/anyof.py
+-hamcrest/core/core/described_as.py
+-hamcrest/core/core/is_.py
+-hamcrest/core/core/isanything.py
+-hamcrest/core/core/isequal.py
+-hamcrest/core/core/isinstanceof.py
+-hamcrest/core/core/isnone.py
+-hamcrest/core/core/isnot.py
+-hamcrest/core/core/issame.py
+-hamcrest/core/helpers/__init__.py
+-hamcrest/core/helpers/hasmethod.py
+-hamcrest/core/helpers/wrap_matcher.py
+-hamcrest/library/__init__.py
+-hamcrest/library/collection/__init__.py
+-hamcrest/library/collection/isdict_containing.py
+-hamcrest/library/collection/isdict_containingentries.py
+-hamcrest/library/collection/isdict_containingkey.py
+-hamcrest/library/collection/isdict_containingvalue.py
+-hamcrest/library/collection/isin.py
+-hamcrest/library/collection/issequence_containing.py
+-hamcrest/library/collection/issequence_containinginanyorder.py
+-hamcrest/library/collection/issequence_containinginorder.py
+-hamcrest/library/collection/issequence_onlycontaining.py
+-hamcrest/library/integration/__init__.py
+-hamcrest/library/integration/match_equality.py
+-hamcrest/library/number/__init__.py
+-hamcrest/library/number/iscloseto.py
+-hamcrest/library/number/ordering_comparison.py
+-hamcrest/library/object/__init__.py
+-hamcrest/library/object/haslength.py
+-hamcrest/library/object/hasproperty.py
+-hamcrest/library/object/hasstring.py
+-hamcrest/library/text/__init__.py
+-hamcrest/library/text/isequal_ignoring_case.py
+-hamcrest/library/text/isequal_ignoring_whitespace.py
+-hamcrest/library/text/stringcontains.py
+-hamcrest/library/text/stringcontainsinorder.py
+-hamcrest/library/text/stringendswith.py
+-hamcrest/library/text/stringstartswith.py
+-hamcrest/library/text/substringmatcher.py
+-hamcrest_unit_test/__init__.py
+-hamcrest_unit_test/alltests.py
+-hamcrest_unit_test/assert_that_test.py
+-hamcrest_unit_test/base_matcher_test.py
+-hamcrest_unit_test/matcher_test.py
+-hamcrest_unit_test/object_import.py
+-hamcrest_unit_test/string_description_test.py
+-hamcrest_unit_test/collection/__init__.py
+-hamcrest_unit_test/collection/isdict_containing_test.py
+-hamcrest_unit_test/collection/isdict_containingentries_test.py
+-hamcrest_unit_test/collection/isdict_containingkey_test.py
+-hamcrest_unit_test/collection/isdict_containingvalue_test.py
+-hamcrest_unit_test/collection/isin_test.py
+-hamcrest_unit_test/collection/issequence_containing_test.py
+-hamcrest_unit_test/collection/issequence_containinginanyorder_test.py
+-hamcrest_unit_test/collection/issequence_containinginorder_test.py
+-hamcrest_unit_test/collection/issequence_onlycontaining_test.py
+-hamcrest_unit_test/collection/quasidict.py
+-hamcrest_unit_test/collection/quasisequence.py
+-hamcrest_unit_test/core/__init__.py
+-hamcrest_unit_test/core/allof_test.py
+-hamcrest_unit_test/core/anyof_test.py
+-hamcrest_unit_test/core/described_as_test.py
+-hamcrest_unit_test/core/is_test.py
+-hamcrest_unit_test/core/isanything_test.py
+-hamcrest_unit_test/core/isequal_test.py
+-hamcrest_unit_test/core/isinstanceof_test.py
+-hamcrest_unit_test/core/isnone_test.py
+-hamcrest_unit_test/core/isnot_test.py
+-hamcrest_unit_test/core/issame_test.py
+-hamcrest_unit_test/core/nevermatch.py
+-hamcrest_unit_test/integration/__init__.py
+-hamcrest_unit_test/integration/match_equality_test.py
+-hamcrest_unit_test/number/__init__.py
+-hamcrest_unit_test/number/iscloseto_test.py
+-hamcrest_unit_test/number/ordering_comparison_test.py
+-hamcrest_unit_test/object/__init__.py
+-hamcrest_unit_test/object/haslength_test.py
+-hamcrest_unit_test/object/hasproperty_test.py
+-hamcrest_unit_test/object/hasstring_test.py
+-hamcrest_unit_test/text/__init__.py
+-hamcrest_unit_test/text/isequal_ignoring_case_test.py
+-hamcrest_unit_test/text/isequal_ignoring_whitespace_test.py
+-hamcrest_unit_test/text/stringcontains_test.py
+-hamcrest_unit_test/text/stringcontainsinorder_test.py
+-hamcrest_unit_test/text/stringendswith_test.py
+-hamcrest_unit_test/text/stringstartswith_test.py
+\ No newline at end of file
+--- a/PyHamcrest.egg-info/dependency_links.txt
++++ /dev/null
+@@ -1 +0,0 @@
+-
+--- a/PyHamcrest.egg-info/requires.txt
++++ /dev/null
+@@ -1 +0,0 @@
+-distribute
+\ No newline at end of file
+--- a/PyHamcrest.egg-info/top_level.txt
++++ /dev/null
+@@ -1,2 +0,0 @@
+-hamcrest_unit_test
+-hamcrest

Added: packages/pyhamcrest/trunk/debian/patches/series
===================================================================
--- packages/pyhamcrest/trunk/debian/patches/series	                        (rev 0)
+++ packages/pyhamcrest/trunk/debian/patches/series	2012-10-03 17:25:56 UTC (rev 22743)
@@ -0,0 +1 @@
+remove-egg.diff

Modified: packages/pyhamcrest/trunk/debian/rules
===================================================================
--- packages/pyhamcrest/trunk/debian/rules	2012-10-03 14:59:13 UTC (rev 22742)
+++ packages/pyhamcrest/trunk/debian/rules	2012-10-03 17:25:56 UTC (rev 22743)
@@ -1,4 +1,4 @@
 #!/usr/bin/make -f
 
 %:
-	dh $@ --with python2
+	dh $@ --with python2 --with quilt




More information about the Python-modules-commits mailing list