From 30d0499c19916614d4f70516ee50fba2d9efc131 Mon Sep 17 00:00:00 2001
From: Dantali0n <info@dantalion.nl>
Date: Mon, 10 Jul 2023 16:19:09 +0200
Subject: [PATCH] CWG-68: Ensure dependencies are installed as part of package

---
 {{cookiecutter.project_slug}}/pyproject.toml   | 2 +-
 {{cookiecutter.project_slug}}/requirements.txt | 3 ++-
 {{cookiecutter.project_slug}}/setup.cfg        | 4 +---
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/{{cookiecutter.project_slug}}/pyproject.toml b/{{cookiecutter.project_slug}}/pyproject.toml
index 183007c..feb27aa 100644
--- a/{{cookiecutter.project_slug}}/pyproject.toml
+++ b/{{cookiecutter.project_slug}}/pyproject.toml
@@ -1,6 +1,6 @@
 [build-system]
 requires = [
-    "setuptools>=45",
+    "setuptools>=62.6",
     "setuptools_scm[toml]>=6.2",
     "wheel"
 ]
diff --git a/{{cookiecutter.project_slug}}/requirements.txt b/{{cookiecutter.project_slug}}/requirements.txt
index 56aacd7..8f81bc2 100644
--- a/{{cookiecutter.project_slug}}/requirements.txt
+++ b/{{cookiecutter.project_slug}}/requirements.txt
@@ -1 +1,2 @@
-numpy >= 1.20.0 # BSD
+importlib-metadata>=0.12, <5.0;python_version<"3.8"
+numpy
diff --git a/{{cookiecutter.project_slug}}/setup.cfg b/{{cookiecutter.project_slug}}/setup.cfg
index 1741808..02afb4f 100644
--- a/{{cookiecutter.project_slug}}/setup.cfg
+++ b/{{cookiecutter.project_slug}}/setup.cfg
@@ -29,9 +29,7 @@ classifiers =
 include_package_data = true
 packages = find:
 python_requires = >=3.7
-install_requires =
-    importlib-metadata>=0.12, <5.0;python_version<"3.8"
-    numpy
+install_requires = file: requirements.txt
 
 [flake8]
 max-line-length = 88
-- 
GitLab