Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PPP-libmodule-Python
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue 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
Show more breadcrumbs
Moritz Aurel Pascal Schubotz
PPP-libmodule-Python
Commits
a0227e07
Commit
a0227e07
authored
10 years ago
by
Valentin Lorentz
Browse files
Options
Downloads
Patches
Plain Diff
Remove dead code.
parent
d6a11de3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ppp_libmodule/config.py
+0
-19
0 additions, 19 deletions
ppp_libmodule/config.py
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
1 addition
and
20 deletions
ppp_libmodule/config.py
+
0
−
19
View file @
a0227e07
...
...
@@ -31,23 +31,4 @@ class Config:
'
environment variable $%s.
'
%
cls
.
config_path_variable
)
return
path
class
CoreConfig
(
Config
):
__slots__
=
(
'
modules
'
,
'
nb_passes
'
)
config_path_variable
=
'
PPP_CORE_CONFIG
'
def
parse_config
(
self
,
data
):
self
.
modules
=
self
.
_parse_modules
(
data
.
get
(
'
modules
'
,
{}))
self
.
debug
=
data
.
get
(
'
debug
'
,
False
)
self
.
nb_passes
=
data
.
get
(
'
recursion
'
,
{}).
get
(
'
max_passes
'
,
10
)
def
_parse_modules
(
self
,
data
):
modules
=
[]
for
config
in
data
:
if
'
name
'
not
in
config
:
raise
InvalidConfig
(
'
Module %r has no name
'
%
config
)
if
'
url
'
not
in
config
:
raise
InvalidConfig
(
'
Module %s has no set URL.
'
%
config
[
'
name
'
])
modules
.
append
(
Module
(
**
config
))
return
modules
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
a0227e07
...
...
@@ -4,7 +4,7 @@ from setuptools import setup, find_packages
setup
(
name
=
'
ppp_libmodule
'
,
version
=
'
0.7
'
,
version
=
'
0.7
.1
'
,
description
=
'
Library for writing Python modules for the PPP.
'
,
url
=
'
https://github.com/ProjetPP/PPP-libmodule-Python
'
,
author
=
'
Valentin Lorentz
'
,
...
...
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