Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
NIFTy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
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
ift
NIFTy
Commits
d9bdf16b
Commit
d9bdf16b
authored
3 years ago
by
Philipp Arras
Browse files
Options
Downloads
Patches
Plain Diff
Remove gitversion interface
parent
ec726ff5
No related branches found
No related tags found
2 merge requests
!659
Nifty7 changes
,
!657
Remove gitversion interface, docs improvements and workaround pip
Pipeline
#105228
passed
3 years ago
Stage: static_checks
Stage: build_docker
Stage: test
Stage: demo_runs
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ChangeLog.md
+7
-0
7 additions, 0 deletions
ChangeLog.md
setup.py
+0
-15
0 additions, 15 deletions
setup.py
src/version.py
+0
-13
0 additions, 13 deletions
src/version.py
with
7 additions
and
28 deletions
ChangeLog.md
+
7
−
0
View file @
d9bdf16b
...
@@ -93,6 +93,13 @@ likelihood becomes the identity matrix. This is needed for the `GeoMetricKL`
...
@@ -93,6 +93,13 @@ likelihood becomes the identity matrix. This is needed for the `GeoMetricKL`
algorithm.
algorithm.
Remove gitversion interface
---------------------------
Since we provide proper nifty releases on PyPI now, the gitversion interface is
not supported any longer.
Changes since NIFTy 5
Changes since NIFTy 5
=====================
=====================
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
0
−
15
View file @
d9bdf16b
...
@@ -18,21 +18,6 @@
...
@@ -18,21 +18,6 @@
from
setuptools
import
find_packages
,
setup
from
setuptools
import
find_packages
,
setup
import
os
import
os
def
write_version
():
import
subprocess
try
:
p
=
subprocess
.
Popen
([
"
git
"
,
"
describe
"
,
"
--dirty
"
,
"
--tags
"
,
"
--always
"
],
stdout
=
subprocess
.
PIPE
)
res
=
p
.
communicate
()[
0
].
strip
().
decode
(
'
utf-8
'
)
except
FileNotFoundError
:
print
(
"
Could not determine version string from git history
"
)
res
=
"
unknown
"
with
open
(
os
.
path
.
join
(
"
nifty7
"
,
"
git_version.py
"
),
"
w
"
)
as
f
:
f
.
write
(
'
gitversion =
"
{}
"
\n
'
.
format
(
res
))
write_version
()
exec
(
open
(
'
nifty7/version.py
'
).
read
())
exec
(
open
(
'
nifty7/version.py
'
).
read
())
with
open
(
"
README.md
"
)
as
f
:
with
open
(
"
README.md
"
)
as
f
:
...
...
This diff is collapsed.
Click to expand it.
src/version.py
+
0
−
13
View file @
d9bdf16b
# Store the version here so:
# 1) we don't load dependencies by storing it in __init__.py
# 2) we can import it in setup.py for the same reason
# 3) we can import it into your module module
__version__
=
'
7.0
'
__version__
=
'
7.0
'
def
gitversion
():
try
:
from
.git_version
import
gitversion
except
ImportError
:
return
"
unknown
"
return
gitversion
This diff is collapsed.
Click to expand it.
Philipp Arras
@parras
mentioned in merge request
!785 (merged)
·
2 years ago
mentioned in merge request
!785 (merged)
mentioned in merge request !785
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