Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
LBN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
3pia
LBN
Commits
17bbb86d
Commit
17bbb86d
authored
Apr 13, 2019
by
Marcel Rieger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve reading package info during setup.
parent
e1b9c61b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
14 deletions
+18
-14
lbn.py
lbn.py
+2
-3
setup.py
setup.py
+16
-11
No files found.
lbn.py
View file @
17bbb86d
...
...
@@ -19,9 +19,8 @@ __all__ = ["LBN", "FeatureFactoryBase", "FeatureFactory"]
import
os
import
functools
if
os
.
environ
.
get
(
"LBN_SETUP_RUNNING"
)
!=
"1"
:
import
numpy
as
np
import
tensorflow
as
tf
import
numpy
as
np
import
tensorflow
as
tf
class
LBN
(
object
):
...
...
setup.py
View file @
17bbb86d
...
...
@@ -4,9 +4,6 @@
import
os
import
setuptools
os
.
environ
[
"LBN_SETUP_RUNNING"
]
=
"1"
import
lbn
this_dir
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
...
...
@@ -35,14 +32,22 @@ with open(os.path.join(this_dir, "README.md"), "r") as f:
with
open
(
os
.
path
.
join
(
this_dir
,
"requirements.txt"
),
"r"
)
as
f
:
install_requires
=
[
line
.
strip
()
for
line
in
f
.
readlines
()
if
line
.
strip
()]
# load package infos
pkg
=
{}
with
open
(
os
.
path
.
join
(
this_dir
,
"lbn.py"
),
"r"
)
as
f
:
# read until lines up to the __version__ info
lines
=
f
.
readlines
()
end
=
[
i
for
i
,
l
in
enumerate
(
lines
)
if
l
.
startswith
(
"__version__"
)][
0
]
+
1
exec
(
""
.
join
(
lines
[:
end
]),
pkg
)
setuptools
.
setup
(
name
=
lbn
.
__name__
,
version
=
lbn
.
__version__
,
author
=
lbn
.
__author__
,
author_email
=
lbn
.
__email__
,
description
=
lbn
.
__doc__
.
strip
().
split
(
"
\n
"
)[
0
].
strip
(),
license
=
lbn
.
__license__
,
url
=
lbn
.
__contact__
,
name
=
"lbn"
,
version
=
pkg
[
"__version__"
]
,
author
=
pkg
[
"__author__"
]
,
author_email
=
pkg
[
"__email__"
]
,
description
=
pkg
[
"__doc__"
]
.
strip
().
split
(
"
\n
"
)[
0
].
strip
(),
license
=
pkg
[
"__license__"
]
,
url
=
pkg
[
"__contact__"
]
,
keywords
=
keywords
,
classifiers
=
classifiers
,
long_description
=
long_description
,
...
...
@@ -50,6 +55,6 @@ setuptools.setup(
install_requires
=
install_requires
,
python_requires
=
">=2.7"
,
zip_safe
=
False
,
py_modules
=
[
lbn
.
__name__
],
py_modules
=
[
"lbn"
],
data_files
=
[(
"."
,
[
"LICENSE"
,
"requirements.txt"
,
"README.md"
])],
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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