WireViz/setup.py
KV 50b190113b Add package_data to to setup() call in setup.py (#347)
Specify all HTML files under templates folder
to be included as package data files.
2025-03-01 19:41:27 +01:00

51 lines
1.4 KiB
Python

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from pathlib import Path
from setuptools import find_packages, setup
from src.wireviz import APP_URL, CMD_NAME, __version__
README_PATH = Path(__file__).parent / "docs" / "README.md"
setup(
name=CMD_NAME,
version=__version__,
author="Daniel Rojas",
# author_email='',
description="Easily document cables and wiring harnesses",
long_description=README_PATH.read_text(),
long_description_content_type="text/markdown",
install_requires=[
"click",
"graphviz",
"pillow",
"pyyaml",
"tabulate",
],
license="GPLv3",
keywords="cable connector hardware harness wiring wiring-diagram wiring-harness",
url=APP_URL,
package_dir={"": "src"},
package_data={CMD_NAME: ["templates/*.html"]},
packages=find_packages("src"),
entry_points={
"console_scripts": [
"wireviz=wireviz.wv_cli:wireviz",
],
},
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Utilities",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
],
)