Skip to main content

我的工具

Project description

简介

我的工具

一.上传步骤:

##1.生成 dist 目录用于上传 python setup.py sdist bdist_wheel

##2.上传包到私有 pypi 源 cat ~/.pypirc

[distutils]
index-servers = pypi local

[pypi]
repository: https://www.python.org/pypi
username = __token__
password = 'xxxxxxxxxxx'

[local]
repository: http://localhost:3141
username: yehaiquan password: 12345678

##3.上传到 local 仓库 twine upload dist/* -r local

##4.测试是否上传 访问 http://localhost:3141/simple/

##5.安装 pip search -i http://localhost:3141 wivw_demo #查找包 pip install -i http://localhost:3141/simple wivw_demo #安装包 pip install -U -i http://localhost:3141/simple wivw_demo #安装最新包

##6.测试是否安装 import wivw_demo from wivw_demo import mytool wivw-demo.show() mytool.mytest()

##7.卸载包 pip uninstall wivw-demo

#二.上传到 pypi 仓库 ##1.登陆个人pypi后台(如没有账号需要先注册) https://pypi.org/manage/projects/

##2.创建token. 登陆https://pypi.org/manage/account/,找到api token,添加一个新的token

##3.配置token cat ~/.pypirc

[pypi]
username: __token__
password: pypi-AgEIcHlwaS5vcmcCYxxzI0WuBg-zgyXxBO1r4ZW6hX450jdsw

用户名和密码也可以用自己的个人登陆账号,但不推荐,推荐用token方式验证.

##4.上传包到pypi twine check dist/* twine upload dist/*

##5.安装 pip install wivw-demo

##6.测试是否安装

import wivw_demo 
from wivw_demo import mytool 
wivw_demo.show()
mytool.mytest()

##7.卸载包 pip uninstall wivw-demo

###完毕!

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

wivw_demo-0.0.4.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

wivw_demo-0.0.4-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file wivw_demo-0.0.4.tar.gz.

File metadata

  • Download URL: wivw_demo-0.0.4.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.2

File hashes

Hashes for wivw_demo-0.0.4.tar.gz
Algorithm Hash digest
SHA256 119d7119686bc266703557ea6ed1586d4f1131781b24c76b1d9e7493123d0c2d
MD5 5957ce1a8fd8db51fc00a38683248733
BLAKE2b-256 a08e5b49128438445be3e27d5c18be239533c28a72a95739dbd4174a949ce4d7

See more details on using hashes here.

File details

Details for the file wivw_demo-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: wivw_demo-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.2

File hashes

Hashes for wivw_demo-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 01e3c3c51de456bb1e40e47fafdb5cd7c62a3c8dae07171fa276f2424dca6f8d
MD5 8048d6d14d4bb79d4c0a9b3145ab991d
BLAKE2b-256 a469e2ed959fdedc6ad474bc516a02a3794958c2c33c2366c2e6f38f2e5d274b

See more details on using hashes here.

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