Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pycodegen
lbmpy
Commits
b223a5d9
Commit
b223a5d9
authored
Jan 31, 2020
by
Martin Bauer
Browse files
Bugfix - determine version number from file when no git repo is available
parent
e586475c
Pipeline
#21581
passed with stage
in 21 minutes and 52 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
MANIFEST.in
View file @
b223a5d9
include README.md
include COPYING.txt
include RELEASE-VERSION
setup.py
View file @
b223a5d9
...
...
@@ -45,8 +45,24 @@ class SimpleTestRunner(distutils.cmd.Command):
self
.
_run_tests_in_module
(
test
)
def
readme
():
with
open
(
'README.md'
)
as
f
:
return
f
.
read
()
try
:
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
'doc'
))
from
version_from_git
import
version_number_from_git
version
=
version_number_from_git
()
with
open
(
"RELEASE-VERSION"
,
"w"
)
as
f
:
f
.
write
(
version
)
except
ImportError
:
version
=
open
(
'RELEASE-VERSION'
,
'r'
).
read
()
setup
(
name
=
'lbmpy'
,
version
=
version_number_from_git
(),
version
=
version
,
long_description
=
readme
(),
description
=
'Code Generation for Lattice Boltzmann Methods'
,
author
=
'Martin Bauer'
,
license
=
'AGPLv3'
,
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment