File: add_tests_to_setup_py.patch

package info (click to toggle)
python-pgpdump 1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 244 kB
  • ctags: 145
  • sloc: python: 1,305; makefile: 21
file content (28 lines) | stat: -rw-r--r-- 882 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Description: add tests to setup.py
 This python module includes a test script, but it is not included in the
 setup.py.  This patch does just that.

Author: Hans-Christoph Steiner <hans@eds.org>
Bug: https://github.com/toofishes/python-pgpdump/issues/11
Forwarded: https://github.com/toofishes/python-pgpdump/issues/11
Last-Update: <2012-10-18>

--- python-pgpdump-1.3.orig/setup.py
+++ python-pgpdump-1.3/setup.py
@@ -1,4 +1,7 @@
-from distutils.core import setup
+try:
+    from setuptools import setup
+except ImportError:
+    from distutils.core import setup
 
 from pgpdump import __version__, __author__
 
@@ -21,5 +24,6 @@ setup(
     url = 'https://github.com/toofishes/python-pgpdump',
     keywords = 'pgp gpg rfc2440 rfc4880 crypto cryptography',
     classifiers = classifiers,
-    packages = ['pgpdump']
+    packages = ['pgpdump'],
+    test_suite='pgpdump.test'
 )