From ea7f90dc77a4e15a4dae02b0ed92d22ba24738a2 Mon Sep 17 00:00:00 2001 From: Hadrien Mary Date: Sat, 16 Dec 2023 08:14:20 -0500 Subject: [PATCH] fix pip versions --- recipes/espsim/meta.yaml | 14 +++++++++----- recipes/espsim/setup-py.patch | 13 +++++++++++++ recipes/resp/meta.yaml | 14 ++++++++++---- recipes/resp/setup-py.patch | 12 ++++++++++++ 4 files changed, 44 insertions(+), 9 deletions(-) create mode 100644 recipes/espsim/setup-py.patch create mode 100644 recipes/resp/setup-py.patch diff --git a/recipes/espsim/meta.yaml b/recipes/espsim/meta.yaml index a2d56acc08a0c..d775c5fc9cc8c 100644 --- a/recipes/espsim/meta.yaml +++ b/recipes/espsim/meta.yaml @@ -1,14 +1,18 @@ {% set name = "espsim" %} -{% set version = "1.0" %} +{% set version = "1.0.0" %} +{% set git_version = "1.0" %} package: - name: {{ name|lower }} + name: "{{ name|lower }}" version: {{ version }} source: - url: https://github.com/hesther/espsim/archive/refs/tags/v{{ version }}.tar.gz + url: https://github.com/hesther/espsim/archive/refs/tags/v{{ git_version }}.tar.gz sha256: b381eae851e22d357ed25effe9dc80587fafc6c6cc7159863da9733292a6aabd + patches: + - setup-py.patch + build: noarch: python script: {{ PYTHON }} -m pip install . -vv @@ -16,10 +20,10 @@ build: requirements: host: - - python >=3.6 + - python >=3.8 - pip run: - - python >=3.6 + - python >=3.8 - rdkit - numpy - scipy diff --git a/recipes/espsim/setup-py.patch b/recipes/espsim/setup-py.patch new file mode 100644 index 0000000000000..cd7b2c56d81c6 --- /dev/null +++ b/recipes/espsim/setup-py.patch @@ -0,0 +1,13 @@ +diff --git a/setup.py b/setup.py +index 2d0ca17..9c35f21 100644 +--- a/setup.py ++++ b/setup.py +@@ -5,7 +5,7 @@ with open('README.md', encoding='utf-8') as f: + + setup( + name='espsim', +- version='0.0.1', ++ version='1.0.0', + author='Esther Heid', + author_email='eheid@mit.edu', + description='Scoring of shape and ESP similarity with RDKit', diff --git a/recipes/resp/meta.yaml b/recipes/resp/meta.yaml index 1971a6073c657..990b9ef545a46 100644 --- a/recipes/resp/meta.yaml +++ b/recipes/resp/meta.yaml @@ -1,14 +1,18 @@ {% set name = "resp" %} -{% set version = "1.0" %} +{% set version = "1.0.0" %} +{% set git_version = "1.0" %} package: name: {{ name|lower }} version: {{ version }} source: - url: https://github.com/cdsgroup/resp/archive/refs/tags/v{{ version }}.tar.gz + url: https://github.com/cdsgroup/resp/archive/refs/tags/v{{ git_version }}.tar.gz sha256: e3bf8a3df69e5b909877df221ce0aa3dd139c176edbcccec0a3e8a738c03a921 + patches: + - setup-py.patch + build: noarch: python script: {{ PYTHON }} -m pip install . -vv @@ -16,20 +20,22 @@ build: requirements: host: - - python >=3.6 + - python >=3.8 - pip run: - numpy - - python >=3.6 + - python >=3.8 - psi4 test: requires: - pytest + - pip imports: - psi4 - resp commands: + - pip check # Verify module - test -f $SP_DIR/resp/driver.py # Actually test diff --git a/recipes/resp/setup-py.patch b/recipes/resp/setup-py.patch new file mode 100644 index 0000000000000..525e146d970d1 --- /dev/null +++ b/recipes/resp/setup-py.patch @@ -0,0 +1,12 @@ +diff --git a/setup.py b/setup.py +index d76b67f..9b68f0e 100644 +--- a/setup.py ++++ b/setup.py +@@ -2,6 +2,7 @@ from setuptools import setup + + setup( + name='resp', ++ version='1.0.0', + url='https://github.com/cdsgroup/resp', + license='BSD license', + packages=['resp'],