Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

Commit

Permalink
Try using Paver as build tool
Browse files Browse the repository at this point in the history
  • Loading branch information
yanne committed Mar 9, 2011
1 parent 70a4f3b commit 43bef05
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
3 changes: 3 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include setup.py
include pavement.py
include paver-minilib.zip
36 changes: 36 additions & 0 deletions pavement.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import os
import subprocess

from paver.easy import *
from paver.setuputils import setup

setup(
name='robotframework-htmlchecker',
package_dir = {'': 'src'},
packages=['HTMLChecker', 'HTMLChecker.lib'],
version='0.1',
url='https://github.com/robotframework/HTMLChecker',
author='Robot Framework developers',
author_email='robotframework@gmail.com'
)

@task
@needs('generate_setup', 'minilib', 'setuptools.command.sdist')
def sdist():
"""Overrides sdist to make sure that our setup.py is generated."""
pass

@task
@needs('generate_setup', 'minilib', 'setuptools.command.bdist_wininst')
def bdist_wininst():
"""Overrides sdist to make sure that our setup.py is generated."""
pass

@task
def atest():
testdir = os.path.join(os.path.dirname(__file__), 'test')
cmd = ['pybot', '-d', os.path.join(testdir, 'results'), testdir]
env = os.environ
env.update({'PYTHONPATH': 'src'})
subprocess.call(cmd, shell=(os.sep=='\\'), env=env)

0 comments on commit 43bef05

Please sign in to comment.