add option in requirements.txt to differentiate environments to stage otcdocstheme releases
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				gl/check check status: failure (b60b9a217f8032b222f6c3329a6b446539154da1)
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	gl/check check status: failure (b60b9a217f8032b222f6c3329a6b446539154da1)
				
			This commit is contained in:
		@ -1,5 +1,11 @@
 | 
			
		||||
sphinx>=2.0.0,!=2.1.0 # BSD
 | 
			
		||||
{% if target_environment == 'public' %}
 | 
			
		||||
otcdocstheme<1.0.0 # Apache-2.0
 | 
			
		||||
{% elif target_environment == 'internal' %}
 | 
			
		||||
otcdocstheme # Apache-2.0
 | 
			
		||||
{% else %}
 | 
			
		||||
otcdocstheme # Apache-2.0
 | 
			
		||||
{% endif %}
 | 
			
		||||
# releasenotes
 | 
			
		||||
reno>=3.1.0 # Apache-2.0
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -237,6 +237,8 @@ def process_repositories(args, service):
 | 
			
		||||
                doc["type"] = "dev-guide"
 | 
			
		||||
            context["docs"].append(doc)
 | 
			
		||||
        
 | 
			
		||||
        context["target_environment"] = args.target_environment
 | 
			
		||||
 | 
			
		||||
        tox_ini_content = tox_ini_template.render(**context)
 | 
			
		||||
        tox_ini_path = pathlib.Path(copy_to, "tox.ini")
 | 
			
		||||
        doc_requirements_content = doc_requirements_template.render(**context)
 | 
			
		||||
@ -313,6 +315,7 @@ def main():
 | 
			
		||||
    parser.add_argument(
 | 
			
		||||
        "--target-environment",
 | 
			
		||||
        required=True,
 | 
			
		||||
        choices=["internal", "public"],
 | 
			
		||||
        help="Environment to be used as a source",
 | 
			
		||||
    )
 | 
			
		||||
    parser.add_argument("--service-type", help="Service to update")
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user