word上下页边距不见了,网站如何做seo优化教程,网上做任务网站,美橙建站怎么样目录
第一步#xff1a;了解目录结构
第三部分#xff1a;实操 第一步#xff1a;了解目录结构 目录结构如下#xff0c;需要自己构建12345文件。
文件1#xff1a;.pypirc
[distutils]
index-servers pypipypitest[pypi] #这里的[]内容需要和上面保持一致了解目录结构
第三部分实操 第一步了解目录结构 目录结构如下需要自己构建12345文件。
文件1.pypirc
[distutils]
index-servers pypipypitest[pypi] #这里的[]内容需要和上面保持一致并且后续的命令也需要注意写对
repository: https://upload.pypi.org/legacy/ #正式地址
username __token__
password pypi-xxxxxx[pypitest] #这里的[]内容需要和上面保持一致并且后续的命令也需要注意写对
repository: https://test.pypi.org/legacy/ #测试地址
username __token__
password pypi-xxxxxxps因为我上传测试地址时老报错索性就不用了直接用的正式地址上传。 文件2LICENSE
MIT LicenseCopyright (c) 2022 pdudoPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the Software), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.文件3.py 自己写python代码 可以写一个简单的return比如 文件4README.md这个是markdown格式可以从网上下一个
# learning
文件5setup.py
from setuptools import setup, find_packagessetup(nameAAAAAAAAAAAAA, #自己填version0.0.4, #自己填description随便写点, #自己填licenseLicense,install_requires[],packages[ AAAAAAAAAAAAA], # 要打包的项目文件夹include_package_dataTrue, # 自动打包文件夹内所有数据author XXXXX, #自己填author_emailXXXXXXqq.com, #自己填urlhttps://github.com/XXXX, #自己填
) 第二部分命令行构建发布
#第一次上传用这个
python3 -m build
python3 -m twine upload --repository pypi dist/* --verbose #如果有修改版本内容 比如删除掉了某个版本用如下命令
python3 -m twine upload --repository pypi --verbose --skip-existing dist/*
第三部分实操
1、build
2、twine
如果有文件存在报错使用命令如下 3、找到自己项目上传地址Search results · PyPI
Search results · PyPI 4、如何使用自己的库
import Mytestdemo #脚本名称a Mytestdemo.add(2, 4) #脚本名称.函数 参考https://www.cnblogs.com/NoneID/p/17513444.html