Skip to main content

A small log package

Project description

Example Package

This is a simple log package. You can use Github-flavored Markdown to write your content.

官方文档 :https://packaging.python.org/tutorials/packaging-projects/#uploading-your-project-to-pypi

twine : 无法将“twine”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。

配置环境变量 C:\Users\tinyw\AppData\Roaming\Python\Python37\Scripts

https://pypi.org/manage/account/

HTTPError: 403 Client Error: Invalid or non-existent authentication information. for url: https://test.pypi.org/legacy/
UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 197: illegal multibyte sequence
  • 解决办法1:FILE_OBJECT= open('order.log','r', encoding='UTF-8')
  • 解决办法2:FILE_OBJECT= open('order.log','rb')

使用twine上传分发包。 你需要安装Twine:

python3 -m pip install --user --upgrade twine

如果是Windows 清配置环境变量,重新打开

重新打包

python3 setup.py sdist bdist_wheel

上传并完成发布 使用 twine

twine upload  dist/*

包发布完成后,其他人只需要使用pip就可以安装你的包文件。比如

pip install package-name

包发布完成后,其他人只需要使用pip就可以安装你的包文件。比如

pip install package-name --update

可能遇到的错误

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

t_log-0.3.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

t_log-0.3-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page