Added requirements.txt and setup.py

This commit is contained in:
ZAKS Web 2025-02-28 00:04:02 +02:00
parent dc49768def
commit 3cfab802c5
2 changed files with 35 additions and 0 deletions

3
requirements.txt Normal file
View File

@ -0,0 +1,3 @@
numpy
Pillow
tk

32
setup.py Normal file
View File

@ -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",
],
)