Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-pylib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
caosdb
Software
caosdb-pylib
Commits
65247769
Commit
65247769
authored
1 year ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
MAINT: do not import linkahead during build
parent
276252fd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!123
TEST: xfail for issue 111
Pipeline
#42061
passed
1 year ago
Stage: code_style
Stage: linting
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.py
+8
-6
8 additions, 6 deletions
setup.py
with
8 additions
and
6 deletions
setup.py
+
8
−
6
View file @
65247769
...
...
@@ -4,6 +4,7 @@
#
"""
linkahead
"""
import
os
import
re
import
subprocess
import
sys
...
...
@@ -103,12 +104,13 @@ def get_version_info():
GIT_REVISION
=
f
.
read
().
strip
()
elif
os
.
path
.
exists
(
'
src/linkahead/version.py
'
):
# must be a source distribution, use existing version file
try
:
from
linkahead.version
import
git_revision
as
GIT_REVISION
except
ImportError
:
raise
ImportError
(
"
Unable to import git_revision. Try removing
"
"
src/linkahead/version.py and the build directory
"
"
before building.
"
)
with
open
(
'
src/linkahead/version.py
'
)
as
fi
:
for
line
in
fi
.
readlines
():
match
=
re
.
match
(
r
"
^git_revision = (?P<rev>.*)$
"
,
line
)
if
match
is
not
None
:
GIT_REVISION
=
match
.
group
(
'
rev
'
)
else
:
GIT_REVISION
=
"
Unknown
"
...
...
This diff is collapsed.
Click to expand it.
Henrik tom Wörden
@henrik
mentioned in issue
#177 (closed)
·
1 year ago
mentioned in issue
#177 (closed)
mentioned in issue #177
Toggle commit list
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