Dependencies are dynamic because they contain version numbers
authorKarl O. Pinc <kop@karlpinc.com>
Sun, 4 Aug 2024 17:10:39 +0000 (12:10 -0500)
committerKarl O. Pinc <kop@karlpinc.com>
Sun, 4 Aug 2024 17:41:56 +0000 (12:41 -0500)
src/pgwui_develop/TEMPLATE/pyproject.toml.mak
src/pgwui_develop/TEMPLATE/setup.py.mak

index b8fc47a1f4260c71d4d07a122189f9b071274db2..55f7151f37250cff6576a374f53e235a0bb02efb 100644 (file)
@@ -15,18 +15,12 @@ name = "${component.lower()}"
 # 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 = '''${summary}'''
 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 = '${author_name}', email = '${author_email}'}]
index aa6bcd2e4c631a78c367372a04c9f2e101066336..e7127b045be6cd91fba74977f80e69b7572a2679 100644 (file)
@@ -58,9 +58,19 @@ def filter_readme():
 
 
 #
-# optional-dependencies
+# dependencies (run-time)
 #
+install_requires = [
+    'markupsafe',
+    'pgwui_core==' + version,
+    'pgwui_upload_core==' + 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
     )