fresh-account-42296
12/08/2021, 2:06 PMdefault_extra_requirements
and default_version
. My question would be: is there a way that these packages are automatically detected by pants' dependency resolution? Or is it inevitable to define these requirements again in the "requirements.txt" file? Hopefully, my question makes sense and I put it at the right place 😇hundreds-father-404
12/08/2021, 6:39 PMfresh-account-42296
12/08/2021, 7:17 PMfrom pants.backend.python.subsystems.python_tool_base import PythonToolBase
from pants.backend.python.target_types import EntryPoint
class Sphinx(PythonToolBase):
help = """The Sphinx documentation generator."""
options_scope = "sphinx"
default_version = "sphinx>=3.4.3,<4"
default_extra_requirements = [
"rst2pdf>=0.98,<0.99",
"svglib>=1.1.0",
"docutils<0.18",
]
default_main = EntryPoint(module="sphinx.cmd.build", function="main")
register_interpreter_constraints = True
default_interpreter_constraints = ["CPython>=3.7"]
fresh-account-42296
12/08/2021, 7:18 PM./pants dependencies --type=3rdparty ::
so we were wondering if it is necessary to additionally include them in the requirements.txt file?fresh-account-42296
12/08/2021, 7:18 PMhappy-kitchen-89482
12/08/2021, 8:02 PMfresh-account-42296
12/09/2021, 6:57 AM