Dependencies are dynamic because they contain version numbers
authorKarl O. Pinc <kop@karlpinc.com>
Sun, 4 Aug 2024 17:40:16 +0000 (12:40 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Sun, 4 Aug 2024 17:40:16 +0000 (12:40 -0500)
pyproject.toml
setup.py

index 99a0e8e1a082b2026e50a393d6e6da1c13c0bd2c..2ce7400a60a24567ebcccc68821a1d7252c4a944 100644 (file)
@@ -15,18 +15,12 @@ name = "pgwui_sql"
 # new features.  Fix releases introduce fixes.
 dynamic = [
     "version", "readme",
+    "dependencies",         # dynamic because version numbers are injected
     "optional-dependencies" # dynamic because version numbers are injected
 ]
 description = '''PostgreSQL Web User Interface, Interactive SQL execution'''
 requires-python = ">=3.7"
 
-# Run-time dependencies.
-dependencies = [
-    'markupsafe',
-    'pgwui_common',
-    'pyramid',
-]
-
 # The license should be clear from the classifier, below
 # license = {file = "LICENSE.txt"}
 authors = [{name = 'Karl O. Pinc', email = 'kop@karlpinc.com'}]
index 38bb3a282c3018fc95c608acc31343e7fc3a5096..a1dc19dc68b09bebf2fa6696518251ce07a50bd5 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -58,9 +58,19 @@ def filter_readme():
 
 
 #
-# optional-dependencies
+# dependencies (run-time)
 #
+install_requires = [
+    'markupsafe',
+    'pgwui_common==' + version,
+    'psycopg',
+    'pyramid',
+]
+
 
+#
+# optional-dependencies
+#
 extras_require = {
     "test": [
         "pgwui_develop==" + version,
@@ -76,5 +86,6 @@ if __name__ == '__main__':
         version=version,
         long_description=filter_readme(),
         long_description_content_type='text/x-rst',
+        install_requires=install_requires,
         extras_require=extras_require
     )