optional = false python-versions = "*" files = [ {file = "ai_edge_litert-1.0.1-cp310-cp310-macosx_10_15_x86_64.whl", hash = "sha256:48f525fed0af268f4e904b0c9c8ab174e48422f9c2506b679c468a15e6bf64fc"}, {file = "ai_edge_litert-1.0.1-cp310-cp310-macosx_12_0_arm64....
dev = ["Cython (>=0.29.24,<0.30.0)", "Sphinx (>=4.1.2,<4.2.0)", "flake8 (>=5.0.4,<5.1.0)", "pytest (>=6.0)", "sphinx-rtd-theme (>=0.5.2,<0.6.0)", "sphinxcontrib-asyncio (>=0.3.0,<0.4.0)", "uvloop (>=0.15.3)"] ...
poetry允许你区分两者,将依赖安装至dev-dependencies区块。 $ poetry add pytest -D # 或者使用官方更推荐的方式 $ poetry add pytest-G dev Using version^7.4.0forpytest Updating dependencies Resolving dependencies... Downloading http://mirrors.aliyun.com/pypi/packages/33/b2/741130cbcf2bbfa852ed95a60dc3...
$ poetry add numpy pandas $ poetry add --group dev pytest pre-commit # pyproject.toml [tool.poetry.dependencies] python = '^3.8' pandas = '^2.0' numpy = '^1.24.3' [tool.poetry.group.dev.dependencies] pytest = '^7.3.2' pre-commit = '^3.3.2' 要只安装生产依赖性: $ poetry install...
Poetry 允许你区分这两者,将上述的模块安装至 dev-dependencies 区块,方便让你轻松建立一份「不包含」 dev-dependencies 开发模块的安装清单。 在此以 Black 为例,安装方式如下: poetry add black --group dev 结果的区别显示在 pyproject.toml 里: [tool.poetry.dependencies] ...
--no-dev : 不按照开发依赖 --lock : 只更新锁定不安装 add: 添加依赖并安装 限制范围: poetry add pendulum@^2.0.5 poetry add "pendulum>=2.0.5" 它具有如下选项: --group (-D): 分组 --editable (-e): 添加到编辑模式 --extras (-E): 添加额外的依赖 ...
$ poetry add --group dev black flake8 isort mypy pylint $ poetry add --group test pytest faker Running these commands will cause Poetry to install the listed packages into the project’s virtual environment and also add two additional subtables in your pyproject.toml file, which look as fol...
with this error. RuntimeError The Poetry configuration is invalid: - Additional properties are not allowed ('group' was unexpected) and indeed, I have this inpyproject.toml: [tool.poetry.group.dev.dependencies] Since poetry 1.2, “group” is the recommended way to add dev-dependencies (link)...
如何将依赖转移到poetry中的--dev? 可以通过以下步骤将依赖转移到poetry中的--dev: 在项目根目录下运行命令:poetry add --dev <dependency>,将依赖库添加到开发依赖中。 在poetry.lock文件中可以查看和管理项目的所有依赖。 开发依赖和运行依赖有什么区别? 开发依赖是在开发过程中需要使用的依赖库,例如测试框架、代...
$ poetry add numpy pandas $ poetry add --group dev pytest pre-commit # pyproject.toml [tool.poetry.dependencies] python = "^3.8" pandas = "^2.0" numpy = "^1.24.3" [tool.poetry.group.dev.dependencies] pytest = "^7.3.2" pre-commit = "^3.3.2" 要仅安装生产依赖项: $ poetry install...