Эх сурвалжийг харах

fix: configure package discovery and include library directory

- Add setuptools package discovery config to only include cli package
- Exclude tests and scripts from package build
- Create MANIFEST.in to explicitly include library directory
- Fix deprecated license format (use SPDX string)
- Remove deprecated license classifier

This fixes the build error: 'Multiple top-level packages discovered'
and ensures the library templates are included in the distribution.
xcad 4 сар өмнө
parent
commit
8921b8cb13
2 өөрчлөгдсөн 16 нэмэгдсэн , 2 устгасан
  1. 11 0
      MANIFEST.in
  2. 5 2
      pyproject.toml

+ 11 - 0
MANIFEST.in

@@ -0,0 +1,11 @@
+# Include library directory with all templates
+recursive-include library *
+
+# Include documentation
+include README.md
+include LICENSE
+
+# Exclude unnecessary files
+global-exclude *.pyc
+global-exclude __pycache__
+global-exclude .DS_Store

+ 5 - 2
pyproject.toml

@@ -8,12 +8,11 @@ version = "0.0.0"  # NOTE: Placeholder - will be overwritten by release script
 description = "CLI tool for managing infrastructure boilerplates"
 readme = "README.md"
 requires-python = ">=3.9"
-license = {text = "MIT"}
+license = "MIT"
 authors = [ {name = "Christian Lempa"} ]
 keywords = ["boilerplates", "cli", "infrastructure"]
 classifiers = [
     "Programming Language :: Python :: 3",
-    "License :: OSI Approved :: MIT License",
     "Operating System :: OS Independent",
 ]
 
@@ -27,3 +26,7 @@ dependencies = [
 
 [project.scripts]
 boilerplates = "cli.__main__:run"
+
+[tool.setuptools.packages.find]
+include = ["cli*"]
+exclude = ["tests*", "scripts*"]