Increase minimum supported Python version to 3.5
This commit is contained in:
		
					parent
					
						
							
								4167f9f60c
							
						
					
				
			
			
				commit
				
					
						eec7ab8e45
					
				
			
		
					 3 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -10,7 +10,7 @@ Source Host
 | 
			
		|||
This is the machine from which you will configure target hosts.
 | 
			
		||||
 | 
			
		||||
 * /bin/sh: A POSIX like shell (for instance bash, dash, zsh)
 | 
			
		||||
 * Python >= 3.2
 | 
			
		||||
 * Python >= 3.5
 | 
			
		||||
 * SSH client
 | 
			
		||||
 * sphinx (for building html docs and/or the man pages)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -95,7 +95,7 @@ cdist is the frontend executable to the cdist configuration management.
 | 
			
		|||
It supports different subcommands as explained below.
 | 
			
		||||
 | 
			
		||||
It is written in Python so it requires :strong:`python`\ (1) to be installed.
 | 
			
		||||
It requires a minimal Python version 3.2.
 | 
			
		||||
It requires a minimal Python version 3.5.
 | 
			
		||||
 | 
			
		||||
GENERAL
 | 
			
		||||
-------
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -60,7 +60,7 @@ def commandline():
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
if __name__ == "__main__":
 | 
			
		||||
    cdistpythonversion = '3.2'
 | 
			
		||||
    cdistpythonversion = '3.5'
 | 
			
		||||
    if sys.version < cdistpythonversion:
 | 
			
		||||
        print('Python >= {} is required on the source host.'.format(
 | 
			
		||||
                cdistpythonversion), file=sys.stderr)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue