From 2340462677296606a2b1a07667675d9239473d25 Mon Sep 17 00:00:00 2001 From: Matthew Ghantous Date: Mon, 4 Dec 2023 12:17:56 -0500 Subject: [PATCH] Use scm version in setup.py (#2) * Use scm version in setup.py * Add path to root of git repo --- python/sqlcommenter-python/setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/sqlcommenter-python/setup.py b/python/sqlcommenter-python/setup.py index 392acea4..ec4885cc 100644 --- a/python/sqlcommenter-python/setup.py +++ b/python/sqlcommenter-python/setup.py @@ -26,7 +26,6 @@ def read_file(filename): setup( name='google-cloud-sqlcommenter', - version='2.0.0', author='Google Developers', author_email='sqlcommenter@googlegroups.com', description=('Augment SQL statements with meta information about frameworks and the running environment.'), @@ -59,4 +58,6 @@ def read_file(filename): 'Framework :: Django :: 2.1', 'Framework :: Django :: 2.2', ], + use_scm_version={"root": "../.."}, + setup_requires=["setuptools_scm"] )