How the folders and files are structured:
all the text in README.txt
This is a verry simple calculator.
all the text in CHANGELOG.txt
Change Log
==========
0.0.1 (19/10/2020)
-------------------
- First Release
all the text in LICENCE.txt
(edited out my name with ------- ------)
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.
all the text in MANIFEST.in
global-include *.txt *.py
all the text in __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
all the test in setup.py
(edited out my email and name)
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=['']
)
the rest of the files were made with the command:
python3 setup.py sdist
and after i typed in:
twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
and typed in my username and password i got this error:
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.
please help ive never done this before and ive been folowing this youtube video
The content type
txt
is not a valid content type, you should usetext/plain
instead for plaintext:Furthermore, it looks like you're using an old version of
setuptools
from beforelong_description_content_type
existed, you should upgrade to the latest version: