windows上传模块到pypi

1.创建文件夹nester_liz

2.将模块放到文件夹nester_liz中

3.在nester_liz中创建setup.py文件内容如下

from distutils.core import setup #引入setup模块
 
setup(
        name        ='nester_liz',
        version        ='1.0.0',
        py_modules    =['nester_liz001'],
        author        ='liz',
        author_email='nester_liz@163.com',
        description    ='A simple printer of nested lists',
        )

4.在该文件夹目录下按顺序执行下列命令

1. python setup.py sdist      #创建dist文件
2. python setup.py install    #安装到本地模块site-packages文件夹内
3. twine upload dist/*        #上传dist文件夹中的所有压缩包到pypi

 

posted @ 2018-08-21 15:05  nester_liz  阅读(278)  评论(0)    收藏  举报