Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
bob
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
3
Issues
3
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bob
bob
Commits
b5c2e3aa
Commit
b5c2e3aa
authored
Mar 16, 2016
by
Tiago de Freitas Pereira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed get_config from the __init__.py
parent
b3120d23
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
12 deletions
+8
-12
.travis.yml
.travis.yml
+1
-1
bob/__init__.py
bob/__init__.py
+0
-11
bob/utils.py
bob/utils.py
+7
-0
No files found.
.travis.yml
View file @
b5c2e3aa
...
...
@@ -22,7 +22,7 @@ install:
-
python bootstrap-buildout.py
-
CPPFLAGS=--coverage LDFLAGS=--coverage ./bin/buildout buildout:debug=false buildout:develop=. buildout:extensions=bob.buildout buildout:auto-checkout=
script
:
-
./bin/python -c 'import pkg_resources; from bob import get_config; print(get_config())'
-
./bin/python -c 'import pkg_resources; from bob
.utils
import get_config; print(get_config())'
-
./bin/coverage run --source=bob ./bin/nosetests bob bob.ip bob.learn.activation bob.learn.mlp bob.learn.libsvm bob.learn.linear bob.learn.em bob.io bob.blitz bob.ap bob.core bob.math bob.sp bob.measure -sv --first-package-wins
#- ./bin/sphinx-build -b doctest doc sphinx
-
./bin/sphinx-build -b html doc sphinx
...
...
bob/__init__.py
View file @
b5c2e3aa
# see https://docs.python.org/3/library/pkgutil.html
from
pkgutil
import
extend_path
__path__
=
extend_path
(
__path__
,
__name__
)
def
get_config
():
"""
Returns a string containing the configuration information.
"""
import
bob.extension
return
bob
.
extension
.
get_config
(
__name__
)
bob/utils.py
View file @
b5c2e3aa
...
...
@@ -10,6 +10,13 @@ import pkgtools.pypi
import
distutils.version
import
pkg_resources
def
get_config
():
"""
Returns a string containing the configuration information.
"""
import
bob.extension
return
bob
.
extension
.
get_config
(
__name__
)
def
get_url
(
package_name
):
"Given a package name get, from PyPI, the URL name"
...
...
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