[Git][NTPsec/ntpsec][master] 3 commits: pep8: E302 expected 2 blank lines, found 1
Matt Selsky
gitlab at mg.gitlab.com
Fri Jan 6 13:27:45 UTC 2017
Matt Selsky pushed to branch master at NTPsec / ntpsec
Commits:
c66ee47d by Matt Selsky at 2017-01-06T08:26:56-05:00
pep8: E302 expected 2 blank lines, found 1
- - - - -
39c6e4d9 by Matt Selsky at 2017-01-06T08:26:56-05:00
pep8: E225 missing whitespace around operator
- - - - -
967ae81a by Matt Selsky at 2017-01-06T08:26:56-05:00
pep8: E303 too many blank lines (2)
- - - - -
1 changed file:
- wscript
Changes:
=====================================
wscript
=====================================
--- a/wscript
+++ b/wscript
@@ -7,7 +7,7 @@ import os
pprint.__doc__ = None
-out="build"
+out = "build"
from wafhelpers.configure import cmd_configure
from waflib.Tools import waf_unit_test
@@ -19,6 +19,7 @@ config = {
"OPT_STORE": {}
}
+
def help(ctx):
"Be helpful, give a usage"
print('''
@@ -35,16 +36,20 @@ def options(ctx):
options_cmd(ctx, config)
ctx.recurse("pylib")
+
def configure(ctx):
from wafhelpers.configure import cmd_configure
cmd_configure(ctx, config)
ctx.recurse("pylib")
from waflib.Build import BuildContext
+
+
class check(BuildContext):
cmd = 'check'
variant = "main"
+
def bin_test(ctx):
"""Run binary check, use after tests."""
from wafhelpers.bin_test import cmd_bin_test
@@ -68,6 +73,7 @@ for v in ["host", "main"]:
cmd = "%s_%s" % (cmd, v)
variant = v
+
def init_handler(ctx):
cmd = ctx.cmd
if cmd == 'init_handler':
@@ -107,6 +113,7 @@ for command, func, descr in commands:
execute = Scripting.autoconfigure(Context.Context.execute)
# end borrowed code
+
def afterparty(ctx):
# Make magic links to support in-tree testing.
# The idea is that all directories where the Python tools
@@ -147,6 +154,7 @@ python_scripts = [
"ntpclients/ntpwait",
]
+
def build(ctx):
ctx.load('waf', tooldir='wafhelpers/')
ctx.load('bison')
@@ -166,12 +174,10 @@ def build(ctx):
if ctx.env.ENABLE_DOC_ONLY:
return
-
if ctx.variant == "host":
ctx.recurse("ntpd")
return
-
ctx.recurse("libisc")
if ctx.env.REFCLOCK_GENERIC: # Only required by the generic refclock
ctx.recurse("libparse")
@@ -238,19 +244,24 @@ def build(ctx):
# Miscellaneous utility productions
#
+
def ifdex(ctx):
"Get a report on configuration symbols not accounted for."
ctx.exec_command("ifdex -X build/config.h -X devel/ifdex-ignores .")
# See https://gitlab.com/esr/loccount
+
+
def loccount(ctx):
"Report the SLOC count of the source tree."
ctx.exec_command("loccount -x=build .")
+
def cxfreeze(ctx):
"Create standalone binaries from Python scripts."
ctx.exec_command("for prog in " + " ".join(python_scripts) + "; do cxfreeze $prog; done")
+
def linkcheck(ctx):
"Report references without anchors in the documentation."
ctx.exec_command("devel/linkcheck docs/")
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/395414f3ac7d15371d649d0e27755bcefceff22c...967ae81a5b138ade0a4bdac2e66bbcf3a4f16f80
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170106/60475b8a/attachment.html>
More information about the vc
mailing list