Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
force-bdss
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
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
Adham Hashibon
force-bdss
Commits
f6263293
Commit
f6263293
authored
7 years ago
by
Stefano Borini
Browse files
Options
Downloads
Patches
Plain Diff
Fixes incorrect creation of version.py
parent
c6266484
No related branches found
No related tags found
1 merge request
!59
Fixes incorrect creation of version.py
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-1
1 addition, 1 deletion
.gitignore
doc/source/conf.py
+1
-1
1 addition, 1 deletion
doc/source/conf.py
setup.py
+13
-2
13 additions, 2 deletions
setup.py
with
15 additions
and
4 deletions
.gitignore
+
1
−
1
View file @
f6263293
...
...
@@ -2,4 +2,4 @@ __pycache__
*.egg-info
doc/build/
*.pyc
force_bdss/
__
version
__
.py
force_bdss/version.py
This diff is collapsed.
Click to expand it.
doc/source/conf.py
+
1
−
1
View file @
f6263293
...
...
@@ -10,7 +10,7 @@ sys.path.insert(0, os.path.join(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)),
"
..
"
,
"
..
"
)
)
from
force_bdss.
__
version
__
import
VERSION
as
RELEASE
from
force_bdss.version
import
__version__
as
RELEASE
MOCK_MODULES
=
[]
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
13
−
2
View file @
f6263293
import
os
from
setuptools
import
setup
,
find_packages
VERSION
=
"
0.1.0.dev2
"
# Read description
with
open
(
'
README.rst
'
,
'
r
'
)
as
readme
:
README_TEXT
=
readme
.
read
()
def
write_version_py
():
with
open
(
"
force_bdss/__version__.py
"
,
"
w
"
)
as
f
:
f
.
write
(
"
VERSION =
'
{}
'
\n
"
.
format
(
VERSION
))
filename
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'
force_bdss
'
,
'
version.py
'
)
ver
=
"
__version__ =
'
{}
'
\n
"
with
open
(
filename
,
'
w
'
)
as
fh
:
fh
.
write
(
ver
.
format
(
VERSION
))
write_version_py
()
...
...
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