Edit

IABSD.fr/ports/databases/py-puppetdb/patches

Branch :

  • Show log

    Commit

  • Author : jasper
    Date : 2014-01-28 19:52:52
    Hash : d11a4fe6
    Message : update to pypuppetdb-0.1.1

  • patch-setup_py
  • $OpenBSD: patch-setup_py,v 1.3 2014/01/28 19:52:52 jasper Exp $
    
    Remove modules that are not ported (setuptools.command.test and Tox)
    
    --- setup.py.orig	Tue Jan 21 15:20:50 2014
    +++ setup.py	Tue Jan 28 20:34:05 2014
    @@ -3,7 +3,6 @@ import os
     import codecs
     
     from setuptools import setup, find_packages
    -from setuptools.command.test import test as TestCommand
     
     
     if sys.argv[-1] == 'publish':
    @@ -11,19 +10,6 @@ if sys.argv[-1] == 'publish':
         sys.exit()
     
     
    -class Tox(TestCommand):
    -
    -    def finalize_options(self):
    -        TestCommand.finalize_options(self)
    -        self.test_args = []
    -        self.test_suite = True
    -
    -    def run_tests(self):
    -        #import here, cause outside the eggs aren't loaded
    -        import tox
    -        errno = tox.cmdline(self.test_args)
    -        sys.exit(errno)
    -
     with codecs.open('README.rst', encoding='utf-8') as f:
         README = f.read()
     
    @@ -41,8 +27,6 @@ setup(
         description='Library for working with the PuppetDB REST API.',
         long_description='\n'.join((README, CHANGELOG)),
         keywords='puppet puppetdb',
    -    tests_require=['tox'],
    -    cmdclass={'test': Tox},
         install_requires=[
             "requests >= 1.2.3",
             ],