From 1fa62992d61cc41a209830bc7a942ee762cb8500 Mon Sep 17 00:00:00 2001 From: Eric Guo Date: Wed, 2 Mar 2016 17:36:04 +0800 Subject: [PATCH] add ext-grunt-build system --- .gitignore | 1 + .npmrc | 1 + README.txt | 0 package.json | 14 ++++++++++++++ splunksolutionlib/common/utils.py | 2 +- 5 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .npmrc create mode 100644 README.txt create mode 100644 package.json diff --git a/.gitignore b/.gitignore index 6c82a6fa..dee4f6bc 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ coverage-reports testjunit-reports tests/__pycache__ *.pyc +node_modules/* diff --git a/.npmrc b/.npmrc new file mode 100644 index 00000000..9f05c62e --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +registry=http://repo.splunk.com/artifactory/api/npm/npm/ diff --git a/README.txt b/README.txt new file mode 100644 index 00000000..e69de29b diff --git a/package.json b/package.json new file mode 100644 index 00000000..7e61c77d --- /dev/null +++ b/package.json @@ -0,0 +1,14 @@ +{ + "name": "lib-solutions-python", + "version": "1.0.0", + "description": "SDK for solutions", + "scripts": { + "build": "python setup.py sdist", + "lint": "python setup.py lint | tee pylint.log", + "test": "python setup.py test", + "coverage": "python setup.py coverage" + }, + "devDependencies": { + "ext-grunt-basebuild": "0.1.9" + } +} diff --git a/splunksolutionlib/common/utils.py b/splunksolutionlib/common/utils.py index 7cbbc3c5..56a55f86 100755 --- a/splunksolutionlib/common/utils.py +++ b/splunksolutionlib/common/utils.py @@ -38,7 +38,7 @@ def handle_tear_down_signals(callback): signal.signal(signal.SIGINT, callback) if os.name == 'nt': - signal.signal(signal.SIGBREAK, callback) + signal.signal(signal.SIGBREAK, callback) #pylint: disable=E1101 def datetime_to_seconds(dt):