中的所有文字README.txt
This is a verry simple calculator.
中的所有文字CHANGELOG.txt
Change Log
==========
0.0.1 (19/10/2020)
-------------------
- First Release
里面的所有文字LICENCE.txt
(用------- ------编辑了我的名字)
Copyright 2020 ------- -----
Permission 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.
中的所有文字MANIFEST.in
global-include *.txt *.py
中的所有文字__init__.py
def add_num(num1, num2):
return num1 + num2
def subtract_num(num1, num2):
return num1 - num2
def multiply_num(num1, num2):
return num1 * num2
def divide_num(num1, num2):
return num1 / num2
def exponent_num(num1, num2):
return num1 ** num2
所有的测试setup.py
(编辑了我的电子邮件和姓名)
from setuptools import setup, find_packages
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Education',
'Operating System :: Microsoft :: Windows :: Windows 10',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3'
]
setup(
name='martinsimplecalculator',
version='0.0.1',
description='a basic calculator',
long_description_content_type='txt',
long_description=open('README.txt').read() + '\n\n' + open('CHANGELOG.txt').read(),
url='',
author='----',
author_email='----',
license='MIT',
classifiers=classifiers,
keywords='calculator',
packages=find_packages(),
install_requires=['']
)
其余文件是使用以下命令制作的:
python3 setup.py sdist
在我输入后:
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
并输入我的用户名和密码,我得到了这个错误:
HTTPError: 400 Bad Request from https://upload.pypi.org/legacy/
The description failed to render in the default format of reStructuredText. See https://pypi.org/help/#description-content-type for more information.
请帮助我以前从未这样做过,我一直在关注这个youtube 视频