码迷,mamicode.com
首页 > 编程语言 > 详细

Python upload code to PyPI

时间:2015-09-17 19:48:30      阅读:238      评论:0      收藏:0      [点我收藏+]

标签:

1. register account by brower on https://pypi.python.org/pypi/

2. register your moudle "nester" to PyPI via CMD

C:\Users\eric\Documents\Python\nester>c:\Users\eric\AppData\Local\Programs\Python\Python35-32\python.exe setup.py register
running register
running check
We need to know who you are, so please choose either:
 1. use your existing login,
 2. register as a new user,
 3. have the server generate a new password for you (and email it to you), or
 4. quit
Your selection [default 1]:

Username: account
Password:
Registering iamericnester to https://pypi.python.org/pypi
Server response (200): OK
I can store your PyPI login so future submissions will be faster.
(the login will be stored in C:\Users\eric\.pypirc)
Save your login (y/N)?y

3. Upload your moudle "nester" to PyPI via CMD

C:\Users\eric\Documents\Python\nester>c:\Users\eric\AppData\Local\Programs\Python\Python35-32\python.exe setup.py sdist upload
running sdist
running check
warning: sdist: manifest template ‘MANIFEST.in‘ does not exist (using default file list)

warning: sdist: standard file not found: should have one of README, README.txt

writing manifest file ‘MANIFEST‘
creating iamericnester-1.0.0
making hard links in iamericnester-1.0.0...
hard linking nester.py -> iamericnester-1.0.0
hard linking setup.py -> iamericnester-1.0.0
creating ‘dist\iamericnester-1.0.0.zip‘ and adding ‘iamericnester-1.0.0‘ to it
adding ‘iamericnester-1.0.0\nester.py‘
adding ‘iamericnester-1.0.0\PKG-INFO‘
adding ‘iamericnester-1.0.0\setup.py‘
removing ‘iamericnester-1.0.0‘ (and everything under it)
running upload
Submitting dist\iamericnester-1.0.0.zip to https://pypi.python.org/pypi
Server response (200): OK

 

Python upload code to PyPI

标签:

原文地址:http://www.cnblogs.com/oskb/p/4817320.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!