Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fluidsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
This instance will be upgraded to Heptapod 17.9.2 on 2025-04-24 between 17:00 and 18:00 UTC+2
Show more breadcrumbs
fluiddyn
fluidsim
Commits
f28d9b53
Commit
f28d9b53
authored
6 years ago
by
Pierre Augier
Browse files
Options
Downloads
Patches
Plain Diff
Alternative implementation for local version (pull request
#14
)
parent
c6bb9b9b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
fluidsim/__init__.py
+2
-1
2 additions, 1 deletion
fluidsim/__init__.py
fluidsim/_version.py
+20
-0
20 additions, 0 deletions
fluidsim/_version.py
fluidsim/base/output/base.py
+1
-1
1 addition, 1 deletion
fluidsim/base/output/base.py
setup.py
+1
-0
1 addition, 0 deletions
setup.py
with
24 additions
and
2 deletions
fluidsim/__init__.py
+
2
−
1
View file @
f28d9b53
...
...
@@ -23,7 +23,7 @@
"""
from
._version
import
__version__
from
._version
import
__version__
,
get_local_version
from
fluiddyn.io
import
FLUIDSIM_PATH
as
path_dir_results
...
...
@@ -46,6 +46,7 @@
__all__
=
[
"
__version__
"
,
"
get_local_version
"
,
"
path_dir_results
"
,
"
import_module_solver_from_key
"
,
"
import_simul_class_from_key
"
,
...
...
This diff is collapsed.
Click to expand it.
fluidsim/_version.py
+
20
−
0
View file @
f28d9b53
...
...
@@ -22,6 +22,8 @@
__version__
=
"
0.2.3
"
__all__
=
[
"
__version__
"
,
"
get_local_version
"
,
"
__about__
"
]
try
:
from
pyfiglet
import
figlet_format
...
...
@@ -37,3 +39,21 @@
"""
__about__
=
__about__
.
rstrip
()
+
f
"
\n\n
{
28
*
'
'
}
v.
{
__version__
}
\n
"
_loc_version
=
None
def
get_local_version
():
"""
Get a long
"
local
"
version.
"""
global
_loc_version
if
_loc_version
is
None
:
from
setuptools_scm
import
get_version
try
:
_loc_version
=
get_version
(
root
=
"
..
"
,
relative_to
=
__file__
)
except
LookupError
:
_loc_version
=
__version__
return
_loc_version
This diff is collapsed.
Click to expand it.
fluidsim/base/output/base.py
+
1
−
1
View file @
f28d9b53
...
...
@@ -349,7 +349,7 @@
"
the Python program FluidDyn
"
+
fluiddyn
.
__version__
+
"
and FluidSim
"
+
fluidsim
.
_
_version
__
+
fluidsim
.
get_local
_version
()
+
"
.
\n\n
It should not be modified
"
"
(except for adding xml comments).
"
)
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
0
View file @
f28d9b53
...
...
@@ -124,6 +124,7 @@
"
h5py
"
,
"
h5netcdf
"
,
"
fluidpythran >= 0.0.3
"
,
"
setuptools_scm
"
,
]
if
FFTW3
:
...
...
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