包装[TOML Project]时,SetUptools不会安装依赖项

发布于 2025-01-30 12:01:17 字数 1366 浏览 2 评论 0原文

伙计们,我正在尝试打包我的python项目,但是当我在终端中运行python3 -m build命令时,构建正常运行,但是没有安装依赖项,

我有.toml如下所配置的文件

requires = ["setuptools", "setuptools-scm", "Appium-Python-Client==2.1.2"]
build-backend = "setuptools.build_meta"

我还具有setup.cfg所配置的如下所示的文件,


[metadata]
name = python-frontend-framework
version = 0.0.1
author = name
author_email = [email protected]
description = This package cotains all thre structure to run automated tests in the python frontend framework
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/pypa/sampleproject
project_urls =
    Bug Tracker = https://github.com/pypa/sampleproject/issues
classifiers =
    Programming Language :: Python :: 3
    License :: Open
    Operating System :: OS Independent

[options]
package_dir =
    = projects
include_package_data = True
packages = find_namespace:
python_requires = >=3.8
install_requires =
    Appium-Python-Client
    pytest
    selenium=
    pytest-bdd
    webdriver-manager

[options.packages.find]
where = projects

我只是尝试运行命令python3 -m build,但是,当我检查依赖项时,它没有安装。 执行成功没有任何问题。 有人知道我该如何解决?

先感谢您!

Guys, I'm trying to package my python project, but when I run the python3 -m build command in the terminal, the build run properly, but the dependencies are not being installed

I have the .toml file configured as below

requires = ["setuptools", "setuptools-scm", "Appium-Python-Client==2.1.2"]
build-backend = "setuptools.build_meta"

I have also a setup.cfg file configured as below


[metadata]
name = python-frontend-framework
version = 0.0.1
author = name
author_email = [email protected]
description = This package cotains all thre structure to run automated tests in the python frontend framework
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/pypa/sampleproject
project_urls =
    Bug Tracker = https://github.com/pypa/sampleproject/issues
classifiers =
    Programming Language :: Python :: 3
    License :: Open
    Operating System :: OS Independent

[options]
package_dir =
    = projects
include_package_data = True
packages = find_namespace:
python_requires = >=3.8
install_requires =
    Appium-Python-Client
    pytest
    selenium=
    pytest-bdd
    webdriver-manager

[options.packages.find]
where = projects

I'm just trying to run the command python3 -m build, but when I check the dependencies, it was not installed.
The execution succeeded without any problem.
Someone knows how can I fix it?

Thank you in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文