From 195eb0ba6d3bae9593bf24760f8625e065ddfc47 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Mon, 13 May 2024 15:17:05 +0200 Subject: [PATCH] Fixing issue with `python -m build --wheel` generating "_Warning: Package 'archinstall.default_profiles' is absent from the `packages` configuration" (#2499) * Fixing issue of: _Warning: Package 'archinstall.default_profiles' is absent from the 'packages' configuration. x50+ * Corrected the package name from 'where' to 'archinstall' * Undoing change to 'package-data' --- .gitignore | 3 ++- pyproject.toml | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 18173914..a6075cc4 100644 --- a/.gitignore +++ b/.gitignore @@ -21,10 +21,11 @@ SAFETY_LOCK **/**.network **/**.target **/**.qcow2 +**/**.log +**/**.fd /test*.py **/archiso /guided.py -/install.log venv .venv .idea/** diff --git a/pyproject.toml b/pyproject.toml index f3bc7086..0e7e8e1f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,10 +43,10 @@ version = {attr = "archinstall.__version__"} readme = {file = ["README.rst", "USAGE.rst"]} [tool.setuptools] -packages = ["archinstall"] +include-package-data = true [tool.setuptools.package-data] -# We could specify locales/lancuages.json etc instead, but catchall works too. +# We could specify locales/languages.json etc instead, but catchall works too. "archinstall" = [ "**/*.py", "**/*.mo", @@ -55,8 +55,8 @@ packages = ["archinstall"] "**/*.json", ] -# [tool.setuptools.packages.find] -# where = ["archinstall"] +[tool.setuptools.package-dir] +archinstall = "archinstall" [tool.mypy] python_version = "3.11"