我正在构建一个包。包的结构是这样的,
my_package
-- network
-- storage
-- utility
-- __init__.py
-- __main__.py
-- apps.py
-- setup.py
因此,当我使用 python setup.py bdist_wheel
命令构建包并检查轮文件时,我看不到其中的 apps.py
和 __main__.py
文件。我的 setup.py
文件看起来像这样,
from setuptools import setup, find_packages
VERSION = '0.0.1'
DESCRIPTION = 'App Description'
LONG_DESCRIPTION = 'Very Long App Description'
# Setting up
setup(
name="my_package",
version=VERSION,
author="Myself",
author_email="me@mycompany.com",
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
packages=find_packages(),
install_requires=['websockets==9.0.2','requests==2.25.1','rich==10.2.2'], # add any additional packages that
keywords=['python', 'automation', 'selenium'],
classifiers= [
"Development Status :: 1 - Alpha",
"Intended Audience :: Automation Testers",
"Programming Language :: Python :: 3",
"Operating System :: Microsoft :: Windows",
"Operating System :: Linux :: ArchLinux",
]
)
当我在不创建包的情况下使用 python -m
命令对其进行测试时,我的包运行良好。任何 helo 将不胜感激。