From 4a6f3b24bae6d466587f6b2cafe92848878e27b4 Mon Sep 17 00:00:00 2001 From: zlg Date: Tue, 29 Jul 2025 20:41:57 -0700 Subject: setup.py: Add VGStash-Web to 'web' data directory Users can copy these files and use them to publish their VGStash collection. --- setup.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index e2a84b6..23edf11 100755 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ # Learn more: https://github.com/kennethreitz/setup.py -from setuptools import setup, find_packages +from setuptools import setup, find_namespace_packages with open('README.md') as f: @@ -18,8 +18,12 @@ setup( license='License-Expression: AGPL-3.0-only', author_email='zlg+vgstash@zlg.space', url='https://git.zlg.space/vgstash', - packages=find_packages(where='src'), - package_dir={'': 'src'}, + packages=find_namespace_packages(where='src'), + package_dir={"": "src"}, + package_data={ + "vgstash.web": ["web/vgstash-web.html", "web/vgstash.css", "web/vgstash.js", "web/vgstash-favicon.png"] + }, + include_package_data=True, py_modules=['vgstash_cli'], entry_points={ 'console_scripts': [ -- cgit v1.2.3-54-g00ecf