Bug 1466211 - Vendor json-e via |mach vendor python|; r?ahal draft
authorDave Hunt <dhunt@mozilla.com>
Fri, 01 Jun 2018 18:42:11 +0100
changeset 809500 7eb99737c62c3f2edbc277a9a454e6a8aa5b828b
parent 809499 3fae3725d82424211e6b863adcf383e1dcf5a12b
child 809501 c6d1864612830e17d424d36f41d3c857599e57b7
push id113698
push userbmo:dave.hunt@gmail.com
push dateFri, 22 Jun 2018 09:54:34 +0000
reviewersahal
bugs1466211
milestone62.0a1
Bug 1466211 - Vendor json-e via |mach vendor python|; r?ahal MozReview-Commit-ID: DPatUFNHDIR
Pipfile
Pipfile.lock
third_party/python/json-e/MANIFEST.in
third_party/python/json-e/PKG-INFO
third_party/python/json-e/package.json
third_party/python/json-e/setup.cfg
third_party/python/json-e/setup.py
--- a/Pipfile
+++ b/Pipfile
@@ -9,11 +9,13 @@ name = "pypi"
 pipenv = "==2018.5.18"
 virtualenv = "==15.2.0"
 six = "==1.10.0"
 attrs = "==18.1.0"
 pytest = "==3.2.5"
 jsmin = "==2.1.0"
 python-hglib = "==2.4"
 requests = "==2.9.1"
+json-e = "==2.5.0"
+
 
 [requires]
 python_version = "2.7"
--- a/Pipfile.lock
+++ b/Pipfile.lock
@@ -1,12 +1,12 @@
 {
     "_meta": {
         "hash": {
-            "sha256": "5d8dd18c1be7cb80a1cac89aeea695dea5f87eedad703a782c64e89fd39a6c3f"
+            "sha256": "04222e29219efa63e83dca85d6692b34f362ecbb0ea154c2e309ba5df708e7b8"
         },
         "pipfile-spec": 6,
         "requires": {
             "python_version": "2.7"
         },
         "sources": [
             {
                 "name": "pypi",
@@ -33,16 +33,23 @@
         },
         "jsmin": {
             "hashes": [
                 "sha256:5d07bf0251a4128e5e8e8eef603849b6b5741c337bff087731a248f9cc774f56"
             ],
             "index": "pypi",
             "version": "==2.1.0"
         },
+        "json-e": {
+            "hashes": [
+                "sha256:f9114a25ed4b575395fbb2daa1183c5b781a647b387fdf28596220bb114673e8"
+            ],
+            "index": "pypi",
+            "version": "==2.5.0"
+        },
         "pipenv": {
             "hashes": [
                 "sha256:04b9a8b02a3ff12a5502b335850cfdb192adcfd1d6bbdb7a7c47cae9ab9ddece",
                 "sha256:e96d5bfa6822a17b2200d455aa5f9002c14361c50df1b1e51921479d7c09e741"
             ],
             "index": "pypi",
             "version": "==2018.5.18"
         },
new file mode 100644
--- /dev/null
+++ b/third_party/python/json-e/MANIFEST.in
@@ -0,0 +1,3 @@
+include jsone *.py
+include package.json
+recursive-exclude test *
new file mode 100644
--- /dev/null
+++ b/third_party/python/json-e/PKG-INFO
@@ -0,0 +1,10 @@
+Metadata-Version: 1.0
+Name: json-e
+Version: 2.5.0
+Summary: A data-structure parameterization system written for embedding context in JSON objects
+Home-page: https://taskcluster.github.io/json-e/
+Author: Dustin J. Mitchell
+Author-email: dustin@mozilla.com
+License: MPL2
+Description: UNKNOWN
+Platform: UNKNOWN
new file mode 100644
--- /dev/null
+++ b/third_party/python/json-e/package.json
@@ -0,0 +1,35 @@
+{
+  "name": "json-e",
+  "version": "2.5.0",
+  "description": "json parameterization module inspired from json-parameterization",
+  "main": "./src/index.js",
+  "scripts": {
+    "lint": "eslint src/*.js test/*.js",
+    "test": "yarn lint && mocha test/*_test.js",
+    "build-demo": "cd demo && yarn && yarn build",
+    "start-demo": "cd demo && yarn && yarn start"
+  },
+  "files": [
+    "src"
+  ],
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/taskcluster/json-e"
+  },
+  "author": "",
+  "license": "MPL-2.0",
+  "dependencies": {
+    "json-stable-stringify": "^1.0.1"
+  },
+  "devDependencies": {
+    "assume": "^1.5.2",
+    "browserify": "^14.5.0",
+    "eslint-config-taskcluster": "^3.0.0",
+    "mocha": "^4.0.1",
+    "source-map-support": "^0.5.0",
+    "timekeeper": "^2.0.0"
+  },
+  "engines": {
+    "node": ">=6.4.0"
+  }
+}
new file mode 100644
--- /dev/null
+++ b/third_party/python/json-e/setup.cfg
@@ -0,0 +1,8 @@
+[pep8]
+max-line-length = 100
+select = E,W
+
+[egg_info]
+tag_build = 
+tag_date = 0
+
new file mode 100644
--- /dev/null
+++ b/third_party/python/json-e/setup.py
@@ -0,0 +1,26 @@
+import json
+import os
+from setuptools import setup, find_packages
+
+package_json = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'package.json')
+with open(package_json) as f:
+    version = json.load(f)['version']
+
+setup(name='json-e',
+    version=version,
+    description='A data-structure parameterization system written for embedding context in JSON objects',
+    author='Dustin J. Mitchell',
+    url='https://taskcluster.github.io/json-e/',
+    author_email='dustin@mozilla.com',
+    packages=['jsone'],
+    test_suite='nose.collector',
+    license='MPL2',
+    tests_require=[
+        "freezegun",
+        "hypothesis",
+        "nose",
+        "PyYAML",
+        "python-dateutil",
+        'pep8',
+    ]
+)