Tweaked Fabric release task.
				
					
				
			This commit is contained in:
		
							parent
							
								
									3d9292ef4c
								
							
						
					
					
						commit
						20e178336a
					
				
					 1 changed files with 0 additions and 12 deletions
				
			
		
							
								
								
									
										12
									
								
								fabfile.py
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								fabfile.py
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -22,27 +22,15 @@
 | 
			
		|||
#
 | 
			
		||||
################################################################################
 | 
			
		||||
 | 
			
		||||
import os.path
 | 
			
		||||
import shutil
 | 
			
		||||
 | 
			
		||||
from fabric.api import *
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
execfile(os.path.join(os.path.dirname(__file__), 'rattail', 'hw', 'cognitive', '_version.py'))
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@task
 | 
			
		||||
def release():
 | 
			
		||||
    """
 | 
			
		||||
    Release a new version of 'rattail.hw.cognitive'.
 | 
			
		||||
    """
 | 
			
		||||
 | 
			
		||||
    shutil.rmtree('rattail.egg-info')
 | 
			
		||||
    local('python setup.py sdist --formats=gztar register upload')
 | 
			
		||||
 | 
			
		||||
    filename = 'rattail.hw.cognitive-{0}.tar.gz'.format(__version__)
 | 
			
		||||
 | 
			
		||||
    put(os.path.join('dist', filename), '/srv/pypi/{0}'.format(filename))
 | 
			
		||||
    with cd('/srv/pypi'):
 | 
			
		||||
        run('rm --recursive --force simple')
 | 
			
		||||
        run('compoze index')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue