Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sumpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Andreas Klöckner
sumpy
Merge requests
!77
Try hard to find a git revision to use as cache key
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Try hard to find a git revision to use as cache key
use-git-rev-as-cache-key
into
master
Overview
4
Commits
4
Pipelines
4
Changes
3
Merged
Andreas Klöckner
requested to merge
use-git-rev-as-cache-key
into
master
7 years ago
Overview
4
Commits
4
Pipelines
4
Changes
3
Expand
cc
@mattwala
@haogao2
@isuruf
@fikl2
0
0
Merge request reports
Compare
master
version 3
bf96a487
7 years ago
version 2
5e913977
7 years ago
version 1
8b24af4c
7 years ago
master (base)
and
latest version
latest version
1117165d
4 commits,
7 years ago
version 3
bf96a487
3 commits,
7 years ago
version 2
5e913977
2 commits,
7 years ago
version 1
8b24af4c
1 commit,
7 years ago
3 files
+
78
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
sumpy/version.py
+
23
−
5
Options
from
__future__
import
division
,
absolute_import
__copyright__
=
"
Copyright (C) 2014 Andreas Kloeckner
"
__license__
=
"""
@@ -20,13 +22,29 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
"""
# {{{ find install- or run-time git revision
import
os
if
os
.
environ
.
get
(
"
AKPYTHON_EXEC_FROM_WITHIN_WITHIN_SETUP_PY
"
)
is
not
None
:
# We're just being exec'd by setup.py. We can't import anything.
_git_rev
=
None
else
:
import
sumpy._git_rev
as
_git_rev_mod
_git_rev
=
_git_rev_mod
.
GIT_REVISION
# If we're running from a dev tree, the last install (and hence the most
# recent update of the above git rev) could have taken place very long ago.
from
pytools
import
find_module_git_revision
_runtime_git_rev
=
find_module_git_revision
(
__file__
,
n_levels_up
=
1
)
if
_runtime_git_rev
is
not
None
:
_git_rev
=
_runtime_git_rev
# }}}
VERSION
=
(
2016
,
1
)
VERSION_STATUS
=
"
beta1
"
VERSION_TEXT
=
"
.
"
.
join
(
str
(
x
)
for
x
in
VERSION
)
+
VERSION_STATUS
# When developing on a branch, set the first element of this tuple to your
# branch name, so as to avoid conflicts with the master branch. Make sure
# to reset this to the next number up with "master" before merging into
# master.
KERNEL_VERSION
=
(
"
master
"
,
31
)
KERNEL_VERSION
=
(
VERSION
,
_git_rev
,
0
)
Loading