26
loading...
This website collects cookies to deliver better user experience
# main.py
def wordrep(word:str):
print(word)
#____init.py____
from pyword.main import wordrep
import setuptools
# Reads the content of your README.md into a variable to be used in the setup below
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name='pyword', # should match the package folder
packages=['pyword'], # should match the package folder
version='0.1', # important for updates
license='MIT', # should match your chosen license
description='Baically repeats what you say.',
long_description=long_description, # loads your README.md
long_description_content_type="text/markdown", # README.md is of type 'markdown'
author='your name',
author_email='your email address',
url='your github repo name',
project_urls = { # Optional
"Headless Chrome": "your github repos issues page"
},
install_requires=['requests','qrcode','wikipedia','beautifulsoup4'], #these are filler packages, you need to fill them with the packages your python package will require to function
keywords=["screenshot", "pyautogui", "scrot", "raspberry pi"], #descriptive meta-data
classifiers=[ # https://pypi.org/classifiers
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
]
)
[metadata]
description-file = README.md
[distutils]
index-servers =
pypi
[pypi]
repository: https://upload.pypi.org/legacy/
username: your_username_from_pypi
password: your_password_from_pypi
pip install twine
python3 setup.py sdist
python3 -m twine upload dist/*