Commits

Jason R. Coombs  committed b7a47f3 Draft

Use pytest runner as a setuptools plugin rather than keeping a subrepo

  • Participants
  • Parent commits de2a8b9
  • Branches default

Comments (0)

Files changed (4)

File .hgsub

-pytest-runner = https://bitbucket.org/jaraco/pytest-runner

File .hgsubstate

-ef9db85a3f866eb2f98a74480cbf78024d15db0e pytest-runner
 
 virtualenv --no-site-packages env
 sudo aptitude install -y libevent-dev python2.7-dev
-env/bin/python setup.py test --junitxml="test results.xml"
+env/bin/python setup.py ptr --junitxml="test results.xml"
 sudo aptitude remove -y libevent-dev python2.7-dev
 
 import setuptools
 
-execfile('pytest-runner/command.py')
-
 assert sys.version_info >= (2, 6), "eggmonster requires Python 2.6 or later"
 py27 = sys.version_info >= (2, 7)
 py26_reqs = ['argparse', 'importlib'] if not py27 else []
         },
     setup_requires = [
         'hgtools',
+        'pytest-runner',
         ],
     use_2to3 = True,
     tests_require = [
+        'pytest',
         'dingus',
         'eventful',
         'event',
     ],
 )
-PyTest.install(setup_params)
 
 if __name__ == '__main__':
     setuptools.setup(**setup_params)