Source

irc / pavement.py

Jason R. Coombs 2760ae8 


Jason R. Coombs b73fecb 

Jason R. Coombs eb22076 
Jason R. Coombs d35c151 
Jason R. Coombs bd0ccc9 
Jason R. Coombs d35c151 
Jason R. Coombs eb22076 
Jason R. Coombs b73fecb 
Jason R. Coombs 2760ae8 














Jason R. Coombs b73fecb 
Jason R. Coombs eb22076 
Jason R. Coombs 8f05da2 
Jason R. Coombs 6711ec0 
Jason R. Coombs fbcd524 
Jason R. Coombs 6711ec0 




import os
import platform

import paver.easy
import paver.setuputils

from setup import setup_params

paver.setuputils.setup(**setup_params)

@paver.easy.task
def upload_project_web():
    """
    Generate the project web page at sourceforge using the reStructuredText
    README.
    """
    import docutils.core
    docutils.core.publish_file(source_path='README',
        destination_path='readme.html', writer_name='html')
    cmd = 'pscp' if platform.system() == 'Windows' else 'scp'
    paver.easy.sh('{cmd} readme.html web.sourceforge.net:'
        '/home/project-web/python-irclib/htdocs/index.html'
        .format(cmd=cmd))
    os.remove('readme.html')

@paver.easy.task
@paver.easy.needs('generate_setup', 'minilib', 'distutils.command.sdist')
def sdist():
    "Override sdist to make sure the setup.py gets generated"

def upload_sf():
    # this is the technique used to upload the dist to sourceforge
    raise NotImplementedError('code is not functional - just here for '
        'reference')
    scp = 'pscp' if platform.system() == 'Windows' else 'scp'
    sf_dest = 'frs.sourceforge.net:/home/frs/project/python-irclib'
    cmd = '{scp} dist/{name} {sf_dest}'