Skip to content
Snippets Groups Projects
Commit 82fa1856 authored by dh00601's avatar dh00601
Browse files

updated setup.py to use VERSION

parent 485066d3
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,14 @@ import distutils.command.build
# TODO: replace the tasks that call binary_c-config with a single function that handles the return status a bit better.
def version():
"""
opens VERSION and returns version number
"""
with open("VERSION") as file:
return file.read().strip()
# Functions
def readme():
"""Opens readme file and returns content"""
......@@ -224,7 +232,7 @@ class CustomBuildCommand(distutils.command.build.build):
setup(
name="binarycpython",
version="0.9.1",
version=version(),
description="""This is a python API for binary_c (versions {}) by David Hendriks, Rob Izzard and collaborators. Based on the initial set up by Jeff andrews.""".format(
",".join(REQUIRED_BINARY_C_VERSIONS),
",".join(REQUIRED_BINARY_C_VERSIONS),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment