
Yes yes I know we should use poetry and other packaging mechanisms, but for simple small projects at home or for a simple application the setup.py is a good place to begin
Here’s a sample setup.py that I have used in many of my personal projects
Standard Setup.py
import pathlib
from setuptools import find_packages, setup
# The directory containing this file
HERE = pathlib.Path(__file__).parent
# The text of the README file
README = (HERE / "README.md").read_text()
setup(
name="winsay",
version="1.1",
packages=find_packages(),
license="Private",
description="say in windows",
long_description=README,
long_description_content_type="text/markdown",
author="sukhbinder",
author_email="sukh2010@yahoo.com",
url = 'https://github.com/sukhbinder/winsay',
keywords = ["say", "windows", "mac", "computer", "speak",],
entry_points={
'console_scripts': ['say = winsay.winsay:main', ],
},
install_requires=["pywin32"],
classifiers=[
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
],
)
This is useful and is always a good starting point for my project files.
Pingback: A Short Primer On “extra_requires“ in setup.py | SukhbinderSingh.com