Repository: westerveltco/wagtail-heroicons (language: python)

Issue:
Refactor build process
First step, need to move the build script out of the package -- it is unneeded for distribution. Second, should remove the `nodejs` dep and instead just install straight from the GH releases. 

Use https://github.com/adamchainz/heroicons for inspiration since it is trying to accomplish something in the same ballpark.


Discussion / hints:

Fix patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e23149c..ee7bc0c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 ### Changed
 
 - Now using `nox` for testing.
+- Build script has been moved from inside the package to the root of the repository.
 
 ### Removed
 
diff --git a/src/wagtail_heroicons/_build.py b/build.py
similarity index 89%
rename from src/wagtail_heroicons/_build.py
rename to build.py
index c339ac1..d91f871 100644
--- a/src/wagtail_heroicons/_build.py
+++ b/build.py
@@ -12,8 +12,10 @@
 
 HEROICONS_LATEST_VERSION = "1.0.6"
 
-NODE_SRC_DIR = Path(__file__).parent.parent.parent / "node_modules" / "heroicons"
-DEST_DIR = Path(__file__).parent / "templates" / "heroicons"
+NODE_SRC_DIR = Path(__file__).parent / "node_modules" / "heroicons"
+DEST_DIR = (
+    Path(__file__).parent / "src" / "wagtail_heroicons" / "templates" / "heroicons"
+)
 
 
 def build(argv: Sequence[str] | None = None) -> int:


Test patch:
diff --git a/tests/conftest.py b/tests/conftest.py
index fda89cb..ab4966a 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -4,8 +4,8 @@
 
 import pytest
 
-from wagtail_heroicons._build import HEROICONS_LATEST_VERSION
-from wagtail_heroicons._build import install_heroicons
+from build import HEROICONS_LATEST_VERSION
+from build import install_heroicons
 
 from .parser import SVGParser
 
diff --git a/tests/test_build.py b/tests/test_build.py
index 1a7cf8f..16235f1 100644
--- a/tests/test_build.py
+++ b/tests/test_build.py
@@ -1,9 +1,9 @@
 from __future__ import annotations
 
-from wagtail_heroicons._build import HEROICONS_LATEST_VERSION
-from wagtail_heroicons._build import build
-from wagtail_heroicons._build import install_heroicons
-from wagtail_heroicons._build import parse_args
+from build import HEROICONS_LATEST_VERSION
+from build import build
+from build import install_heroicons
+from build import parse_args
 
 
 def test_no_args():