我有一个私人软件包,我已将其上传到私人devpi服务器。当我使用pip进行安装时,仅安装了egg文件夹。源文件丢失,因此我无法使用程序包中的任何代码或库。
我的setup.py
:
from setuptools import setup, find_packages
setup(
name='my-package',
version=1.0,
packages=find_packages(),
install_requires=[
'requests>=2.21.0',
]
)
我正在Pycharm中使用venv来完成所有这一切。为什么会这样呢?如何强制pip下载并安装源代码发行版?
[编辑]
当我从devpi服务器UI下载压缩包时,它不包含源代码。这意味着当我使用devpi upload
上传软件包时,并未上传sdist吗?我找不到有关如何强制devpi强制上传sdist的任何信息。
这是构建日志:
running sdist
running egg_info
writing ****.egg-info/PKG-INFO
writing dependency_links to ****.egg-info/dependency_links.txt
writing requirements to ****.egg-info/requires.txt
writing top-level names to ****.egg-info/top_level.txt
reading manifest file '****.egg-info/SOURCES.txt'
writing manifest file '****.egg-info/SOURCES.txt'
running check
warning: Check: missing required meta-data: url
warning: Check: missing meta-data: either (author and author_email) or (maintainer and maintainer_email) must be supplied
creating ...
creating ***.egg-info
creating ***-1.0/client
creating ***-1.0/client/model
copying files to ***-1.0...
copying README.md -> ****-1.0
copying setup.py -> ****-1.0
copying ****.egg-info/PKG-INFO -> ****-1.0/****.egg-info
copying ****.egg-info/SOURCES.txt -> ****-1.0/****.egg-info
copying ****.egg-info/dependency_links.txt -> ****-1.0/****.egg-info
copying ****.egg-info/requires.txt -> ****-1.0/****.egg-info
copying ****.egg-info/top_level.txt -> ****-1.0/****.egg-info
copying the actual source here
Writing ****-1.0/setup.cfg
Creating tar archive
removing '****-1.0' (and everything under it)