py-sphinx-prompt: new package (#41311)
* [add] py-sphinx-prompt: new package * py-poetry-plugin-tweak-dependencies-version: new package, dependence of py-shpinx-prompt * py-sphinx-prompt: fix dependences with respect to reviewing * py-poetry-plugin-tweak-dependencies-version: add dependence py-poetry * py-sphinx-prompt: add version 1.1.0 to unblock the concretization of py-sphinx-toolbox [PR#41313] * py-sphinx-prompt: fix style * py-sphinx-prompt: remove py-poetry dependence; fix python version * py-poetry-plugin-tweak-dependencies-version: add python version constraint --------- Co-authored-by: LydDeb <lyderic.debusschere@eolen.com>
This commit is contained in:
		 Lydéric Debusschère
					Lydéric Debusschère
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							f8d3a2cba5
						
					
				
				
					commit
					64758dae3b
				
			| @@ -0,0 +1,23 @@ | |||||||
|  | # Copyright 2013-2023 Lawrence Livermore National Security, LLC and other | ||||||
|  | # Spack Project Developers. See the top-level COPYRIGHT file for details. | ||||||
|  | # | ||||||
|  | # SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||||||
|  | 
 | ||||||
|  | from spack.package import * | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | class PyPoetryPluginTweakDependenciesVersion(PythonPackage): | ||||||
|  |     """Poetry plugin used to tweak dependency versions.""" | ||||||
|  | 
 | ||||||
|  |     homepage = "https://github.com/sbrunner/poetry-plugin-tweak-dependencies-version" | ||||||
|  |     pypi = "poetry_plugin_tweak_dependencies_version/" | ||||||
|  |     pypi += "poetry_plugin_tweak_dependencies_version-1.5.1.tar.gz" | ||||||
|  | 
 | ||||||
|  |     maintainers("LydDeb") | ||||||
|  | 
 | ||||||
|  |     version("1.5.1", sha256="4e0be2b8e23a04e542c5090deb5b6e191750ec45bace98ea8b55150844c6026b") | ||||||
|  | 
 | ||||||
|  |     depends_on("python@3.9:3.11", type=("build", "run")) | ||||||
|  |     depends_on("py-poetry-core@1.0.0:", type="build") | ||||||
|  |     depends_on("py-poetry-dynamic-versioning", type="build") | ||||||
|  |     depends_on("py-poetry@1.6", type=("build", "run")) | ||||||
							
								
								
									
										35
									
								
								var/spack/repos/builtin/packages/py-sphinx-prompt/package.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								var/spack/repos/builtin/packages/py-sphinx-prompt/package.py
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,35 @@ | |||||||
|  | # Copyright 2013-2023 Lawrence Livermore National Security, LLC and other | ||||||
|  | # Spack Project Developers. See the top-level COPYRIGHT file for details. | ||||||
|  | # | ||||||
|  | # SPDX-License-Identifier: (Apache-2.0 OR MIT) | ||||||
|  | 
 | ||||||
|  | from spack.package import * | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | class PySphinxPrompt(PythonPackage): | ||||||
|  |     """Sphinx directive to add unselectable prompt.""" | ||||||
|  | 
 | ||||||
|  |     homepage = "https://github.com/sbrunner/sphinx-prompt" | ||||||
|  |     pypi = "sphinx_prompt/sphinx_prompt-1.8.0.tar.gz" | ||||||
|  | 
 | ||||||
|  |     maintainers("LydDeb") | ||||||
|  | 
 | ||||||
|  |     version("1.8.0", sha256="47482f86fcec29662fdfd23e7c04ef03582714195d01f5d565403320084372ed") | ||||||
|  |     version("1.1.0", sha256="3d9cf382b750291f73d1f6f1713c4af0557c30208af124cd3d8731e607a4febf") | ||||||
|  | 
 | ||||||
|  |     depends_on("python@3.9:3", when="@1.8.0", type=("build", "run")) | ||||||
|  |     depends_on("py-poetry-core@1.0.0:", when="@1.8.0", type="build") | ||||||
|  |     depends_on("py-poetry-plugin-tweak-dependencies-version", when="@1.8.0", type="build") | ||||||
|  |     depends_on("py-poetry-dynamic-versioning", when="@1.8.0", type="build") | ||||||
|  |     depends_on("py-sphinx@7.2.5", when="@1.8.0", type=("build", "run")) | ||||||
|  |     depends_on("py-sphinx", when="@1.1.0", type=("build", "run")) | ||||||
|  |     depends_on("py-pygments@2.16.1", when="@1.8.0", type=("build", "run")) | ||||||
|  |     depends_on("py-pygments", when="@1.1.0", type=("build", "run")) | ||||||
|  |     depends_on("py-docutils@0.20.1", when="@1.8.0", type=("build", "run")) | ||||||
|  | 
 | ||||||
|  |     def url_for_version(self, version): | ||||||
|  |         if version >= Version("1.6"): | ||||||
|  |             url = "https://files.pythonhosted.org/packages/source/s/sphinx_prompt/sphinx_prompt-{0}.tar.gz" | ||||||
|  |         else: | ||||||
|  |             url = "https://files.pythonhosted.org/packages/source/s/sphinx_prompt/sphinx-prompt-{0}.tar.gz" | ||||||
|  |         return url.format(version) | ||||||
		Reference in New Issue
	
	Block a user