Skip to content

Commit

Permalink
Update setup.py to resolve version automation bug (#95)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel McKnight <[email protected]>
  • Loading branch information
NeonDaniel and NeonDaniel authored May 8, 2024
1 parent ffc3d40 commit 8420d7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@

def required(requirements_file):
""" Read requirements file and remove comments and empty lines. """
base_dir = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(base_dir, requirements_file), 'r') as f:
with open(os.path.join(BASEDIR, requirements_file), 'r') as f:
requirements = f.read().splitlines()
if 'MYCROFT_LOOSE_REQUIREMENTS' in os.environ:
print('USING LOOSE REQUIREMENTS!')
Expand Down Expand Up @@ -42,7 +41,8 @@ def get_version():
version += f"a{alpha}"
return version

with open("README.md", "r") as f:

with open(os.path.join(BASEDIR, "README.md"), "r") as f:
long_description = f.read()

setup(
Expand Down

0 comments on commit 8420d7a

Please sign in to comment.