Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ess-python-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
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
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
ESS Beam Physics
ess-python-tools
Commits
fc02451d
"git@gitlab.esss.lu.se:ics-software/ess-public-screens.git" did not exist on "82446499fc76eaf625df62f54fd6e999fb71d629"
Commit
fc02451d
authored
4 years ago
by
Yngve Levinsen
Browse files
Options
Downloads
Patches
Plain Diff
automatically using package version at runtime
parent
503ccc29
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+0
-11
0 additions, 11 deletions
.gitlab-ci.yml
ess/__init__.py
+9
-1
9 additions, 1 deletion
ess/__init__.py
with
9 additions
and
12 deletions
.gitlab-ci.yml
+
0
−
11
View file @
fc02451d
...
...
@@ -22,17 +22,6 @@ examples:
script
:
-
python tests.py -v
verify_tag
:
stage
:
test
before_script
:
-
*pip_install_default
script
:
-
CHECKED_VERSION=`python -c "import ess;print(ess.__version__)"`
-
echo "${CHECKED_VERSION} - ${CI_COMMIT_TAG}"
-
if [ "${CI_COMMIT_TAG}" == "${CHECKED_VERSION}" ];then exit 0;else exit 1;fi
only
:
-
tags
pages
:
stage
:
deploy
script
:
...
...
This diff is collapsed.
Click to expand it.
ess/__init__.py
+
9
−
1
View file @
fc02451d
...
...
@@ -3,6 +3,7 @@ from . import installed
from
.
import
lib_tw
from
.
import
fieldmap
from
.nextcloud
import
nextcloud
from
pkg_resources
import
get_distribution
,
DistributionNotFound
__all__
=
[
"
fieldmap
"
,
...
...
@@ -13,4 +14,11 @@ __all__ = [
"
ttf.py
"
,
"
nextcloud
"
,
]
__version__
=
"
2.10.4
"
__name__
=
"
ess-python-tools
"
try
:
__version__
=
get_distribution
(
__name__
).
version
except
DistributionNotFound
:
# package is not installed
pass
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