Skip to content

Commit

Permalink
Move cylc.cfgvalidate to cylc.parsec.validate
Browse files Browse the repository at this point in the history
  • Loading branch information
kinow authored and Bruno P. Kinoshita committed Apr 30, 2019
1 parent 82f6628 commit 9c1aa82
Show file tree
Hide file tree
Showing 9 changed files with 418 additions and 473 deletions.
2 changes: 1 addition & 1 deletion bin/cylc-broadcast
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ from cylc.terminal import cli_function
from cylc.broadcast_report import (
get_broadcast_change_report, get_broadcast_bad_options_report)
from cylc.cfgspec.suite import SPEC, upg
from cylc.cfgvalidate import cylc_config_validate
from cylc.parsec.validate import cylc_config_validate
from cylc.network.client import SuiteRuntimeClient
from cylc.option_parsers import CylcOptionParser as COP
from cylc.print_tree import print_tree
Expand Down
13 changes: 6 additions & 7 deletions lib/cylc/cfgspec/globalcfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,16 @@
import shutil
from tempfile import mkdtemp

from cylc.parsec.config import ParsecConfig
from cylc.parsec.exceptions import ParsecError
from cylc.parsec.upgrade import upgrader

from cylc import LOG
from cylc.cfgvalidate import (
cylc_config_validate, CylcConfigValidator as VDR, DurationFloat)
from cylc import __version__ as CYLC_VERSION
from cylc.exceptions import GlobalConfigError
from cylc.hostuserutil import get_user_home, is_remote_user
from cylc.network import Priv
from cylc import __version__ as CYLC_VERSION
from cylc.parsec.config import ParsecConfig
from cylc.parsec.exceptions import ParsecError
from cylc.parsec.upgrade import upgrader
from cylc.parsec.validate import (
DurationFloat, CylcConfigValidator as VDR, cylc_config_validate)

# Nested dict of spec items.
# Spec value is [value_type, default, allowed_2, allowed_3, ...]
Expand Down
10 changes: 4 additions & 6 deletions lib/cylc/cfgspec/suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@

from isodatetime.data import Calendar

from cylc.parsec.upgrade import upgrader
from cylc.parsec.config import ParsecConfig

from cylc.cfgvalidate import (
cylc_config_validate, CylcConfigValidator as VDR, DurationFloat)
from cylc.network import Priv

from cylc.parsec.config import ParsecConfig
from cylc.parsec.upgrade import upgrader
from cylc.parsec.validate import (
DurationFloat, CylcConfigValidator as VDR, cylc_config_validate)

# Nested dict of spec items.
# Spec value is [value_type, default, allowed_2, allowed_3, ...]
Expand Down
292 changes: 0 additions & 292 deletions lib/cylc/cfgvalidate.py

This file was deleted.

Loading

0 comments on commit 9c1aa82

Please sign in to comment.