debian/0000755000000000000000000000000012264345671007200 5ustar debian/rules0000755000000000000000000000106112264345671010256 0ustar #!/usr/bin/make -f export PYBUILD_NAME=uncertainties export DH_VERBOSE=1 %: dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild override_dh_auto_build: dh_auto_build PYTHONPATH=. http_proxy='http://127.0.0.1:9/' sphinx-build -N -bhtml doc debian/html override_dh_installchangelogs: grep -A 1000 'Version history' PKG-INFO \ | grep '^ - ' \ | sed -e 's/^ *//g;s/ */ /g;s/$$/\n/g' \ | fmt > changelog dh_installchangelogs override_dh_auto_test: PYBUILD_SYSTEM=custom \ PYBUILD_TEST_ARGS="cd uncertainties; nosetests" dh_auto_test debian/python-uncertainties.doc-base0000644000000000000000000000036612264345671015000 0ustar Document: python-uncertainties Title: Python Uncertainties Documentation Author: Eric O. LEBIGOT Section: Programming/Python Format: HTML Index: /usr/share/doc/python-uncertainties/html/index.html Files: /usr/share/doc/python-uncertainties/html debian/watch0000644000000000000000000000014412264345671010230 0ustar version=3 http://pypi.python.org/packages/source/u/uncertainties/uncertainties-([0-9.]+)[.]tar[.]gz debian/control0000644000000000000000000000366412264345671010614 0ustar Source: uncertainties Section: python Priority: optional Maintainer: David Paleino Uploaders: Federico Ceratto Build-Depends: debhelper (>= 9~), , dh-python , python-all (>= 2.6.6-3~) , python-nose , python-numpy , python-sphinx , python3-all , python3-nose , python3-numpy Standards-Version: 3.9.5 X-Python-Version: >= 2.3 X-Python3-Version: >= 3.2 Homepage: http://packages.python.org/uncertainties/ Vcs-Git: git://anonscm.debian.org/collab-maint/uncertainties.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/uncertainties.git Package: python-uncertainties Architecture: all Depends: ${misc:Depends} , ${python:Depends} Recommends: python-numpy Provides: ${python:Provides} Description: Python module for calculations with uncertainties uncertainties is a Python module, which allows calculations such as . (0.2 +/- 0.01) * 2 = 0.4 +/- 0.02 . to be performed transparently; much more complex mathematical expressions involving numbers with uncertainties can also be evaluated transparently. . Correlations between expressions are correctly taken into account; x-x is thus exactly zero, for instance. The uncertainties produced by this module are what is predicted by error propagation theory. Package: python3-uncertainties Architecture: all Depends: ${misc:Depends} , ${python3:Depends} Recommends: python3-numpy Provides: ${python3:Provides} Description: Python3 module for calculations with uncertainties uncertainties is a Python3 module, which allows calculations such as . (0.2 +/- 0.01) * 2 = 0.4 +/- 0.02 . to be performed transparently; much more complex mathematical expressions involving numbers with uncertainties can also be evaluated transparently. . Correlations between expressions are correctly taken into account; x-x is thus exactly zero, for instance. The uncertainties produced by this module are what is predicted by error propagation theory. debian/changelog0000644000000000000000000000765712264345671011071 0ustar uncertainties (2.4.4-1) unstable; urgency=low * New upstream release * Python3 support added (Closes: #660945) * Documentation added * Switched to Pybuild * Changelog fixed * Standards-Version bumped to 3.9.5 -- Federico Ceratto Sat, 11 Jan 2014 16:25:36 +0000 uncertainties (2.4.2-1) unstable; urgency=low * New upstream release. * lib2to3 patch added. -- Federico Ceratto Tue, 26 Nov 2013 23:21:09 +0000 uncertainties (1.9-1) unstable; urgency=low * New upstream release. * Updated debian/copyright. * Standards-Version bump to 3.9.4, no changes needed. * DMUA removed. * Bumped debhelper compat to 9. * Fix Vcs-* urls. -- David Paleino Mon, 31 Dec 2012 09:15:35 +0100 uncertainties (1.8-1) unstable; urgency=low * New upstream release -- Federico Ceratto Tue, 01 Nov 2011 19:47:11 +0000 uncertainties (1.7.4-1) unstable; urgency=low * New upstream release * Package switched from pysupport to dh_python2 * Patches removed, fixed upstream * Standards-Version bump to 3.9.2, no changes needed -- David Paleino Tue, 13 Sep 2011 09:05:24 +0200 uncertainties (1.7.1-1) unstable; urgency=low * New upstream release * Patches refreshed -- David Paleino Fri, 25 Mar 2011 23:17:11 +0100 uncertainties (1.7-1) unstable; urgency=low * New upstream release * debian/patches/00-fix_encoding.patch refreshed -- David Paleino Sun, 29 Aug 2010 10:03:15 +0200 uncertainties (1.6-1) unstable; urgency=low * New upstream release * Standards-Version bump to 3.9.1, no changes needed * debian/patches/00-fix_encoding.patch added, fix FTBFS caused by a distutils bug. -- David Paleino Sun, 22 Aug 2010 09:12:43 +0200 uncertainties (1.5.5-1) unstable; urgency=low * New upstream version * debian/copyright updated, the software is now licensed under a BSD-3 license. -- David Paleino Fri, 16 Jul 2010 07:46:12 +0200 uncertainties (1.5.4.9-1) unstable; urgency=low * New upstream version * debian/rules: don't run tests if nocheck is passed in DEB_BUILD_OPTIONS (Closes: #587436) -- David Paleino Mon, 05 Jul 2010 16:23:47 +0200 uncertainties (1.5.4.8-1) unstable; urgency=low * New upstream version -- David Paleino Tue, 29 Jun 2010 08:43:33 +0200 uncertainties (1.5.4.3-2) unstable; urgency=low * Adopting the package (Closes: #587064) * Package moved from DPMT's SVN to collab-maint Git * debian/control: - Vcs-* fields updated - removed DPMT from Uploaders, added Federico Ceratto - dependency fields re-wrapped - Standards-Version bumped to 3.9.0, no changes needed * debian/rules simplified * debian/copyright: added myself for debian/* -- David Paleino Mon, 28 Jun 2010 17:29:16 +0200 uncertainties (1.5.4.3-1) unstable; urgency=low * New upstream release. + Update Homepage field. * Don't install test modules into the binary package. -- Jakub Wilk Thu, 24 Jun 2010 21:46:22 +0200 uncertainties (1.5.4-1) unstable; urgency=low * New upstream release. + Build-depend on python-numpy, it's needed to run tests. + Test failures happens reasonably seldom (closes: #584263). * Add Debian Python Modules Team to uploaders. * Add Vcs-* fields. * Respect the ‘nocheck’ build option. * Drop work-around for bug #575377. -- Jakub Wilk Fri, 04 Jun 2010 16:14:10 +0200 uncertainties (1.4.5-1) unstable; urgency=low * New upstream release. * Run tests at build time. + Build-depend on python-all and python-nose. -- Jakub Wilk Sun, 28 Feb 2010 12:30:24 +0100 uncertainties (1.4.1-1) unstable; urgency=low * Initial release (closes: #566485). -- Jakub Wilk Sun, 07 Feb 2010 02:01:03 +0100 debian/copyright0000644000000000000000000000606212264345671011137 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: uncertainties Upstream-Contact: Eric O. LEBIGOT (EOL) Source: http://pypi.python.org/pypi/uncertainties/ Files: * Copyright: © 2009-2012, Eric O. LEBIGOT (EOL) License: BSD-3 This software is released under a dual license. (1) The BSD license. (2) Any other license, as long as it is obtained from the original author. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . * The names of its contributors may not be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: © 2010, Jakub Wilk © 2010-2012, David Paleino License: Expat 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/python3-uncertainties.docs0000644000000000000000000000001412264345671014324 0ustar debian/html debian/source/0000755000000000000000000000000012264345671010500 5ustar debian/source/format0000644000000000000000000000001412264345671011706 0ustar 3.0 (quilt) debian/clean0000644000000000000000000000001212264345671010176 0ustar changelog debian/patches/0000755000000000000000000000000012264345671010627 5ustar debian/patches/0003-Remove-img-anchor-from-creativecommons.org.patch0000644000000000000000000000165612264345671022442 0ustar From: Federico Ceratto Date: Sat, 11 Jan 2014 19:51:45 +0000 Subject: Remove img anchor from creativecommons.org --- doc/_templates/layout.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/_templates/layout.html b/doc/_templates/layout.html index 6c940e7..60afccc 100644 --- a/doc/_templates/layout.html +++ b/doc/_templates/layout.html @@ -75,7 +75,7 @@ pathto("_static/logo.png", 1) }}" border="0" alt="uncertainties"/> {%- endblock %} {%- block copyright %}

