52 lines
1.5 KiB
Python
52 lines
1.5 KiB
Python
from setuptools import setup, find_packages
|
|
import os
|
|
|
|
# Read the contents of README.md
|
|
with open("README.md", encoding="utf-8") as f:
|
|
long_description = f.read()
|
|
|
|
# Read version from __init__.py
|
|
with open(os.path.join("src", "pynamer", "__init__.py"), encoding="utf-8") as f:
|
|
for line in f:
|
|
if line.startswith("__version__"):
|
|
version = line.split("=")[1].strip().strip('"').strip("'")
|
|
break
|
|
|
|
setup(
|
|
name="pynamer",
|
|
version=version,
|
|
description="Generate descriptive filenames for images using LLMs",
|
|
long_description=long_description,
|
|
long_description_content_type="text/markdown",
|
|
author="Your Name",
|
|
author_email="your.email@example.com",
|
|
url="https://github.com/yourusername/pynamer",
|
|
package_dir={"": "src"},
|
|
packages=find_packages(where="src"),
|
|
include_package_data=True,
|
|
package_data={
|
|
"pynamer": ["config.yaml"],
|
|
},
|
|
install_requires=[
|
|
"litellm>=1.10.0",
|
|
"pyyaml>=6.0",
|
|
"Pillow>=9.0.0",
|
|
],
|
|
python_requires=">=3.7",
|
|
entry_points={
|
|
"console_scripts": [
|
|
"pynamer=pynamer.cli:main",
|
|
],
|
|
},
|
|
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",
|
|
"Programming Language :: Python :: 3.10",
|
|
],
|
|
)
|