72 lines
2.3 KiB
Python
72 lines
2.3 KiB
Python
"""
|
|
Setup configuration for dreader-hal package.
|
|
"""
|
|
|
|
from setuptools import setup, find_packages
|
|
import os
|
|
|
|
# Read README for long description
|
|
readme_path = os.path.join(os.path.dirname(__file__), 'README.md')
|
|
if os.path.exists(readme_path):
|
|
with open(readme_path, 'r', encoding='utf-8') as f:
|
|
long_description = f.read()
|
|
else:
|
|
long_description = "Hardware Abstraction Layer for DReader e-reader application"
|
|
|
|
setup(
|
|
name="dreader-hal",
|
|
version="0.1.0",
|
|
author="Duncan Tourolle",
|
|
author_email="dtourolle@tourolle.paris",
|
|
description="Hardware Abstraction Layer for DReader e-reader application",
|
|
long_description=long_description,
|
|
long_description_content_type="text/markdown",
|
|
url="https://gitea.tourolle.paris/dtourolle/dreader-hal",
|
|
project_urls={
|
|
"Bug Tracker": "https://gitea.tourolle.paris/dtourolle/dreader-hal/issues",
|
|
"Documentation": "https://gitea.tourolle.paris/dtourolle/dreader-hal/wiki",
|
|
"Source Code": "https://gitea.tourolle.paris/dtourolle/dreader-hal",
|
|
},
|
|
package_dir={"": "src"},
|
|
packages=find_packages(where="src"),
|
|
classifiers=[
|
|
"Development Status :: 3 - Alpha",
|
|
"Intended Audience :: Developers",
|
|
"Topic :: System :: Hardware",
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.8",
|
|
"Programming Language :: Python :: 3.9",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Operating System :: POSIX :: Linux",
|
|
],
|
|
python_requires=">=3.8",
|
|
install_requires=[
|
|
"Pillow>=9.0.0",
|
|
"smbus2>=0.4.0",
|
|
],
|
|
extras_require={
|
|
"dev": [
|
|
"pytest>=7.0.0",
|
|
"pytest-asyncio>=0.20.0",
|
|
"black>=22.0.0",
|
|
"flake8>=4.0.0",
|
|
"mypy>=0.950",
|
|
],
|
|
"rpi": [
|
|
"RPi.GPIO>=0.7.0",
|
|
"spidev>=3.5",
|
|
],
|
|
},
|
|
entry_points={
|
|
"console_scripts": [
|
|
# Add CLI tools if needed
|
|
],
|
|
},
|
|
keywords="e-reader ebook hardware hal display touch e-ink",
|
|
include_package_data=True,
|
|
zip_safe=False,
|
|
)
|