pypi

    0热度

    1回答

    我正在关注this教程。它在sampleproject的帮助下解释了该主题。 init .py看起来像这样。 def main(): """Entry point for the application script""" print("Call your main application code here") 什么是“打电话给你的主应用程序代码在这里?”我应该写我的“从

    2热度

    2回答

    我写了一个由单一功能组成的模块。我想能够使用它像tqdm如何工作: >>> from tqdm import tqdm >>> tqdm <function tqdm.tqdm> 但我不知道如何设置这种方式。下面是我有: >>> from missingno import missingno >>> missingno <module 'missingno.missingno' fro

    2热度

    1回答

    当我尝试上载我包的新版本,我已经得到了以下错误: $ python setup.py sdist upload ... ... ... Submitting dist/django-super-favicon-0.6.0.tar.gz to https://pypi.python.org/pypi Upload failed (400): Invalid URI: u'UNKNOWN'

    0热度

    1回答

    我想在已发布的软件包中导入一个模块,并且正在寻找正确的方法。 有关可选模块的几个现有问题已经提交并指向此处。 What's Python good practice for importing and offering optional features? 但他们都依靠try except ImportError:块工作。 有关更好的方法(python版本特定)来检查模块存在的更近期讨论如下:Ho

    1热度

    1回答

    我遇到了用于打包此模块的README.rst文件的问题。我查了很多帖子,但没有发现任何帮助。 目前,我使用的是非常简单的自述测试 pytelemetry =========== pytelemetry enables remote monitoring and control of embedded devices. Specifically, pytelemetry implements

    0热度

    1回答

    我有一个使用tox的Python项目。有些单元测试需要sudo,所以.travis.yml有 script: - sudo tox 但是,这留下了egg-info文件和其他人拥有的根。所以,当特拉维斯运行部署阶段(用户),它提供了以下的输出: Deploying application running sdist running egg_info writing requirement

    7热度

    1回答

    我希望在将我的包上传到PyPI时,我的README.rst文件中链接的图像将显示出来。在我的自述,我有: .. image:: example-python.png :height: 100px :width: 200px :scale: 100 % :align: center 和MANIFEST.in我: # Include the image fi

    2热度

    1回答

    我正在尝试使用CloudPypi设置私人Pypi云。我真的不希望将密码存储在.pypirc中。每次上传软件包时,我都会提示输入密码。 在Python document about .pypirc,它说: password, that will be used to authenticate. If omitted the user will be prompt to type it when ne

    2热度

    1回答

    我使用Windows机器蟒蛇2.7.I我试图十六进制转换到彩色name.I下载网页颜色1.5一封来自PyPI,当我从CMD使用 python d:\webcolors-1.5\setup.py install 我正在为 setup.pyrunning install running build running build_py file webcolors.py (for module

    1热度

    1回答

    现在看来似乎应该是相当容易建立我的Python项目(在GitHub上)的自动发布到PyPI中:https://docs.travis-ci.com/user/deployment/pypi/ 所以,我增加了以下我.travis.yml: deploy: provider: pypi user: DanHickstein on: tags: true