Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EdosL0Util
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SIPS
EdosL0Util
Commits
cb10c981
Commit
cb10c981
authored
9 years ago
by
Bruce Flynn
Browse files
Options
Downloads
Patches
Plain Diff
Save version info to version.txt
parent
af311882
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
.gitignore
+3
-1
3 additions, 1 deletion
.gitignore
MANIFEST.in
+1
-1
1 addition, 1 deletion
MANIFEST.in
build.sh
+24
-0
24 additions, 0 deletions
build.sh
edosl0util/__init__.py
+6
-0
6 additions, 0 deletions
edosl0util/__init__.py
setup.py
+1
-0
1 addition, 0 deletions
setup.py
with
35 additions
and
2 deletions
.gitignore
+
3
−
1
View file @
cb10c981
.eggs
build
dist
env
*.egg-info
*.sw?
\ No newline at end of file
*.sw?
version.txt
This diff is collapsed.
Click to expand it.
MANIFEST.in
+
1
−
1
View file @
cb10c981
include edosl0util/
.repostate
include edosl0util/
version.txt
This diff is collapsed.
Click to expand it.
build.sh
0 → 100755
+
24
−
0
View file @
cb10c981
#!/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
This diff is collapsed.
Click to expand it.
edosl0util/__init__.py
+
6
−
0
View file @
cb10c981
import
os
version
=
os
.
path
.
join
(
os
.
path
.
split
(
__file__
)[
0
],
'
version.txt
'
)
if
os
.
path
.
exists
(
version
):
execfile
(
version
)
del
os
del
version
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
0
View file @
cb10c981
...
...
@@ -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
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment