python - Is there any other way to upload package to PyPI?
问题描述
I tried so many times and nothing seems to work even after I created a GitHub repo I can't upload my first package to PyPI every time I try to use twine it gives this
C:\Users\Admin\PycharmProjects\Python Packages\opencvFPS>twine upload dist/* Upl oading distributions to https://upload.pypi.org/legacy/ Enter your username: Prathamesh_Bhatkar Enter your password:
Uploading opencvFPS-0.1.tar.gz
100%|████████████████████████████████████| 5.26k/5.26k [00:02<00:00, 2.51kB/s]
NOTE: Try --verbose to see response content.
And this error
HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/ Invalid value for classifiers. Error: Classifier 'Programming Language :: Python :: 3.8.6' is not a valid classifier.
How can I solve this?
And I am new to PyPI so I Don't know much about it.
Thanks!!
解决方案
Try to remove the minor python version in the classifier like the example mentionned in the documentation here.
So change it like this :
setup(...,
classifiers=[
# Other classifier
'Programming Language :: Python :: 3.6',
# Other classifier
],
)
推荐阅读
- jquery - 如何修复 Laravel 中的打印页面错误
- python - 如何从二维 Numpy 数组中创建动态饼图?
- java - 如何修复 android.os.NetworkOnMainThread
- ios - 尝试在 iPad 或更小的屏幕上显示时出现自动布局问题
- r - 带有特殊字符的 writeLines 行为
- r - 使用ggplot2根据FIPS代码填写县
- c - 需要帮助解决警告:取消引用类型双关指针会破坏严格的别名规则
- coldfusion - 使用 cfindex 和 cfsearch 在日期范围内建立索引然后搜索
- unity3d - 在没有 SteamVR 的情况下访问 OpenVR 伴侣(游戏区域边界框)
- python - 如何在 Django 中对选定对象进行操作