Skip to content
Snippets Groups Projects
Commit 65302ad1 authored by dh00601's avatar dh00601
Browse files

Merge branch 'feature/centralize_version_number'

parents 7f08f7bf 93632da2
No related branches found
No related tags found
No related merge requests found
......@@ -2,3 +2,4 @@ include Makefile
include src/*.c
include include/*.h
include README.md
include VERSION
0.9.1
#!/bin/bash
# Script to install binarycpython in the current venv
VERSION_NUMBER=$(cat "VERSION")
echo "installing binarcpython version $VERSION_NUMBER"
python setup.py clean
pip uninstall binarycpython
python setup.py build --force
python setup.py sdist
pip install -v dist/binarycpython-$VERSION_NUMBER.tar.gz
#!/bin/bash
# Script to install binarycpython in the current venv
VERSION_NUMBER=$(cat "VERSION")
echo "installing binarcpython version $VERSION_NUMBER"
python setup.py clean
pip uninstall binarycpython
python setup.py build --force
python setup.py sdist
pip install --ignore-installed --no-dependencies -v dist/binarycpython-$VERSION_NUMBER.tar.gz
......@@ -13,6 +13,16 @@ 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()
VERSION_NUMBER = version()
# Functions
def readme():
"""Opens readme file and returns content"""
......@@ -224,7 +234,7 @@ class CustomBuildCommand(distutils.command.build.build):
setup(
name="binarycpython",
version="0.9.1",
version=VERSION_NUMBER,
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