From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 309371395E7 for ; Tue, 4 Aug 2015 14:30:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2AB92E07F1; Tue, 4 Aug 2015 14:30:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D070CE07F1 for ; Tue, 4 Aug 2015 14:30:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0758834072E for ; Tue, 4 Aug 2015 14:30:05 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 85DC9C3 for ; Tue, 4 Aug 2015 14:30:00 +0000 (UTC) From: "Magnus Granberg" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Magnus Granberg" Message-ID: <1438698554.a3b98d25abca54b394db944e3f3258100ab89e09.zorry@gentoo> Subject: [gentoo-commits] proj/tinderbox-cluster:master commit in: / X-VCS-Repository: proj/tinderbox-cluster X-VCS-Files: setup.py X-VCS-Directories: / X-VCS-Committer: zorry X-VCS-Committer-Name: Magnus Granberg X-VCS-Revision: a3b98d25abca54b394db944e3f3258100ab89e09 X-VCS-Branch: master Date: Tue, 4 Aug 2015 14:30:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: bd532cbc-0a20-4b80-8715-66bc86888585 X-Archives-Hash: 1e45ed02bae215c0f9540d13719f56fc commit: a3b98d25abca54b394db944e3f3258100ab89e09 Author: Magnus Granberg gentoo org> AuthorDate: Tue Aug 4 14:29:14 2015 +0000 Commit: Magnus Granberg gentoo org> CommitDate: Tue Aug 4 14:29:14 2015 +0000 URL: https://gitweb.gentoo.org/proj/tinderbox-cluster.git/commit/?id=a3b98d25 update setup.py to support repoman setup.py | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/setup.py b/setup.py index e68da85..85f5fbb 100644 --- a/setup.py +++ b/setup.py @@ -8,21 +8,19 @@ except ImportError: use_setuptools() from setuptools import setup -version = os.path.split(os.path.abspath(__file__))[-2].split('-')[-1] - -packages = ['tbc'] - -package_dir = {'tbc': 'tbc/pym'} - +def find_packages(): + for dirpath, dirnames, filenames in os.walk('tbc/pym'): + if '__init__.py' in filenames: + yield os.path.relpath(dirpath, 'tbc/pym') setup( - name="tbc", - version=version, - author='Zorry', - author_email='tinderbox-cluster@gentoo.org', - url='https://anongit.gentoo.org/git/proj/tinderbox-cluster.git', - description='Tinderbox cluster', - platforms=["any"], - license="GPL2", - packages=packages, - package_dir=package_dir, -) \ No newline at end of file + version = os.path.split(os.path.abspath(__file__))[-2].split('-')[-1], + packages = list(find_packages()), + package_dir = {'': 'tbc/pym'}, + name="tbc", + author='Zorry', + author_email='tinderbox-cluster@gentoo.org', + url='https://anongit.gentoo.org/git/proj/tinderbox-cluster.git', + description='Tinderbox cluster', + platforms=["any"], + license="GPL2", +)