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}'
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.