Skip to content
Snippets Groups Projects
Commit 474407ff authored by Bruce Flynn's avatar Bruce Flynn
Browse files

small change to build.sh

parent cb10c981
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash
function sdist() {
version=$(grep version setup.py | sed 's/.*version=["\x27]//g;s/[\x27"].*//g')
function write_version_file() {
# pull version out of setup.py
version=$(grep version setup.py | sed "s,.*'\(.*\)'.*$,\1,g")
cat <<EOF > edosl0util/version.txt
__version__ = '${version}'
__githash__ = '$(git log --format="%H" | head -n 1)'
__patch__ = """$(git diff)"""
EOF
python setup.py $@
}
if [ -z $1 ]
......@@ -17,8 +17,10 @@ fi
case $1 in
sdist)
sdist $@
write_version_file
python setup.py sdist $@
;;
*)
python setup.py $@
;;
esac
......@@ -2,8 +2,10 @@ from setuptools import setup, find_packages
setup(
name='EdosL0Util',
author='Bruce Flynn',
author_email='brucef@ssec.wisc.edu',
description='Utilities for working with EDOS L0 PDS files',
version='0.4.dev8',
version='0.4.dev9',
zip_safe=False,
packages=find_packages(),
install_requires=[
......
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