Skip to content

Commit 4fc9be9

Browse files
authored
Merge pull request kivy#789 from brussee/zope_interface
update recipe zope_interface to 4.1.3 and remove tests
2 parents 507aaf0 + f20c7a3 commit 4fc9be9

2 files changed

Lines changed: 20 additions & 5 deletions

File tree

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
21
from pythonforandroid.toolchain import PythonRecipe, shprint, current_directory
32
from os.path import join
43
import sh
54

65

76
class ZopeInterfaceRecipe(PythonRecipe):
87
name = 'zope_interface'
9-
version = '4.1.2'
8+
version = '4.1.3'
109
url = 'https://pypi.python.org/packages/source/z/zope.interface/zope.interface-{version}.tar.gz'
1110
site_packages_name = 'zope.interface'
1211

1312
depends = ['python2']
13+
patches = ['no_tests.patch']
14+
15+
def prebuild_arch(self, arch):
16+
super(ZopeInterfaceRecipe, self).prebuild_arch(arch)
17+
with current_directory(self.get_build_dir(arch.arch)):
18+
sh.rm('-rf', 'src/zope/interface/tests', 'src/zope/interface/common/tests')
1419

15-
def build_arch(self, arch):
16-
super(ZopeInterfaceRecipe, self).build_arch(arch)
17-
print('Should remove zope tests etc. here, but skipping for now')
1820

1921
recipe = ZopeInterfaceRecipe()
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--- zope_interface/setup.py 2015-10-05 09:35:14.000000000 +0200
2+
+++ b/setup.py 2016-06-15 17:44:35.108263993 +0200
3+
@@ -139,9 +139,8 @@
4+
"Topic :: Software Development :: Libraries :: Python Modules",
5+
],
6+
7+
- packages = ['zope', 'zope.interface', 'zope.interface.tests'],
8+
+ packages = ['zope', 'zope.interface'],
9+
package_dir = {'': 'src'},
10+
cmdclass = {'build_ext': optional_build_ext,
11+
},
12+
- test_suite = 'zope.interface.tests',
13+
**extra)

0 commit comments

Comments
 (0)