[Reproducible-builds] [dh-python] 10/183: test201: use distutils instead of setuptools

Jérémy Bobbio lunar at moszumanska.debian.org
Fri Sep 19 15:30:13 UTC 2014


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch pu/reproducible_builds
in repository dh-python.

commit 604d525ba73a6f4b90cf41c9bd3bc924ee1cae1c
Author: Piotr Ożarowski <piotr at debian.org>
Date:   Sat Jun 29 14:09:31 2013 +0200

    test201: use distutils instead of setuptools
---
 tests/t201/Makefile |  2 +-
 tests/t201/setup.py | 10 +++-------
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/tests/t201/Makefile b/tests/t201/Makefile
index 8910504..749b028 100644
--- a/tests/t201/Makefile
+++ b/tests/t201/Makefile
@@ -4,7 +4,7 @@ include ../common.mk
 DPY=$(DEBPYTHON_DEFAULT)
 
 check:
-	grep -q "Depends: .*python-mako" debian/python-foo/DEBIAN/control
+	grep -q "Recommends: .*python-mako" debian/python-foo/DEBIAN/control
 	#grep -q 'python-foo (>= 2:0.1~rc2)' debian/python-foo/DEBIAN/control
 	test -f debian/python-foo/usr/lib/python2.6/dist-packages/foo/__init__.py
 	test ! -f debian/python-foo/usr/lib/python2.6/dist-packages/foo/spam.py
diff --git a/tests/t201/setup.py b/tests/t201/setup.py
index ee9f359..0a67b63 100644
--- a/tests/t201/setup.py
+++ b/tests/t201/setup.py
@@ -1,12 +1,9 @@
 #! /usr/bin/python
 # -*- coding: UTF-8 -*-
-try:
-    from setuptools import setup, find_packages
-except ImportError:
-    exit()
+from distutils.core import setup
 
 setup(name='Foo',
-      version=0.1,
+      version='0.1',
       description="Foo to rule them all",
       long_description="TODO",
       keywords='foo bar baz',
@@ -15,8 +12,7 @@ setup(name='Foo',
       url='http://www.debian.org/',
       license='MIT',
       package_dir={'': 'lib'},
-      packages=find_packages('lib/'),
+      packages=['foo'],
       package_data = {'foo': ['jquery.js']},
       zip_safe=False,
-      install_requires = ['Mako', 'SQLAlchemy >=0.5', 'Baz [extras]'],
 )

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dh-python.git



More information about the Reproducible-builds mailing list