-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
56 lines (51 loc) · 1.99 KB
/
Copy pathsetup.py
File metadata and controls
56 lines (51 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
"""Setup configuration for Meshtastic MQTT CLI."""
from setuptools import setup, find_packages
from pathlib import Path
import sys
# Add src to path to import version
sys.path.insert(0, str(Path(__file__).parent / "src"))
from meshtastic_mqtt_cli.__version__ import __version__
# Read the contents of requirements.txt
requirements_path = Path(__file__).parent / "requirements.txt"
with open(requirements_path) as f:
requirements = [line.strip() for line in f if line.strip() and not line.startswith("#")]
# Read the contents of README.md for long description
readme_path = Path(__file__).parent / "README.md"
long_description = ""
if readme_path.exists():
with open(readme_path, encoding="utf-8") as f:
long_description = f.read()
setup(
name="meshtastic-mqtt-cli",
version=__version__,
description="A command-line tool for sending messages to Meshtastic devices via MQTT",
long_description=long_description,
long_description_content_type="text/markdown",
author="Meshtastic MQTT CLI Contributors",
author_email="",
url="https://github.com/yourusername/meshtastic-mqtt-cli",
license="GPL-3.0",
packages=find_packages(where="src"),
package_dir={"": "src"},
python_requires=">=3.7",
install_requires=requirements,
entry_points={
"console_scripts": [
"meshtastic-send=meshtastic_mqtt_cli.cli:main",
],
},
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"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 :: Communications :: Ham Radio",
"Topic :: System :: Networking",
],
)