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
a58d8d75
Commit
a58d8d75
authored
4 years ago
by
Ruben Verweij
Committed by
Lorenzo ZOLFANELLI
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix #42: read version number from setup.py
parent
19d29659
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
nd2reader/__init__.py
+9
-1
9 additions, 1 deletion
nd2reader/__init__.py
setup.py
+2
-1
2 additions, 1 deletion
setup.py
with
11 additions
and
2 deletions
nd2reader/__init__.py
+
9
−
1
View file @
a58d8d75
...
...
@@ -2,4 +2,12 @@ from os import path
from
nd2reader.reader
import
ND2Reader
from
nd2reader.legacy
import
Nd2
__version__
=
'
3.2.3
'
try
:
import
importlib.metadata
as
importlib_metadata
except
ModuleNotFoundError
:
import
importlib_metadata
try
:
__version__
=
importlib_metadata
.
version
(
__name__
)
except
:
print
(
'
Unable to read version number
'
)
This diff is collapsed.
Click to expand it.
setup.py
+
2
−
1
View file @
a58d8d75
from
setuptools
import
setup
from
nd2reader
import
__version__
as
VERSION
VERSION
=
'
3.2.3
'
if
__name__
==
'
__main__
'
:
setup
(
...
...
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