Skip to content

Commit

Permalink
automations
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Aug 3, 2023
1 parent 87e5b76 commit 1188075
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import os

from setuptools import setup

BASEDIR = os.path.abspath(os.path.dirname(__file__))


def get_version():
""" Find the version of the package"""
version = None
version_file = os.path.join(BASEDIR, 'hivemind_core', 'version.py')
version_file = os.path.join(BASEDIR, 'hivemind_voice_satellite', 'version.py')
major, minor, build, alpha = (None, None, None, None)
with open(version_file) as f:
for line in f:
Expand All @@ -27,6 +29,7 @@ def get_version():
version += f"a{alpha}"
return version


def required(requirements_file):
""" Read requirements file and remove comments and empty lines. """
with open(os.path.join(BASEDIR, requirements_file), 'r') as f:
Expand All @@ -38,7 +41,6 @@ def required(requirements_file):
if pkg.strip() and not pkg.startswith("#")]



setup(
name='HiveMind-voice-sat',
version=get_version(),
Expand Down

0 comments on commit 1188075

Please sign in to comment.