Documentation license

-Creative Commons License +Creative Commons BY SA 3.0 {%- endblock %} debian/patches/0002-Remove-layout-temp-file.patch0000644000000000000000000000711312264345671016661 0ustar From: Federico Ceratto Date: Sat, 11 Jan 2014 19:45:49 +0000 Subject: Remove layout temp file --- doc/_templates/layout.html~ | 89 --------------------------------------------- 1 file changed, 89 deletions(-) delete mode 100644 doc/_templates/layout.html~ diff --git a/doc/_templates/layout.html~ b/doc/_templates/layout.html~ deleted file mode 100644 index 42fa400..0000000 --- a/doc/_templates/layout.html~ +++ /dev/null @@ -1,89 +0,0 @@ -{% extends "!layout.html" %} - -{% block rootrellink %} - {{ toctree() }} -{% endblock %} - - -{% block relbar1 %} - -
-uncertainties -
-{{ super() }} -{% endblock %} - - -{#############################################################################} -{# Sidebar customization #) - -{# put the sidebar before the body #} -{% block sidebar1 %} - -{%- macro sidebar() %} - {%- if not embedded %}{% if not theme_nosidebar|tobool %} -
-
- {%- block sidebarlogo %} - {%- if logo %} - - {%- endif %} - {%- endblock %} - {%- block sidebartoc %} - {%- block sidebarglobaltoc %} -

{{ _('Table of contents') }}

- {{ toctree() }} - {%- endblock %} - {%- endblock %} - {%- block sidebarrel %} - {%- endblock %} - {%- block sidebarsourcelink %} - {%- if show_source and has_source and sourcename %} -

{{ _('This Page') }}

- - {%- endif %} - {%- endblock %} - {%- if customsidebar %} - {% include customsidebar %} - {%- endif %} - {%- if display_toc %} -

{{ _('Section contents') }}

- {{ toc }} - {%- endif %} - {%- block sidebarsearch %} - {%- if pagename != "search" %} - - - {%- endif %} - {%- endblock %} - {%- block copyright %} -

Documentation license

-Creative Commons License - {%- endblock %} -
-
- {%- endif %}{% endif %} -{%- endmacro %} - -{{ sidebar() }}{% endblock %} - - -{% block sidebar2 %}{% endblock %} - debian/patches/series0000644000000000000000000000022312264345671012041 0ustar 0001-Remove-tests-based-on-lib2to3-tests-support.py.patch 0002-Remove-layout-temp-file.patch 0003-Remove-img-anchor-from-creativecommons.org.patch debian/patches/0001-Remove-tests-based-on-lib2to3-tests-support.py.patch0000644000000000000000000000541212264345671023070 0ustar From: Federico Ceratto Date: Sat, 11 Jan 2014 19:42:33 +0000 Subject: Remove tests based on lib2to3/tests/support.py --- uncertainties/lib1to2/test_1to2.py | 40 -------------------------------------- 1 file changed, 40 deletions(-) diff --git a/uncertainties/lib1to2/test_1to2.py b/uncertainties/lib1to2/test_1to2.py index 3777f1d..a3ba7de 100644 --- a/uncertainties/lib1to2/test_1to2.py +++ b/uncertainties/lib1to2/test_1to2.py @@ -29,49 +29,12 @@ if sys.version_info < (2, 7): else: import os - try: - # lib2to3 test support seems to have moved to a new place in 2013: - import test.test_lib2to3.support as support - except ImportError: - # Pre-~2013 path for lib2to3 test support - import lib2to3.tests.support as support # The lib1to2.fixes package given to lib2to3 is the *local* package # (not to another installed module). This is important for the # __import__() used via support.get_refactorer(). sys.path.insert(0, os.path.join(os.path.dirname(__file__), os.pardir)) - def check_refactor(refactorer, source, expected): - """ - Raises an AssertionError if the given - lib2to3.refactor.RefactoringTool does not refactor 'source' into - 'expected'. - - source, expected -- strings (typically with Python code). - """ - - new = unicode( - refactorer.refactor_string(support.reformat(source), '')) - - assert support.reformat(expected) == new, ( - "Refactoring failed: '{}' => '{}' instead of '{}'".format( - source, new.strip(), expected)) - - # print 'Checked:', source, '=>', expected - - def check_all(fixer, tests): - ''' - Takes a fixer name (module from fixes) and a mapping that maps - code using the obsolete syntax into updated code, and checks - whether the code is correctly updated. - ''' - - refactorer = support.get_refactorer( - fixer_pkg='lib1to2', fixers=[fixer]) - - for (input_str, out_str) in tests.items(): - check_refactor(refactorer, input_str, out_str) - def test_fix_std_dev(): 'Tests the transformation of std_dev() into std_dev.' @@ -97,7 +60,6 @@ else: 'obj.x.set_std_dev(sin(y))': 'obj.x.std_dev = sin(y)' } - check_all('std_dev', tests) def test_ufloat(): ''' @@ -152,7 +114,6 @@ else: # Opposite test: tests['-ufloat("3")'] = '-ufloat_fromstr("3")' - check_all('ufloat', tests) def test_uarray_umatrix(): ''' @@ -195,5 +156,4 @@ else: new.replace('uarray', 'umatrix')) for (orig, new) in tests.iteritems())) - check_all('uarray_umatrix', tests) debian/python3-uncertainties.doc-base0000644000000000000000000000037112264345671015057 0ustar Document: python3-uncertainties Title: Python Uncertainties Documentation Author: Eric O. LEBIGOT Section: Programming/Python Format: HTML Index: /usr/share/doc/python3-uncertainties/html/index.html Files: /usr/share/doc/python3-uncertainties/html debian/python-uncertainties.docs0000644000000000000000000000001412264345671014241 0ustar debian/html debian/compat0000644000000000000000000000000212264345671010376 0ustar 9