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

Save version info to version.txt

parent af311882
No related branches found
No related tags found
No related merge requests found
.eggs
build
dist
env
*.egg-info
*.sw?
\ No newline at end of file
*.sw?
version.txt
include edosl0util/.repostate
include edosl0util/version.txt
build.sh 0 → 100755
#!/usr/bin/env bash
function sdist() {
version=$(grep version setup.py | sed 's/.*version=["\x27]//g;s/[\x27"].*//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 ]
then
echo "USAGE: $0 sdist"
fi
case $1 in
sdist)
sdist $@
;;
*)
;;
esac
import os
version = os.path.join(os.path.split(__file__)[0], 'version.txt')
if os.path.exists(version):
execfile(version)
del os
del version
......@@ -4,6 +4,7 @@ setup(
name='EdosL0Util',
description='Utilities for working with EDOS L0 PDS files',
version='0.4.dev8',
zip_safe=False,
packages=find_packages(),
install_requires=[
'h5py',
......
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