Allow skipping tests when building new release
This commit is contained in:
		
							parent
							
								
									10f879dfc8
								
							
						
					
					
						commit
						8b38a14f31
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		
							
								
								
									
										3
									
								
								tasks.py
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								tasks.py
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -37,10 +37,11 @@ exec(open(os.path.join(here, 'rattail', '_version.py')).read())
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
@task
 | 
			
		||||
def release(ctx):
 | 
			
		||||
def release(ctx, skip_tests=False):
 | 
			
		||||
    """
 | 
			
		||||
    Release a new version of `rattail`.
 | 
			
		||||
    """
 | 
			
		||||
    if not skip_tests:
 | 
			
		||||
        ctx.run('tox')
 | 
			
		||||
    shutil.rmtree('rattail.egg-info')
 | 
			
		||||
    ctx.run('python setup.py sdist --formats=gztar')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue