add run req and pins to fix version errors in test
+{% set name = "gym" %}
{% set version = "0.17.1" %}
package:
- name: "gym"
+ name: {{ name|lower }}
version: {{ version }}
source:
- url: https://pypi.io/packages/source/g/gym/gym-{{ version }}.tar.gz
+ url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/{{ name }}-{{ version }}.tar.gz
sha256: 9cff7061e54a53d359af51ad6ec62a44b4bf374ca2cdce35bfee47a93506bcf8
patches:
- - patches/0001-comment-out-requires-in-setup.py.patch
+ - 0001-comment-out-requires-in-setup.py.patch
build:
number: 0
@@ -23,19 +24,27 @@ requirements:
outputs:
- name: gym
build:
- script: "{{ PYTHON }} -m pip install . -vv"
+ script: {{ PYTHON }} -m pip install . -vv
requirements:
host:
- python
- pip
- - cloudpickle >=1.2.0
+ - cloudpickle >=1.2.0,<1.4.0
- numpy >=1.10.4
- - pyglet >=1.4.0
+ - pyglet >=1.4.0,<=1.5.0
- six
- scipy
run:
- python
+ - cloudpickle >=1.2.0,<1.4.0
+ - numpy >=1.10.4
+ - pyglet >=1.4.0,<=1.5.0
+ - six
+ - scipy
test:
+ requires:
+ - mock
+ - pytest
imports:
- gym
@@ -69,7 +78,7 @@ outputs:
run:
- python
- {{ pin_subpackage('gym', exact=True) }}
- - atari_py ==0.2
+ - atari_py
- opencv
- pillow
test:
@@ -83,7 +92,7 @@ outputs:
run:
- python
- {{ pin_subpackage('gym', exact=True) }}
- - box2d-py ==2.3
+ - box2d-py
test:
imports:
- gym.envs.box2d
@@ -140,11 +149,10 @@ about:
license_family: MIT
license_file: LICENSE.md
summary: 'The OpenAI Gym: A toolkit for developing and comparing your reinforcement learning agents.'
-
description: 'The OpenAI Gym: A toolkit for developing and comparing your reinforcement learning agents.'
doc_url: https://gym.openai.com/docs/
dev_url: https://github.com/openai/gym
-
extra:
recipe-maintainers:
- h-vetinari
+ - oblute
