From 09313f6d0e88a7075edac6be13ee03f0a02b1942 Mon Sep 17 00:00:00 2001 From: sarthakpati Date: Thu, 22 Jul 2021 14:01:24 -0400 Subject: [PATCH 01/21] added recipe --- recipes/crypten/LICENSE | 21 ++++++++++++++++++ recipes/crypten/meta.yaml | 46 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 recipes/crypten/LICENSE create mode 100644 recipes/crypten/meta.yaml diff --git a/recipes/crypten/LICENSE b/recipes/crypten/LICENSE new file mode 100644 index 0000000000000..b96dcb0480a0b --- /dev/null +++ b/recipes/crypten/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) Facebook, Inc. and its affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/recipes/crypten/meta.yaml b/recipes/crypten/meta.yaml new file mode 100644 index 0000000000000..d14640e60da0a --- /dev/null +++ b/recipes/crypten/meta.yaml @@ -0,0 +1,46 @@ +{% set name = "crypten" %} +{% set version = "0.1" %} + + +package: + name: {{ name|lower }} + version: {{ version }} + +source: + url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/crypten-{{ version }}.tar.gz + sha256: ad6b8bdc1ee3a38184235591a622c0fcd1bd76bfe2fc9f7ca3b8a4126857ba62 + +build: + number: 0 + noarch: python + script: {{ PYTHON }} -m pip install . -vv + +requirements: + host: + - pip + - python + run: + - future + - onnx + - python + - tensorboard + - torch ==1.4.0 + - torchvision ==0.5.0 + +test: + imports: + - crypten + commands: + - pip check + requires: + - pip + +about: + home: https://github.com/facebookresearch/CrypTen + summary: 'CrypTen: secure machine learning in PyTorch.' + license: MIT + license_file: LICENSE + +extra: + recipe-maintainers: + - sarthakpati From 4a6e75e898d83b4b2947df7005cd59200462b22f Mon Sep 17 00:00:00 2001 From: sarthakpati Date: Thu, 22 Jul 2021 14:02:15 -0400 Subject: [PATCH 02/21] corrected requirements --- recipes/crypten/meta.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/crypten/meta.yaml b/recipes/crypten/meta.yaml index d14640e60da0a..0438748971171 100644 --- a/recipes/crypten/meta.yaml +++ b/recipes/crypten/meta.yaml @@ -7,7 +7,7 @@ package: version: {{ version }} source: - url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/crypten-{{ version }}.tar.gz + url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz sha256: ad6b8bdc1ee3a38184235591a622c0fcd1bd76bfe2fc9f7ca3b8a4126857ba62 build: @@ -24,7 +24,7 @@ requirements: - onnx - python - tensorboard - - torch ==1.4.0 + - pytorch >=1.7.0 - torchvision ==0.5.0 test: From ac46ba2fec91d84a3431c1e5c28496ceeb70c460 Mon Sep 17 00:00:00 2001 From: sarthakpati Date: Thu, 22 Jul 2021 14:05:58 -0400 Subject: [PATCH 03/21] updated requirement --- recipes/crypten/meta.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/crypten/meta.yaml b/recipes/crypten/meta.yaml index 0438748971171..bcde8c3c68b26 100644 --- a/recipes/crypten/meta.yaml +++ b/recipes/crypten/meta.yaml @@ -18,11 +18,11 @@ build: requirements: host: - pip - - python + - python >=3.6 run: - future - onnx - - python + - python >=3.6 - tensorboard - pytorch >=1.7.0 - torchvision ==0.5.0 From 523273aacd5a7173352ffe2f62ef35588c530379 Mon Sep 17 00:00:00 2001 From: sarthakpati Date: Thu, 22 Jul 2021 14:14:34 -0400 Subject: [PATCH 04/21] corrected torchvision --- recipes/crypten/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/crypten/meta.yaml b/recipes/crypten/meta.yaml index bcde8c3c68b26..a86f6a33bcf21 100644 --- a/recipes/crypten/meta.yaml +++ b/recipes/crypten/meta.yaml @@ -25,7 +25,7 @@ requirements: - python >=3.6 - tensorboard - pytorch >=1.7.0 - - torchvision ==0.5.0 + - torchvision >=0.9.1 test: imports: From 635943f8af191c22ef33f451fcdda2af0654a8cf Mon Sep 17 00:00:00 2001 From: sarthakpati Date: Thu, 22 Jul 2021 14:30:47 -0400 Subject: [PATCH 05/21] trying something --- recipes/crypten/meta.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes/crypten/meta.yaml b/recipes/crypten/meta.yaml index a86f6a33bcf21..ef0e84bb7a385 100644 --- a/recipes/crypten/meta.yaml +++ b/recipes/crypten/meta.yaml @@ -12,17 +12,17 @@ source: build: number: 0 - noarch: python + skip: True # [py>37 or win] script: {{ PYTHON }} -m pip install . -vv requirements: host: - pip - - python >=3.6 + - python run: - future - onnx - - python >=3.6 + - python - tensorboard - pytorch >=1.7.0 - torchvision >=0.9.1 From 8cf439514470eb1eb4f17c25233d03a5390f29c0 Mon Sep 17 00:00:00 2001 From: sarthakpati Date: Thu, 22 Jul 2021 14:49:13 -0400 Subject: [PATCH 06/21] trying something else --- recipes/crypten/meta.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/recipes/crypten/meta.yaml b/recipes/crypten/meta.yaml index ef0e84bb7a385..cf64a063f6a14 100644 --- a/recipes/crypten/meta.yaml +++ b/recipes/crypten/meta.yaml @@ -12,17 +12,17 @@ source: build: number: 0 - skip: True # [py>37 or win] + noarch: python script: {{ PYTHON }} -m pip install . -vv requirements: host: - pip - - python + - python >=3.6 run: - future - onnx - - python + - python >=3.6 - tensorboard - pytorch >=1.7.0 - torchvision >=0.9.1 @@ -30,8 +30,6 @@ requirements: test: imports: - crypten - commands: - - pip check requires: - pip From cfa5e301047db6e5092a5ff64ea224110a99a424 Mon Sep 17 00:00:00 2001 From: sarthakpati Date: Thu, 22 Jul 2021 20:13:55 -0400 Subject: [PATCH 07/21] checking if adding compiler would work --- recipes/crypten/meta.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/crypten/meta.yaml b/recipes/crypten/meta.yaml index cf64a063f6a14..0d68910fd7803 100644 --- a/recipes/crypten/meta.yaml +++ b/recipes/crypten/meta.yaml @@ -26,6 +26,8 @@ requirements: - tensorboard - pytorch >=1.7.0 - torchvision >=0.9.1 + - {{ compiler('c') }} + - {{ compiler('cxx') }} test: imports: From 7300b6587219565a4136966c612090fb3f126d34 Mon Sep 17 00:00:00 2001 From: sarthakpati Date: Thu, 22 Jul 2021 22:56:29 -0400 Subject: [PATCH 08/21] trying something else --- recipes/crypten/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/crypten/meta.yaml b/recipes/crypten/meta.yaml index 0d68910fd7803..316c46ee30f40 100644 --- a/recipes/crypten/meta.yaml +++ b/recipes/crypten/meta.yaml @@ -24,7 +24,7 @@ requirements: - onnx - python >=3.6 - tensorboard - - pytorch >=1.7.0 + - pytorch >=1.8.0 - torchvision >=0.9.1 - {{ compiler('c') }} - {{ compiler('cxx') }} From 1beb884d302505f4efe8f6e8f5b9268763f5c727 Mon Sep 17 00:00:00 2001 From: sarthakpati Date: Fri, 23 Jul 2021 09:16:02 -0400 Subject: [PATCH 09/21] trying someting else --- recipes/crypten/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/crypten/meta.yaml b/recipes/crypten/meta.yaml index 316c46ee30f40..1fccef7be3335 100644 --- a/recipes/crypten/meta.yaml +++ b/recipes/crypten/meta.yaml @@ -20,7 +20,7 @@ requirements: - pip - python >=3.6 run: - - future + - future >=0.18.2 - onnx - python >=3.6 - tensorboard From cd225987461c1541d0f9c158f14c3f8eddd24c9d Mon Sep 17 00:00:00 2001 From: sarthakpati Date: Sat, 12 Feb 2022 13:23:30 -0500 Subject: [PATCH 10/21] updated recipe --- recipes/crypten/meta.yaml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/recipes/crypten/meta.yaml b/recipes/crypten/meta.yaml index 1fccef7be3335..18d9b287c932e 100644 --- a/recipes/crypten/meta.yaml +++ b/recipes/crypten/meta.yaml @@ -1,5 +1,5 @@ {% set name = "crypten" %} -{% set version = "0.1" %} +{% set version = "0.4.0" %} package: @@ -7,8 +7,8 @@ package: version: {{ version }} source: - url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz - sha256: ad6b8bdc1ee3a38184235591a622c0fcd1bd76bfe2fc9f7ca3b8a4126857ba62 + url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name[0] }}-{{ version }}.tar.gz + sha256: f9d76bc0ba1468cb77261b8d5486ee875266363310353a18aba948429aa24fda build: number: 0 @@ -18,20 +18,25 @@ build: requirements: host: - pip - - python >=3.6 + - python run: - - future >=0.18.2 - - onnx - - python >=3.6 + - future + - omegaconf >=2.0.6 + - onnx >=1.7.0 + - pandas >=1.2.2 + - python + - pyyaml >=5.3.1 + - scipy >=1.6.0 + - scikit-learn - tensorboard - - pytorch >=1.8.0 + - pytorch >=1.7.0 - torchvision >=0.9.1 - - {{ compiler('c') }} - - {{ compiler('cxx') }} test: imports: - crypten + commands: + - pip check requires: - pip From fe240c5edf7cab50f72b1d764ec8652486120a5f Mon Sep 17 00:00:00 2001 From: sarthakpati Date: Sat, 12 Feb 2022 14:17:44 -0500 Subject: [PATCH 11/21] trying a solution --- recipes/crypten/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/crypten/meta.yaml b/recipes/crypten/meta.yaml index 18d9b287c932e..c6a0d69f439d8 100644 --- a/recipes/crypten/meta.yaml +++ b/recipes/crypten/meta.yaml @@ -7,7 +7,7 @@ package: version: {{ version }} source: - url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name[0] }}-{{ version }}.tar.gz + url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz sha256: f9d76bc0ba1468cb77261b8d5486ee875266363310353a18aba948429aa24fda build: From 88f9835f6e21f1b53ff06157ca7109fe1dc71b63 Mon Sep 17 00:00:00 2001 From: sarthakpati Date: Sat, 12 Feb 2022 14:20:17 -0500 Subject: [PATCH 12/21] noarch --- recipes/crypten/meta.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/crypten/meta.yaml b/recipes/crypten/meta.yaml index c6a0d69f439d8..b098e3a90fc83 100644 --- a/recipes/crypten/meta.yaml +++ b/recipes/crypten/meta.yaml @@ -18,13 +18,13 @@ build: requirements: host: - pip - - python + - python >=3.6 run: - future - omegaconf >=2.0.6 - onnx >=1.7.0 - pandas >=1.2.2 - - python + - python >=3.6 - pyyaml >=5.3.1 - scipy >=1.6.0 - scikit-learn From 9b2f8cfbf6864025bbaf55909e4e23f7a59edbb1 Mon Sep 17 00:00:00 2001 From: sarthakpati Date: Sat, 12 Feb 2022 17:43:26 -0500 Subject: [PATCH 13/21] trying to put requirements file in recipe --- recipes/crypten/meta.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/recipes/crypten/meta.yaml b/recipes/crypten/meta.yaml index b098e3a90fc83..09771e1a6bd81 100644 --- a/recipes/crypten/meta.yaml +++ b/recipes/crypten/meta.yaml @@ -7,8 +7,10 @@ package: version: {{ version }} source: - url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz - sha256: f9d76bc0ba1468cb77261b8d5486ee875266363310353a18aba948429aa24fda + - url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz + sha256: f9d76bc0ba1468cb77261b8d5486ee875266363310353a18aba948429aa24fda + - url: https://raw.githubusercontent.com/facebookresearch/CrypTen/main/requirements.txt + sha256: 14569c02e2bb5233d9d75a13646a7e9eaee0a1bcc8e7ffe4044ad9a3511d8eca build: number: 0 From 2e6daf1c50d5c27153fc73aa794829f25b38128f Mon Sep 17 00:00:00 2001 From: sarthakpati Date: Sat, 12 Feb 2022 17:54:15 -0500 Subject: [PATCH 14/21] trying another dependency --- recipes/crypten/meta.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recipes/crypten/meta.yaml b/recipes/crypten/meta.yaml index 09771e1a6bd81..a9ae77fad7bd0 100644 --- a/recipes/crypten/meta.yaml +++ b/recipes/crypten/meta.yaml @@ -33,12 +33,11 @@ requirements: - tensorboard - pytorch >=1.7.0 - torchvision >=0.9.1 + - pytest-runner test: imports: - crypten - commands: - - pip check requires: - pip From ed37f3ccf8acaaef0530e48fc9ca55a27578c3dd Mon Sep 17 00:00:00 2001 From: sarthakpati Date: Sat, 12 Feb 2022 18:12:24 -0500 Subject: [PATCH 15/21] trying yet another dependency --- recipes/crypten/meta.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/crypten/meta.yaml b/recipes/crypten/meta.yaml index a9ae77fad7bd0..181a93b050056 100644 --- a/recipes/crypten/meta.yaml +++ b/recipes/crypten/meta.yaml @@ -21,8 +21,10 @@ requirements: host: - pip - python >=3.6 + - setuptools run: - future + - setuptools - omegaconf >=2.0.6 - onnx >=1.7.0 - pandas >=1.2.2 From e4a85052d6d95775440863bdcece0790dcdddfb1 Mon Sep 17 00:00:00 2001 From: sarthakpati Date: Sat, 12 Feb 2022 18:18:29 -0500 Subject: [PATCH 16/21] trying something else --- recipes/crypten/meta.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/crypten/meta.yaml b/recipes/crypten/meta.yaml index 181a93b050056..a1e2de3e42f3e 100644 --- a/recipes/crypten/meta.yaml +++ b/recipes/crypten/meta.yaml @@ -18,6 +18,8 @@ build: script: {{ PYTHON }} -m pip install . -vv requirements: + build: + - setuptools host: - pip - python >=3.6 From d021b9ebc21a9fa371b0a5ec8b5f746fb7d22542 Mon Sep 17 00:00:00 2001 From: sarthakpati Date: Sun, 13 Feb 2022 11:01:30 -0500 Subject: [PATCH 17/21] trying to put pytest-runner in both build and host --- recipes/crypten/meta.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes/crypten/meta.yaml b/recipes/crypten/meta.yaml index a1e2de3e42f3e..aa5fc23ff28b0 100644 --- a/recipes/crypten/meta.yaml +++ b/recipes/crypten/meta.yaml @@ -19,11 +19,13 @@ build: requirements: build: - - setuptools + - setuptools + - pytest-runner host: - pip - python >=3.6 - setuptools + - pytest-runner run: - future - setuptools From 10e781dcaa755467c8bb7f8279210de14d47a71c Mon Sep 17 00:00:00 2001 From: Sarthak Pati Date: Sun, 13 Feb 2022 18:28:08 -0500 Subject: [PATCH 18/21] Update recipes/crypten/meta.yaml Co-authored-by: Mark Harfouche --- recipes/crypten/meta.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/recipes/crypten/meta.yaml b/recipes/crypten/meta.yaml index aa5fc23ff28b0..d4673c0da731d 100644 --- a/recipes/crypten/meta.yaml +++ b/recipes/crypten/meta.yaml @@ -51,6 +51,7 @@ about: home: https://github.com/facebookresearch/CrypTen summary: 'CrypTen: secure machine learning in PyTorch.' license: MIT + license_family: MIT license_file: LICENSE extra: From 5deffa7ca9bcc048de4aaf414bd3309b2960067d Mon Sep 17 00:00:00 2001 From: sarthakpati Date: Sun, 13 Feb 2022 22:06:24 -0500 Subject: [PATCH 19/21] addressing comment about build section --- recipes/crypten/meta.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/recipes/crypten/meta.yaml b/recipes/crypten/meta.yaml index aa5fc23ff28b0..ee38a2971d8ae 100644 --- a/recipes/crypten/meta.yaml +++ b/recipes/crypten/meta.yaml @@ -18,9 +18,6 @@ build: script: {{ PYTHON }} -m pip install . -vv requirements: - build: - - setuptools - - pytest-runner host: - pip - python >=3.6 @@ -44,8 +41,6 @@ requirements: test: imports: - crypten - requires: - - pip about: home: https://github.com/facebookresearch/CrypTen From dfd8e42b1ad9115b22efabe5a822a6cde3289071 Mon Sep 17 00:00:00 2001 From: sarthakpati Date: Mon, 14 Feb 2022 08:48:51 -0500 Subject: [PATCH 20/21] incorporating comment about removing `pytest-runner` from run --- recipes/crypten/meta.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/recipes/crypten/meta.yaml b/recipes/crypten/meta.yaml index c1c6f134000df..c1df909ad0220 100644 --- a/recipes/crypten/meta.yaml +++ b/recipes/crypten/meta.yaml @@ -36,7 +36,6 @@ requirements: - tensorboard - pytorch >=1.7.0 - torchvision >=0.9.1 - - pytest-runner test: imports: From 1aee2c3008048143ca3dd47ef6142774e5e90e5c Mon Sep 17 00:00:00 2001 From: sarthakpati Date: Mon, 14 Feb 2022 08:49:42 -0500 Subject: [PATCH 21/21] added comment --- recipes/crypten/meta.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/crypten/meta.yaml b/recipes/crypten/meta.yaml index c1df909ad0220..2c86623dbfe4f 100644 --- a/recipes/crypten/meta.yaml +++ b/recipes/crypten/meta.yaml @@ -22,7 +22,7 @@ requirements: - pip - python >=3.6 - setuptools - - pytest-runner + - pytest-runner # https://github.com/facebookresearch/CrypTen/issues/351 run: - future - setuptools