From 4c3eb14804c919e2239a2c8c471e02d17b34e014 Mon Sep 17 00:00:00 2001
From: Tor-Einar Skog <tor-einar.skog@nibio.no>
Date: Wed, 1 Feb 2023 14:31:16 +0100
Subject: [PATCH] Using pyproject.toml, discarding setup.cfg

---
 pyproject.toml | 27 ++++++++++++++++++++++++---
 setup.cfg      | 28 ----------------------------
 2 files changed, 24 insertions(+), 31 deletions(-)
 delete mode 100644 setup.cfg

diff --git a/pyproject.toml b/pyproject.toml
index 6fe23d7..99162f8 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,5 +1,26 @@
 [build-system]
-requires = [
-    "setuptools>=61.0"
-]
+requires = ["setuptools>=61.0", "wheel"]
 build-backend = "setuptools.build_meta"
+
+[project]
+name = "reference_model"
+version = "0.6.1"
+description = "Example VIPS model, showcasing functionality"
+readme = "README.md"
+authors = [{ name="Tor-Einar Skog", email="tor-einar.skog@nibio.no" }]
+license = { file = "LICENSE"}
+classifiers = [
+    "Programming Language :: Python :: 3",
+    "License :: NIBIO Open Source License",
+    "Operating System :: OS Independent",
+]
+dependencies = [
+    "shapely",
+    "pydantic",
+    "pytz",
+    "pandas",
+    "vipscore_common @ git+https://gitlab.nibio.no/VIPS/vipscore-python-common.git@v0.6.3"
+]
+
+requires-python = ">=3.9"
+
diff --git a/setup.cfg b/setup.cfg
deleted file mode 100644
index 66a5552..0000000
--- a/setup.cfg
+++ /dev/null
@@ -1,28 +0,0 @@
-[metadata]
-name = reference_model
-version = 0.6.1
-author = Tor-Einar Skog
-author_email = tor-einar.skog@nibio.no
-description = Example VIPS model, showcasing functionality
-long_description = file: README.md
-long_description_content_type = text/markdown
-url = https://www.vips-landbruk.no
-classifiers =
-    Programming Language :: Python :: 3
-    License :: NIBIO Open Source License
-    Operating System :: OS Independent
-
-[options]
-package_dir =
-    = src
-packages = find:
-python_requires = >=3.7
-install_requires = 
-    shapely
-    pydantic
-    pytz
-    pandas
-    vipscore_common @ git+https://gitlab.nibio.no/VIPS/vipscore-python-common.git@v0.6.3
-
-[options.packages.find]
-where = src
\ No newline at end of file
-- 
GitLab