From 3cfab802c5a2b1f5f645712200e81f5fc1068e0e Mon Sep 17 00:00:00 2001 From: Ze'ev Schurmann Date: Fri, 28 Feb 2025 00:04:02 +0200 Subject: [PATCH] Added requirements.txt and setup.py --- requirements.txt | 3 +++ setup.py | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 requirements.txt create mode 100644 setup.py diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..b405534 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +numpy +Pillow +tk diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..04ee35e --- /dev/null +++ b/setup.py @@ -0,0 +1,32 @@ +from setuptools import setup, find_packages + +setup( + name="ink-coverage-calculator", + version="0.1", + author="Ze'ev Schurmann", + description="A tool to calculate ink coverage in images.", + long_description=open("README.md").read(), + long_description_content_type="text/markdown", + url="https://git.zaks.web.za/thisiszeev/ink-calc", # Replace with your repo URL + license="GPL-3.0-or-later", + packages=find_packages(where="src"), + package_dir={"": "src"}, + py_modules=["ink_calc"], # Ensure the main script is discoverable + install_requires=[ + "numpy", + "Pillow", + "tk" + ], + python_requires=">=3.11", + entry_points={ + "console_scripts": [ + "ink-calc=ink_calc:main", # Ensure `ink-calc.py` has a `main()` function + ], + }, + classifiers=[ + "Programming Language :: Python :: 3", + "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", + "Operating System :: OS Independent", + "Topic :: Multimedia :: Graphics", + ], +)