debian/0000755000000000000000000000000012255340165007171 5ustar debian/watch0000644000000000000000000000014112251513617010216 0ustar version=3 https://github.com/warner/python-ecdsa/tags \ .*/archive/python-ecdsa-(\d\S*)\.tar\.gz debian/python3-ecdsa.install0000644000000000000000000000012312255337303013236 0ustar usr/lib/python3*/*-packages/ecdsa/*.py usr/lib/python3*/*-packages/ecdsa*.egg-info debian/changelog0000644000000000000000000000313312255337303011043 0ustar python-ecdsa (0.10-2) unstable; urgency=low * Add Python 3 package. - debian/rules: Add --with python3. - debian/python{,3}-ecdsa.install: Add install files to place files in correct packages. - debian/control: Add python3-all and python3-six to Build-Depends. * debian/copyright: Relicense Debian packaging as Expat. * debian/patches/upstream-_version.patch: Add upstream's ecdsa/_version.py which is not included in the tarball from GitHub. -- Sebastian Ramacher Sat, 21 Dec 2013 17:09:07 +0100 python-ecdsa (0.10-1) unstable; urgency=low * New upstream release. (Closes: #730663) * New maintainer. (Closes: #731789) * debian/control: - Move Homepage to Source paragraph. - Update Standards-Version to 3.9.5. - Add openssl to Build-Depends for compatibility tests. * debian/rules: - Install upstream changelog. - Make sure that test data is not installed. * Switch to pybuild: - debian/control: Add dh-python to Build-Depends. - debian/rules: Use pybuild build system. * debian/copyright: - Convert to Copyright Format 1.0. - Add myself. * Use python-six instead of embedded copy. - debian/patches/system-six.patch: Adopt imports to system copy. - debian/rules: Make sure that embedded copy is not installed. - debian/control: Add python-six to (Build-)Depends. -- Sebastian Ramacher Tue, 10 Dec 2013 05:05:35 +0100 python-ecdsa (0.8-1) unstable; urgency=low * Initial package in Debian. Closes: #704474. -- Bart Martens Mon, 01 Apr 2013 16:34:34 +0000 debian/python-ecdsa.install0000644000000000000000000000012312255337303013153 0ustar usr/lib/python2*/*-packages/ecdsa/*.py usr/lib/python2*/*-packages/ecdsa*.egg-info debian/source/0000755000000000000000000000000012255340165010471 5ustar debian/source/format0000644000000000000000000000001412251513617011677 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000341712255337303011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: python-ecdsa Upstream-Contact: Brian Warner Source: https://github.com/warner/python-ecdsa Files: * Copyright: 2010 Brian Warner License: Expat Comment: Portions written in 2005 by Peter Pearson and placed in the public domain. Files: ecdsa/six.py Copyright: 2010-2012 Benjamin Peterson License: Expat Files: debian/* Copyright: 2013 Sebastian Ramacher License: Expat Comment: The previous packaging was done by Bart Martens . He kindly transferred the copyright to Sebastian Ramacher in <1386653824.8289.4.camel@tatty.ra.intranet>. 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/control0000644000000000000000000000336612255337303010604 0ustar Source: python-ecdsa Section: python Priority: optional Maintainer: Debian Python Modules Team Uploaders: Sebastian Ramacher Build-Depends: debhelper (>= 9), dh-python, python-all, python3-all, python-six (>= 1.2), python3-six (>= 1.2), openssl Homepage: https://github.com/warner/python-ecdsa Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-ecdsa/trunk/ Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-ecdsa/trunk/ Standards-Version: 3.9.5 X-Python3-Version: >= 3.2 Package: python-ecdsa Architecture: all Depends: ${misc:Depends}, ${python:Depends}, python-six (>= 1.2) Description: ECDSA cryptographic signature library (Python 2) This is an easy-to-use implementation of ECDSA cryptography (Elliptic Curve Digital Signature Algorithm), implemented purely in Python. With this library, you can quickly create keypairs (signing key and verifying key), sign messages, and verify the signatures. The keys and signatures are very short, making them easy to handle and incorporate into other protocols. . This package contains the module for Python 2. Package: python3-ecdsa Architecture: all Depends: ${misc:Depends}, ${python3:Depends}, python3-six (>= 1.2) Description: ECDSA cryptographic signature library (Python 3) This is an easy-to-use implementation of ECDSA cryptography (Elliptic Curve Digital Signature Algorithm), implemented purely in Python. With this library, you can quickly create keypairs (signing key and verifying key), sign messages, and verify the signatures. The keys and signatures are very short, making them easy to handle and incorporate into other protocols. . This package contains the module for Python 3. debian/rules0000755000000000000000000000033212255337303010247 0ustar #!/usr/bin/make -f %: dh $@ --with python2,python3 --buildsystem=pybuild override_dh_installchangelogs: dh_installchangelogs NEWS override_dh_auto_install: dh_auto_install find debian/tmp -name "six.py" -delete debian/compat0000644000000000000000000000000212251513617010367 0ustar 9 debian/patches/0000755000000000000000000000000012255340165010620 5ustar debian/patches/series0000644000000000000000000000005112255337303012031 0ustar system-six.patch upstream-_version.patch debian/patches/system-six.patch0000644000000000000000000000607512251513617013776 0ustar Description: Use python-six instead of embedded copy Author: Sebastian Ramacher Last-Update: 2013-12-09 --- python-ecdsa-0.10.orig/ecdsa/der.py +++ python-ecdsa-0.10/ecdsa/der.py @@ -2,7 +2,7 @@ from __future__ import division import binascii import base64 -from .six import int2byte, b, PY3, integer_types, text_type +from six import int2byte, b, PY3, integer_types, text_type class UnexpectedDER(Exception): pass --- python-ecdsa-0.10.orig/ecdsa/ecdsa.py +++ python-ecdsa-0.10/ecdsa/ecdsa.py @@ -53,7 +53,7 @@ Revision history: Written in 2005 by Peter Pearson and placed in the public domain. """ -from .six import int2byte, b, print_ +from six import int2byte, b, print_ from . import ellipticcurve from . import numbertheory import random --- python-ecdsa-0.10.orig/ecdsa/ellipticcurve.py +++ python-ecdsa-0.10/ecdsa/ellipticcurve.py @@ -34,7 +34,7 @@ from __future__ import division -from .six import print_ +from six import print_ from . import numbertheory class CurveFp( object ): --- python-ecdsa-0.10.orig/ecdsa/keys.py +++ python-ecdsa-0.10/ecdsa/keys.py @@ -7,7 +7,7 @@ from .curves import NIST192p, find_curve from .util import string_to_number, number_to_string, randrange from .util import sigencode_string, sigdecode_string from .util import oid_ecPublicKey, encoded_oid_ecPublicKey -from .six import PY3, b +from six import PY3, b from hashlib import sha1 class BadSignatureError(Exception): --- python-ecdsa-0.10.orig/ecdsa/numbertheory.py +++ python-ecdsa-0.10/ecdsa/numbertheory.py @@ -11,8 +11,8 @@ from __future__ import division -from .six import print_, integer_types -from .six.moves import reduce +from six import print_, integer_types +from six.moves import reduce import math import types --- python-ecdsa-0.10.orig/ecdsa/rfc6979.py +++ python-ecdsa-0.10/ecdsa/rfc6979.py @@ -12,7 +12,7 @@ Many thanks to Coda Hale for his impleme import hmac from binascii import hexlify from .util import number_to_string, number_to_string_crop -from .six import b +from six import b try: bin(0) --- python-ecdsa-0.10.orig/ecdsa/test_pyecdsa.py +++ python-ecdsa-0.10/ecdsa/test_pyecdsa.py @@ -8,7 +8,7 @@ import subprocess from binascii import hexlify, unhexlify from hashlib import sha1, sha256, sha512 -from .six import b, print_, binary_type +from six import b, print_, binary_type from .keys import SigningKey, VerifyingKey from .keys import BadSignatureError from . import util --- python-ecdsa-0.10.orig/ecdsa/util.py +++ python-ecdsa-0.10/ecdsa/util.py @@ -6,7 +6,7 @@ import binascii from hashlib import sha256 from . import der from .curves import orderlen -from .six import PY3, int2byte, b, next +from six import PY3, int2byte, b, next # RFC5480: # The "unrestricted" algorithm identifier is: --- python-ecdsa-0.10.orig/setup.py +++ python-ecdsa-0.10/setup.py @@ -2,7 +2,7 @@ import os, subprocess, re from distutils.core import setup, Command from distutils.command.sdist import sdist as _sdist -from ecdsa.six import print_ +from six import print_ class Test(Command): description = "run unit tests" debian/patches/upstream-_version.patch0000644000000000000000000000125412255337303015325 0ustar Description: Add upstream's ecdsa/_version.py The tarball from GitHub does not contain this file. However, the tarball from PyPI includes it. The file is needed to get the correct version information for setup.py. Until we switch to PyPI as source for upstream tarballs with the next release, include it via a patch. Origin: upstream, https://pypi.python.org/packages/source/e/ecdsa/ecdsa-0.10.tar.gz Last-Update: 2013-12-10 --- /dev/null +++ python-ecdsa-0.10/ecdsa/_version.py @@ -0,0 +1,5 @@ + +# This file is originally generated from Git information by running 'setup.py +# version'. Distribution tarballs contain a pre-generated copy of this file. + +__version__ = '0.10'