pdf2dataset
pdf2dataset copied to clipboard
Segmentar dependências obrigatórias e opcionais
Acredito que seja interessante segmentar as dependências do projeto entre install_requires
e extras_require
para comportar melhor o uso das funcionalidades disponibilizadas. Por exemplo, para casos de uso que utilizem apenas a opção small=True
o pacote ray
não é necessário. Assim este poderia fazer parte de um grupo específico de dependências opcionais.
extras_require A dictionary mapping names of “extras” (optional features of your project) to strings or lists of strings specifying what other distributions must be installed to support those features. See the section on Declaring Dependencies for details and examples of the format of this argument.
install_requires A string or list of strings specifying what other distributions need to be installed when this one is. See the section on Declaring Dependencies for details and examples of the format of this argument.
documentação do setuptools.