Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zolfa-nd2reader
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
Lorenzo ZOLFANELLI
zolfa-nd2reader
Commits
ac6c4a39
Commit
ac6c4a39
authored
4 years ago
by
Ruben Verweij
Committed by
Lorenzo ZOLFANELLI
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Install package on travis to correctly get version number
parent
270e42e5
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
.travis.yml
+1
-0
1 addition, 0 deletions
.travis.yml
nd2reader/__init__.py
+5
-5
5 additions, 5 deletions
nd2reader/__init__.py
with
6 additions
and
5 deletions
.travis.yml
+
1
−
0
View file @
ac6c4a39
...
@@ -26,6 +26,7 @@ before_script:
...
@@ -26,6 +26,7 @@ before_script:
-
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
-
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
-
chmod +x ./cc-test-reporter
-
chmod +x ./cc-test-reporter
-
./cc-test-reporter before-build
-
./cc-test-reporter before-build
-
python setup.py develop
# need to install to get version number
script
:
python ./test.py
script
:
python ./test.py
...
...
This diff is collapsed.
Click to expand it.
nd2reader/__init__.py
+
5
−
5
View file @
ac6c4a39
...
@@ -2,12 +2,12 @@ from os import path
...
@@ -2,12 +2,12 @@ from os import path
from
nd2reader.reader
import
ND2Reader
from
nd2reader.reader
import
ND2Reader
from
nd2reader.legacy
import
Nd2
from
nd2reader.legacy
import
Nd2
#
try:
try
:
import
importlib.metadata
as
importlib_metadata
import
importlib.metadata
as
importlib_metadata
#
except:
except
:
#
import importlib_metadata
import
importlib_metadata
try
:
try
:
__version__
=
importlib_metadata
.
version
(
__name__
)
__version__
=
importlib_metadata
.
version
(
__name__
)
except
:
except
:
raise
ValueError
(
'
Unable to read version number
'
)
print
(
'
Unable to read version number
'
)
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