Commits

Olemis Lang committed 511dd8c

Adding `fcrypt` to `tests_require`. Needed for Windows.

  • Participants
  • Parent commits da4c9fd

Comments (0)

Files changed (1)

File t5437/t5437-protocol_api-r7194.diff

 diff --git a/trunk/setup.py b/trunk/setup.py
 --- a/trunk/setup.py
 +++ b/trunk/setup.py
-@@ -10,19 +10,21 @@
+@@ -6,23 +6,34 @@
+ (c) 2009      ::: www.CodeResort.com - BV Network AS (simon-code@bvnetwork.no)
+ """
  
++import sys
++
+ from setuptools import setup, find_packages
+ 
++try :
++  import crypt
++except ImportError :
++  test_deps = ['twill', 'fcrypt']
++else :
++  test_deps = ['twill']
++
  setup(
      name='TracXMLRPC',
 -    version='1.0.6',
 +    description='RPC interface to Trac',
      zip_safe=True,
      test_suite = 'tracrpc.tests.suite',
-+    tests_require = ['twill'],
++    tests_require = test_deps,
      packages=find_packages(exclude=['*.tests']),
      package_data={
 -        'tracrpc': ['templates/*.html']