feat: Add pyproject.toml for pip install support
- Add pyproject.toml with proper package configuration - Rename hermes-web-cli directory to hermes_web_cli for Python compatibility - Follow module development specification for installable packages
This commit is contained in:
parent
b5b150f059
commit
1bb0633035
0
hermes_web_cli/__init__.py
Normal file
0
hermes_web_cli/__init__.py
Normal file
6
hermes_web_cli/init.py
Normal file
6
hermes_web_cli/init.py
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
from ahserver.serverenv import ServerEnv
|
||||||
|
from appPublic.worker import awaitify
|
||||||
|
|
||||||
|
def load_hermes_web_cli():
|
||||||
|
"""Load hermes web cli module"""
|
||||||
|
env = Server...[truncated]
|
||||||
38
pyproject.toml
Normal file
38
pyproject.toml
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
[build-system]
|
||||||
|
requires = ["setuptools>=61.0", "wheel"]
|
||||||
|
build-backend = "setuptools.build_meta"
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "hermes-web-cli"
|
||||||
|
version = "0.1.0"
|
||||||
|
description = "Hermes Web CLI module for multi-service management"
|
||||||
|
authors = [{name = "Your Name", email = "your.email@example.com"}]
|
||||||
|
license = {text = "MIT"}
|
||||||
|
requires-python = ">=3.8"
|
||||||
|
classifiers = [
|
||||||
|
"Development Status :: 4 - Beta",
|
||||||
|
"Intended Audience :: Developers",
|
||||||
|
"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",
|
||||||
|
]
|
||||||
|
dependencies = [
|
||||||
|
"ahserver>=1.0.0",
|
||||||
|
"appPublic>=1.0.0",
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
dev = ["pytest>=7.0", "black", "flake8"]
|
||||||
|
|
||||||
|
[tool.setuptools.packages.find]
|
||||||
|
where = ["."]
|
||||||
|
include = ["hermes_web_cli*"]
|
||||||
|
|
||||||
|
[tool.setuptools.package-data]
|
||||||
|
hermes_web_cli = ["**/*.ui", "**/*.json"]
|
||||||
|
|
||||||
|
[project.entry-points."hermes.modules"]
|
||||||
|
hermes_web_cli = "hermes_web_cli.init:load_hermes_web_cli"
|
||||||
Loading…
x
Reference in New Issue
Block a user