########################################################################### # # Copyright (c) 2020-2024 Diality Inc. - All Rights Reserved. # # THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN # WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. # # @file setup.py # # @author (last) Dara Navaei # @date (last) 24-Oct-2023 # @author (original) Peter Lucia # @date (original) 02-Apr-2020 # ############################################################################ import setuptools import subprocess VERSION = "1.0.0" def check_if_git_repo(): """ Checks if we're in a git repo or not to know if we can get the git branch and commit @return: True if in a git repo, False otherwise """ return subprocess.call(["git", "branch"], stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL) == 0 branch = None commit = None DEV_VERSION = VERSION if __name__ == '__main__': if check_if_git_repo(): setuptools.setup( name="leahi_dialin", author="Jonny Paguio", author_email="jpaguio@diality.com", description="The Diality Dialin API", packages=setuptools.find_packages(exclude=["test*", "tools", "venv"]), classifiers=[ # all classifiers: https://pypi.org/classifiers/ "Programming Language :: Python :: 3.6", "Operating System :: POSIX :: Linux", ], python_requires="~=3.6", version=DEV_VERSION, install_requires=[ "aenum", "cycler", "importlib-metadata", "kiwisolver", "matplotlib", "numpy", "openpyxl", "pandas", "pyparsing", "python-can", "python-dateutil", "six", "wrapt", ] )