这是我的测试包。
py37nashiki的Python项目详细描述
play_py37_package
试着用Pythn3.7制作package的步骤。 通过age制作的程序。
init
python3 -m venv venv
. venv/bin/activate
(venv) $ pip install -U pip
play local
(venv) $ pip install -e .
(venv) $ pip list
(venv) $ python
>>> import py37nashiki
>>> py37nashiki.main()
This is pynashiki
创建分发(源代码格式)
(venv) $ python setup.py sdist
(venv) $ ls dist
py37nashiki-1.0.0.tar.gz
发布物制作(wheel)
(venv) $ pip install wheel==0.33.6
(venv) $ python setup.py bdist_wheel
(venv) $ ls dist
py37nashiki-1.0.0-py3-none-any.whl py37nashiki-1.0.0.tar.gz
分发(test)
(venv) $ pip install twine==2.0.0
(venv) $ twine upload -r testpypi dist/*
(venv) $ pip install -i https://test.pypi.org/simple/ py37nashiki
发放(正式)
(venv) $ deactive
python3 -m venv newenv
. newenv/bin/activate
(newenv) $ pip install -U pip
(newenv) $ pip install wheel==0.33.6
(newenv) $ python setup.py sdist
(newenv) $ python setup.py bdist_wheel
(newenv) $ ls dist
(newenv) $ pip install twine==2.0.0
(newenv) $ twine upload -r pypi dist/*
(newenv) $ pip install py37nashiki
后收拾
$ deactivate
$ rm -rf venv
$ rm -rf newenv
License
MIT
- 项目
标签: