From 890a5b57c0c9d1aae44f839acbc37188a84ff6cb Mon Sep 17 00:00:00 2001 From: merlos Date: Mon, 4 Nov 2024 18:13:27 +0300 Subject: [PATCH] add version to setup.py --- primero-api/setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/primero-api/setup.py b/primero-api/setup.py index 401ef20..edff8e0 100644 --- a/primero-api/setup.py +++ b/primero-api/setup.py @@ -1,10 +1,11 @@ from setuptools import setup, find_packages -VERSION = '0.2.3' +def get_version(): + return (open('primero_api/VERSION').read().strip()) setup( name='primero-api', - version=VERSION, + version=get_version(), packages=find_packages(), install_requires=[ # List your dependencies here