Make testing dependencies static, since they are
authorKarl O. Pinc <kop@karlpinc.com>
Fri, 4 Oct 2024 20:30:27 +0000 (15:30 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Fri, 4 Oct 2024 20:30:27 +0000 (15:30 -0500)
pyproject.toml
setup.py

index 018e4d4a34ff23633d268744450251f70d7f94b0..5123e30b9f110bfa62fc843d9bf0ac4c49166b87 100644 (file)
@@ -14,8 +14,7 @@ name = "pgwui_develop"
 # when backward incompatibility is introduced.  Minor releases introduce
 # new features.  Fix releases introduce fixes.
 dynamic = [
-    "version", "readme",
-    "optional-dependencies" # dynamic because version numbers are injected
+    "version", "readme"
 ]
 description = 'Support for the regression tests of the PGWUI suite.'
 requires-python = ">=3.7"
@@ -75,6 +74,14 @@ classifiers = [
     'Programming Language :: Python :: 3.11'
 ]
 
+# Other dependencies
+[project.optional-dependencies]
+test = [
+   'pytest>=3.7.4',
+   'pytest-cov',
+   'deepdiff'
+]
+
 # [project.scripts]
 # script-name = 'module.path:function'
 
index 9668751ce8d7c7209544631dbc75c35c2777137b..ff57776104ea24f66be2810340921cf63c500305 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -57,23 +57,9 @@ def filter_readme():
     return "".join(lines)
 
 
-#
-# optional-dependencies
-#
-
-extras_require = {
-    "test": [
-        'pytest>=3.7.4',
-        'pytest-cov',
-        'deepdiff',
-    ]
-}
-
-
 if __name__ == '__main__':
     setuptools.setup(
         version=version,
         long_description=filter_readme(),
-        long_description_content_type='text/x-rst',
-        extras_require=extras_require
+        long_description_content_type='text/x-rst'
     )